/* ================================
   CSS Reset & Base Styles
   ================================ */
:root {
    /* Colors */
    --primary-blue: #1a5571;
    --secondary-blue: #2980b9;
    --light-blue: #6b9dbf;
    --accent-blue: #3498db;
    --dark-navy: #0f3d54;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --text-dark: #2c3e50;
    --text-medium: #5a6c7d;
    --text-light: #95a5a6;
    --white: #ffffff;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    /* New: Enhanced Animation Curves */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

/* ================================
   Focus Styles for Accessibility
   ================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 3px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* ================================
   Container & Layout
   ================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ================================
   Navigation
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
    min-height: 80px;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 70px;
    width: auto;
    transition: all 0.3s var(--ease-smooth);
}

.logo:hover .logo-img {
    filter: drop-shadow(0 4px 8px rgba(26, 85, 113, 0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-md);
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transform: translateX(-50%);
    transition: width 0.3s var(--ease-smooth);
}

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

.nav-link:hover {
    color: var(--primary-blue);
    background: rgba(26, 85, 113, 0.05);
}

.nav-link.active {
    color: var(--primary-blue);
    background: rgba(26, 85, 113, 0.08);
}

.nav-cta {
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
}

.nav-cta:hover {
    background: var(--dark-navy);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all var(--transition-base);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    z-index: 10;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.gradient-text {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image {
    animation: fadeIn 1s ease-out 0.3s both;
}

.hero-img {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-block {
    width: 100%;
}

/* ================================
   Section Styles
   ================================ */
section {
    padding: var(--space-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* ================================
   Services Section
   ================================ */
.services {
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 85, 113, 0.05), transparent);
    transition: left 0.6s var(--ease-smooth);
}

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

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(26, 85, 113, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    transition: all 0.4s var(--ease-out-back);
    box-shadow: 0 4px 15px rgba(26, 85, 113, 0.3);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(26, 85, 113, 0.4);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s var(--ease-smooth);
}

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

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.service-description {
    color: var(--text-medium);
    line-height: 1.7;
}

/* ================================
   Value Proposition Section
   ================================ */
.value-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.value-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.5s var(--ease-smooth);
}

.value-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(26, 85, 113, 0.25);
}

.value-item {
    margin-bottom: var(--space-lg);
}

.value-item h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.value-item p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* ================================
   Philosophy Section
   ================================ */
.philosophy {
    background: linear-gradient(135deg, rgba(26, 85, 113, 0.05) 0%, rgba(107, 157, 191, 0.05) 100%);
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-text {
    margin-top: var(--space-lg);
}

.philosophy-text p {
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: var(--space-md);
    font-size: 1.0625rem;
}

/* ================================
   Testimonials Section
   ================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(26, 85, 113, 0.03), rgba(41, 128, 185, 0.03));
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    pointer-events: none;
}

.testimonial-card:hover::after {
    opacity: 1;
}

.testimonial-card:hover {
    box-shadow: 0 15px 40px rgba(26, 85, 113, 0.15);
    transform: translateY(-8px) scale(1.02);
    border-left-width: 6px;
}

.testimonial-quote {
    font-size: 4rem;
    color: var(--light-blue);
    line-height: 0.5;
    margin-bottom: var(--space-sm);
    font-family: Georgia, serif;
}

.testimonial-text {
    color: var(--text-medium);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ================================
   Contact Section
   ================================ */
.contact {
    background: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
}

.contact-info {
    padding-right: var(--space-md);
}

.contact-details {
    margin-top: var(--space-lg);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.contact-item p {
    color: var(--text-medium);
}

.linkedin-link {
    color: var(--primary-blue);
    text-decoration: underline;
}

.linkedin-link:hover {
    color: var(--secondary-blue);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s var(--ease-smooth);
    background: var(--white);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--light-blue);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(26, 85, 113, 0.12);
    transform: translateY(-2px);
}

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

/* Contact form button hover fix */
.contact-form .btn-primary:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 85, 113, 0.3);
}

