/* =========================================
   SENIOR-LEVEL DESIGN SYSTEM
   Vibrant, Accessible, & Animated
   ========================================= */
:root {
    /* Vibrant Color Palette */
    --primary: #0d9488;       /* Vibrant Teal */
    --primary-dark: #0f766e;  /* Deep Teal */
    --primary-light: #ccfbf1; /* Light Teal Tint */
    --accent: #f97316;        /* Vibrant Coral/Orange for high-conversion CTAs */
    --accent-hover: #ea580c;
    --bg-base: #fdfbf7;       /* Warm, premium off-white */
    --bg-card: rgba(255, 255, 255, 0.85);
    --text-main: #0f172a;     /* Deep Slate */
    --text-muted: #475569;
    --border-light: rgba(255, 255, 255, 0.6);
    
    /* Advanced Shadows & Radii */
    --shadow-soft: 0 4px 6px -1px rgba(13, 148, 136, 0.05), 0 2px 4px -1px rgba(13, 148, 136, 0.03);
    --shadow-hover: 0 20px 40px -5px rgba(13, 148, 136, 0.15), 0 10px 20px -5px rgba(13, 148, 136, 0.1);
    --shadow-accent: 0 10px 25px -5px rgba(249, 115, 22, 0.4);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-pill: 999px;
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.75;
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.04) 0%, transparent 40%);
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
a:hover { color: var(--primary-dark); }

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* =========================================
   ADVANCED BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy, premium feel */
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 35px -5px rgba(249, 115, 22, 0.5);
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
    text-decoration: none;
}

.btn-large { padding: 1.1rem 2.5rem; font-size: 1.1rem; }

/* =========================================
   HEADER & GLASSMORPHISM
   ========================================= */
.site-header {
    background-color: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-size: clamp(1.4rem, 4vw, 1.6rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.logo span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav ul { display: flex; list-style: none; padding: 0; margin: 0; gap: 2.5rem; }
.main-nav a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.main-nav a:hover { color: var(--primary); text-decoration: none; }
.main-nav a:hover::after { width: 100%; }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
}

.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    position: absolute;
    transition: all 0.3s ease;
}
.hamburger { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.hamburger::before { content: ''; top: -8px; }
.hamburger::after { content: ''; top: 8px; }

.mobile-menu-toggle[aria-expanded="true"] .hamburger { background-color: transparent; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg); top: 0; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg); top: 0; }

/* =========================================
   HERO SECTION (Animated Mesh)
   ========================================= */
.hero-section {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 8rem 1rem 10rem;
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 15% 30%, #0f766e 0%, transparent 50%),
        radial-gradient(circle at 85% 60%, #0d9488 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #115e59 0%, transparent 60%);
    z-index: -1;
    animation: meshMove 15s ease-in-out infinite alternate;
}

@keyframes meshMove {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content { position: relative; z-index: 1; max-width: 850px; }

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

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

/* =========================================
   ARTICLE SECTION (Floating Card & Animations)
   ========================================= */
.article-section {
    padding: 5rem 0;
    margin-top: -5rem; /* Overlap effect */
    position: relative;
    z-index: 2;
}

.blog-content {
    max-width: 850px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
}

.blog-content h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: var(--primary-dark);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-light);
    display: inline-block;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.blog-content h2:first-of-type { margin-top: 0; }

.blog-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-muted);
}

.blog-content .text-link {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px dashed var(--primary-light);
    transition: all 0.3s ease;
}

.blog-content .text-link:hover {
    border-bottom-style: solid;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    text-decoration: none;
}

/* Custom Vibrant Lists */
.blog-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
    display: grid;
    gap: 0.85rem;
}

.blog-content li {
    position: relative;
    padding-left: 2.5rem;
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.6;
}

.blog-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.blog-content li strong { color: var(--text-main); font-weight: 700; }

/* =========================================
   CONTACT SECTION (Dark Contrast & Glow)
   ========================================= */
.contact-section {
    padding: 6rem 0;
    background-color: var(--primary-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}

.contact-wrapper { position: relative; z-index: 1; text-align: center; }

.contact-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.contact-header p {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #fff;
    font-weight: 700;
}

.contact-item p, .contact-item a {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.contact-item a:hover { color: var(--accent); text-decoration: none; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: #0c4a44;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 3.5rem 0;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.footer-brand { font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.site-footer a { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.site-footer a:hover { color: var(--accent); }

/* =========================================
   SCROLL TO TOP BUTTON
   ========================================= */
.scroll-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background-color: var(--primary);
    color: #fff;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--accent);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.5);
}

/* =========================================
   SCROLL ANIMATIONS (Intersection Observer)
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(13, 148, 136, 0.1);
    }

    .main-nav.active {
        display: block;
        animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .main-nav ul { flex-direction: column; gap: 1.25rem; text-align: center; }
    .header-cta { display: none; }
    
    .hero-section { padding: 6rem 1rem 8rem; }
    .article-section { margin-top: -3rem; }
    .blog-content { padding: 2rem 1.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
}