/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Enable smooth scrolling on all devices */
    -webkit-overflow-scrolling: touch;
    /* Force enable scrolling on mobile */
    height: 100%;
    overflow-y: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0a0a0a;
    overflow-x: hidden;
    overflow-y: auto;
    /* Ensure touch scrolling works on mobile */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    /* Force minimum height for scrolling */
    min-height: 100vh;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Wider container for professional section */
.professional .container {
    max-width: 1600px;
    padding: 0 30px;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 2px solid #333;
    border-top: 2px solid #64ffda;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loader p {
    color: #64ffda;
    font-size: 18px;
    font-weight: 300;
}

/* Navigation - Logo + Centered Menu */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: transparent;
    padding: 20px 40px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.navbar.scrolled {
    padding: 15px 40px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
}

.nav-brand {
    position: absolute;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-brand-link:hover {
    transform: translateY(-2px);
}

.nav-logo {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.navbar.scrolled .nav-logo {
    height: 65px;
}

.nav-brand-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #64ffda, #ffffff, #64ffda);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
    letter-spacing: 1.5px;
    text-shadow: none;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-brand-text {
    font-size: 1.8rem;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.nav-menu {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

/* Hide mobile-only elements on desktop */
.mobile-menu-header,
.mobile-menu-footer,
.mobile-nav-links,
.mobile-only,
.read-more-btn {
    display: none;
}

/* Mobile truncated content - show all on desktop */
.mobile-truncated-content {
    display: block;
}

/* Work Read More Button Styles - Site Theme Match */
.work-read-more {
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.2), rgba(100, 255, 218, 0.1));
    color: #64ffda;
    border: 1px solid rgba(100, 255, 218, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    margin-top: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(100, 255, 218, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.work-read-more:hover {
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.3), rgba(100, 255, 218, 0.2));
    border-color: rgba(100, 255, 218, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.4);
    color: #ffffff;
}

.work-read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.3), transparent);
    transition: left 0.5s ease;
}

.work-read-more:hover::before {
    left: 100%;
}

.work-content {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.work-preview,
.work-full {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.work-preview {
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: auto;
    cursor: pointer;
}

.nav-link:hover {
    color: #64ffda;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #64ffda;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 5px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3000;
}

.hamburger:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: rgba(100, 255, 218, 0.3);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 32px rgba(100, 255, 218, 0.2);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: linear-gradient(135deg, #64ffda, #ffffff);
    border-radius: 2px;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

/* Hamburger Active Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: linear-gradient(135deg, #ff6b6b, #64ffda);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: linear-gradient(135deg, #ff6b6b, #64ffda);
}

.hamburger.active {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    transform: translateY(-50%) rotate(90deg);
}

/* Hero Section - FIXED Landing Screen */
.hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1000;
}

/* Landing Screen Background Images */
.parallax-bg-far,
.parallax-bg-mid,
.parallax-bg-near {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* City background - NEVER MOVES (Darker for better contrast) */
.parallax-bg-far {
    background-image: url('./images/city hero.png');
    z-index: 1;
    opacity: 0.7;
    filter: brightness(0.6) contrast(1.1);
    transform: none !important;
    background-attachment: fixed;
    background-position: center center !important;
    background-size: cover !important;
}

/* Grunge texture - subtle overlay */
.parallax-bg-mid {
    background-image: url('./images/old-black-background-grunge-texture-dark-wallpaper-blackboard-chalkboard-room-wall.jpg');
    z-index: 2;
    opacity: 0.2;
}

/* Code forest - EXPANDS to create exit effect */
.parallax-bg-near {
    background-image: url('./images/CircuitBrush.png');
    z-index: 3;
    opacity: 0.9;
    background-size: 100vw 100vh;
    background-position: center center;
    transform-origin: center center;
    /* No transition - real-time transform updates */
}

/* Content after hero section */
.hero + section {
    margin-top: 100vh;
    position: relative;
    z-index: 500;
}

/* Hero Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    transition: all 0.3s ease;
    /* Subtle positioning within CircuitBrush.png transparent area */
    padding-left: 8vw;
    padding-right: 8vw;
}

.hero-content {
    text-align: center;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 600px;
    /* Subtle positioning within CircuitBrush.png transparent area */
    margin-left: -2vw;
}

/* Title that disappears on scroll */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title.scroll-fade {
    opacity: 0;
    transform: translateY(-100px);
}

.title-line {
    display: block;
    background: linear-gradient(135deg, #64ffda, #ffffff, #64ffda);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.hero-subtitle.scroll-fade {
    opacity: 0;
    transform: translateY(-50px);
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 15; /* Higher than hero content (10) but lower than navigation */
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.cta-button.primary {
    background: linear-gradient(135deg, #64ffda, #4ecdc4);
    color: #0a0a0a;
    box-shadow: 0 8px 32px rgba(100, 255, 218, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(100, 255, 218, 0.4);
    background: linear-gradient(135deg, #4ecdc4, #64ffda);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(100, 255, 218, 0.5);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    transform: translateY(-3px);
    background: rgba(100, 255, 218, 0.1);
    border-color: #64ffda;
    box-shadow: 0 8px 32px rgba(100, 255, 218, 0.2);
}

/* Fade out CTAs on scroll */
.hero-cta-buttons.scroll-fade {
    opacity: 0;
    transform: translateY(-30px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 1;
    transition: all 0.6s ease;
}

.scroll-indicator.scroll-fade {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #64ffda, transparent);
    position: relative;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid #64ffda;
}

.scroll-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

@keyframes shimmer {
    0%, 100% { 
        background-position: 0% 50%;
    }
    50% { 
        background-position: 100% 50%;
    }
}

.title-line:nth-child(2) {
    animation-delay: 1.2s;
}

@keyframes titleReveal {
    0% {
        transform: translateY(100px) rotateX(90deg);
        opacity: 0;
    }
    50% {
        transform: translateY(20px) rotateX(45deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    color: #b0b0b0;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation: subtitleReveal 1s ease-out 1.6s forwards;
}

@keyframes subtitleReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    opacity: 0;
    animation: slideUp 1s ease-out 0.9s forwards;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #64ffda;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #64ffda 0%, #4ecdc4 100%);
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideUp 1s ease-out 1.1s forwards;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #64ffda;
    border-bottom: 2px solid #64ffda;
    transform: rotate(45deg);
}

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

/* Advanced Parallax Sections */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px; /* Account for fixed navbar */
}

section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.03) 0%, transparent 50%);
    animation: sectionFloat 25s ease-in-out infinite;
    z-index: -1;
}

@keyframes sectionFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-30px, -20px) rotate(1deg); }
    50% { transform: translate(20px, -30px) rotate(-0.5deg); }
    75% { transform: translate(-10px, 20px) rotate(0.5deg); }
}

/* Professional Section with 3D Effects */
.professional {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.professional::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./images/Knight Group Logo.png') center/300px no-repeat;
    opacity: 0.02;
    transform: translateZ(-100px) scale(2);
    animation: logoFloat 30s linear infinite;
    z-index: -1;
}

@keyframes logoFloat {
    0% { transform: translateZ(-100px) scale(2) rotate(0deg); }
    100% { transform: translateZ(-100px) scale(2) rotate(360deg); }
}

.professional-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transform: translateZ(0) rotateX(0deg);
    position: relative;
    overflow: hidden;
}

.professional-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.1), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

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

