:root {
    color-scheme: dark;
    /* Color Palette - Bluish Theme */
    --color-bg-dark: #0f1626;
    --color-bg-light: #162238;
    --color-primary: #3984c8;
    --color-primary-hover: #29669f;
    --color-secondary: #5ca1d4;
    --color-accent: #93c9ed;
    --color-text-main: #f8fafc;
    --color-text-muted: #aab5c6;
    
    /* Glassmorphism */
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(56, 189, 248, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark); /* Solid fallback */
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Fix iOS Safari Bug: Animated gradients on body break backdrop-filter */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(-45deg, #070f20, #0f1626, #09132b, #11203b);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

.highlight {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--color-text-main);
}

/* Background Animated Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.6;
    animation: float-shape 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform: translateZ(0); /* Hardware acceleration for Safari */
}

/* Greenscreen Canvas (removed) */

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -150px;
    left: -150px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    bottom: -100px;
    right: -150px;
    animation-delay: -5s;
    animation-duration: 22s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: #2a5285;
    top: 30%;
    left: 50%;
    animation-duration: 25s;
    animation-delay: -10s;
}

@keyframes float-shape {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(80px, 50px) scale(1.15) rotate(45deg); }
    66% { transform: translate(-40px, 80px) scale(0.9) rotate(90deg); }
    100% { transform: translate(-60px, -30px) scale(1.05) rotate(180deg); }
}

/* UI Components */
.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--color-accent);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Floating Card / Glassmorphism */
.floating-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: var(--transition);
}

.floating-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(7, 15, 32, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.nav-logo .logo-icon {
    width: 140px;
    height: 140px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.nav-logo .logo-icon img {
    transform: scale(1.5);
    transform-origin: left center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-text span {
    font-weight: 400;
    color: var(--color-accent);
    display: block;
    font-size: 0.8rem;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav-links:hover::after, .nav-links.active::after {
    width: 100%;
}

.btn-contact {
    background: rgba(59, 130, 246, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.btn-contact::after { display: none; }
.btn-contact:hover {
    background: var(--color-primary);
    color: white;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: white;
    transition: var(--transition);
}

/* SPA Architecture */
#app-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Fix iOS 100vh issue */
@supports (-webkit-touch-callout: none) {
    #app-container {
        min-height: -webkit-fill-available;
    }
}

.page-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
    z-index: 1;
}

/* Fix iOS 100vh issue for sections */
@supports (-webkit-touch-callout: none) {
    .page-section {
        min-height: 0;
    }
}

.page-section.active {
    min-height: 100vh;
    height: auto;
    padding: 8rem 2rem 4rem;
    overflow: visible;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
    position: relative;
}

@supports (-webkit-touch-callout: none) {
    .page-section.active {
        min-height: -webkit-fill-available;
    }
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* Hero Section */
.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-top: 2rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.feature-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.icon-box img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: invert(1);
}

.pricing-hint {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.5), rgba(30, 58, 138, 0.3));
    border-left: 4px solid var(--color-primary);
}

.pricing-hint h3 {
    margin-bottom: 0.75rem;
}

.pricing-hint p {
    margin: 0 0 0.5rem;
}

/* Grid Layouts */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Lists styling */
ul {
    list-style: none;
}

.services-list ul li, .documents-list ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--color-text-main);
}

.documents-list {
    display: flex;
    flex-direction: column;
}

.documents-list .btn {
    margin-top: auto;
}

.services-list ul li i, .documents-list ul li i {
    color: var(--color-accent);
    margin-top: 0.25rem;
}

.pricing-info, .pricing-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.pricing-info p {
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

/* Private Section */
.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.price-value {
    font-weight: 700;
    color: var(--color-accent);
}

.compact-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.compact-list li i { color: var(--color-primary); font-size: 0.8rem; }

.scrollable-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.scrollable-list::-webkit-scrollbar {
    width: 6px;
}
.scrollable-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.scrollable-list::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

.checklist-card {
    display: flex;
    flex-direction: column;
}

.checklist-card .btn {
    margin-top: auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}


.owner-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
}
.owner-info strong { font-size: 1.2rem; color: var(--color-accent); }
.owner-info span { color: var(--color-text-muted); font-size: 0.9rem; }

.image-placeholder {
    height: 400px;
    background: linear-gradient(45deg, var(--color-bg-light), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.glass-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 1rem;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.about-photo {
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
}

.about-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.experience-badge {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    min-width: 120px;
    padding: 2.05rem 1.35rem;
    border-radius: 16px;
    background: #1b5aa8;
    color: #ffffff;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.experience-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.experience-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.partner-card {
    text-align: center;
    display: block;
}

.partner-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.partner-card h4 {
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.partner-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.info-item {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-accent);
    flex-shrink: 0;
}

.info-item p { margin: 0; font-size: 0.9rem; }
.info-item strong { display: block; margin-bottom: 0.25rem; }

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-terms {
    margin-bottom: 1.5rem;
}

.form-group-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.form-status:empty {
    display: none;
}

.form-status.is-success {
    color: #86efac;
}

.form-status.is-error {
    color: #fca5a5;
}

.btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    background: rgba(7, 15, 32, 0.6);
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.85rem;
    width: 100%;
    margin-top: 2.5rem;
}

.footer-contact {
    text-align: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    flex: 1;
    justify-content: center;
    text-align: center;
}

.footer-info:last-child {
    margin-bottom: 0;
}

.footer-info-icon {
    width: 63px;
    height: 63px;
    flex-shrink: 0;
}

.footer-info-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer-info-text h4 {
    margin-bottom: 0.5rem;
}

.footer-info-text {
    text-align: center;
}

.footer-info-text p {
    text-align: center;
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    margin-right: 0.35rem;
    color: var(--color-accent);
}

.footer-sep {
    color: var(--color-text-muted);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: min(960px, calc(100% - 2rem));
    background: rgba(7, 15, 32, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-content p {
    margin: 0;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.footer-contact h4 {
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
    font-family: var(--font-heading);
}

.footer-contact p {
    margin: 0 0 0.75rem;
}

.copyright {
    font-size: 0.875rem;
    margin: 0;
    text-align: center;
}

/* Animations & Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 992px) {
    .content-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(7, 15, 32, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
    }
    
    .bg-shape {
        filter: blur(60px); /* Reduce blur intensity on mobile */
        opacity: 0.15; /* Drastically reduce opacity to prevent white-out on HDR/OLED iPhones */
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    
    .page-section {
        padding: 6rem 1rem 3rem;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-contact {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-sep {
        display: none;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .experience-badge {
        left: 1rem;
        bottom: 1rem;
        min-width: 110px;
        padding: 1.86rem 1.15rem;
    }

    .experience-value {
        font-size: 2rem;
    }

    .experience-label {
        font-size: 0.66rem;
    }
}