/* ================================
   Footer
   ================================ */
.footer {
    background: linear-gradient(180deg, var(--dark-navy) 0%, #0a2835 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-xl) 0 var(--space-md);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(107, 157, 191, 0.5), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--space-md);
}

.footer-logo-img {
    height: 80px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.footer-logo-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.footer-logo-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-social h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

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

.footer-links li {
    margin-bottom: var(--space-sm);
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ================================
   Animations
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================================
   Responsive Design
   ================================ */

/* Large Tablets and Small Desktops (1024px - 1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 1024px;
    }

    .services-grid,
    .testimonials-grid {
        gap: var(--space-md);
    }
}

/* Tablets (768px - 968px) */
@media (max-width: 968px) {
    .hero-content,
    .value-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .hero {
        padding: calc(80px + var(--space-lg)) 0 var(--space-lg);
    }

    .hero-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .value-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .section-title {
        font-size: clamp(1.75rem, 4vw, 2.25rem);
    }
}

/* Mobile Devices (481px - 768px) */
@media (max-width: 768px) {
    /* Hide nav menu by default on mobile */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        padding: var(--space-md);
        box-shadow: var(--shadow-lg);
        transition: all 0.3s var(--ease-smooth);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        z-index: 999;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s var(--ease-smooth);
    }

    /* Show nav menu when active */
    .nav-menu.active {
        max-height: calc(100vh - 80px);
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
        padding: var(--space-md);
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation for menu items */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.3s; }

    /* Style nav links for mobile */
    .nav-link {
        display: block;
        width: 100%;
        padding: var(--space-sm);
        text-align: center;
        border-bottom: 1px solid var(--medium-gray);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    /* Hamburger animation when active */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Keep logo visible but hide text on very small screens */
    .logo-text {
        display: flex;
    }

    /* Adjust hero padding to account for fixed navbar */
    .hero {
        padding-top: calc(80px + var(--space-md));
        padding-bottom: var(--space-lg);
    }

    /* Hide wave on mobile for cleaner look */
    .hero-wave {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-logo-text .footer-logo-name {
        font-size: 1.5rem;
    }

    .footer-logo-text .footer-logo-subtitle {
        font-size: 0.875rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .btn {
        width: 100%;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        gap: var(--space-md);
    }

    section {
        padding: var(--space-lg) 0;
    }

    .hero {
        padding: calc(80px + var(--space-md)) 0 var(--space-md);
    }
}

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    :root {
        font-size: 14px;
        --space-lg: 3rem;
        --space-xl: 4rem;
    }

    .container {
        padding: 0 var(--space-sm);
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .service-card,
    .testimonial-card {
        padding: var(--space-md);
    }

    .contact-form-wrapper {
        padding: var(--space-md);
    }

    /* Hide logo text on very small screens to save space */
    .logo-text {
        display: none;
    }

    /* Adjust logo size */
    .logo-img {
        height: 50px;
    }

    /* Adjust navbar padding */
    .nav-wrapper {
        padding: 0.5rem 0;
    }

    /* Adjust menu position */
    .nav-menu {
        top: 60px;
    }

    .nav-menu.active {
        max-height: calc(100vh - 60px);
    }
}

/* ================================
   Accessibility: Reduced Motion
   ================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-img {
        animation: none;
    }

    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

/* ================================
   Performance: GPU Acceleration
   ================================ */
.service-card,
.testimonial-card,
.btn,
.hero-img,
.service-icon {
    will-change: transform;
}

/* Reset will-change after interaction */
.service-card:hover,
.testimonial-card:hover,
.btn:active {
    will-change: auto;
}

/* ================================
   Scroll to Top Button
   ================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(26, 85, 113, 0.3);
    transition: all 0.3s var(--ease-smooth);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

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

.scroll-to-top:hover {
    background: var(--dark-navy);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 85, 113, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
