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

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0fdfa;
}
::-webkit-scrollbar-thumb {
    background: #99f6e4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5eead4;
}

/* ===== Navigation ===== */
.nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(204, 251, 241, 0.5);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 20px rgba(13, 148, 136, 0.06);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #0d9488;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #0d9488;
    color: white;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #0d9488;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
    background: #0f766e;
    border-color: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #0d9488;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #99f6e4;
}

.btn-secondary:hover {
    background: #f0fdfa;
    border-color: #14b8a6;
    transform: translateY(-2px);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #0d9488;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-white-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: white;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-white-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* ===== Input Fields ===== */
.input-field {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
}

.input-field::placeholder {
    color: #94a3b8;
}

.input-field:focus {
    border-color: #5eead4;
    background: white;
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.15);
}

/* ===== Hero Background Blobs ===== */
.hero-bg-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #99f6e4;
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #ccfbf1;
    bottom: -5%;
    left: -5%;
    animation-delay: -3s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #5eead4;
    top: 40%;
    left: 20%;
    animation-delay: -5s;
    opacity: 0.2;
}

@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); }
}

/* ===== Hero Badge ===== */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

/* ===== Hero Text Animations ===== */
.hero h1 {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.hero p {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

.hero .flex-col {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.8s;
}

.hero .mt-16 {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 1s;
}

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

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

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

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

.reveal.revealed:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal.revealed:nth-child(3) {
    transition-delay: 0.2s;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 400px;
    }
}

.mobile-link {
    display: block;
}

/* ===== Product Card Hover ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ===== Section Dividers ===== */
section + section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, #99f6e4, transparent);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Image Hover ===== */
img {
    transition: transform 0.5s ease;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem !important;
    }

    .blob {
        filter: blur(60px);
        opacity: 0.3;
    }

    .blob-1 {
        width: 300px;
        height: 300px;
    }

    .blob-2 {
        width: 250px;
        height: 250px;
    }

    .blob-3 {
        width: 150px;
        height: 150px;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem !important;
    }
}

/* ===== Print Styles ===== */
@media print {
    .nav, .mobile-menu, .animate-bounce {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