.professional-item:hover {
    transform: translateZ(20px) rotateX(5deg) translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(100, 255, 218, 0.2);
    border-color: #64ffda;
}

/* Skills Section with Animated Backgrounds */
.skills {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(100, 255, 218, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(100, 255, 218, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(100, 255, 218, 0.04) 0%, transparent 50%);
    animation: skillsBackground 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes skillsBackground {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, 10px) scale(1.05); }
    66% { transform: translate(20px, -10px) scale(0.95); }
}

/* Section Headers with Advanced Typography */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #64ffda 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #64ffda, #4ecdc4);
    transform: translateX(-50%);
    transition: width 0.8s ease;
}

.section-header.visible h2::after {
    width: 60px;
}

.section-header p {
    font-size: 20px;
    color: #888;
    font-weight: 300;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
}

.section-header.visible p {
    transform: translateY(0);
    opacity: 1;
}

/* Advanced Text Reveal Animation */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #64ffda;
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.text-reveal.animate::before {
    transform: translateX(100%);
}

/* Staggered Animation Classes */
.stagger-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-item:nth-child(5) { transition-delay: 0.5s; }
.stagger-item:nth-child(6) { transition-delay: 0.6s; }

/* Cursor Trail Effect */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(100, 255, 218, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: all 0.1s ease;
}

/* Image Expansion Effects */
.expandable-image {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.expandable-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(100, 255, 218, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.expandable-image:hover::before {
    opacity: 1;
}

.expandable-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Video Player Enhancements */
.video-showcase {
    background: #111111;
    position: relative;
    overflow: hidden;
}

.video-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(100, 255, 218, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(100, 255, 218, 0.02) 0%, transparent 40%);
    animation: videoBackground 25s ease-in-out infinite;
    z-index: -1;
}

@keyframes videoBackground {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(1deg) scale(1.02); }
    50% { transform: rotate(-0.5deg) scale(0.98); }
    75% { transform: rotate(0.5deg) scale(1.01); }
}

.main-video,
.video-player {
    position: relative;
    transform: perspective(1000px) rotateX(0deg);
    transition: all 0.6s ease;
    margin-bottom: 30px;
}

.main-video:hover,
.video-player:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.main-video video,
.video-player video,
#main-video {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    display: block;
    background: #000;
}

.main-video:hover video,
.video-player:hover video,
.video-player:hover #main-video {
    box-shadow: 0 20px 50px rgba(100, 255, 218, 0.2);
}

/* Contact Section with Form */
.contact {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
    z-index: 10;
    padding: 100px 0;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./images/Knight Group Logo.png') center/200px no-repeat;
    opacity: 0.02;
    animation: contactFloat 40s linear infinite;
    z-index: -1;
}

@keyframes contactFloat {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1); }
}

.contact .section-header h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #64ffda, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.contact .section-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4rem;
    text-align: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Form Styling */
.contact-form-container {
    position: relative;
    z-index: 15; /* Higher than hero content but lower than navigation */
}

.consultation-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(15px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #64ffda;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Specific select dropdown styling */
.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364ffda' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Select option styling */
.form-group select option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 8px 12px;
    border: none;
}

.form-group select option:hover,
.form-group select option:focus,
.form-group select option:checked {
    background: #64ffda;
    color: #0a0a0a;
}

/* Placeholder option styling */
.form-group select option[value=""] {
    color: rgba(255, 255, 255, 0.6);
    background: #1a1a1a;
}

/* Additional browser-specific styling */
.form-group select::-ms-expand {
    display: none; /* Remove default arrow in IE */
}

.form-group select::-webkit-scrollbar {
    width: 8px;
}

.form-group select::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.form-group select::-webkit-scrollbar-thumb {
    background: #64ffda;
    border-radius: 4px;
}

