/* ============================================
   MOHTADI MARMOURI PORTFOLIO - MAIN STYLES
   Dark Theme with Parallax Animations
   ============================================ */

/* ============================================
   AI THINKING LOADER
   ============================================ */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    font-family: "Inter", sans-serif;
    font-size: 1.2em;
    font-weight: 300;
    color: var(--text-primary);
    border-radius: 50%;
    background-color: transparent;
    user-select: none;
}

.loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: transparent;
    animation: loader-rotate 2s linear infinite;
    z-index: 0;
}

@keyframes loader-rotate {
    0% {
        transform: rotate(90deg);
        box-shadow:
            0 10px 20px 0 rgba(57, 255, 20, 0.3) inset,
            0 20px 30px 0 rgba(18, 53, 19, 0.6) inset,
            0 60px 60px 0 rgba(26, 77, 27, 0.8) inset;
    }
    50% {
        transform: rotate(270deg);
        box-shadow:
            0 10px 20px 0 rgba(57, 255, 20, 0.4) inset,
            0 20px 10px 0 rgba(18, 53, 19, 0.7) inset,
            0 40px 60px 0 rgba(10, 31, 11, 0.9) inset;
    }
    100% {
        transform: rotate(450deg);
        box-shadow:
            0 10px 20px 0 rgba(57, 255, 20, 0.3) inset,
            0 20px 30px 0 rgba(18, 53, 19, 0.6) inset,
            0 60px 60px 0 rgba(26, 77, 27, 0.8) inset;
    }
}

