:root {
    /* Colors */
    --bg-darker: #050816;
    --bg-dark: #0B1120;
    --bg-light: #0F172A;
    --accent-cyan: #00F5FF;
    --accent-purple: #8B5CF6;
    --accent-blue: #2563EB;
    --accent-shadow: #4C1D95;
    --gold: #FFD700;
    --text-white: #FFFFFF;
    --text-gray: #CBD5E1;
    --text-dim: #94A3B8;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    --grad-dark: linear-gradient(180deg, var(--bg-darker), var(--bg-dark));
    --grad-glow: radial-gradient(circle, rgba(0, 245, 255, 0.15) 0%, transparent 70%);
    
    /* Shadows & Glows */
    --shadow-cyan: 0 0 15px rgba(0, 245, 255, 0.4);
    --shadow-purple: 0 0 15px rgba(139, 92, 246, 0.4);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Transitions */
    --trans-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    cursor: none; /* We'll use a custom cursor */
}

body {
    background-color: var(--bg-darker);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo, .system-text {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb {
    background: var(--grad-primary);
    border-radius: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Utility Classes --- */
.accent-text { color: var(--accent-cyan); }
.gold-text { color: var(--gold); }
.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--trans-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 245, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-purple);
}

.btn-outline {
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-outline:hover {
    background: var(--accent-cyan);
    color: var(--bg-darker);
    box-shadow: var(--shadow-cyan);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* --- Custom Cursor --- */
.cursor {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: screen;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-purple);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 10px var(--accent-purple);
}

/* --- Loading Screen --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

.loader-content {
    text-align: center;
    width: 80%;
    max-width: 400px;
}

.magic-circle {
    width: 150px;
    height: 150px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    margin: 0 auto 30px;
    position: relative;
    animation: rotate 4s linear infinite;
}

.magic-circle::before, .magic-circle::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: rotate 2s linear infinite reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.system-text {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    text-shadow: var(--shadow-cyan);
}

.progress-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--grad-primary);
    transition: width 0.3s ease;
}

.percentage {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.status-msg {
    margin-top: 20px;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--text-dim);
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--trans-smooth);
}

#navbar.scrolled {
    background: rgba(5, 8, 22, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    animation: pulse 2s infinite;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    transition: var(--trans-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--trans-smooth);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-cyan);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 245, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    z-index: -1;
    filter: blur(80px);
    animation: glow-move 10s ease-in-out infinite alternate;
}

@keyframes glow-move {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-45%, -55%) scale(1.2); }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.typing-container {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-gray);
}

.typing-text {
    color: var(--accent-purple);
    border-right: 2px solid var(--accent-purple);
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-dim);
    transition: var(--trans-smooth);
}

.social-links a:hover {
    color: var(--accent-cyan);
    transform: translateY(-5px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-aura {
    position: absolute;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, var(--accent-purple) 0%, var(--accent-shadow) 30%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: pulse-aura 4s infinite alternate, rotate-aura 10s linear infinite;
}

@keyframes rotate-aura {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.1); }
}

@keyframes pulse-aura {
    0% { transform: scale(1); opacity: 0.4; filter: blur(40px); }
    100% { transform: scale(1.1); opacity: 0.7; filter: blur(60px); }
}

.profile-img-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--accent-cyan);
    border-radius: inherit;
    animation: morph 8s ease-in-out infinite, pulse 2s infinite;
    z-index: -1;
    opacity: 0.5;
}

.profile-img-container {
    width: 350px;
    height: 350px;
    position: relative;
    z-index: 2;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-purple);
    animation: morph 8s ease-in-out infinite;
    filter: grayscale(0.2) brightness(0.9);
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.holographic-elements .holo-circle {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.5;
    animation: rotate 10s linear infinite;
}

.holographic-elements .holo-line {
    position: absolute;
    bottom: 20px;
    left: -40px;
    width: 150px;
    height: 2px;
    background: var(--grad-primary);
    transform: rotate(-15deg);
    box-shadow: var(--shadow-cyan);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 2px solid var(--text-dim);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* --- Section Headers --- */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.centered {
    text-align: center;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-purple);
    letter-spacing: 4px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
}

/* --- About / Status Section --- */
.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.status-window {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.window-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.dots { display: flex; gap: 8px; }
.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.window-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dim);
}

.window-content {
    padding: 30px;
}

.status-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item .label {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 700;
}

.info-item .value {
    font-size: 1.1rem;
    font-weight: 700;
}

.stats-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.progress-bar-bg {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-cyan);
    box-shadow: var(--shadow-cyan);
    position: relative;
    border-radius: 2px;
}

.bio-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.bio-content p {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.achievement-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.a-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--trans-smooth);
}

.a-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-5px);
    background: rgba(139, 92, 246, 0.05);
}

.a-card i {
    font-size: 2rem;
    color: var(--accent-purple);
    margin-bottom: 10px;
}

.a-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
}

.a-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--trans-smooth);
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.1);
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--trans-smooth);
}

