/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Prevent text size adjustment on mobile */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Navigation */
.nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    height: 48px;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-content {
    max-width: 1000px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 1;
}

.nav-logo {
    font-weight: 600;
    font-size: 20px;
    opacity: 1;
    margin-left: 0;
    padding-left: 0;
}

button#mobile-menu-toggle,
.nav button#mobile-menu-toggle,
.nav-content button#mobile-menu-toggle {
    padding: 0 !important;
    margin: 0 !important;
}

/* Global Section Styling */
section {
    padding: 80px 20px;
}

section h2 {
    font-size: 48px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
}

/* Hero Section - Override global padding */
.hero {
    width: 100%;
    height: 100vh;
    padding: 120px 20px 60px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f5f7 0%, #e8f4fd 100%);
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-headline {
    font-size: 56px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.1;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-subhead {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    line-height: 1.3;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    background: linear-gradient(135deg, #0071e3, #5AC8FA) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.cta-button-primary {
    padding: 10px 16px;
    background: #0071e3;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 400;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-button-primary:hover {
    background: #0077ED;
    transform: translateY(-2px) scale(1.02);
}

.cta-button-secondary {
    padding: 10px 16px;
    background: transparent;
    color: #0071e3;
    text-decoration: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 400;
    border: 1px solid #d2d2d7;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-button-secondary:hover {
    background: rgba(0, 113, 227, 0.1);
    border-color: #0071e3;
    transform: translateY(-2px) scale(1.02);
}

/* Hero CTA buttons start hidden for animation */
.hero .cta-button-primary,
.hero .cta-button-secondary {
    opacity: 0;
    animation: buttonSlideIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero .cta-button-primary {
    animation-delay: 0.5s;
}

.hero .cta-button-secondary {
    animation-delay: 0.62s;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 40px;
    }

    .hero-headline {
        font-size: 56px !important;
        line-height: 1.1;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .hero-subhead {
        font-size: 24px !important;
        line-height: 1.3;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .hero-cta {
        flex-direction: row;
        gap: 12px;
        margin: 0 auto;
        align-items: center;
        justify-content: center;
    }

    .cta-button-primary,
    .cta-button-secondary {
        width: auto;
    }
}

/* Extra small screens - keep text large, matching desktop as much as possible */
@media (max-width: 480px) {
    .hero-headline {
        font-size: 56px !important;
    }

    .hero-subhead {
        font-size: 24px !important;
    }
}


/* Updated Services Styles */
.services {
    background: linear-gradient(180deg, #e8f4fd 0%, #f0f9ff 100%);
}

.services h2 {
    background: linear-gradient(135deg, #0071e3 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tap-to-flip-hint {
    text-align: center;
    font-size: 18px;
    color: #1d1d1f;
    margin: 0 auto 30px;
    display: none;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 28px;
    width: fit-content;
    max-width: 300px;
    font-weight: 500;
}

@supports not (backdrop-filter: blur(1px)) {
    .tap-to-flip-hint {
        background: rgba(255, 255, 255, 0.9);
    }
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

/* On medium-large screens, use 2 columns to create a nice 2x2 grid for 4 items */
@media (min-width: 960px) and (max-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

/* On very large screens, use 4 columns for a single row layout */
@media (min-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-tile {
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
}

.tile-front,
.tile-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    overflow: hidden;
}

.tile-front {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tile-back {
    background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
    transform: rotateY(180deg);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.tile-back h3 {
    font-size: 28px;
    padding: 5px;
    color: #ffffff;
}

.tile-back p {
    font-size: 19px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.tile-back ul {
    color: #ffffff;
}

.tile-back li {
    color: rgba(255, 255, 255, 0.95);
}

.service-tile:hover .tile-front {
    transform: rotateY(-180deg);
}

.service-tile:hover .tile-back {
    transform: rotateY(0);
}

.tile-content {
    text-align: center;
    padding: 20px;
}

.coming-soon-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #0071e3 0%, #5AC8FA 100%);
    color: #fff;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    border-radius: 12px 12px 0 0;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
    z-index: 10;
  }

  .card-tag {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.06);
    color: rgba(0,0,0,0.7);
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
  }
  
  /* optional for dark sections */
  .card-tag.dark {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
  }

.tile-content i {
    font-size: 48px;
    color: #0071e3;
    margin-bottom: 20px;
}

/* Add color variations to different tiles */
.service-tile:nth-child(1) .tile-content i {
    color: #0071e3;
}

.service-tile:nth-child(2) .tile-content i {
    color: #5AC8FA;
}

.service-tile:nth-child(3) .tile-content i {
    color: #30D5C8;
}

.service-tile:nth-child(4) .tile-content i {
    color: #AF52DE;
}

.tile-content h3 {
    text-align: center;
    font-size: 24px;
    color: #1d1d1f
}

.tile-content p {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}

.service-details {
    color: #1d1d1f;
    max-width: 280px;
}

.service-details p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.service-details li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

.service-details li:last-child {
    border-bottom: none;
}

.learn-more {
    display: inline-block;
    padding: 10px 25px;
    background: #0071e3;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.learn-more:hover {
    transform: translateY(-2px);
    background: #0077ED;
}

.learn-more.disabled {
    cursor: default;
    opacity: 0.7;
    pointer-events: none;
}

.learn-more.disabled:hover {
    transform: none;
    background: #0071e3;
}

/* Preview section button */
.preview-button {
    margin-top: 30px;
    display: inline-block;
}

.learn-more.disabled {
    cursor: default;
    opacity: 0.7;
    pointer-events: none;
}

.learn-more.disabled:hover {
    transform: none;
    background: #0071e3;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .services {
        text-align: center;
    }

    .tap-to-flip-hint {
        display: inline-block;
    }

    .service-tile {
        height: 350px;
    }

    .tile-content i {
        font-size: 36px;
    }

    .service-details p {
        font-size: 14px;
    }

    .service-details li {
        font-size: 14px;
    }
}

/* CTA Section */
.cta {
    background: #ffffff;
    padding: 100px 20px;
    text-align: center;
}

.cta h2 {
    color: #000000;
    margin-bottom: 20px;
}

.cta p {
    font-size: 21px;
    color: #000000;
    opacity: 0.8;
    margin-bottom: 30px;
}

.button {
    padding: 12px 30px;
    background: #0071e3;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 17px;
    transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
    background: #0077ED;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 71, 227, 0.3);
}

/* Footer */
.footer {
    padding: 40px 20px !important;
    text-align: center;
    font-size: 12px;
    color: #86868b;
}

/* Index page footer - continues from services section */
.services ~ .footer {
    background: linear-gradient(180deg, #f0f9ff 0%, #e8f4fd 100%);
}

/* About page footer - continues from about-cta */
.about-cta ~ .footer {
    background: linear-gradient(180deg, #e8e0f7 0%, #e0d8f0 100%);
}

/* Contact page footer - continues from contact-section */
.contact-section ~ .footer {
    background: linear-gradient(180deg, #d8eff5 0%, #d0e7ed 100%);
}

/* Philosophy page footer - continues from last section */
.philosophy-section ~ .footer,
.philosophy-section-alt ~ .footer {
    background: linear-gradient(180deg, #f0f3f7 0%, #e8ecf2 100%);
}
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1:first-of-type {
        font-size: 32px;
    }

    .hero h1:last-of-type {
        font-size: 14px;
    }

    .hero p {
        font-size: 21px;
    }


    .cta p {
        font-size: 17px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: white;
        flex-direction: column;
        padding: 80px 40px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1000;
    }

    .mobile-nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: #1d1d1f;
        transition: all 0.3s ease;
    }

    .mobile-nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* Gallery Styles */
.gallery {
    padding: 100px 20px;
    background: #fff;
}

.gallery h2 {
    color: #1d1d1f;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16/9;
    height: 0;
    padding-bottom: 56.25%;
}

.gallery-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(100%);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    font-size: 24px;
    font-weight: 600;
}

.gallery-overlay p {
    font-size: 16px;
    margin-top: 10px;
}

/* Mobile Menu Styles */
#mobile-menu {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, #e8f4fd 0%, #cce5f2 50%, #b0d5e7 100%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

#mobile-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

#mobile-menu a {
    color: #1d1d1f;
    font-size: 18px;
    padding: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

#mobile-menu a:hover {
    color: #0071e3;
}

#mobile-menu button {
    color: #1d1d1f;
}

/* Trust Badges */
.trust-badges {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 50%, #ffffff 100%);
}

.trust-badges .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.badge {
    text-align: center;
    padding: 20px;
    flex: 1;
    max-width: 300px;
}

.badge i {
    font-size: 32px;
    color: #0071e3;
    margin-bottom: 15px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 50%;
}

.badge:nth-child(2) i {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
}

.badge:nth-child(3) i {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

/* Process Steps */
.process {
    padding: 80px 0;
    background: #f5f5f7;
}

.process h2 {
    margin-bottom: 25px;
}

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

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #0071e3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* About Preview */
.about-preview {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    justify-content: center;
    text-align: center;
}

.about-preview h2 {
    background: linear-gradient(135deg, #0071e3 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-preview p {
    text-align: center;
    margin-bottom: 25px;
}

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

.welcome-container .content {
    max-width: 980px;
    margin: 0 auto;
}

.welcome-container .content p {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 400;
}

/* Contact Preview */
.contact-preview {
    padding: 60px 0;
    background: #f5f5f7;
}

.contact-preview h2 {
    text-align: center;

}

.contact-preview p {
    text-align: center;
}

.contact-methods {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.method {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* About Intro Section */
.about-intro {
    width: 100%;
    min-height: 100vh;
    padding: 120px 20px 60px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #e8f0fd 0%, #f0e8fd 100%);
}

.about-intro .container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
}

.about-intro h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    color: #1d1d1f;
}

.mission-statement {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    color: #555;
}

@media (max-width: 768px) {
    .about-intro {
        min-height: 100vh;
        padding: 100px 20px 40px;
    }
    
    .about-intro h1 {
        font-size: 2.5rem;
    }
    
    .mission-statement {
        font-size: 1.2rem;
    }
}

/* Our Story Section */
.our-story {
    background: linear-gradient(180deg, #ffffff 0%, #f5f0fd 100%);
}

.our-story h2 {
    background: linear-gradient(135deg, #0071e3 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.story-content {
    max-width: 980px;
    margin: 0 auto;
}

.story-content p {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 400;
}

/* Responsive styling for story container */
@media (max-width: 768px) {
    .story-container {
        padding: 0 20px;
    }
    
    .welcome-container {
        padding: 0 20px;
    }
    
    .approach-container {
        padding: 0 20px;
    }
    
    section h2 {
        font-size: 36px;
    }
    
    .cta-content {
        padding: 0 20px;
    }
    
    .cta-brand {
        font-size: 2rem;
    }
    
    .cta-tagline {
        font-size: 1.2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .cta-button-primary,
    .cta-buttons .cta-button-secondary {
        width: 100%;
        max-width: 280px;
    }
}

/* Core Values Section */
.core-values {
    background: linear-gradient(180deg, #f0e8fd 0%, #e8e0f7 100%);
}

.core-values h2 {
    background: linear-gradient(135deg, #0071e3 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.value {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.value:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.value i {
    font-size: 2.5rem;
    color: #0071e3;
    margin-bottom: 20px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 50%;
}

.value:nth-child(2) i {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
}

.value:nth-child(3) i {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.value:nth-child(4) i {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #ff6f00;
}

.value h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.value p {
    line-height: 1.6;
    color: #666;
}

/* Approach Section */
.approach {
    background: linear-gradient(180deg, #ffffff 0%, #f5f0fd 100%);
}

.approach h2 {
    background: linear-gradient(135deg, #0071e3 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.approach-content {
    max-width: 980px;
    margin: 0 auto;
}

.approach-content p {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 400;
}

/* CTA Section */
.about-cta {
    background: linear-gradient(180deg, #f0e8fd 0%, #e8e0f7 100%);
    text-align: center;
}

.cta-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.cta-brand {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #0071e3 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.cta-tagline {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #1d1d1f;
    font-weight: 500;
}

.cta-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 35px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.about-cta h2 {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0071e3 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-cta p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #0071e3;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: #0077ED;
}

/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
}

header {
    text-align: center;
    background: #007BFF;
    color: white;
    padding: 50px 20px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
}

/* Services Page Styles */
header {
    padding: 120px 20px 60px;
    text-align: center;
    background: #f5f5f7;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #1d1d1f;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

/* Service Sections */
.service-section {
    padding: 80px 20px;
    background: white;
}

.service-section:nth-child(even) {
    background: #f5f5f7;
}

.service-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    animation: fadeInUp 1s ease forwards;
}

.service-content img {
    width: 50%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
}

.service-content img:hover {
    transform: translateY(-10px) scale(1.02);
    filter: brightness(1.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.service-text {
    text-align: center;
}

.service-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature {
    padding: 15px;
    background: #f5f5f7;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: #e5e5ea;
    transform: translateY(-2px);
}

.feature i {
    font-size: 24px;
    color: #0071e3;
    margin-bottom: 10px;
}

.feature p {
    margin: 0;
    color: #333;
}

@media (max-width: 768px) {
    .service-features-grid {
        grid-template-columns: 1fr;
    }
}
/* Reverse Layout */
.reverse .service-content {
    flex-direction: row-reverse;
}

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

@keyframes buttonSlideIn {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.4);
        border-radius: 50%;
    }
    1% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        border-radius: 20px;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .service-content,
    .reverse .service-content {
        flex-direction: column;
        gap: 30px;
    }

    /* Force text to always be first */
    .service-content {
        display: flex;
        flex-direction: column;
    }

    .service-text {
        width: 100%;
        order: 1; /* This puts the text first */
    }

    .service-content img {
        width: 100%;
        order: 2; /* This puts the image second */
    }

    .service-text h2 {
        text-align: center;
    }

    .service-text p {
        text-align: center;
    }
}

/* Text Reveal Animation */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Page Styles */
.contact-intro {
    width: 100%;
    min-height: 100vh;
    padding: 120px 20px 60px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #e8f7fd 0%, #e0f4f7 100%);
}

/* Philosophy Page Styles */
.philosophy-intro {
    width: 100%;
    min-height: 100vh;
    padding: 120px 20px 60px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #eff2f5 0%, #e5e9f0 100%);
}

.philosophy-intro .container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
}

.philosophy-intro h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    color: #1d1d1f;
}

.philosophy-section {
    background: linear-gradient(180deg, #ffffff 0%, #f0f3f7 100%);
}

.philosophy-section h2 {
    background: linear-gradient(135deg, #0071e3 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.philosophy-section-alt {
    background: linear-gradient(180deg, #e8ecf2 0%, #dce3eb 100%);
}

.philosophy-section-alt h2 {
    background: linear-gradient(135deg, #0071e3 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .philosophy-intro {
        min-height: 100vh;
        padding: 100px 20px 40px;
    }
    
    .philosophy-intro h1 {
        font-size: 2.5rem;
    }
}

.contact-intro .container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
}

.contact-intro h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    color: #1d1d1f;
}

.contact-subtitle {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    color: #555;
}

@media (max-width: 768px) {
    .contact-intro {
        min-height: 100vh;
        padding: 100px 20px 40px;
    }
    
    .contact-intro h1 {
        font-size: 2.5rem;
    }
    
    .contact-subtitle {
        font-size: 1.2rem;
    }
}

.contact-section {
    background: linear-gradient(180deg, #e0f4f7 0%, #d8eff5 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2,
.contact-form-container h2 {
    color: #1d1d1f;
    margin-bottom: 20px;
}

.contact-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

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

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-method i {
    font-size: 24px;
    color: #0071e3;
    margin-top: 5px;
}

.method-details h3 {
    font-size: 1.2rem;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.method-details a {
    color: #0071e3;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.method-details a:hover {
    color: #0077ED;
}

.method-details p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.contact-form-container {
    background: #f5f5f7;
    padding: 40px;
    border-radius: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    color: #1d1d1f;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #1d1d1f;
    background: #fff;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0071e3;
}

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

.submit-button {
    padding: 15px 40px;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    align-self: flex-start;
    margin-top: 10px;
}

.submit-button:hover {
    transform: translateY(-2px);
    background: #0077ED;
}

/* Connect Page Styles */
.connect-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(90, 200, 250, 0.15);
}

.connect-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.contact-section .container > .build-mode-text {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #0071e3 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-section .container > .follow-text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    text-align: center;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.social-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 50px 30px;
    background: white;
    color: #1d1d1f;
    text-decoration: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-height: 180px;
}

.social-button:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.social-button i {
    font-size: 2.5rem;
    color: #0071e3;
}

/* Platform-specific icon colors */
.social-button:nth-child(1) i {
    color: #000000;
}

.social-button:nth-child(2) i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-button:nth-child(4) i {
    color: #0071e3;
}

.social-button span {
    font-weight: 600;
    color: #1d1d1f;
}

.no-bookings-text {
    font-size: 1rem;
    color: #86868b;
    font-style: italic;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e7;
    text-align: center;
}

/* Mobile Responsiveness for Contact Page */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .connect-container {
        padding: 0 20px;
    }

    .build-mode-text {
        font-size: 2rem;
    }

    .follow-text {
        font-size: 1.1rem;
    }

    .social-buttons {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 30px;
    }

    .contact-form-container {
        padding: 30px 20px;
    }

    .contact-info h2,
}
.build-expect {
    margin-top: 50px;
    margin-bottom: 40px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .build-expect h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #0071e3 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .build-expect ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
  }
  
  .build-expect li {
    color: #1d1d1f;
    font-size: 17px;
    line-height: 1.8;
    margin: 20px 0;
    padding: 0;
  }
  
  .build-expect li:not(:last-child)::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0071e3, transparent);
    margin: 20px auto 0;
    opacity: 0.3;
  }

/* Override Tailwind p-4 class for hamburger menu button */
.nav-content button#mobile-menu-toggle.p-4,
.nav-content #mobile-menu-toggle.p-4,
button#mobile-menu-toggle.p-4 {
    padding: 0 !important;
    margin: 0 !important;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e5e5e5;
    }
    
    /* Navigation */
    .nav {
        background: rgba(26, 26, 26, 0.9);
    }
    
    .nav a {
        color: #e5e5e5;
    }
    
    /* Hamburger menu icon - white in dark mode */
    #mobile-menu-toggle svg,
    button#mobile-menu-toggle svg {
        stroke: #ffffff !important;
    }
    
    /* Hero Sections */
    .hero {
        background: linear-gradient(180deg, #1a1a1a 0%, #2a2a3a 100%);
    }
    
    .hero-headline {
        color: #ffffff;
    }
    
    .hero-subhead {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .about-intro {
        background: linear-gradient(180deg, #1a1a2a 0%, #2a1a3a 100%);
    }
    
    .about-intro h1,
    .mission-statement {
        color: #ffffff;
    }
    
    .contact-intro {
        background: linear-gradient(180deg, #1a2a2a 0%, #1a3a3a 100%);
    }
    
    .contact-intro h1,
    .contact-subtitle {
        color: #ffffff;
    }
    
    .philosophy-intro {
        background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    }
    
    .philosophy-intro h1 {
        color: #ffffff;
    }
    
    /* Section Backgrounds */
    .about-preview {
        background: linear-gradient(180deg, #1a1a1a 0%, #1a1a2a 100%);
    }
    
    .services {
        background: linear-gradient(180deg, #1a1a2a 0%, #1a1a3a 100%);
    }
    
    .our-story {
        background: linear-gradient(180deg, #1a1a1a 0%, #2a1a3a 100%);
    }
    
    .core-values {
        background: linear-gradient(180deg, #2a1a3a 0%, #2a1a4a 100%);
    }
    
    .approach {
        background: linear-gradient(180deg, #1a1a1a 0%, #2a1a3a 100%);
    }
    
    .about-cta {
        background: linear-gradient(180deg, #2a1a4a 0%, #2a1a5a 100%);
    }
    
    .philosophy-section {
        background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
    }
    
    .philosophy-section-alt {
        background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    }
    
    .contact-section {
        background: linear-gradient(180deg, #1a3a3a 0%, #1a4a4a 100%);
    }
    
    /* Text Colors - Override all dark text */
    section h2 {
        color: #ffffff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #ffffff !important;
    }
    
    p {
        color: rgba(255, 255, 255, 0.85) !important;
    }
    
    .welcome-container .content p,
    .story-content p,
    .approach-content p,
    .philosophy-section p,
    .philosophy-section-alt p {
        color: rgba(255, 255, 255, 0.85) !important;
    }
    
    .build-mode-text,
    .follow-text {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .build-expect h3 {
        background: linear-gradient(135deg, #5AC8FA 0%, #0071e3 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .build-expect li {
        color: rgba(255, 255, 255, 0.85) !important;
    }
    
    .build-expect li:not(:last-child)::after {
        background: linear-gradient(90deg, transparent, #5AC8FA, transparent);
    }
    
    .no-bookings-text {
        color: rgba(255, 255, 255, 0.6) !important;
    }
    
    .tap-to-flip-hint {
        color: rgba(255, 255, 255, 0.7) !important;
    }
    
    .contact-description,
    .contact-info p {
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    ul li {
        color: rgba(255, 255, 255, 0.85) !important;
    }
    
    .service-details {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .service-details p,
    .service-details li {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .service-details li {
        border-bottom-color: rgba(255, 255, 255, 0.2) !important;
    }
    
    /* CTA Section Text */
    .cta-tagline,
    .cta-description {
        color: rgba(255, 255, 255, 0.85) !important;
    }
    
    /* Keep gradient text but ensure visibility */
    .about-preview h2,
    .services h2,
    .our-story h2,
    .core-values h2,
    .approach h2,
    .philosophy-section h2,
    .philosophy-section-alt h2 {
        background: linear-gradient(135deg, #5AC8FA 0%, #0071e3 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    /* Override any remaining dark text */
    * {
        color: inherit;
    }
    
    .container p,
    .container li,
    .container span:not(.learn-more):not(.cta-button-primary):not(.cta-button-secondary) {
        color: rgba(255, 255, 255, 0.85) !important;
    }
    
    /* Cards */
    .value {
        background: #2a2a2a;
        color: #ffffff;
    }
    
    .value p {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .tile-front {
        background: #2a2a2a;
    }
    
    .tile-content {
        color: #ffffff;
    }
    
    .tile-content h3 {
        color: #ffffff;
    }
    
    .tile-content p {
        color: rgba(255, 255, 255, 0.8);
    }
    
    /* Buttons */
    .cta-button-primary {
        background: #0071e3;
        color: #ffffff;
    }
    
    .cta-button-secondary {
        background: transparent;
        color: #0071e3;
        border-color: #0071e3;
    }
    
    .learn-more {
        background: #0071e3;
        color: #ffffff;
    }
    
    .social-button {
        background: #2a2a2a;
        color: #ffffff;
    }
    
    .social-button:nth-child(1) i {
        color: #ffffff;
    }
    
    .social-button:nth-child(2) i {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .social-button:nth-child(4) i {
        color: #5AC8FA;
    }
    
    /* Footer */
    .footer {
        background: transparent;
        color: rgba(255, 255, 255, 0.6);
    }
    
    /* Mobile Menu */
    #mobile-menu {
        background: linear-gradient(180deg, #1a1a2a 0%, #2a2a3a 50%, #1a1a1a 100%);
    }
    
    #mobile-menu a {
        color: #ffffff;
    }
    
    #mobile-menu button {
        color: #ffffff;
    }
    
    /* Footer gradients for dark mode */
    .services ~ .footer {
        background: linear-gradient(180deg, #1a1a3a 0%, #1a1a2a 100%);
    }
    
    .about-cta ~ .footer {
        background: linear-gradient(180deg, #2a1a5a 0%, #2a1a4a 100%);
    }
    
    .contact-section ~ .footer {
        background: linear-gradient(180deg, #1a4a4a 0%, #1a3a3a 100%);
    }
    
    .philosophy-section ~ .footer,
    .philosophy-section-alt ~ .footer {
        background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    }
}