:root {
    --bg-dark: #000000;
    --bg-card: #0a0a0a;
    --bg-light: #1a1a1a;
    --primary: #ffffff;
    --secondary: #e0e0e0;
    --accent: #c0c0c0;
    --text: #ffffff;
    --text-muted: #888888;
    --border: #333333;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    --shadow-hover: 0 20px 60px rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.15s ease;
}

/* Animated Background - Optimized */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-dark);
    overflow: hidden;
    will-change: transform;
}

.bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    will-change: transform;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.03);
    animation: float 20s infinite ease-in-out;
    will-change: transform;
}

.bg-circle:nth-child(2) {
    width: 600px;
    height: 600px;
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.bg-circle:nth-child(3) {
    width: 800px;
    height: 800px;
    top: 50%;
    right: -400px;
    animation-delay: 5s;
}

.bg-circle:nth-child(4) {
    width: 500px;
    height: 500px;
    bottom: -250px;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 9998;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

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

.logo {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    letter-spacing: -1px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 3rem 6rem;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -3px;
    color: var(--primary);
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease 0.2s both;
    position: relative;
    z-index: 2;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-container {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

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

.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-text .tagline {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 400;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s both;
    position: relative;
    z-index: 2;
}

.hero-focus {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.hero-focus h4 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.focus-items {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.focus-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.focus-item:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.focus-item i {
    font-size: 1.2rem;
}

.focus-item span {
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-text .description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 2;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.6s both;
    position: relative;
    z-index: 2;
}

.hero-text .philosophy {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 3rem;
    font-style: italic;
    font-weight: 500;
    animation: fadeInUp 1s ease 0.7s both;
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease 0.8s both;
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
}

.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

.hero-info {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 1s both;
    position: relative;
    z-index: 2;
}

.hero-info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-radius: 50px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.hero-info-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.hero-info-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

.hero-social {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 1.2s both;
    position: relative;
    z-index: 2;
}

.hero-social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    border: 2px solid var(--border);
    position: relative;
}

.hero-social-link::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: var(--bg-card);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.hero-social-link:hover::before {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.hero-social-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
    z-index: -1;
}

.hero-social-link:hover::after {
    transform: scale(1);
}

.hero-social-link:hover {
    color: var(--bg-dark);
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
    border-color: var(--primary);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 3rem;
    position: relative;
    z-index: 2;
    clear: both;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-number {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -2px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    z-index: 2;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary), var(--secondary), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 0.1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-card);
    border-radius: 28px;
    z-index: 0;
}

.stat-card > * {
    position: relative;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.stat-label {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Project98 Section */
.project98 {
    background: var(--bg-card);
    border-radius: 40px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 2;
}

.project98::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.03;
    filter: blur(60px);
}

.project98::after {
    content: '98';
    position: absolute;
    right: 50px;
    bottom: 20px;
    font-size: 15rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    font-family: 'Space Grotesk', sans-serif;
}

.project98-content {
    position: relative;
    z-index: 1;
}

.project98-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project98-header i {
    font-size: 3rem;
    color: var(--primary);
}

.project98 h2 {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
}

.project98 p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text);
}

.project98-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project98-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.project98-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
    border-color: var(--primary);
}

.project98-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.project98-footer {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text);
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 4.5rem;
    }
    
    .typing-container {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor-dot, .cursor-outline {
        display: none;
    }
    
    .hero-focus {
        padding: 1.5rem;
    }
    
    .focus-items {
        flex-direction: column;
        gap: 1rem;
    }
    
    .focus-item {
        justify-content: center;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .typing-container {
        font-size: 1.2rem;
    }

    .hero-text .tagline {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-social {
        gap: 1rem;
    }

    .hero-social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .hero-info {
        gap: 1rem;
        flex-direction: column;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .container {
        padding: 4rem 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .project98 {
        padding: 2rem;
    }

    .project98::after {
        font-size: 8rem;
        right: 20px;
    }

    .project98-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards Grid (Experience) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    will-change: transform;
    backface-visibility: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 30px;
}

.card:hover::before {
    opacity: 0.03;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.card > * {
    position: relative;
    z-index: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--primary);
    color: var(--bg-dark);
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.card:hover .card-icon {
    transform: rotate(360deg) scale(1.1);
}

.card-badge {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
}

.card-company {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-duration {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-project {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.card-list {
    list-style: none;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.card-list li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Projects Section */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    will-change: transform;
    backface-visibility: hidden;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.project-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: scale(1.2);
}

.project-content {
    padding: 2rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.project-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
}

.project-award {
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-tech {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Education Timeline */
.education-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--bg-dark);
    z-index: 1;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.timeline-content {
    width: 45%;
}

.timeline-year {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 50px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.education-card {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.education-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.education-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
}

.education-card:hover .education-icon {
    transform: rotate(360deg) scale(1.1);
}

.education-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
}

.education-degree {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.education-institute {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.5;
}

.education-university {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.education-score {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 800;
    letter-spacing: 1px;
}

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

.skill-category {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.skill-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.skill-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.skill-progress {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

.achievement-card {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent);
    animation: rotate 6s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-card:hover::before {
    opacity: 0.05;
}

.achievement-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-card);
    border-radius: 28px;
    z-index: 0;
}

.achievement-card > * {
    position: relative;
    z-index: 1;
}

.achievement-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.achievement-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
}

.achievement-card:hover .achievement-icon {
    transform: rotate(360deg) scale(1.1);
}

.achievement-card h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
    text-align: center;
}

.achievement-list {
    list-style: none;
    margin-bottom: 2rem;
}

.achievement-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.achievement-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
    border-color: var(--primary);
}

.achievement-badge {
    font-size: 2rem;
    flex-shrink: 0;
}

.achievement-list strong {
    display: block;
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.achievement-list p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.achievement-tag {
    text-align: center;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.extra-achievements {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 30px;
    border: 1px solid var(--border);
}

.extra-achievements h3 {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
    text-align: center;
    margin-bottom: 2.5rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.highlight-item i {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.highlight-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.contact-info > p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.contact-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-item p {
    color: var(--text-muted);
}

.contact-social {
    display: flex;
    gap: 1rem;
}

.contact-social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-social-link:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.contact-form-wrapper {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid var(--border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.form-group label {
    position: absolute;
    left: 1.2rem;
    top: 1.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.8rem;
    left: 1rem;
    font-size: 0.75rem;
    background: var(--bg-card);
    padding: 0 0.5rem;
    color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background: var(--bg-card);
    color: var(--text);
    padding: 6rem 3rem 2rem;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.02;
    filter: blur(80px);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand h2 {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 1rem;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-cta {
    text-align: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.footer-cta h3 {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 2rem;
    color: var(--primary);
    letter-spacing: -1px;
}

.footer-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem !important;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9997;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .education-timeline::before {
        left: 0;
    }

    .timeline-item {
        flex-direction: column !important;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        text-align: left;
    }

    .timeline-content {
        width: 100%;
        margin-left: 3rem;
    }

    .timeline-dot {
        left: 0;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-cta h3 {
        font-size: 1.8rem;
    }
    
    .footer-cta-buttons {
        flex-direction: column;
    }
    
    .footer-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
