/* Alpha2Zulu Aurora Theme - Inner Pages Stylesheet */
/* Shared styles for all inner pages (About, Services, Pricing, Contact, etc.) */
/* Loaded after main.css - uses variables defined there */

/* ============================================
   FLUID HEADER (WebGL Fluid Simulation)
   ============================================ */
.fluid-header {
    position: relative;
    height: 400px;
    background: #0F172A;
    overflow: hidden;
}

.fluid-header canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fluid-header .header-content {
    position: absolute;
    bottom: 80px;
    left: 40px;
    z-index: 10;
    text-align: left;
}

.fluid-header .tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    max-width: 450px;
}

/* ============================================
   TYPEWRITER EFFECT
   ============================================ */

.typewriter-container {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    min-height: 1.2em;
}

.typewriter-text {
    display: inline;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--primary-light, #8B7FF3);
    margin-left: 4px;
    animation: blink 0.7s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============================================
   ANIMATED GRADIENT TEXT
   Use: Add .gradient-text class to any text element
   Modifier: .gradient-text--teal for teal theme pages
   ============================================ */

.gradient-text {
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #a78bfa 25%,
        #c4b5fd 50%,
        #a78bfa 75%,
        #ffffff 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

.gradient-text--teal {
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #2dd4bf 25%,
        #5eead4 50%,
        #2dd4bf 75%,
        #ffffff 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* ============================================
   PAGE SECTIONS
   ============================================ */

.page-section {
    padding: 40px 20px;
}

.page-section:nth-child(even) {
    background: rgba(108, 92, 231, 0.03);
}

.page-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Story/Content Blocks */
.story-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
}

.story-content p {
    margin-bottom: 1.5rem;
}

/* ============================================
   VALUE/FEATURE CARDS - Aurora Glass Edition
   ============================================ */

/* Section with decorative background for glassmorphism effect */
.values-section {
    position: relative;
    overflow: hidden;
}

/* Decorative blobs behind cards for blur effect */
.values-section::before,
.values-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.values-section::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.25) 0%, transparent 70%);
    top: -100px;
    right: 10%;
    animation: blobFloat 12s ease-in-out infinite;
}

.values-section::after {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
    bottom: -50px;
    left: 5%;
    animation: blobFloat 15s ease-in-out infinite reverse;
}

.values-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Aurora gradient border animation */
@keyframes auroraGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating icon animation */
@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.value-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    /* overflow: hidden removed to allow glow effect */

    /* Scroll reveal - starts hidden */
    opacity: 0;
    transform: translateY(30px);

    /* Transition for both reveal and hover */
    transition:
        opacity 0.6s ease,
        transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease,
        background 0.4s ease,
        border-color 0.4s ease;
}

/* Triggered by IntersectionObserver - uses transition, not animation */
.value-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered transition delays for reveal */
.value-card:nth-child(1) { transition-delay: 0.1s; }
.value-card:nth-child(2) { transition-delay: 0.2s; }
.value-card:nth-child(3) { transition-delay: 0.3s; }
.value-card:nth-child(4) { transition-delay: 0.4s; }
.value-card:nth-child(5) { transition-delay: 0.5s; }
.value-card:nth-child(6) { transition-delay: 0.6s; }

/* Remove delay on hover so response is instant */
.value-card.revealed:hover {
    transition-delay: 0s;
}

/* Aurora gradient border (pseudo-element) */
.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(108, 92, 231, 0.3) 0%,
        rgba(139, 127, 243, 0.3) 25%,
        rgba(236, 72, 153, 0.2) 50%,
        rgba(34, 211, 238, 0.3) 75%,
        rgba(108, 92, 231, 0.3) 100%
    );
    background-size: 300% 300%;
    animation: auroraGlow 8s ease infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

/* Glow effect underneath */
.value-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(
        ellipse at center,
        rgba(108, 92, 231, 0.15) 0%,
        rgba(139, 127, 243, 0.1) 30%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -2;
    filter: blur(20px);
}

.value-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(108, 92, 231, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.85);
}

.value-card:hover::before {
    opacity: 1;
}

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

.value-card .icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(
        135deg,
        rgba(108, 92, 231, 0.15) 0%,
        rgba(139, 127, 243, 0.1) 100%
    );
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow:
        0 4px 15px rgba(108, 92, 231, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
}

.value-card:hover .icon {
    animation: iconFloat 2s ease-in-out infinite;
    background: linear-gradient(
        135deg,
        rgba(108, 92, 231, 0.25) 0%,
        rgba(139, 127, 243, 0.2) 100%
    );
    box-shadow:
        0 8px 25px rgba(108, 92, 231, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.value-card .icon i {
    font-size: 26px;
    transition: all 0.3s ease;
}

/* Gradient for Font Awesome icons (targets the ::before pseudo-element) */
.value-card .icon i::before {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.value-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   COMPARISON COLUMNS (3-Column Card Layout)
   ============================================ */

.comparison-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-column {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.comparison-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.comparison-column--highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.3);
}

.comparison-column--highlight:hover {
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.4);
}

.comparison-column h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.comparison-column--highlight h3 {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.comparison-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    margin: 0;
}

.comparison-column li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--gray);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comparison-column li i {
    flex-shrink: 0;
    margin-top: 3px;
}

.comparison-column li .fa-check {
    color: var(--success);
}

.comparison-column li .fa-xmark {
    color: var(--coral);
}

.comparison-column--highlight li {
    color: rgba(255, 255, 255, 0.95);
}

.comparison-column--highlight li .fa-check {
    color: #86efac;
}

/* ============================================
   CTA SECTION - Matches Header/Footer
   ============================================ */

.cta-section {
    padding: 80px 20px;
    text-align: center;
    background: #2D2A4A; /* Matches footer */
    position: relative;
    overflow: hidden;
}

/* Subtle aurora glow in background */
.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Light variant for CTA section */
.cta-section--light {
    background: var(--bg-light);
}

.cta-section--light::before {
    background: radial-gradient(ellipse, rgba(108, 92, 231, 0.08) 0%, transparent 70%);
}

.cta-section--light h2 {
    color: var(--dark);
}

.cta-section--light p {
    color: var(--gray);
}

/* ============================================
   MOBILE NAV TOGGLE (Dark Header Variant)
   ============================================ */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* ============================================
   RESPONSIVE - INNER PAGES
   ============================================ */

@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .fluid-header .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(250, 250, 250, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

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

    .fluid-header .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .fluid-header .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        color: var(--dark);
    }

    .fluid-header .nav-cta {
        display: none;
    }

    .fluid-header .header-content {
        left: 20px;
        right: 20px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fluid-header {
        height: 350px;
    }

    .fluid-header .header-content {
        bottom: 40px;
    }

    .typewriter-container {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}

/* ===========================================
   BOOKING MODAL
   =========================================== */
.booking-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.booking-modal-overlay.active {
    display: flex;
}

.booking-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 850px;
    height: 85vh;
    max-height: 700px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.booking-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #666;
    transition: all 0.2s ease;
    z-index: 10;
}

.booking-modal__close:hover {
    background: var(--theme-glow);
    color: var(--theme);
}

.booking-modal__iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .booking-modal {
        width: 95%;
        height: 90vh;
        border-radius: 12px;
    }
}