.skill-card:hover .card-glow {
    opacity: 1;
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.skill-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.skill-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.skill-tags span {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
}

.skill-tags span:first-child {
    background: rgba(0, 245, 255, 0.1);
    color: var(--accent-cyan);
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--glass-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--trans-smooth);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-purple);
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 22, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--trans-smooth);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-links {
    display: flex;
    gap: 20px;
}

.overlay-links a {
    width: 50px;
    height: 50px;
    background: var(--text-white);
    color: var(--bg-darker);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: var(--trans-smooth);
}

.overlay-links a:hover {
    background: var(--accent-cyan);
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    border-radius: 4px;
}

.view-more {
    text-align: center;
    margin-top: 50px;
}

/* --- Timeline Section --- */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-cyan), var(--accent-purple), transparent);
}

.timeline-item {
    margin-bottom: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--bg-darker);
    border: 3px solid var(--accent-cyan);
    border-radius: 50%;
    z-index: 2;
    box-shadow: var(--shadow-cyan);
}

.timeline-content {
    width: 45%;
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    position: relative;
}

.timeline-item:nth-child(odd) { justify-content: flex-start; }
.timeline-item:nth-child(even) { justify-content: flex-end; }

.timeline-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    padding: 50px 40px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--trans-smooth);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.05);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--accent-cyan);
    margin-bottom: 25px;
    transition: var(--trans-smooth);
}

.service-card:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-purple);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-dim);
}

.hover-glow {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    transition: var(--trans-smooth);
}

.service-card:hover .hover-glow {
    transform: scale(2);
}

/* --- Testimonials --- */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    position: relative;
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-purple);
}

.client-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.client-info span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item i {
    width: 50px;
    height: 50px;
    background: rgba(0, 245, 255, 0.1);
    color: var(--accent-cyan);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.detail-item h4 {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.social-box {
    margin-top: 50px;
}

.social-box h4 {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.contact-form {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    color: var(--text-white);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--trans-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-cyan);
    transition: var(--trans-smooth);
}

.form-group input:focus + .input-line, .form-group textarea:focus + .input-line {
    width: 100%;
    box-shadow: var(--shadow-cyan);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    padding: 15px;
    cursor: pointer;
}

/* --- Footer --- */
footer {
    padding: 80px 0 30px;
    background: #030610;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    transition: var(--trans-smooth);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.back-to-top {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: var(--trans-smooth);
}

.back-to-top:hover {
    background: var(--accent-cyan);
    color: var(--bg-darker);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-container, .status-grid, .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title { font-size: 3.5rem; }
    .hero-description { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .social-links { justify-content: center; }
    
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    
    .timeline::before { left: 20px; }
    .timeline-dot { left: 20px; }
    .timeline-content { width: 90%; margin-left: 50px; }
    .timeline-item:nth-child(even) { justify-content: flex-start; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
    .form-row { grid-template-columns: 1fr; }
    .achievement-cards { grid-template-columns: 1fr; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; text-shadow: 0 0 15px var(--accent-cyan); }
    100% { transform: scale(1); opacity: 0.8; }
}
/* --- Quests Modal (System Window) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 22, 0.9);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-window {
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background: var(--bg-dark);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.2);
    animation: modalSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes modalSlideUp {
    from { transform: translateY(50px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--accent-cyan);
}

.header-left i {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.modal-close {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dim);
    transition: var(--trans-smooth);
}

.modal-close:hover {
    color: #ff5f56;
    transform: rotate(90deg);
}

.modal-tabs {
    padding: 20px 30px;
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--trans-smooth);
    letter-spacing: 1px;
}

.tab-btn:hover {
    border-color: var(--accent-purple);
    color: var(--text-white);
}

.tab-btn.active {
    background: var(--grad-primary);
    border: none;
    color: var(--text-white);
    box-shadow: var(--shadow-cyan);
}

.modal-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    position: relative;
}

/* Custom Scrollbar for Modal Content */
.modal-content::-webkit-scrollbar { width: 5px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 10px;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 245, 255, 0.5);
    box-shadow: 0 0 15px var(--accent-cyan);
    z-index: 10;
    pointer-events: none;
    animation: scanMove 3s linear infinite;
    display: none; /* Only show when modal opens */
}

.modal-overlay.active .scan-line {
    display: block;
}

@keyframes scanMove {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.quests-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
}

.modal-overlay.active .quests-full-grid {
    opacity: 1;
    transform: translateY(0);
}

.quest-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 20px;
    transition: var(--trans-smooth);
    position: relative;
    overflow: hidden;
}

.quest-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-cyan);
    transform: scale(1.02);
}

.quest-rank {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
}

.rank-s { color: var(--gold); border: 1px solid var(--gold); background: rgba(255, 215, 0, 0.1); }
.rank-a { color: var(--accent-purple); border: 1px solid var(--accent-purple); background: rgba(139, 92, 246, 0.1); }
.rank-b { color: var(--accent-cyan); border: 1px solid var(--accent-cyan); background: rgba(0, 245, 255, 0.1); }

.quest-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.quest-item p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 15px;
    line-height: 1.4;
}

.quest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quest-tags span {
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 3px;
    color: var(--text-dim);
}

.modal-footer {
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 10px #27c93f;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-window {
        width: 95%;
        height: 90vh;
    }
    
    .modal-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
}
