.service-card-front-content {
    transform: translateY(10px);
    opacity: 0.95;
}

.service-card:hover .service-card-front-content,
.service-card:focus .service-card-front-content,
.service-card:focus-within .service-card-front-content {
    transform: translateY(0);
    opacity: 1;
}
.service-card-front-content,
.service-card-front-title,
.service-card-front-text,
.service-card-cta {
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.service-card-front,
.service-card-back {
    outline: none;
}

.service-card:focus .service-card-front,
.service-card:focus .service-card-back,
.service-card:focus-within .service-card-front,
.service-card:focus-within .service-card-back {
    outline: none;
}
.service-card:hover .service-card-front::after {
    background: linear-gradient(180deg, rgba(4, 8, 15, 0.45), rgba(80, 125, 188, 0.65));
}

.service-card:hover .service-card-front-title,
.service-card:hover .service-card-front-text,
.service-card:hover .service-card-cta {
    opacity: 1;
}

.service-card:hover .service-card-cta {
    transform: translateX(4px);
}
/* CSS Custom Properties - Color Palette */
:root {
    --rich-black: #04080fff;
    --glaucous: #507dbcff;
    --powder-blue: #a1c6eaff;
    --columbia-blue: #bbd1eaff;
    --platinum: #dae3e5ff;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px; /* Account for fixed navbar height */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--glaucous);
    color: white;
    border: 2px solid var(--glaucous);
}

.btn-primary:hover {
    background: var(--rich-black);
    color: white;
    border-color: var(--rich-black);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(4, 8, 15, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--glaucous);
    border-color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar .nav-container {
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    color: var(--glaucous);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Logo image sizes */
.logo-image {
    height: 56px;
    width: auto;
    display: block;
}

.footer-logo-image {
    height: 42px;
}

.nav-subtitle {
    color: var(--rich-black);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--rich-black);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.nav-link.active {
    color: var(--glaucous) !important;
}

.nav-link.active::after {
    width: 100% !important;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle::after {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(4, 8, 15, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--rich-black);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--glaucous);
    color: white;
}

.dropdown-item::after {
    display: none;
}

.dropdown-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-toggle {
    background: var(--glaucous);
    color: white;
    border: 1px solid var(--glaucous);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    background: var(--rich-black);
    color: white;
    border-color: var(--rich-black);
    text-decoration: none;
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--glaucous);
}

.mobile-menu-toggle:active {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 80px;
    background: var(--glaucous);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}


.hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

/* Hero Text */

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-btn::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;
}

.hero-btn:hover::before {
    left: 100%;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.stat-number {
    display: inline-block;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-plus {
    display: inline-block;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-left: 0;
}

.stat-label {
    display: block;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Hero Visual */


/* Hero Image */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15) 0%, rgba(4, 8, 15, 0.3) 100%);
    opacity: 0.6;
    z-index: 2;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    opacity: 0.7;
    filter: grayscale(5%) brightness(1.1) hue-rotate(10deg) saturate(1.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.hero-bg-image:hover {
    opacity: 0.6;
    filter: grayscale(10%) brightness(1.0) hue-rotate(15deg) saturate(1.2);
}

/* Desktop Hero Enhancements */
@media (min-width: 1200px) {
    .hero {
        padding: 140px 0 100px;
    }
    
    .hero-content {
        max-width: 1200px;
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: clamp(5rem, 7vw, 7rem);
        line-height: 1.02;
        margin-bottom: 2rem;
    }
    
    .hero-description {
        font-size: clamp(1.4rem, 2.2vw, 2rem);
        max-width: 700px;
        margin-bottom: 2.5rem;
    }
    
    .hero-actions {
        gap: 1.5rem;
        margin-bottom: 4rem;
    }
    
    .btn.hero-btn {
        font-size: 1.1rem;
        padding: 16px 36px;
    }
    
    .hero-stats {
        gap: 3rem;
        justify-content: flex-start;
    }
    
    .stat-number,
    .stat-plus {
        font-size: clamp(3rem, 4.5vw, 4.5rem);
    }
    
    .stat-label {
        font-size: clamp(1.1rem, 1.8vw, 1.4rem);
        margin-top: 0.8rem;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@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: 80px 0;
    scroll-padding-top: 150px; /* Account for fixed navbar height */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: #2d3748;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #718096;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: white;
    padding-top: 8rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Flip Card Styles */
.service-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(80, 125, 188, 0.12);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 60px rgba(80, 125, 188, 0.28);
    border-color: rgba(80, 125, 188, 0.35);
}

.service-card:focus,
.service-card:focus-within {
    outline: 3px solid rgba(80, 125, 188, 0.65);
    outline-offset: 4px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 360px; /* anchor a consistent face height */
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden; /* iOS Safari */
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d; /* iOS Safari */
    will-change: transform;
}

.service-card-back {
    transform: rotateY(180deg);
}

/* Individual service card backgrounds */
.service-card:nth-child(1) .service-card-front {
    background: url('images/strategy_and_planning.jpg') center/cover no-repeat;
}

.service-card:nth-child(2) .service-card-front {
    background: url('images/growth_and_scaling.jpg') center/cover no-repeat;
}

.service-card:nth-child(3) .service-card-front {
    background: url('images/business_resilence.jpg') center/cover no-repeat;
}

.service-card:nth-child(4) .service-card-front {
    background: url('images/business_transformation.jpg') center/cover no-repeat;
}

.service-card:nth-child(5) .service-card-front {
    background: url('images/performance_improvement.jpg') center/cover no-repeat;
}

.service-card:nth-child(6) .service-card-front {
    background: url('images/ai-driven_change.jpg') center/cover no-repeat;
}

.service-card-front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 8, 15, 0.55), rgba(80, 125, 188, 0.75));
}

.service-card-front-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: clamp(0.75rem, 2.5vw, 1.25rem);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
}