.form-group select::-webkit-scrollbar-thumb:hover {
    background: #4ecdc4;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

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

.form-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #64ffda, #4ecdc4);
    color: #0a0a0a;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(100, 255, 218, 0.3);
    background: linear-gradient(135deg, #4ecdc4, #64ffda);
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Contact Info Sidebar */
.contact-info-sidebar {
    position: relative;
    z-index: 10;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: rgba(100, 255, 218, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
}

.contact-item h3 {
    color: #64ffda;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
}

.contact-item a:hover {
    color: #64ffda;
}

.specialties-box {
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(100, 255, 218, 0.05));
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.specialties-box h3 {
    color: #64ffda;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.services-list {
    list-style: none;
    padding: 0;
}

.services-list li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: #64ffda;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(100, 255, 218, 0.2);
}

.social-link img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.social-link:hover img {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.2);
}

/* Filter Button Enhancements */
.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 2px solid #333;
    color: #888;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #64ffda, #4ecdc4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.filter-btn.active::before,
.filter-btn:hover::before {
    transform: scaleX(1);
}

.filter-btn.active,
.filter-btn:hover {
    border-color: #64ffda;
    color: #0a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3);
}

/* Skill Category Enhancements */
.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.05) 0%, transparent 50%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-category:hover::before {
    transform: translateX(0);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #64ffda;
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator:hover .scroll-arrow {
    border-color: #64ffda;
    transform: scale(1.2) rotate(45deg);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #64ffda;
    border-bottom: 2px solid #64ffda;
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

/* Magnetic Button Effect */
.magnetic-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.magnetic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3);
}

/* Solutions Showcase Section */
.solutions {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, #111111 50%, #0a0a0a 100%);
    position: relative;
    z-index: 10;
    padding: 100px 0;
    margin-top: -50px;
}

.solutions::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 50%, rgba(17,17,17,0.9) 100%);
    z-index: -1;
}

.solutions .section-header h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #64ffda, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.solutions .section-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4rem;
    text-align: center;
}

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

.solution-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

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

.solution-card:hover {
    transform: translateY(-15px);
    border-color: rgba(100, 255, 218, 0.4);
    box-shadow: 0 25px 50px rgba(100, 255, 218, 0.15);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #64ffda, #4ecdc4);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #0a0a0a;
    transition: all 0.3s ease;
}

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

.solution-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.solution-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.solution-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.solution-features span {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.solution-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64ffda;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.solution-link:hover {
    background: rgba(100, 255, 218, 0.2);
    border-color: #64ffda;
    transform: translateX(5px);
}

.solutions-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    backdrop-filter: blur(10px);
}

.solutions-cta h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #64ffda, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.solutions-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Services Section - Alias for Solutions */
.services {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 150px 0;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.services::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 50%, rgba(17,17,17,0.9) 100%);
    z-index: -2;
}

/* Two-Column Services Layout */
.services-horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 5;
}

.service-item {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 255, 218, 0.4);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.15);
}

.service-icon {
    font-size: 2rem;
    color: #64ffda;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
    color: #64ffda;
}

.service-content h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Services CTA */
.services-cta {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.services-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Demo Showcase */
.demo-showcase {
    text-align: center;
    margin-top: 2rem;
}

.demo-showcase h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.demo-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.demo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 100px;
}

.demo-link:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: rgba(100, 255, 218, 0.3);
    color: #64ffda;
    transform: translateY(-2px);
}

.demo-link i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.demo-link span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Legacy grid for compatibility - keep but hide */
.services-grid {
    display: none !important;
}

.service-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(100, 255, 218, 0.4);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    z-index: 10;
    display: block !important;
    visibility: visible !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.1), transparent);
    transition: left 0.5s;
}

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

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.2);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 15px;
    display: block !important;
    visibility: visible !important;
}

.service-card p {
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    display: block !important;
    visibility: visible !important;
}

/* Service card inner elements - same styles as solution elements */
.service-card .solution-icon {
    font-size: 2.5rem;
    color: #64ffda;
    margin-bottom: 1.5rem;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
}

.service-card:hover .solution-icon {
    transform: scale(1.1);
    color: #64ffda;
}

.service-card .solution-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.service-card .solution-features span {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.service-card .solution-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64ffda;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.service-card .solution-link:hover {
    background: rgba(100, 255, 218, 0.2);
    border-color: #64ffda;
    transform: translateX(5px);
}

/* Work Section - Uses same styles as Professional */
.work,
.professional {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    padding: 150px 0;
    position: relative;
}

.work-grid,
.professional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

/* Resources Section - Uses same styles as Video Showcase */  
.resources,
.video-showcase {
    background: linear-gradient(135deg, #16213e 0%, #0f0f23 100%);
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

/* About Section - New Title/Description Area */
.about {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, #111111 50%, #111111 100%);
    position: relative;
    z-index: 10;
    padding-top: 120px;
    margin-top: -80px;
}

.about::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.95) 50%, rgba(17,17,17,0.9) 100%);
    z-index: -1;
}

.about .section-header h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #64ffda, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.about .section-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

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

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.about-text p {
    font-size: 18px;
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.8;
}

.founder-section {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(100, 255, 218, 0.05);
    border-left: 4px solid #64ffda;
    border-radius: 8px;
}

.founder-section h4 {
    color: #64ffda;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.founder-section p {
    color: rgba(255, 255, 255, 0.9);
}

.skills-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    padding: 10px 20px;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid #64ffda;
    border-radius: 25px;
    color: #64ffda;
    font-size: 14px;
    font-weight: 500;
}

