/* Critical CSS inline - Basic Bootstrap utilities */
.container { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.d-flex { display: flex !important; }
.d-none { display: none !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.text-center { text-align: center !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.p-4 { padding: 1.5rem !important; }

/* Custom CSS Variables */
:root {
    --primary-color: #6366f1;
    --secondary-color: #f8fafc;
    --dark-color: #1e293b;
    --light-gray: #f1f5f9;
    --medium-gray: #64748b;
    --white: #ffffff;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Global Styles - Optimized */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    scroll-behavior: auto; /* Let GSAP handle smooth scroll */
    overflow-x: hidden;
}

/* Typography */
.display-1, .display-2, .display-3, .display-4 {
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-weight: 400;
    color: var(--medium-gray);
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    padding: 0.75rem 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -15px; /* 10px spacing + text baseline */
    left: 0.5rem; /* Positioned to left with small margin */
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: none;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(var(--text-width, 60px) + 10px); /* Text width + 10px longer */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #fafaff 0%, #f8fafc 100%);
    position: relative;
    padding: 110px 0 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%236366f1" fill-opacity="0.03"><circle cx="30" cy="30" r="1.5"/></g></svg>') repeat;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.hero-title .text-primary {
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    max-width: 500px;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    opacity: 1; /* Ensure buttons are visible by default */
    transform: translateY(0); /* Reset any transforms */
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline-dark {
    border: 2px solid var(--dark-color);
    color: var(--dark-color);
}

.btn-outline-dark:hover {
    background-color: var(--dark-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Contact button bounce animation */
.btn-outline-dark {
    animation: contactBounce 3s ease-in-out infinite;
}

@keyframes contactBounce {
    0%, 90%, 100% { 
        transform: translateY(0);
    }
    5% { 
        transform: translateY(-8px);
    }
    10% { 
        transform: translateY(0);
    }
    15% { 
        transform: translateY(-4px);
    }
    20% { 
        transform: translateY(0);
    }
}

.btn-outline-dark:hover {
    animation-play-state: paused;
    background-color: var(--dark-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Image */
.hero-image {
    position: relative;
    z-index: 2;
}

.floating-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-heavy);
    display: inline-block;
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 5;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Animated Elements */
.animated-element {
    position: absolute;
    background: var(--white);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    z-index: 3;
    font-size: 1.5rem;
    animation: orbit 15s linear infinite;
}

.element-1 {
    top: 10%;
    left: 20%;
    animation: orbit 12s linear infinite;
}

.element-2 {
    top: 20%;
    right: 15%;
    animation: orbit 14s linear infinite reverse;
}

.element-3 {
    bottom: 30%;
    left: 10%;
    animation: orbit 16s linear infinite;
}

.element-4 {
    top: 50%;
    right: 5%;
    animation: orbit 18s linear infinite reverse;
}

.element-5 {
    bottom: 15%;
    right: 25%;
    animation: orbit 13s linear infinite;
}

.element-6 {
    top: 5%;
    left: 50%;
    animation: orbit 17s linear infinite reverse;
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(20px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}

/* Floating Particles */
.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    opacity: 0.6;
    z-index: 1;
    animation: floatParticle 8s ease-in-out infinite;
}

.particle-1 {
    width: 8px;
    height: 8px;
    top: 15%;
    left: 30%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle-2 {
    width: 12px;
    height: 12px;
    top: 60%;
    right: 20%;
    animation-delay: -2s;
    animation-duration: 8s;
}

.particle-3 {
    width: 6px;
    height: 6px;
    bottom: 20%;
    left: 15%;
    animation-delay: -4s;
    animation-duration: 7s;
}

.particle-4 {
    width: 10px;
    height: 10px;
    top: 30%;
    left: 60%;
    animation-delay: -1s;
    animation-duration: 9s;
}

.particle-5 {
    width: 14px;
    height: 14px;
    bottom: 40%;
    right: 10%;
    animation-delay: -3s;
    animation-duration: 5s;
}

.particle-6 {
    width: 8px;
    height: 8px;
    top: 70%;
    left: 45%;
    animation-delay: -5s;
    animation-duration: 8s;
}

@keyframes floatParticle {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    33% { 
        transform: translateY(-15px) translateX(10px) rotate(120deg);
        opacity: 0.8;
    }
    66% { 
        transform: translateY(10px) translateX(-5px) rotate(240deg);
        opacity: 0.4;
    }
}

/* Additional color classes */
.text-purple {
    color: #8b5cf6 !important;
}

/* Hover effects for animated elements */
.animated-element:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
    animation-play-state: paused;
}

/* Responsive adjustments for animated elements */
@media (max-width: 768px) {
    .animated-element {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .particle {
        display: none;
    }
    
    @keyframes orbit {
        0% { transform: rotate(0deg) translateX(15px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(15px) rotate(-360deg); }
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

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

/* Section Styles */
section {
    padding: 100px 0;
}

/* Contact section specific padding */
#contact {
    padding: 100px 0 60px 0;
}

.section-title {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Projects Section */
.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    will-change: transform, box-shadow;
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translate3d(0, -10px, 0);
    box-shadow: var(--shadow-heavy);
}

.project-image {
    height: 250px;
    background: linear-gradient(135deg, var(--light-gray), #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.04));
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-link {
    color: var(--white);
    font-size: 2rem;
    text-decoration: none;
    transform: scale(0.8);
    transition: var(--transition);
}

.project-link:hover {
    color: var(--white);
    transform: scale(1);
}

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

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

/* Fallback for projects without images */
.project-placeholder {
    transition: var(--transition);
}

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

/* AI Badge and Icon */
.ai-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: var(--white);
    padding: 6px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 4;
    box-shadow: var(--shadow-light);
}

.ai-icon {
    color: #667eea;
    font-size: 1rem;
    opacity: 0.8;
}

.ai-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    transition: var(--transition);
}

/* Disclaimer */
.disclaimer-text {
    font-size: 0.85rem;
    padding: 12px 25px;
    background: rgba(100, 116, 139, 0.08);
    border: 1px solid rgba(100, 116, 139, 0.15);
    border-radius: var(--border-radius);
    display: inline-block;
    margin-top: 2rem;
    color: var(--medium-gray);
    max-width: 750px;
}

.disclaimer-text i {
    color: var(--medium-gray);
}

.project-content {
    background: var(--white);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.project-title {
    color: var(--dark-color);
    font-size: 1.3rem;
}

.project-description {
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.project-business-info {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
}

.business-detail {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.business-detail:last-child {
    margin-bottom: 0;
}

.business-detail strong {
    color: var(--primary-color);
}

.business-detail span {
    color: var(--dark-color);
}

.project-tech {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow: hidden;
    padding-bottom: 2px;
    position: relative;
}

.project-tech-scrolling {
    display: flex;
    gap: 0.5rem;
    animation: scroll-tech 30s linear infinite;
    will-change: transform;
}

@keyframes scroll-tech {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.project-tech::-webkit-scrollbar {
    height: 3px;
}

.project-tech::-webkit-scrollbar-track {
    background: transparent;
}

.project-tech::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 2px;
}

.project-tech::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

.tech-tag {
    background: var(--light-gray);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.project-tag-overlay {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    z-index: 15;
    max-width: calc(100% - 30px);
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: none !important;
}

.tag-example {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #f59e0b;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.tag-example:hover::after {
    opacity: 1 !important;
    animation-duration: 1.5s;
}

.tag-public {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #14532d;
    border: 1px solid #16a34a;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.tag-public:hover::after {
    opacity: 1 !important;
    animation-duration: 1.5s;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Services Section */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    color: var(--dark-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.service-features li i {
    color: var(--primary-color);
    margin-right: 0.8rem;
    font-size: 0.8rem;
}

/* Contact Section */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--light-gray);
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    transition: var(--transition);
    background-color: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background-color: var(--white);
}

.form-control.is-valid {
    border-color: #10b981;
    background-color: var(--white);
}

.form-control.is-invalid {
    border-color: #ef4444;
    background-color: var(--white);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid + .invalid-feedback {
    display: block;
}

.valid-feedback {
    display: none;
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-valid + .valid-feedback {
    display: block;
}

.form-text {
    color: var(--medium-gray);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* CAPTCHA Styles */
.captcha-container {
    background: var(--light-gray);
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--dark-color);
    border: 1px solid #e2e8f0;
}

/* Button Loading State */
.btn .btn-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:disabled,
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e2e8f0 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
}

.btn:disabled:hover,
.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Honeypot (hidden anti-spam field) */
input[name="website"] {
    position: absolute !important;
    left: -9999px !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

.contact-info {
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--white);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    height: 100%;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    display: inline-block;
    padding: 1rem;
    background: linear-gradient(135deg, var(--light-gray), #f1f5f9);
    border-radius: 50%;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
    color: var(--white);
}

.social-links a {
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Background Section */
.bg-light {
    background-color: var(--light-gray) !important;
}

/* Mobile Navigation Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-medium);
        margin-top: 1rem;
        padding: 1rem;
        transition: height 0.35s ease, opacity 0.15s ease;
        overflow: hidden;
    }
    
    .navbar-collapse.collapsing {
        transition: height 0.35s ease;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-item {
        border-bottom: 1px solid #f1f5f9;
        margin: 0;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0 !important;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background-color: #f8fafc;
        color: var(--primary-color) !important;
    }
    
    .nav-link.active {
        background-color: rgba(99, 102, 241, 0.1);
        color: var(--primary-color) !important;
    }
    
    /* Mobile indicator bar - positioned to left under text */
    .nav-link::after {
        bottom: 2px; /* 10px spacing from text baseline */
        left: 1rem; /* Left aligned with small margin */
        transform: scaleX(0);
        transform-origin: left;
        width: 0;
        height: 2px;
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        transform: scaleX(1);
        width: calc(var(--text-width, 80px) + 10px); /* Text width + 10px longer */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 120px;
        text-align: center;
        transform: scale(0.9);
        transform-origin: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        margin-top: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .floating-card {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .project-card {
        margin-bottom: 2rem;
    }
    
    /* Reduce section padding on mobile */
    section {
        padding: 60px 0;
    }
    
    /* Contact section even smaller padding on mobile */
    #contact {
        padding: 60px 0 30px 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    /* Even tighter spacing on very small screens */
    section {
        padding: 40px 0;
    }
    
    #contact {
        padding: 40px 0 20px 0;
    }
}

/* Animation Classes for GSAP */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
}

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

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

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

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--light-gray);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Shimmer animation for buttons */
.btn-shimmer {
    position: relative;
    overflow: hidden;
    animation: btn-shimmer-glow 3.5s ease-in-out infinite;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer-sweep 4.5s infinite;
}

@keyframes btn-shimmer-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    }
}

@keyframes shimmer-sweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes tag-shimmer-sweep {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Button bounce animation */
.btn-bounce {
    animation: buttonBounce 3s ease-in-out infinite;
}

/* Load More Button Styles */
#load-more-btn {
    position: relative;
    transition: all 0.3s ease;
    border: none;
    min-width: 200px;
    padding: 12px 24px;
}

#load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

#load-more-btn:active {
    transform: translateY(0);
}

#load-more-btn .bi-arrow-down {
    transition: all 0.3s ease;
}

#load-more-btn:hover .bi-arrow-down {
    transform: translateY(3px);
}

#load-more-container {
    margin: 2rem 0;
}

/* Loading animation for button */
#load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

#load-more-btn.loading .btn-text {
    opacity: 0.7;
}

#load-more-btn.loading .bi-arrow-down {
    animation: loadingBounce 0.6s infinite alternate;
}

@keyframes loadingBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(5px); }
}

@keyframes buttonBounce {
    0%, 90%, 100% { 
        transform: translateY(0);
    }
    5% { 
        transform: translateY(-8px);
    }
}

.btn-bounce:hover {
    animation-play-state: paused;
    transform: translateY(-2px);
}

/* Shimmer animation for project tags */
.tag-example {
    animation: shimmer-glow-example 3s ease-in-out infinite;
}

.tag-public {
    animation: shimmer-glow-public 3s ease-in-out infinite;
}

.tag-example::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, 0.6) 50%, transparent 80%);
    animation: tag-shimmer-sweep 3.5s infinite;
    border-radius: 15px;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
}

.tag-public::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, 0.6) 50%, transparent 80%);
    animation: tag-shimmer-sweep 3.5s infinite 1.5s;
    border-radius: 15px;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
}