.loader-letter {
    display: inline-block;
    opacity: 0.4;
    transform: translateY(0);
    animation: loader-letter-anim 2s infinite;
    z-index: 1;
    border-radius: 50ch;
    border: none;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.loader-letter:nth-child(1) {
    animation-delay: 0s;
}

.loader-letter:nth-child(2) {
    animation-delay: 0.1s;
}

.loader-letter:nth-child(3) {
    animation-delay: 0.2s;
}

.loader-letter:nth-child(4) {
    animation-delay: 0.3s;
}

.loader-letter:nth-child(5) {
    animation-delay: 0.4s;
}

.loader-letter:nth-child(6) {
    animation-delay: 0.5s;
}

.loader-letter:nth-child(7) {
    animation-delay: 0.6s;
}

.loader-letter:nth-child(8) {
    animation-delay: 0.7s;
}

.loader-letter:nth-child(9) {
    animation-delay: 0.8s;
}

.loader-letter:nth-child(10) {
    animation-delay: 0.9s;
}

.loader-letter:nth-child(11) {
    animation-delay: 1s;
}

@keyframes loader-letter-anim {
    0%,
    100% {
        opacity: 0.4;
        transform: translateY(0);
    }
    20% {
        opacity: 1;
        transform: scale(1.15);
        text-shadow: 0 0 20px rgba(57, 255, 20, 0.8);
    }
    40% {
        opacity: 0.7;
        transform: translateY(0);
    }
}

/* ============================================
   ROOT VARIABLES & RESET
   ============================================ */
:root {
    /* Color Palette */
    --primary-green: #123513;
    --deep-green: #0a1f0b;
    --accent-green: #1a4d1b;
    --neon-green: #39ff14;
    --cloud-white: #f5f5f0;
    --beige: #e8e4d9;
    --dark-bg: #0a0e0d;
    --darker-bg: #050807;
    --card-bg: rgba(18, 53, 19, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #f5f5f0;
    --text-secondary: #b8b8a8;
    --text-muted: #808070;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #123513 0%, #1a4d1b 100%);
    --gradient-glow: linear-gradient(135deg, rgba(57, 255, 20, 0.1) 0%, rgba(18, 53, 19, 0.2) 100%);
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    
    /* 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);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(57, 255, 20, 0.3);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    transition: direction 0.3s ease;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif;
}

body.rtl .container,
body.rtl .nav-container,
body.rtl .hero-content,
body.rtl .about-content,
body.rtl .details-grid {
    direction: rtl;
}

body.rtl .nav-list,
body.rtl .hero-cta,
body.rtl .hero-socials,
body.rtl .project-tags,
body.rtl .tech-tags {
    direction: rtl;
}

body.rtl .cta-btn i,
body.rtl .blog-link i,
body.rtl .view-project i {
    transform: scaleX(-1);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(18, 53, 19, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   CONTAINER & UTILITIES
   ============================================ */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(57, 255, 20, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: var(--neon-green);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--neon-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   NAVIGATION
   ============================================ */

/* Mobile Menu Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: rgba(57, 255, 20, 0.1);
        border: 1px solid rgba(57, 255, 20, 0.3);
        border-radius: 50%;
        color: var(--neon-green);
        font-size: 1.5rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-close:hover {
        background: rgba(57, 255, 20, 0.2);
        transform: rotate(90deg);
    }
}

.navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    padding: 20px 0;
    background: linear-gradient(135deg, 
                rgba(18, 53, 19, 0.15) 0%, 
                rgba(10, 14, 13, 0.25) 50%,
                rgba(18, 53, 19, 0.15) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 36px;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 60px rgba(57, 255, 20, 0.05);
    overflow: hidden;
    animation: floatNav 3s ease-in-out infinite;
    will-change: transform, padding, box-shadow;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(57, 255, 20, 0.1) 50%, 
                transparent 100%);
    transition: left 0.8s ease;
    pointer-events: none;
}

.navbar:hover::before {
    left: 100%;
}

.navbar.scrolled {
    padding: 15px 0;
    top: 10px;
    width: 92%;
    background: linear-gradient(135deg, 
                rgba(18, 53, 19, 0.3) 0%, 
                rgba(10, 14, 13, 0.4) 50%,
                rgba(18, 53, 19, 0.3) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 80px rgba(57, 255, 20, 0.15);
    border-color: rgba(57, 255, 20, 0.35);
    border-top-color: rgba(57, 255, 20, 0.5);
    transform: translateX(-50%) translateY(0);
}

@keyframes floatNav {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-3px);
    }
}

.nav-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.nav-logo a {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #39ff14 0%, #1a4d1b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 20px rgba(57, 255, 20, 0.3));
}

.nav-logo a:hover {
    filter: brightness(1.3) drop-shadow(0 0 30px rgba(57, 255, 20, 0.6));
    transform: scale(1.05);
}

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

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(57, 255, 20, 0.1) 0%, 
                rgba(18, 53, 19, 0.2) 100%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--neon-green);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--neon-green);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

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

.nav-link:hover {
    color: var(--neon-green);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

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

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

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

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.layer-1 {
    background: radial-gradient(circle at 20% 50%, rgba(57, 255, 20, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.layer-2 {
    background: radial-gradient(circle at 80% 50%, rgba(18, 53, 19, 0.1) 0%, transparent 50%);
    animation: float 25s ease-in-out infinite reverse;
}

.layer-3 {
    background: radial-gradient(circle at 50% 80%, rgba(57, 255, 20, 0.03) 0%, transparent 50%);
    animation: float 30s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 900px;
}

.hero-greeting {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

.hero-name {
    margin-bottom: 30px;
    font-size: clamp(3rem, 6vw, 5rem);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--neon-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--neon-green);
    margin-bottom: 30px;
    font-weight: 600;
}

.typing-text {
    display: inline-block;
    border-right: 2px solid var(--neon-green);
    animation: blink 0.7s steps(1) infinite;
}

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

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

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

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

.primary-btn {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: 2px solid var(--neon-green);
}

.primary-btn:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

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

.secondary-btn:hover {
    background: var(--glass-bg);
    border-color: var(--neon-green);
    transform: translateY(-3px);
}

.hero-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.3rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: var(--neon-green);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.floating-code-snippets {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

.code-snippet {
    position: absolute;
    padding: 10px 15px;
    background: var(--glass-bg);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--neon-green);
    backdrop-filter: blur(10px);
}

.snippet-1 {
    top: 15%;
    left: 10%;
    animation: floatSnippet 8s ease-in-out infinite;
}

.snippet-2 {
    top: 25%;
    right: 15%;
    animation: floatSnippet 10s ease-in-out infinite 1s;
}

.snippet-3 {
    bottom: 25%;
    left: 12%;
    animation: floatSnippet 12s ease-in-out infinite 2s;
}

.snippet-4 {
    bottom: 20%;
    right: 10%;
    animation: floatSnippet 9s ease-in-out infinite 1.5s;
}

@keyframes floatSnippet {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-20px) rotate(2deg); opacity: 1; }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 0; top: 8px; }
    50% { opacity: 1; top: 20px; }
}

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

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

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

.portrait-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: var(--transition-smooth);
}

.portrait-card:hover .portrait-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.portrait-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 53, 19, 0.3) 0%, transparent 100%);
    pointer-events: none;
}

.portrait-info h3 {
    margin-bottom: 5px;
    color: var(--text-primary);
}

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

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

.about-description p {
    margin-bottom: 20px;
}

.about-description strong {
    color: var(--neon-green);
    font-weight: 600;
}

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

.highlight-item {
    display: flex;
    align-items: start;
    gap: 20px;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.highlight-item:hover {
    border-color: var(--neon-green);
    transform: translateX(10px);
}

.highlight-item i {
    font-size: 1.8rem;
    color: var(--neon-green);
    min-width: 40px;
}

.highlight-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.highlight-item p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Timeline */
.timeline-section {
    margin-top: 60px;
}

.timeline-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, var(--neon-green) 50%, transparent 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    top: 50px;
    width: 20px;
    height: 20px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--neon-green);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 25px;
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gradient-primary);
    color: var(--neon-green);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.timeline-location {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 50%, var(--dark-bg) 100%);
    position: relative;
}

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

.project-card {
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.project-link-card {
    display: flex;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

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

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.6);
}

.view-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-green);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.project-card:hover .view-project {
    gap: 15px;
}

