/* ===== Base & Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #7ED4C1;
    color: #0A1F44;
}

/* ===== Buttons ===== */
.btn-primary {
    background: #0A1F44;
    color: #ffffff;
    border: 2px solid #0A1F44;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0F2D5E;
    border-color: #0F2D5E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 31, 68, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #0A1F44;
    border: 2px solid #0A1F44;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #0A1F44;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 31, 68, 0.2);
}

/* ===== Navigation ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7ED4C1;
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* Mobile menu */
.mobile-link {
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #7ED4C1;
}

/* ===== Hero ===== */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #DCF5EB;
    top: -100px;
    left: -100px;
    opacity: 0.5;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #BCECD9;
    bottom: -50px;
    right: 20%;
    opacity: 0.3;
    animation-delay: -4s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Floating cards */
.floating-card {
    animation: floatCard 4s ease-in-out infinite;
}

.card-1 {
    animation-delay: -1s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Hero photo grid */
.hero-photo-grid {
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-headline {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #7ED4C1, transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== About Section ===== */
.about-photo-wrap {
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== Service Cards ===== */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ===== Process Steps ===== */
.process-step {
    animation: fadeInUp 0.6s ease-out both;
}

.process-step:nth-child(2) { animation-delay: 0.1s; }
.process-step:nth-child(3) { animation-delay: 0.2s; }
.process-step:nth-child(4) { animation-delay: 0.3s; }

/* ===== Testimonials ===== */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 31, 68, 0.1);
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Back to Top ===== */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

/* ===== Navbar Scroll State ===== */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(10, 31, 68, 0.08);
}

/* ===== Mobile Menu ===== */
#mobileMenu.open {
    transform: translateX(0);
}

/* ===== Form Styles ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230A1F44' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-photo-grid {
        margin-top: 3rem;
    }

    .hero-photo-grid > div:first-child > div:first-child {
        width: 100% !important;
        max-width: 320px;
        margin: 0 auto;
    }

    .floating-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: 1rem;
        margin-left: 1rem;
        animation: none;
    }

    .about-photo-wrap > div:first-child {
        max-width: 100% !important;
    }

    .about-photo-wrap > div:last-child {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-top: 1rem;
        margin-left: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.5rem !important;
    }

    .hero-headline span:last-child {
        font-size: 1.5rem !important;
    }
}

/* ===== Print ===== */
@media print {
    nav, #backToTop, .scroll-line { display: none; }
    section { page-break-inside: avoid; }
}