/* Professional Section - Optimized for 8 Projects */
.professional {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    padding: 60px 0;
}

.professional-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.professional-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
    height: auto;
    display: flex;
    flex-direction: column;
}

.professional-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: #64ffda;
}

.item-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.3;
    min-height: 48px;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-content p {
    color: #b0b0b0;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.tech-stack span {
    padding: 4px 10px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    font-size: 11px;
    color: #64ffda;
    white-space: nowrap;
}

.project-link {
    color: #64ffda;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.project-link:hover {
    border-bottom-color: #64ffda;
}

/* Projects Section */
.projects {
    background: #111111;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 2px solid #333;
    color: #888;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: #64ffda;
    color: #64ffda;
    background: rgba(100, 255, 218, 0.1);
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0) rotateX(0deg);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 
                0 0 30px rgba(100, 255, 218, 0.2);
    border-color: #64ffda;
}

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

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(100, 255, 218, 0.1) 50%, transparent 70%);
    transform: translateX(-100%) translateY(-100%);
    transition: transform 0.6s ease;
    z-index: 2;
}

.project-card:hover .project-image::before {
    transform: translateX(100%) translateY(100%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1) rotate(0deg);
}

.project-card:hover .project-image img {
    transform: scale(1.2) rotate(2deg);
    filter: brightness(1.1) saturate(1.2);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: scale(1);
}

