/* ===== COLOR PALETTE - Sapphire Stream Whisper ===== */
:root {
    --color-darkest: #33343B;
    --color-dark: #2E5080;
    --color-medium: #749DD0;
    --color-soft: #92AAD1;
    --color-pale: #B3CED6;
    --color-light: #CFE7F8;
    --color-accent: #D3045D;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', system-ui, sans-serif;
    color: var(--color-darkest);
    background: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body.loading {
    overflow: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(135deg, var(--color-light) 0%, #ffffff 100%);
    opacity: 1;
    transition: opacity 0.6s ease;
}

.animated-background.fade-out {
    opacity: 0;
    pointer-events: none;
}

#fabric-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== STICKY HEADER ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(146, 170, 209, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
}

.main-header.visible {
    opacity: 1;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(72, 84, 124, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.3rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.header-logo img {
    height: 49px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    text-decoration: none;
    color: var(--color-darkest);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

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

.nav-item:hover {
    color: var(--color-medium);
}

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

.nav-item.help-btn {
    background: var(--color-dark);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-item.help-btn::after {
    display: none;
}

.nav-item.help-btn:hover {
    background: var(--color-medium);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(116, 157, 208, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-darkest);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

/* ===== PAGE CONTENT ===== */
#page-content {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

/* ===== FLOATING NAVIGATION ===== */
.floating-nav {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-nav.visible {
    opacity: 1;
}

.floating-nav .nav-link {
    position: relative;
    width: 12px;
    height: 12px;
    border: 2px solid var(--color-dark);
    border-radius: 50%;
    background: transparent;
    text-indent: -9999px;
    transition: all 0.3s ease;
}

.floating-nav .nav-link:hover,
.floating-nav .nav-link.active {
    background: var(--color-medium);
    border-color: var(--color-medium);
    transform: scale(1.3);
}

/* ===== PAGE VIEWS ===== */
.page-view {
    display: none;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.page-view.active {
    display: block;
}

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

/* ===== SECTIONS ===== */
.section {
    min-height: 100vh;
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-darkest);
}

/* ===== SERVICES PAGE ===== */
.svc-page-header {
    padding: 9rem 2rem 4rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(146, 170, 209, 0.2);
}

.svc-section {
    padding: 4rem 2rem;
}

.svc-section:nth-child(even) {
    background: rgba(255,255,255,0.45);
}

.svc-icon-col {
    display: flex;
    justify-content: center;
}

.svc-icon-block {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: var(--color-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(46, 80, 128, 0.25);
}

.svc-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-darkest);
    margin-bottom: 0.6rem;
}

.svc-lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 1rem;
    font-style: italic;
}

.svc-body {
    color: #444;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.svc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
}

.svc-list li {
    color: var(--color-darkest);
    font-weight: 500;
    font-size: 0.95rem;
    padding-left: 1.2rem;
    position: relative;
}

.svc-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-medium);
    font-weight: 700;
}

.svc-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(116, 157, 208, 0.35), transparent);
    margin: 0 2rem;
}

.svc-cta {
    padding: 5rem 2rem;
    background: var(--color-dark);
    color: #fff;
}

.svc-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.svc-cta p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.svc-cta .hero-btn {
    background: #fff;
    color: var(--color-dark);
    border-color: #fff;
}

.svc-cta .hero-btn:hover {
    background: var(--color-light);
    border-color: var(--color-light);
    color: var(--color-dark);
}

@media (max-width: 991px) {
    .svc-icon-col {
        justify-content: flex-start;
    }
}

/* ===== PAGE-SPECIFIC STYLING ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-medium);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--color-dark);
    transform: translateX(-5px);
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-darkest);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 2rem;
}

.services-page,
.team-page,
.help-page,
.contact-page {
    padding-top: 8rem;
    min-height: 100vh;
}

.help-card-large {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(146, 170, 209, 0.4);
    transition: all 0.3s ease;
    height: 100%;
}

.help-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(72, 84, 124, 0.25);
    border-color: var(--color-medium);
    background: rgba(255, 255, 255, 0.95);
}

.help-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.help-card-large h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-darkest);
}

.help-card-large p {
    color: var(--color-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.help-card-large .help-link {
    color: var(--color-medium);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.help-card-large .help-link:hover {
    color: var(--color-dark);
    transform: translateX(5px);
}

.help-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.help-contact-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.help-contact-item i {
    font-size: 1.1rem;
    color: var(--color-medium);
    width: 1.25rem;
    text-align: center;
}

.help-contact-item:hover {
    color: var(--color-darkest);
    transform: translateX(4px);
}


/* ===== HERO SECTION ===== */
.hero-section {
    background: transparent;
}

.logo-section {
    text-align: center;
    margin-bottom: 3rem;
}

.main-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.slogan {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-dark);
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-btn:not(.hero-btn-outline) {
    background: var(--color-dark);
    color: #fff;
    border: 2px solid var(--color-dark);
}

.hero-btn:not(.hero-btn-outline):hover {
    background: var(--color-darkest);
    border-color: var(--color-darkest);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(51, 52, 59, 0.4);
}

.hero-btn-outline {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    color: var(--color-darkest);
    border: 2px solid var(--color-medium);
}

.hero-btn-outline:hover {
    background: var(--color-medium);
    color: #fff;
    border-color: var(--color-medium);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(116, 157, 208, 0.4);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    min-height: auto;
    padding: 6rem 2rem;
    background: transparent;
}

.about-statement {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.about-statement p {
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-darkest);
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: transparent;
}

.service-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(146, 170, 209, 0.4);
}

