/* =================================
   SCROLL PROGRESS BAR
   ================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-1);
    z-index: 10001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

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

:root {
    /* Colors */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --card-bg: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-tertiary: #6b6b8c;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-3: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 5%;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

body.menu-open {
    overflow: hidden;
}

body.no-cursor {
    cursor: auto;
}

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

/* =================================
   CUSTOM CURSOR
   ================================= */
.cursor-dot {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s;
    width: 8px;
    height: 8px;
    background: var(--gradient-1);
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .cursor-dot {
        display: none;
    }
    body {
        cursor: auto;
    }
}

/* =================================
   LANDING PAGE / PRELOADER
   ================================= */
.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--darker-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    pointer-events: auto;
}

.landing-page.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.landing-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.landing-title {
    font-family: var(--font-heading);
    font-size: clamp(60px, 12vw, 150px);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

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

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

.landing-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    letter-spacing: 4px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    padding: 0 10px;
}

.landing-tags {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.tag {
    padding: 8px 20px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 30px;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

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

.enter-site {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 3px;
    transition: var(--transition-smooth);
}

.enter-site:hover {
    color: var(--primary-color);
}

.enter-arrow {
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.landing-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* =================================
   NAVIGATION
   ================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

.nav-logo a {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-logo a:hover {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    position: relative;
}

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

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

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

.nav-cta {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    transition: var(--transition-smooth);
}

.nav-cta:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-cta::after {
    display: none;
}

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

.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        padding: 100px 40px;
        gap: 30px;
        transition: right 0.5s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-greeting {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(50px, 8vw, 90px);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
}

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

.hero-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 30px;
    min-height: 50px;
    padding-right: 20px;
    overflow: visible;
}

.typing-text {
    color: var(--primary-color);
    display: inline-block;
    padding-right: 5px;
}

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

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

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    text-align: justify;
}

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

.btn {
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
}

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

.social-links a {
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    font-size: 18px;
}

.social-links a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.image-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: var(--gradient-1);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -55%) scale(1.1); }
}

.image-container img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.02);
}

/* Animated Border Rings */
.animated-border {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    z-index: 2;
    pointer-events: none;
}

.border-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(var(--dark-bg), var(--dark-bg)) padding-box,
                var(--gradient-1) border-box;
    animation: rotateBorder 8s linear infinite;
}

.border-ring.delay-1 {
    width: 105%;
    height: 105%;
    animation-delay: -2.67s;
    opacity: 0.6;
}

.border-ring.delay-2 {
    width: 110%;
    height: 110%;
    animation-delay: -5.33s;
    opacity: 0.4;
}

@keyframes rotateBorder {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        filter: hue-rotate(60deg);
    }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gradient-1);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.particle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 0.8s;
}

.particle:nth-child(3) {
    bottom: 25%;
    left: 5%;
    animation-delay: 1.6s;
}

.particle:nth-child(4) {
    bottom: 15%;
    right: 10%;
    animation-delay: 2.4s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 0%;
    animation-delay: 3.2s;
}

.particle:nth-child(6) {
    top: 40%;
    right: 0%;
    animation-delay: 4s;
}

@keyframes floatParticle {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    25% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-40px) scale(1.2);
    }
    75% {
        opacity: 0.4;
        transform: translateY(-60px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-tertiary);
    font-size: 11px;
    letter-spacing: 3px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { height: 0; opacity: 0; }
    50% { height: 60px; opacity: 1; }
    100% { height: 60px; opacity: 0; }
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 40px;
    }
    
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-links {
        justify-content: center;
    }
}

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

.section-number {
    font-size: 14px;
    color: var(--primary-color);
    letter-spacing: 3px;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 60px);
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =================================
   ABOUT SECTION
   ================================= */
.about {
    padding: var(--section-padding);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

.about-subtitle {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.about-description {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 25px;
    text-align: justify;
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
}

.skill-item:hover::before {
    left: 100%;
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.skill-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.skill-item span {
    font-size: 15px;
    font-weight: 500;
}

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

.visual-card {
    padding: 35px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
}

.visual-card:hover::before {
    left: 100%;
}

.visual-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.visual-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.visual-card h4 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.visual-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================
   STATS SECTION
   ================================= */
.stats {
    padding: var(--section-padding);
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    line-height: 1;
    margin-bottom: 20px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 20px;
    letter-spacing: 1px;
}

/* =================================
   EXPERIENCE SECTION
   ================================= */
.experience {
    padding: var(--section-padding);
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    margin-bottom: 80px;
    position: relative;
}

.timeline-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9), rgba(30, 30, 60, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    z-index: 2;
    overflow: visible;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.timeline-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.timeline-icon::after {
    content: '';
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.timeline-icon:hover {
    transform: scale(1.15) translateY(-8px) rotate(2deg);
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.4),
        0 0 0 1px rgba(99, 102, 241, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 80px rgba(168, 85, 247, 0.3);
}

.timeline-icon:hover::before {
    opacity: 1;
    animation: borderPulse 2s ease-in-out infinite;
}

.timeline-icon:hover::after {
    opacity: 1;
}

@keyframes borderPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.timeline-icon img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3)) brightness(1.1) contrast(1.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.timeline-icon:hover img {
    transform: scale(1.1) translateZ(20px);
    filter: drop-shadow(0 8px 24px rgba(99, 102, 241, 0.6)) brightness(1.2) contrast(1.1);
    border-color: rgba(99, 102, 241, 0.8);
    background: rgba(99, 102, 241, 0.05);
}

.timeline-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
}

.timeline-content:hover::before {
    left: 100%;
}

.timeline-content:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.2);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-header h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--text-primary);
}

.timeline-role {
    padding: 8px 20px;
    background: var(--gradient-1);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.timeline-date {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 16px;
}

.timeline-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.timeline-tags span {
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        grid-template-columns: 80px 1fr;
        gap: 20px;
    }
    
    .timeline-icon {
        width: 80px;
        height: 80px;
    }
    
    .timeline-content {
        padding: 25px;
    }
}

/* =================================
   PROJECTS SECTION
   ================================= */
.projects {
    padding: var(--section-padding);
    background: var(--card-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--dark-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.project-image {
    height: 300px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    position: relative;
    overflow: hidden;
}

.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;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.project-link {
    padding: 15px 35px;
    background: var(--gradient-1);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

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

.project-info {
    padding: 35px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 15px;
}

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

.project-tags span {
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 11px;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================
   CONTACT SECTION
   ================================= */
.contact {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.2;
    margin-bottom: 25px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
}

.contact-item i {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

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

.social-links-large a {
    width: 55px;
    height: 55px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    font-size: 22px;
}

.social-links-large a:hover {
    border-color: var(--primary-color);
    background: var(--gradient-1);
    color: var(--text-primary);
    transform: translateY(-5px);
}

.contact-form-wrapper {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-form-wrapper:hover::before {
    left: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    background: var(--dark-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
}

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

.form-group label {
    position: absolute;
    top: 18px;
    left: 20px;
    color: var(--text-tertiary);
    font-size: 15px;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -12px;
    left: 15px;
    font-size: 12px;
    background: var(--card-bg);
    padding: 0 8px;
    color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    opacity: 0;
}

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

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

@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-form-wrapper {
        padding: 35px;
    }
}

/* =================================
   FOOTER
   ================================= */
.footer {
    background: var(--darker-bg);
    padding: 80px 5% 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 10px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.8;
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =================================
   RESPONSIVE
   ================================= */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .btn {
        padding: 14px 30px;
        font-size: 13px;
    }
}