.view-project i {
    transition: transform 0.3s ease;
}

.project-card:hover .view-project i {
    transform: translateX(5px);
}

.project-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 15px;
    font-size: 2rem;
    color: var(--neon-green);
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
}

.project-card:hover .project-icon {
    transform: rotateY(360deg);
}

.project-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon-green);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

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

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

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

.tag {
    padding: 6px 14px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.tag:hover {
    background: var(--gradient-primary);
    border-color: var(--neon-green);
    color: var(--text-primary);
}

.project-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-location,
.project-type {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-footer i {
    color: var(--neon-green);
}

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

/* Skills Carousel */
.skills-carousel-wrapper {
    position: relative;
    margin-bottom: 80px;
    overflow: hidden;
    padding: 20px 0;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.skills-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.skills-track {
    display: flex;
    gap: 20px;
    animation: skills-carousel-scroll 5s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

.skills-track:hover {
    animation-play-state: paused;
}

@keyframes skills-carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

.skills-carousel .skill-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 260px;
    max-width: 320px;
}

@media (max-width: 1200px) {
    .skills-carousel .skill-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .skills-carousel .skill-card {
        flex: 0 0 calc(100% - 0px);
        min-width: 100%;
    }
    
    .skills-carousel {
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 2%,
            black 98%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 2%,
            black 98%,
            transparent 100%
        );
    }
}

/* Legacy grid (kept for fallback) */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.skill-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.skill-card:hover::after {
    transform: scale(1);
}

.skill-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 16px;
    font-size: 2rem;
    color: var(--neon-green);
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.skill-card:hover .skill-icon {
    transform: translateY(-10px) rotate(5deg);
}

.skill-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.skill-card > p {
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.skill-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    position: relative;
    z-index: 2;
}

.skill-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 6px 8px;
    background: rgba(57, 255, 20, 0.05);
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.skill-features span:hover {
    background: rgba(57, 255, 20, 0.1);
    color: var(--text-primary);
}

.skill-features i {
    color: var(--neon-green);
    font-size: 0.8rem;
}

/* Security Section */
.security-section {
    padding: 60px;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.security-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-primary);
}

.security-title i {
    color: var(--neon-green);
    font-size: 2.2rem;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.security-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 15px;
    background: var(--glass-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition-smooth);
}

.security-item:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.05);
}

.security-item i {
    font-size: 2rem;
    color: var(--neon-green);
}

.security-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 50%, var(--dark-bg) 100%);
}

.blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}