.service-card-front-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.service-card-front-text {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    max-width: 90%;
    text-align: center;
}

.service-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    opacity: 0.85;
}

.service-card-cta::after {
    content: '\2192';
    font-size: 1rem;
}

.service-card-back {
    background: white;
    padding: clamp(0.75rem, 2.5vw, 1.25rem);
    justify-content: center;
    align-items: center;
}

/* Prevent extra spacing from margins inside the back face */
.service-card-back > :first-child { margin-top: 0; }
.service-card-back > :last-child { margin-bottom: 0; }

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.service-description {
    display: none;
}

.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-list li {
    font-size: 0.95rem;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.service-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: var(--glaucous);
    font-weight: 700;
}

/* Who We Help Section */
.who-we-help {
    background: #f0f4ff;
    padding-top: 8rem;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.help-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.help-card:hover {
    transform: translateY(-5px);
}

.help-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--rich-black) 0%, var(--glaucous) 50%, var(--powder-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.help-icon i {
    font-size: 1.5rem;
    color: white;
}

.help-card h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.help-card p {
    color: #718096;
    font-style: italic;
}

/* Why Choose Us Section */
.why-choose-us {
    background: white;
    padding-top: 8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(80, 125, 188, 0.1);
    margin-bottom: 0;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    border-radius: 20px 20px 0 0;
    transition: all 0.4s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(135deg, rgba(80, 125, 188, 0.1), rgba(61, 90, 138, 0.1));
    z-index: 2;
    border-radius: 20px 20px 0 0;
    transition: all 0.4s ease;
}

.feature-card .card-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    margin-top: 140px;
    background: white;
    border-radius: 0 0 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.feature-card h3,
.feature-card p {
    color: var(--glaucous);
    text-shadow: none;
    margin: 0;
    transition: all 0.3s ease;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.8;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(80, 125, 188, 0.25);
    border-color: var(--glaucous);
}

.feature-card:hover::before {
    opacity: 0.8;
}

.feature-card:hover::after {
    background: linear-gradient(135deg, rgba(80, 125, 188, 0.2), rgba(61, 90, 138, 0.2));
}

.feature-card:hover h3 {
    transform: translateY(-2px);
}

.feature-card:hover p {
    opacity: 1;
    transform: translateY(-1px);
}


/* Individual background images for each card */
.feature-card-1::before {
    background-image: url('images/accessible_expertise.png');
}

.feature-card-2::before {
    background-image: url('images/end_to_end_support.png');
}

.feature-card-3::before {
    background-image: url('images/cross_border.png');
}

.feature-card-4::before {
    background-image: url('images/agility_over_burocracy.png');
}

/* About Section */
.about {
    background: #f0f4ff;
}

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

.about-text p {
    margin-bottom: 1.5rem;
    color: #4a5568;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--glaucous);
    margin-bottom: 0.5rem;
}

.stat p {
    color: #718096;
    margin: 0;
    font-weight: 500;
}

/* Partners Section */
.partners {
    background: white;
}

.partners-content p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Section */
.blog {
    background: #f0f4ff;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-content p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.blog-cta {
    margin-top: 2rem;
}

/* Contact Section */
.contact {
    background: white;
}

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

.contact-text p {
    color: #4a5568;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #4a5568;
}

.contact-item i {
    color: var(--glaucous);
    width: 20px;
}

.bold-text {
    font-weight: 700;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Form Status Messages */
.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message i,
.error-message i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--glaucous);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #a0aec0;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.875rem;
    color: var(--glaucous);
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: var(--glaucous);
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #a0aec0;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column a {
    display: block;
    color: #a0aec0;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--glaucous);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1rem;
    text-align: center;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .nav-logo h1 {
        font-size: 2rem;
    }
    
    .nav-subtitle {
        font-size: 0.7rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-content {
        padding: 1.5rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        height: auto;
    }

    .card-inner {
        min-height: 260px; /* restore previous value */
    }

    .service-card-front,
    .service-card-back {
        padding: 0.75rem;
        justify-content: center;
        align-items: center;
    }

    .service-card-front-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        text-align: center;
        padding: 0.75rem;
        justify-content: center;
        align-items: center;
    }

    .service-card-front-title {
        font-size: 1.3rem;
        text-align: center;
    }

    .service-card-front-text {
        font-size: 0.95rem;
        max-width: 100%;
        text-align: center;
    }

    .service-card-cta {
        text-align: center;
        justify-content: center;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-list li {
        font-size: 0.85rem;
        padding-left: 1.3rem;
    }
    
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .nav-logo h1 {
        font-size: 1.8rem;
    }
    
    .nav-subtitle {
        font-size: 0.65rem;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .hero-stats {
        gap: 1rem;
        justify-content: center;
        align-items: center;
    }
    
    /* iPhone Service Card Fixes */
    .service-card-front,
    .service-card-back {
        padding: 0.8rem;
        justify-content: center;
        align-items: center;
    }
    
    /* Robust vertical centering for front face on small screens */
    .service-card-front {
        display: grid;
        place-items: center;
    }
    
    .service-card-front-content {
        position: static;
        transform: none;
        text-align: center;
        padding: 0 0.8rem;
        justify-content: center;
        align-items: center;
    }
    
    .service-card-front-title {
        font-size: 1.2rem;
        text-align: center;
        margin-top: 0;
    }
    
    .service-card-front-text {
        font-size: 0.9rem;
        text-align: center;
        max-width: 100%;
    }

    .service-card-back {
        padding: 0.6rem 0.8rem 0.9rem; /* tighten back face too */
        justify-content: flex-start;
        align-items: flex-start;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .service-card-cta {
        text-align: center;
        justify-content: center;
        font-size: 0.8rem;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .help-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        height: 260px;
    }
    
    .card-front, .card-back {
        padding: 1rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .service-list li {
        font-size: 0.8rem;
        padding: 0.4rem 0 0.4rem 1.8rem;
        line-height: 1.3;
    }
    
    .service-list li::before {
        left: 0.2rem;
        top: 0.4rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

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

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

/* Language Toggle Animation */
.language-transition {
    transition: all 0.3s ease;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--rich-black);
}

/* Raquel Araujo Modal Styles */
.raquel-link {
    color: var(--glaucous);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.raquel-link:hover {
    color: #3d5a8a;
    text-decoration: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    position: relative;
}

.modal-header {
    background: linear-gradient(135deg, var(--glaucous), #3d5a8a);
    color: white;
    padding: 2rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-left {
    flex-shrink: 0;
}

.header-right {
    flex: 1;
}

.modal-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.modal-body {
    padding: 2rem;
}

.bio-photo-large {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.bio-content {
    line-height: 1.7;
}

.bio-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.bio-content li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.bio-content strong {
    color: var(--glaucous);
    font-weight: 600;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 2rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .bio-photo-large {
        width: 150px;
        height: 150px;
    }
    
    .bio-content p {
        font-size: 1rem;
    }
    
    .bio-content li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .modal-header {
        padding: 1rem;
        gap: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.8rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .bio-photo-large {
        width: 120px;
        height: 120px;
    }
}
