/* ========================================
   ROOT VARIABLES & RESET
======================================== */
:root {
    --bg: #050505;
    --bg-secondary: #0a0a0a;
    --text: #ffffff;
    --text-secondary: #888888;
    --accent: #6366f1;
    --accent-secondary: #8b5cf6;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    cursor: none;
    line-height: 1.6;
}

/* Selection */
::selection {
    background: var(--accent);
    color: white;
}

/* ========================================
   NOISE & GRADIENT BACKGROUND
======================================== */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -20%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -20%;
    left: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #a855f7;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.95); }
    75% { transform: translate(30px, 50px) scale(1.05); }
}

/* ========================================
   SCROLL PROGRESS
======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient);
    z-index: 10001;
    transition: width 0.1s;
}

/* ========================================
   CUSTOM CURSOR
======================================== */
.cursor {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10002;
    mix-blend-mode: difference;
    transition: transform 0.15s var(--ease-out-expo);
}

.cursor-follower {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.3s var(--ease-out-expo), 
                width 0.3s var(--ease-out-expo), 
                height 0.3s var(--ease-out-expo),
                border-color 0.3s;
}

.cursor-text {
    position: fixed;
    pointer-events: none;
    z-index: 10003;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}

.cursor.active {
    transform: scale(4);
}

.cursor-follower.active {
    width: 80px;
    height: 80px;
    border-color: var(--accent);
}

.cursor-follower.hidden {
    transform: scale(0);
    opacity: 0;
}

/* ========================================
   LOADER
======================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
}

.counter {
    font-family: 'Syne', sans-serif;
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.loader-line-wrapper {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px auto;
    border-radius: 2px;
    overflow: hidden;
}

.loader-line {
    width: 0%;
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
}

.loader-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
}

/* ========================================
   NAVIGATION
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text);
}

.logo-text {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out-expo);
}

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

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

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

.nav-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient);
    color: #fff;
    text-decoration: none;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.nav-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.nav-contact i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.nav-contact:hover i {
    transform: translate(3px, -3px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    cursor: pointer;
}

.hamburger .bar {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active .bar:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: right 0.6s var(--ease-out-expo);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 0 10%;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-link {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s, transform 0.6s, color 0.3s;
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-link:hover {
    color: var(--accent);
}

.mobile-menu-footer {
    margin-top: 60px;
}

.mobile-socials {
    display: flex;
    gap: 20px;
}

.mobile-socials a {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.mobile-socials a:hover {
    color: var(--accent);
}

/* ========================================
   HERO SECTION
======================================== */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 5% 60px;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    margin-bottom: 40px;
    width: fit-content;
    opacity: 0;
    transform: translateY(20px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-badge span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-center {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-line {
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 7vw, 12rem);
    text-transform: uppercase;
    font-weight: 800;
    line-height: 0.95;
    transform: translateY(120%);
    position: relative;
}

.hero-h1.outline {
    -webkit-text-stroke: 2px var(--text);
    color: transparent;
    transition: all 0.4s var(--ease-out-expo);
}

.hero-h1.outline:hover {
    -webkit-text-stroke: 2px var(--accent);
    text-shadow: 0 0 60px rgba(99, 102, 241, 0.5);
}

.hero-image-wrapper {
    position: absolute;
    right: 20%;
    width: 200px;
    height: 120px;
    border-radius: 100px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
    transition: all 0.4s var(--ease-out-expo);
}

.hero-line:hover .hero-image-wrapper {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.hero-floating-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-footer {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.hero-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.info-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-value {
    font-size: 1rem;
    color: var(--text);
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-hover);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--text);
    border-radius: 4px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

/* ========================================
   MARQUEE
======================================== */
.marquee-section {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 40px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-track span {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-track .separator {
    color: var(--accent);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   ABOUT SECTION
======================================== */
#about {
    padding: 120px 5%;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.section-label {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: block;
}

.about-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
}

.about-title .highlight {
    color: var(--accent);
    position: relative;
}

.about-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s var(--ease-out-expo);
}

.stat-item:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    color: var(--accent);
}

.stat-label {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========================================
   SKILLS SECTION
======================================== */
#skills {
    padding: 120px 5%;
    border-top: 1px solid var(--border);
}

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

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
}

.tech-stack-container {
    display: flex;
    flex-direction: column;
}

.tech-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: all 0.4s var(--ease-out-expo);
}