.blog-filter {
    padding: 12px 25px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.blog-filter:hover,
.blog-filter.active {
    background: var(--gradient-primary);
    border-color: var(--neon-green);
    color: var(--text-primary);
    transform: translateY(-2px);
}

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

.blog-card {
    overflow: hidden;
    padding: 0;
    cursor: pointer;
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.blog-category {
    padding: 8px 16px;
    background: var(--gradient-primary);
    border-radius: 20px;
    color: var(--neon-green);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-content h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.4rem;
    transition: var(--transition-smooth);
}

.blog-card:hover h3 {
    color: var(--neon-green);
}

.blog-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-green);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.blog-link:hover {
    gap: 15px;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-card {
    padding: 40px;
}

.contact-card h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.info-item {
    display: flex;
    align-items: start;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.info-item:hover {
    border-color: var(--neon-green);
    transform: translateX(5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: var(--neon-green);
    font-size: 1.3rem;
    flex-shrink: 0;
}

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

.info-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 600;
}

.info-value:hover {
    color: var(--neon-green);
}

.contact-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: var(--gradient-primary);
    border-color: var(--neon-green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.social-btn i {
    font-size: 1.3rem;
}

/* Map */
.map-container {
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-placeholder iframe {
    filter: grayscale(100%) invert(90%) contrast(90%);
    border-radius: 15px;
}

.map-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 20px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: none;
}

.map-overlay i {
    font-size: 2rem;
    color: var(--neon-green);
}

.map-overlay p {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    padding: 50px;
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--text-primary);
}

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

.form-group {
    margin-bottom: 25px;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-primary);
    border: 2px solid var(--neon-green);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 80px 0 40px;
    background: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(57, 255, 20, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-logo h2 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

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

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

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

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    color: var(--neon-green);
    transform: translateX(5px);
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.footer-bottom i {
    color: var(--neon-green);
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: 2px solid var(--neon-green);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: var(--shadow-glow);
}

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

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 20px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 80px;
    }
    
    .timeline-dot {
        left: 20px !important;
        right: auto !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
        width: 98%;
        top: 10px;
        border-radius: 25px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, 
                    rgba(18, 53, 19, 0.95) 0%, 
                    rgba(10, 14, 13, 0.98) 50%,
                    rgba(18, 53, 19, 0.95) 100%);
        backdrop-filter: blur(40px) saturate(200%);
        -webkit-backdrop-filter: blur(40px) saturate(200%);
        border-left: 2px solid rgba(57, 255, 20, 0.5);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.8);
        padding: 100px 30px;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 25px;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 12px 20px;
        display: block !important;
        border-radius: 12px;
        transition: all 0.3s ease;
        color: var(--text-primary) !important;
        position: relative;
        text-shadow: none;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(57, 255, 20, 0.15);
        transform: translateX(5px);
        color: var(--neon-green) !important;
    }
    
    .nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .nav-list li {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 10001;
        position: relative;
        background: rgba(57, 255, 20, 0.1);
        border-radius: 8px;
        padding: 8px;
        border: 1px solid rgba(57, 255, 20, 0.3);
    }
    
    .nav-toggle span {
        background: var(--neon-green) !important;
        box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 18px 30px;
        font-size: 1rem;
        display: inline-flex;
    }
    
    .floating-code-snippets {
        display: none;
    }
    
    .projects-grid,
    .skills-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 25px;
    }
    
    .security-section {
        padding: 40px 25px;
    }
    
    .security-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 50px;
    }
    
    .hero-socials {
        gap: 15px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .project-card,
    .skill-card {
        padding: 25px;
    }
    
    .project-card {
        min-height: 400px;
    }
    
    .cta-btn {
        padding: 16px 28px;
        font-size: 0.95rem;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .contact-socials {
        grid-template-columns: 1fr;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .view-project {
        font-size: 0.85rem;
    }
}

/* ============================================
   ANIMATIONS & AOS OVERRIDES
   ============================================ */
[data-aos] {
    pointer-events: auto;
}

/* Smooth parallax on scroll */
@media (prefers-reduced-motion: no-preference) {
    .parallax-layer,
    .floating-code-snippets {
        will-change: transform;
    }
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility class for animations */
.animate-in {
    animation: fadeIn 0.6s ease-out;
}

/* Print styles */
@media print {
    .navbar,
    .scroll-top,
    .hero-socials,
    .floating-code-snippets,
    .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