.service-card[data-page] {
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(72, 84, 124, 0.25);
    border-color: var(--color-medium);
    background: rgba(255, 255, 255, 0.95);
}

.card-learn-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-medium);
    font-weight: 500;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.service-card:hover .card-learn-more {
    transform: translateX(4px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-darkest);
}

.service-card p {
    color: var(--color-dark);
    line-height: 1.8;
}

/* ===== TEAM SECTION ===== */
.team-section {
    background: transparent;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.team-intro .lead {
    font-size: 1.25rem;
    color: var(--color-dark);
    line-height: 1.8;
}

.team-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(179, 206, 214, 0.4);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(72, 84, 124, 0.25);
    background: rgba(255, 255, 255, 0.9);
}

.team-avatar {
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto;
    border: 3px solid var(--color-medium);
}

.team-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-darkest);
}

.team-role {
    color: var(--color-medium);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-card p {
    color: var(--color-dark);
    line-height: 1.8;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: transparent;
}

.contact-info {
    padding-right: 2rem;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-darkest);
}

.contact-info .lead {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-medium);
    color: #fff;
    border-radius: 8px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--color-darkest);
}

.contact-item p {
    margin: 0;
    color: var(--color-dark);
}

.contact-item p a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item p a:hover {
    color: var(--color-medium);
    text-decoration: underline;
}

.contact-form {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(72, 84, 124, 0.2);
    border: 1px solid rgba(146, 170, 209, 0.4);
}

.contact-form .form-control {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--color-medium);
    box-shadow: 0 0 0 0.2rem rgba(116, 157, 208, 0.25);
}

/* ===== HELP SECTION ===== */
.help-section {
    background: var(--color-darkest);
    color: #fff;
}

.help-section .section-title {
    color: #fff;
}

.help-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(116, 157, 208, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.help-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-medium);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(116, 157, 208, 0.3);
}

.help-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.help-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.help-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.help-link:hover {
    color: #fff;
    transform: translateX(5px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-dark);
    color: #fff;
    padding: 3rem 2rem;
}

.footer-logo {
    max-width: 200px;
    height: auto;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
    .section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .main-logo {
        max-width: 300px;
    }

    .slogan {
        font-size: 1.2rem;
    }

    .floating-nav {
        display: none;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .footer-links {
        justify-content: flex-start;
    }

    /* Mobile header */
    .header-nav {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(146, 170, 209, 0.2);
        box-shadow: 0 4px 12px rgba(72, 84, 124, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .header-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
    }

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

    .nav-item.help-btn {
        margin: 1rem 2rem;
        width: calc(100% - 4rem);
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 3rem 1rem;
        min-height: auto;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .main-logo {
        max-width: 250px;
    }

    .slogan {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}