.project-overlay .project-link {
    padding: 12px 25px;
    background: linear-gradient(135deg, #64ffda 0%, #4ecdc4 100%);
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: translateY(20px);
    animation: linkPop 0.4s ease 0.2s forwards;
    position: relative;
    overflow: hidden;
}

@keyframes linkPop {
    0% {
        transform: translateY(20px) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.project-overlay .project-link:hover {
    background: linear-gradient(135deg, #4ecdc4 0%, #64ffda 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.4);
}

.project-overlay .project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

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

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffffff;
}

.project-info p {
    color: #b0b0b0;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

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

.tech-tags span {
    padding: 4px 12px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    font-size: 11px;
    color: #64ffda;
}

/* Skills Section */
.skills {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

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

/* Skills Grid Responsive Design */
/* Large Desktop (1200px+) - Auto-fit with 300px minimum */
@media (min-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 40px;
    }
}

/* Medium Desktop/Laptop (768px - 1199px) - Auto-fit */
@media (max-width: 1199px) and (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

/* Tablet and Medium Mobile (481px - 767px) - 2 columns */
@media (max-width: 767px) and (min-width: 481px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .skill-category {
        padding: 20px;
        border-radius: 12px;
    }
    
    .skill-category h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .skill-item {
        margin-bottom: 15px;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    .skill-bar {
        height: 6px;
    }
}

/* Small Mobile (480px and below) - 2 columns */
@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        padding: 0 10px;
    }
    
    .skill-category {
        padding: 12px;
        border-radius: 8px;
    }
    
    .skill-category h3 {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
        margin-top: 0 !important;
        line-height: 1.1 !important;
        padding: 0 !important;
        color: #64ffda;
        word-wrap: break-word;
    }
    
    .skill-item {
        margin-bottom: 8px;
    }
    
    .skill-name {
        font-size: 0.7rem;
        line-height: 1.1;
        margin-bottom: 3px;
    }
    
    .skill-bar {
        height: 4px;
    }
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.skill-category h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #64ffda;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #ffffff;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #64ffda 0%, #4ecdc4 100%);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-out;
}

/* Video Showcase */
.video-showcase {
    background: #111111;
}

.video-player-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: stretch;
    min-height: 600px;
}

.video-player {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.video-playlist {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.main-video video,
#main-video {
    width: 100%;
    height: auto;
    max-height: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #000;
    transition: all 0.4s ease;
    object-fit: contain;
}

.video-playlist {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.video-item:hover,
.video-item.active {
    background: rgba(100, 255, 218, 0.1);
    border-color: #64ffda;
}

.video-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.video-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #ffffff;
}

.video-info p {
    font-size: 12px;
    color: #888;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

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

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

.contact-item h3 {
    font-size: 20px;
    color: #64ffda;
    margin-bottom: 10px;
}

.contact-item a,
.contact-item p {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #64ffda;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.social-link:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: #64ffda;
    transform: translateY(-2px);
}

.social-link img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Social Links Responsive Design */
/* Large Desktop (1200px+) - 4 columns */
@media (min-width: 1200px) {
    .social-links {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

/* Medium Desktop/Laptop (992px - 1199px) - 4 columns */
@media (max-width: 1199px) and (min-width: 992px) {
    .social-links {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Tablet Landscape (768px - 991px) - 2 columns */
@media (max-width: 991px) and (min-width: 768px) {
    .social-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Tablet Portrait (576px - 767px) - 2 columns */
@media (max-width: 767px) and (min-width: 576px) {
    .social-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .social-link {
        padding: 15px;
        gap: 12px;
    }
    
    .social-link img {
        width: 28px;
        height: 28px;
    }
}

/* Mobile (575px and below) - 1 column */
@media (max-width: 575px) {
    .social-links {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .social-link {
        padding: 15px;
        gap: 15px;
        justify-content: flex-start;
    }
    
    .social-link img {
        width: 24px;
        height: 24px;
    }
    
    .social-link span {
        font-size: 0.9rem;
    }
}

.footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

.footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer .footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer .footer-links a:hover {
    color: #64ffda;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
/* Navigation overlap fix for screens under 1400px */
@media (max-width: 1400px) and (min-width: 1025px) {
    .navbar {
        justify-content: space-between; /* Change from center to space-between */
    }
    
    .nav-brand {
        position: relative; /* Change from absolute positioning */
        left: auto;
    }
    
    .nav-menu {
        gap: 20px; /* Reduce gap between nav links */
    }
    
    .nav-link {
        font-size: 16px; /* Slightly smaller font */
    }
}

/* Large screens with navigation overlap issues */
@media (max-width: 1600px) and (min-width: 1401px) {
    .nav-menu {
        gap: 25px; /* Reduced from 40px to prevent overlap */
    }
    
    .nav-link {
        font-size: 16px; /* Reduced from 18px */
        letter-spacing: 0.3px; /* Reduced from 0.5px */
    }
    
    .navbar {
        padding: 20px 60px; /* Increased horizontal padding for more space */
    }
    
    .nav-brand {
        left: 60px; /* Increased to match navbar padding */
    }
}

/* Tablet/Small Laptop Navigation Fix - prevent overlap */
@media (max-width: 1024px) and (min-width: 769px) {
    .navbar {
        justify-content: space-between; /* Fix overlap on tablets */
        padding: 18px 30px;
    }
    
    .nav-brand {
        position: relative; /* Remove absolute positioning */
        left: auto;
    }
    
    .nav-menu {
        gap: 15px; /* Reduce gap between nav items */
    }
    
    .nav-link {
        font-size: 15px; /* Slightly smaller text */
    }
}

/* Medium screens - adjust text positioning for CircuitBrush.png */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        padding-left: 6vw;
        padding-right: 6vw;
    }
    
    .hero-content {
        max-width: 500px;
        margin-left: -1vw;
    }
    
    .hero-title {
        font-size: clamp(2rem, 5vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 2.2vw, 1.3rem);
    }
    
    /* Professional grid - 3 columns on medium screens */
    .professional-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .professional-item {
        padding: 18px;
    }
    
    .item-image {
        height: 100px;
        margin-bottom: 12px;
    }
    
    .item-content h3 {
        font-size: 16px;
        min-height: 40px;
        text-align: center;
        word-wrap: break-word;
        hyphens: auto;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .item-content p {
        font-size: 13px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        margin-bottom: 12px;
    }
}

/* Fix work-grid overlap on screens below 660px */
@media (max-width: 660px) {
    .work-grid,
    .professional-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin-top: 40px;
    }
    
    .professional-item {
        min-height: 300px !important;
        max-height: none !important; /* Remove max-height to prevent button cutoff */
        padding: 12px !important;
        box-sizing: border-box;
        width: 100%;
        overflow: visible;
        display: flex;
        flex-direction: column;
    }
    
    .professional-item .item-image {
        height: 50px !important;
        object-fit: contain;
        margin-bottom: 8px;
        flex-shrink: 0;
    }
    
    .professional-item .item-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        margin-bottom: 8px;
    }
    
    .professional-item h3 {
        font-size: 0.9rem !important;
        line-height: 1.2;
        margin-bottom: 6px;
        flex-shrink: 0;
    }
    
    .professional-item p {
        font-size: 0.8rem !important;
        line-height: 1.3;
        margin-bottom: 8px;
        flex-grow: 1;
    }
    
    .project-link {
        font-size: 0.75rem !important;
        padding: 8px 12px !important;
        border-radius: 6px;
        margin-top: auto;
        flex-shrink: 0;
        text-align: center;
        display: block;
    }
}

@media (max-width: 768px) {
    /* Enable touch scrolling and fix mobile scroll issues */
    html, body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        height: auto !important;
    }
    
    /* Mobile body overflow - only auto when not in landing mode */
    body:not(.landing-mode) {
        overflow-y: auto;
        touch-action: pan-y;
    }
    
    /* Landing mode mobile - prevent scrolling */
    body.landing-mode {
        overflow: hidden !important;
        touch-action: none;
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
    
    /* Prevent iOS bounce/pull-to-refresh in landing mode */
    body.landing-mode * {
        -webkit-overflow-scrolling: auto;
        overscroll-behavior: none;
    }
    
    /* Mobile Navigation with Logo */
    .navbar {
        padding: 18px 20px;
        justify-content: space-between;
    }
    
    .navbar.scrolled {
        padding: 15px 20px;
    }
    
    .nav-brand {
        position: relative;
        left: auto;
        gap: 12px;
    }
    
    .nav-logo {
        height: 60px;
    }
    
    .navbar.scrolled .nav-logo {
        height: 50px;
    }
    
    .nav-brand-text {
        font-size: 1.6rem;
    }
    
    .navbar.scrolled .nav-brand-text {
        font-size: 1.4rem;
    }
    
    /* Fix hero section for mobile scrolling while preserving background layers */
    .hero {
        position: relative !important;
        overflow: visible !important;
        min-height: 100vh;
        height: auto !important;
        /* Allow normal document flow on mobile */
        display: block !important;
    }
    
    /* Preserve CircuitBrush.png and other background layers on mobile */
    .parallax-bg-far,
    .parallax-bg-mid,
    .parallax-bg-near {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Ensure full viewport coverage */
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        /* Ensure transforms work on mobile */
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Ensure CircuitBrush.png is properly scaled for mobile */
    .parallax-bg-near {
        background-image: url('./images/CircuitBrush.png');
        background-size: 100vw 100vh;
        background-position: center center;
        transform-origin: center center;
        /* Remove transition for real-time transform updates */
        will-change: transform, opacity;
    }
    
    /* Ensure content flows normally on mobile */
    .hero-content-wrapper {
        position: relative !important;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }

    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, #1e1e3e 0%, #252547 50%, #1e1e3e 100%);
        border-left: 1px solid rgba(100, 255, 218, 0.3);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2500;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        pointer-events: auto; /* Ensure menu accepts clicks */
    }
    
    /* Mobile Menu Header - Only visible on mobile */
    .mobile-menu-header {
        display: block;
        padding: 40px 30px 20px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 20px;
    }
    
    .mobile-menu-header h3 {
        color: #64ffda;
        font-size: 24px;
        font-weight: 700;
        margin: 0 0 8px 0;
        font-family: 'Inter', sans-serif;
        text-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
    }
    
    .mobile-menu-header p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 14px;
        margin: 0;
        font-weight: 400;
    }
    
    /* Mobile Nav Links Container */
    .mobile-nav-links {
        flex: 1;
        padding: 0 0 20px 0;
    }
    
    /* Mobile Menu Footer */
    .mobile-menu-footer {
        display: block !important;
        padding: 20px 30px 30px 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: auto;
    }
    
    .mobile-menu-footer p {
        color: rgba(255, 255, 255, 0.7);
        font-size: 12px;
        margin: 0;
        text-align: center;
        font-weight: 300;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Mobile About Section - Read More Functionality */
    .mobile-only {
        display: block !important;
    }
    
    .mobile-truncated-content {
        max-height: 150px;
        overflow: hidden;
        position: relative;
        transition: max-height 0.4s ease-out;
    }
    
    .mobile-truncated-content.expanded {
        max-height: none;
    }
    
    .read-more-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 20px auto 0 auto;
        padding: 12px 24px;
        background: linear-gradient(135deg, #64ffda 0%, #4facfe 100%);
        color: #1a1a2e;
        border: none;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
        max-width: 160px;
    }
    
    .read-more-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(100, 255, 218, 0.4);
    }
    
    .read-more-icon {
        font-size: 12px;
        transition: transform 0.3s ease;
    }
    
    .read-more-btn.expanded .read-more-icon {
        transform: rotate(180deg);
    }
    
    /* Mobile Nav Links Styling - Higher specificity */
    @media (max-width: 768px) {
        .nav-menu .nav-link {
            display: flex !important;
            align-items: center;
            padding: 18px 30px;
            margin: 0 20px 8px 20px;
            border-radius: 12px;
            font-size: 16px !important;
            font-weight: 600;
            color: #ffffff !important;
            text-decoration: none;
            background: linear-gradient(135deg, #3a3a5a 0%, #2d2d4a 100%) !important;
            border: 1px solid rgba(100, 255, 218, 0.4) !important;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
            position: relative;
            overflow: hidden;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            font-family: 'Inter', sans-serif;
            cursor: pointer !important;
            pointer-events: auto !important;
            transform: none !important;
            text-shadow: none !important;
        }
    }
    
    @media (max-width: 768px) {
        /* Add pseudo-icons to nav links */
        .nav-menu .nav-link::after {
            content: '→';
            margin-left: auto;
            font-size: 18px;
            opacity: 0;
            transform: translateX(-10px);
            transition: all 0.3s ease;
            color: #64ffda;
        }
        
        .nav-menu .nav-link:before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(100, 255, 218, 0.2), 
                transparent);
            transition: left 0.6s ease;
        }
    }
    
    @media (max-width: 768px) {
        .nav-menu .nav-link:hover {
            background: linear-gradient(135deg, #64ffda20 0%, #64ffda10 100%) !important;
            border-color: rgba(100, 255, 218, 0.6) !important;
            transform: translateX(8px) !important;
            box-shadow: 0 8px 25px rgba(100, 255, 218, 0.3) !important;
            color: #64ffda !important;
        }
        
        .nav-menu .nav-link:hover::after {
            opacity: 1 !important;
            transform: translateX(0) !important;
        }
        
        .nav-menu .nav-link:hover:before {
            left: 100% !important;
        }
        
        .nav-menu .nav-link:active {
            transform: translateX(4px) scale(0.98) !important;
            background: linear-gradient(135deg, #64ffda30 0%, #64ffda20 100%) !important;
            border-color: #64ffda !important;
        }
        
        /* Focus state for accessibility */
        .nav-menu .nav-link:focus {
            outline: 2px solid #64ffda !important;
            outline-offset: 2px;
            background: linear-gradient(135deg, #64ffda15 0%, #64ffda08 100%) !important;
        }
    }
    
    /* Mobile Nav Menu Overlay - Only covers left side */
    .nav-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1999;  /* Lower than nav-menu z-index: 2500 */
        pointer-events: none; /* Prevent blocking clicks when inactive */
    }
    
    .nav-menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* Only accept clicks when active */
    }
    
    /* Reduce parallax intensity on mobile */
    .parallax-layer {
        top: -10%;
        left: -10%;
        width: 120%;
        height: 120%;
    }
    
    .layer-near {
        opacity: 0.4;
    }
    
    .layer-mid {
        opacity: 0.2;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }
    
    /* Adjust text positioning for mobile within CircuitBrush.png transparent area */
    .hero-content-wrapper {
        padding-left: 3vw;
        padding-right: 3vw;
    }
    
    .hero-content {
        max-width: 90%;
        margin-left: 0;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .video-player-container {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
    }
    
    .video-player {
        min-height: 300px;
    }
    
    .video-playlist {
        max-height: 400px;
        padding: 15px;
    }
    
    /* Contact Form Mobile Adjustments */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .consultation-form {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
    }
    
    /* Services Mobile Layout - Two Columns */
    .services-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .service-item {
        width: 100%;
        padding: 1rem;
    }    .service-content h4 {
        font-size: 1rem;
    }
    
    .service-content p {
        font-size: 0.85rem;
    }
    
    .services-cta {
        padding: 1.5rem;
    }
    
    .demo-grid {
        gap: 0.75rem;
    }
    
    .demo-link {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .demo-link i {
        font-size: 1.25rem;
    }
    
    .demo-link span {
        font-size: 0.8rem;
    }
    
    /* Legacy Services Grid Mobile - Hidden */
    .services-grid,
    .solutions-grid {
        display: none !important;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Professional/Work grid - Mobile layout with Read More */
    .professional-grid,
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 40px;
    }
    
    .professional-item {
        padding: 12px;
        border-radius: 15px;
        display: flex;
        flex-direction: column;
        min-height: 280px;
        max-height: 320px;
        aspect-ratio: 0.85;
        background: rgba(30, 30, 62, 0.8);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(100, 255, 218, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        position: relative;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .professional-item:hover {
        transform: translateY(-4px);
        border-color: rgba(100, 255, 218, 0.4);
        box-shadow: 0 12px 40px rgba(100, 255, 218, 0.2);
    }
    
    .professional-item .item-image {
        height: 70px;
        margin-bottom: 10px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    
    .professional-item .item-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .professional-item .item-content h3 {
        font-size: 14px;
        margin-bottom: 8px;
        text-align: center;
        word-wrap: break-word;
        hyphens: auto;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .professional-item .work-content {
        flex: 1;
        margin-bottom: 8px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .professional-item .work-preview,
    .professional-item .work-full {
        font-size: 11px;
        line-height: 1.3;
        margin-bottom: 6px;
        color: rgba(255, 255, 255, 0.85);
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .professional-item .work-preview {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    
    .professional-item .tech-stack {
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
        margin-bottom: 8px;
        overflow: hidden;
    }
    
    .professional-item .tech-stack span {
        font-size: 9px;
        padding: 2px 5px;
        background: rgba(100, 255, 218, 0.1);
        border: 1px solid rgba(100, 255, 218, 0.2);
        border-radius: 10px;
        color: #64ffda;
        white-space: nowrap;
    }
    
    .professional-item .project-link {
        font-size: 10px;
        padding: 6px 10px;
        margin-top: auto;
        align-self: stretch;
        text-align: center;
        background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(100, 255, 218, 0.05));
        border: 1px solid rgba(100, 255, 218, 0.2);
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .professional-item .project-link:hover {
        background: linear-gradient(135deg, rgba(100, 255, 218, 0.2), rgba(100, 255, 218, 0.1));
        border-color: rgba(100, 255, 218, 0.4);
        transform: translateY(-1px);
    }
    
    /* Mobile Footer */
    .footer .footer-links {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .footer .footer-links a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 36px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    /* Even smaller screens - adjust branding */
    .navbar {
        padding: 10px 15px;
    }
    
    .nav-brand {
        gap: 8px;
    }
    
    .nav-logo {
        height: 35px;
    }
    
    .nav-brand-text {
        font-size: 1.2rem;
    }
    
    .navbar.scrolled .nav-logo {
        height: 30px;
    }
    
    .navbar.scrolled .nav-brand-text {
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack {
        gap: 4px;
        margin-bottom: 10px;
    }
    
    .tech-stack span {
        padding: 3px 8px;
        font-size: 10px;
        border-radius: 8px;
    }
    
    .project-link {
        font-size: 12px;
        padding: 8px 12px;
        border-radius: 8px;
        display: inline-block;
        background: rgba(100, 255, 218, 0.1);
        text-align: center;
        margin-top: auto;
    }
}

/* Medium mobile screens - Enhanced button visibility */
@media (max-width: 650px) and (min-width: 481px) {
    .professional-item {
        min-height: 320px !important;
        max-height: none !important; /* Allow dynamic height */
        padding: 14px !important;
        display: flex;
        flex-direction: column;
    }
    
    .professional-item .item-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
    }
    
    .professional-item h3 {
        font-size: 0.95rem !important;
        margin-bottom: 8px;
        line-height: 1.2;
        flex-shrink: 0;
    }
    
    .professional-item p {
        font-size: 0.82rem !important;
        line-height: 1.35;
        margin-bottom: 10px;
        flex-grow: 1;
        overflow: visible;
    }
    
    .project-link {
        font-size: 0.8rem !important;
        padding: 10px 14px !important;
        border-radius: 6px;
        margin-top: auto;
        flex-shrink: 0;
        text-align: center;
        display: block;
        white-space: nowrap;
        overflow: visible;
    }
}

/* Extra small mobile screens - Ultra compact layout */
@media (max-width: 480px) {
    .professional {
        padding: 40px 0;
    }
    
    .professional-grid,
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 10px;
    }
    
    .professional-item {
        padding: 8px;
        min-height: 200px;
        max-height: 240px;
        aspect-ratio: 0.8;
        background: rgba(30, 30, 62, 0.9);
        border: 1px solid rgba(100, 255, 218, 0.15);
    }
    
    .professional-item .item-image {
        height: 40px !important;
        flex-shrink: 0;
        margin-bottom: 4px;
    }
    
    .professional-item .item-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .professional-item .item-content h3 {
        font-size: 13px;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .professional-item .work-content {
        flex: 1;
        margin-bottom: 8px;
        min-height: 60px;
    }
    
    .professional-item .work-preview,
    .professional-item .work-full {
        font-size: 11px;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .professional-item .tech-stack {
        margin-bottom: 8px;
        max-height: 35px;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .professional-item .tech-stack span {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .work-read-more {
        font-size: 9px;
        padding: 4px 8px;
        margin-top: 6px;
        align-self: flex-start;
    }
    
    .professional-item .project-link {
        margin-top: auto;
        align-self: stretch;
        text-align: center;
        padding: 8px 10px;
        font-size: 10px;
        flex-shrink: 0;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Extra small mobile screens - Ultra compact layout */
@media (max-width: 480px) {
    .professional {
        padding: 40px 0;
    }
    
    .professional-grid,
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 10px;
    }
    
    .professional-item {
        padding: 8px;
        min-height: 200px;
        max-height: 240px;
        aspect-ratio: 0.8;
        background: rgba(30, 30, 62, 0.9);
        border: 1px solid rgba(100, 255, 218, 0.15);
    }
    
    .professional-item .item-image {
        height: 40px !important;
        margin-bottom: 6px !important;
    }
    
    .professional-item .item-content h3 {
        font-size: 11px !important;
        margin-bottom: 4px !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }
    
    .professional-item .work-preview,
    .professional-item .work-full {
        font-size: 9px !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
    }
    
    .professional-item .work-preview {
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }
    
    .professional-item .tech-stack {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 2px !important;
        margin-bottom: 6px !important;
        max-height: 30px !important;
        overflow: hidden !important;
    }
    
    .professional-item .tech-stack span {
        font-size: 8px !important;
        padding: 1px 4px !important;
        border-radius: 6px !important;
    }
    
    .work-read-more {
        font-size: 8px !important;
        padding: 3px 6px !important;
        margin-top: 4px !important;
        border-radius: 12px !important;
    }
    
    .professional-item .project-link {
        font-size: 9px !important;
        padding: 4px 6px !important;
        border-radius: 8px !important;
    }
    
    .item-image {
        width: 100%;
        height: 50px;
        margin-bottom: 6px;
        flex-shrink: 0;
    }
    
    .item-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .item-content h3 {
        font-size: 12px;
        margin-bottom: 4px;
        min-height: auto;
        text-align: center;
        word-wrap: break-word;
        hyphens: auto;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .item-content p,
    .work-preview,
    .work-full {
        font-size: 10px;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    
    .work-read-more {
        font-size: 9px;
        padding: 4px 8px;
        margin-top: 4px;
    }
    
    .tech-stack {
        display: none; /* Hide tech stack on very small screens */
    }
    
    .work-content {
        margin-bottom: 8px;
    }
    
    .project-link {
        font-size: 11px;
        padding: 6px 10px;
        white-space: nowrap;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Hide projects that don't match filter */
.project-card.hidden {
    display: none;
}

/* Smooth scrolling */
html {
    scroll-padding-top: 80px;
}

/* Projects Page Specific Styles */
.projects-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 120px 0 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(100, 255, 218, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(100, 255, 218, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #64ffda 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 20px;
    color: #888;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #64ffda;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    color: #888;
}

.project-categories {
    padding: 80px 0;
    background: #0a0a0a;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.filter-btn {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #333;
    color: #888;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #64ffda;
    color: #64ffda;
    background: rgba(100, 255, 218, 0.1);
}

.detailed-projects {
    padding: 80px 0;
    background: #0a0a0a;
}

.project-detailed {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.project-detailed:hover {
    transform: translateY(-5px);
    border-color: #64ffda;
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.1);
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.project-header img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin-right: 20px;
    object-fit: cover;
}

.project-title h3 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 5px;
}

.project-type {
    color: #64ffda;
    font-size: 14px;
    font-weight: 500;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.project-description h4 {
    color: #64ffda;
    font-size: 18px;
    margin: 25px 0 15px 0;
}

.project-description ul {
    margin-bottom: 20px;
}

.project-description li {
    color: #ccc;
    margin-bottom: 8px;
    line-height: 1.6;
}

.project-tech {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    height: fit-content;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tech-tag {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #64ffda;
    color: #64ffda;
    text-decoration: none;
    border-radius: 25px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.project-link:hover {
    background: #64ffda;
    color: #0a0a0a;
}

.project-metrics {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.metric-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.metric-item:hover {
    border-color: #64ffda;
    transform: translateY(-5px);
}

.metric-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.metric-item h3 {
    color: #64ffda;
    font-size: 20px;
    margin-bottom: 10px;
}

.metric-item p {
    color: #888;
    font-size: 14px;
}

.back-to-portfolio {
    padding: 80px 0;
    background: #0a0a0a;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 20px;
}

.cta-content p {
    color: #888;
    font-size: 18px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #64ffda;
    color: #0a0a0a;
}

.btn-primary:hover {
    background: #4ecdc4;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #64ffda;
    border: 2px solid #64ffda;
}

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

.footer-minimal {
    background: #000;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #64ffda;
}

/* Policy Pages Styles */
.policy-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    padding: 120px 0 60px;
}

.policy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
}

.policy-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.policy-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.policy-content h2 {
    color: #64ffda;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
}

.policy-content h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 2rem 0 1rem;
}

.policy-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.policy-content ul {
    margin: 1rem 0 1.5rem 0;
    padding-left: 2rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.policy-content a {
    color: #64ffda;
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-content a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Design for Projects Page */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .project-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .project-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-header {
        flex-direction: column;
        text-align: center;
    }
    
    .project-header img {
        margin: 0 0 15px 0;
    }
    
    .category-filters {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 10px 20px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