.tech-row:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 20px;
    padding-right: 20px;
    margin-left: -20px;
    margin-right: -20px;
}

.tech-head {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tech-number {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    color: var(--accent);
    font-weight: 700;
}

.tech-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.tech-row:hover .tech-title {
    color: var(--text);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out-expo);
}

.tech-item i {
    font-size: 1.1rem;
}

.tech-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

/* Icon Colors */
.tech-item .fa-html5 { color: #E34F26; }
.tech-item .fa-css3-alt { color: #1572B6; }
.tech-item .fa-js { color: #F7DF1E; }
.tech-item .fa-react { color: #61DAFB; }
.tech-item .fa-bootstrap { color: #7952B3; }
.tech-item .fa-wind { color: #38B2AC; }
.tech-item .fa-php { color: #777BB4; }
.tech-item .fa-wordpress { color: #21759B; }
.tech-item .fa-figma { color: #F24E1E; }
.tech-item .fa-sketch { color: #F7B500; }
.tech-item .fa-adobe { color: #FF0000; }
.tech-item .fa-git-alt { color: #F05032; }

/* ========================================
   WORK SECTION
======================================== */
#work {
    padding: 120px 5%;
    border-top: 1px solid var(--border);
}

/* Work grid ko horizontal scroll banao - ye replace karo existing .work-grid se */
.work-grid {
    display: flex;  /* grid se flex mein change */
    gap: 40px;
    margin-top: 60px;
    overflow-x: auto;  /* horizontal scroll enable */
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 20px;  /* scrollbar ke liye space */
    
    /* Optional: Snap scrolling for better UX */
    scroll-snap-type: x mandatory;
    scroll-padding: 20px;
}

/* Custom scrollbar styling - ye add karo */
.work-grid::-webkit-scrollbar {
    height: 6px;
}

.work-grid::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 10px;
}

.work-grid::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.work-grid::-webkit-scrollbar-thumb:hover {
    background: var(--gradient);
}

/* Work item ko fixed width do - ye update karo existing .work-item mein */
.work-item {
    flex: 0 0 400px;  /* ye add karo */
    min-width: 400px;  /* ye add karo */
    scroll-snap-align: start;  /* ye add karo for snap scrolling */
    /* baaki sab existing styles rakho */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
}

/* Responsive adjustments - ye end mein add karo */
@media (max-width: 1200px) {
    .work-item {
        flex: 0 0 350px;
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    .work-item {
        flex: 0 0 300px;
        min-width: 300px;
    }
    
    .work-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .work-item {
        flex: 0 0 280px;
        min-width: 280px;
    }
}

.work-item:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.work-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.work-item:hover .work-image img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-overlay span {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.work-info {
    padding: 30px;
    position: relative;
}

.work-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.work-number {
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
}

.work-category {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.work-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.work-item:hover .work-title {
    color: var(--accent);
}

.work-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.work-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s var(--ease-out-expo);
}

.work-item:hover .work-arrow {
    opacity: 1;
    transform: scale(1);
}

.work-arrow i {
    color: white;
    font-size: 1rem;
    transform: rotate(-45deg);
}

.work-cta {
    text-align: center;
    margin-top: 60px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: transparent;
    border: 1px solid var(--border-hover);
    border-radius: 100px;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-outline:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

/* ========================================
   MODAL
======================================== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    pointer-events: none;
    opacity: 0;
}

.project-modal.active {
    pointer-events: all;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s;
}

.project-modal.active .modal-overlay {
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform: translateY(100%);
    transition: transform 0.8s var(--ease-out-expo);
}

.project-modal.active .modal-container {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 30px;
    right: 5%;
    z-index: 5002;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg);
}

.close-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.close-icon::before,
.close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
}

.close-icon::before { transform: rotate(45deg); }
.close-icon::after { transform: rotate(-45deg); }

.modal-scroll-wrapper {
    height: 100%;
    overflow-y: auto;
    padding: 100px 5% 60px;
}

.modal-content {
    max-width: 1400px;
    margin: 0 auto;
}

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

.modal-number {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}

.modal-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
}

.modal-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

.modal-img-wrapper {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.modal-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-section {
    margin-bottom: 40px;
}

.modal-section h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.modal-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.modal-tags span {
    padding: 8px 18px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    color: var(--accent);
    font-size: 0.9rem;
}

.btn-visit {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-visit:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.4);
}

.btn-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.btn-visit:hover .btn-arrow {
    transform: translateX(5px);
}

/* ========================================
   EXPERIENCE SECTION
======================================== */
#experience {
    padding: 120px 5%;
    border-top: 1px solid var(--border);
}

.exp-timeline {
    margin-top: 60px;
    position: relative;
}

.exp-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.4s var(--ease-out-expo);
}

.exp-item:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 20px;
    padding-right: 20px;
    margin-left: -20px;
    margin-right: -20px;
}

.exp-left {
    position: relative;
}

.exp-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.exp-line {
    position: absolute;
    left: 0;
    top: 30px;
    bottom: -40px;
    width: 2px;
    background: var(--border);
}

.exp-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}

.exp-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s;
}

.exp-item:hover .exp-card {
    border-color: var(--accent);
}

.exp-card-header {
    margin-bottom: 20px;
}

.exp-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.exp-company {
    color: var(--accent);
    font-size: 1rem;
}

.exp-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.exp-tags span {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========================================
   CONTACT SECTION
======================================== */
#contact {
    padding: 120px 5%;
    border-top: 1px solid var(--border);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info {
    margin-bottom: 50px;
}

.contact-item {
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.contact-value {
    font-size: 1.3rem;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

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

a.contact-value i {
    font-size: 0.9rem;
    transition: transform 0.3s;
}

a.contact-value:hover i {
    transform: translate(3px, -3px);
}

.contact-socials {
    display: flex;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}

.social-link:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-3px);
}

.social-link i {
    font-size: 1.2rem;
}

/* ========================================
   FOOTER
======================================== */
footer {
    padding: 40px 5%;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.footer-time span:first-child {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

#current-time {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.2rem;
    color: var(--accent);
}

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

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

.made-with {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.heart {
    color: #ef4444;
    display: inline-block;
    animation: heartbeat 1s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    /* Hide cursor on mobile */
    .cursor, .cursor-follower, .cursor-text {
        display: none;
    }
    
    * {
        cursor: auto !important;
    }
    
    /* Navigation */
    .nav-links {
        display: none;
    }
    
    .nav-contact {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero */
    #hero {
        padding-top: 100px;
    }
    
    .hero-image-wrapper {
        display: none;
    }
    
    .hero-info {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    /* Skills */
    .tech-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Experience */
    .exp-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .exp-line {
        display: none;
    }
    
    /* Footer */
    .footer-top, .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-time {
        align-items: center;
    }
    
    /* Contact Socials */
    .contact-socials {
        flex-direction: column;
    }
}

/* ========================================
   REVEAL ANIMATIONS (Initial States)
======================================== */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
}

.stat-item {
    opacity: 0;
    transform: translateY(30px);
}

.tech-row {
    opacity: 0;
    transform: translateY(30px);
}

.work-item {
    opacity: 0;
    transform: translateY(50px);
}

.exp-item {
    opacity: 0;
    transform: translateX(-30px);
}