/* ===== DESIGN TOKENS & VARIABLES ===== */
:root {
    /* Colors */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 30, 0.6);
    --bg-card-hover: rgba(30, 30, 45, 0.8);
    --text-primary: #f8f9fa;
    --text-secondary: #a0aab2;
    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Effects */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-backdrop: blur(12px);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.alt-bg {
    background: linear-gradient(to bottom, transparent, rgba(112, 0, 255, 0.03), transparent);
}

/* Parallax Utilities */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 15, 0.8); /* Dark overlay to keep text readable */
    z-index: 0;
}

.parallax-section .container {
    position: relative;
    z-index: 1;
}

/* ===== UTILITIES ===== */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-fast);
}

.hover-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(112, 0, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.2);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btn {
    padding: 8px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

.mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-slow);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    mix-blend-mode: luminosity;
}

.hero-bg .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,15,0.2) 0%, rgba(10,10,15,1) 100%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    z-index: 2;
    position: relative;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 900px;
}

.hero-canvas-container {
    flex: 1;
    height: 600px;
    minWidth:600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-subtitle {
    color: var(--accent-primary);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-role {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    transition: var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

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

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 16px auto 0;
}

/* ===== ABOUT ===== */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text-primary);
}

.education-block {
    margin-top: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(0,240,255,0.3);
}

.education-block h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.education-block li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    padding: 30px;
    text-align: center;
}

.stat-card h3 {
    font-size: 3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

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

.skill-category {
    padding: 40px 30px;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-8px);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.skill-tags span:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.05);
    color: var(--accent-primary);
    transform: scale(1.05);
}

.skill-tags.small span {
    font-size: 0.8rem;
    padding: 4px 10px;
}

/* ===== EXPERIENCE ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 24px;
    height: 100%;
    width: 2px;
    background: rgba(255,255,255,0.05);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 24px;
    left: 20px;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-content {
    padding: 30px;
}

.timeline-date {
    display: inline-block;
    color: var(--accent-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.timeline-company {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.timeline-role {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 16px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 16px;
}

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

.project-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-content {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.project-company {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

/* ===== CONTACT ===== */
.contact-container {
    max-width: 800px;
}

.contact-card {
    padding: 60px 40px;
    text-align: center;
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}

.contact-item a {
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent-primary);
}

.lg-btn {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

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

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Initialization Animations for Hero */
.hidden-onload {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible-onload {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-canvas-container {
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-dot {
        left: 11px;
    }
    
    .timeline-item {
        padding-left: 45px;
    }
}