@keyframes shimmer-glow-example {
    0%, 100% {
        box-shadow: 0 0 8px rgba(217, 119, 6, 0.4);
        background-color: #fef3c7;
    }
    50% {
        box-shadow: 0 0 16px rgba(217, 119, 6, 0.6);
        background-color: #fde68a;
    }
}

@keyframes shimmer-glow-public {
    0%, 100% {
        box-shadow: 0 0 8px rgba(22, 163, 74, 0.4);
        background-color: #dcfce7;
    }
    50% {
        box-shadow: 0 0 16px rgba(22, 163, 74, 0.6);
        background-color: #bbf7d0;
    }
}

/* General shimmer effect */
.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.8) 50%, transparent 70%);
    animation: shimmer 3s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shimmer:hover::before {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Language switcher tooltip */
.language-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    pointer-events: none;
    transition: all 0.3s ease;
}

.language-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--dark-color);
}

.language-tooltip.show {
    opacity: 1;
    visibility: visible;
    animation: tooltipSlideIn 0.5s ease-out;
}

.language-tooltip.hide {
    opacity: 0;
    visibility: hidden;
    animation: tooltipSlideOut 0.3s ease-in;
}

@keyframes tooltipSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes tooltipSlideOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Language switcher nav item positioning for tooltip */
.nav-item:last-child {
    position: relative;
}

/* Mobile Navigation Tooltips */
.mobile-nav-tooltip {
    position: fixed;
    top: 70px;
    right: 20px;
    background: rgba(30, 41, 59, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    z-index: 1050;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.mobile-nav-tooltip.show {
    opacity: 1;
    visibility: visible;
    animation: tooltipFadeIn 0.3s ease-out;
}

.mobile-nav-tooltip.hide {
    opacity: 0;
    visibility: hidden;
    animation: tooltipFadeOut 0.3s ease-in;
}

.mobile-nav-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    right: 15px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid rgba(30, 41, 59, 0.9);
}


@keyframes tooltipFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tooltipFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Mobile language toolbox positioning for tooltip */
.mobile-language-toolbox {
    position: relative;
}