/* Modern Minimal Design System - App-Like Feel */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* Color Palette - Deep Ocean & Clean White */
    --primary-color: #0f172a;
    /* Slate 900 */
    --secondary-color: #0ea5e9;
    /* Sky 500 */
    --accent-color: #f59e0b;
    /* Amber 500 */

    --surface-color: #ffffff;
    --bg-color: #f8fafc;
    /* Slate 50 */
    --border-color: #e2e8f0;
    /* Slate 200 */

    --text-heading: #0f172a;
    --text-body: #334155;
    /* Slate 700 */
    --text-muted: #64748b;
    /* Slate 500 */

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Interface */
    --container-width: 1200px;
    --border-radius: 20px;
    /* Soft app-like corners */
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing - Compact */
    --section-spacing: 3rem;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-spacing) 0;
}

/* Responsive Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.col-3 {
    grid-column: span 3;
}

.col-4 {
    grid-column: span 4;
}

.col-6 {
    grid-column: span 6;
}

.col-8 {
    grid-column: span 8;
}

.col-12 {
    grid-column: span 12;
}

@media (max-width: 1024px) {
    .col-3 {
        grid-column: span 4;
    }

    .col-4 {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .grid {
        gap: 1rem;
    }

    .col-3,
    .col-4,
    .col-6,
    .col-8 {
        grid-column: span 12;
    }

    /* Mobile Typography */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }
}

/* App-Like Header - Sticky & Minimal*/
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu .show-mobile {
    display: none;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-heading);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary-color);
}

/* Mobile Menu Toggle (Hidden on Desk) */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 1.5rem;
        text-align: center;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .nav-menu .show-mobile {
        display: block;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    .mobile-toggle {
        display: block;
    }

    /* Header action also needs to appear in menu if needed, or hide */
    .header-actions {
        display: none;
    }

    .header-actions.show-mobile {
        display: block;
        margin-top: 1rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.pulse-effect {
    animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
}

/* Hero Section - Compact & Immersive */
.hero-wrapper {
    position: relative;
    height: 60vh;
    /* Reduced height */
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 1rem;
    /* Gap below hero */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-lead {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Card Design - Minimal & Clean */
.feature-card,
.blog-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover,
.blog-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--card-shadow);
    transform: translateY(-3px);
}

/* Blog/Product Cards specific */
.blog-card {
    padding: 0;
    /* Image needs full width */
    overflow: hidden;
    border: none;
    /* Cleaner look */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blog-thumb {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}

.blog-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* App-Like Mobile Grid Overrides */
@media (max-width: 768px) {
    .mobile-2col .col-4 {
        grid-column: span 6 !important;
    }

    .mobile-2col .blog-thumb {
        height: 140px;
        /* Smaller images for 2-col */
    }

    .mobile-2col .blog-body {
        padding: 0.75rem;
    }

    .mobile-2col .blog-title {
        font-size: 0.9rem;
    }
}

.read-more {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Footer - Simple & functional */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 2rem;
}

/* Badges */
.badge {
    padding: 0.25em 0.75em;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-blue {
    background: #e0f2fe;
    color: #0284c7;
}

.badge-amber {
    background: #ffedd5;
    color: #d97706;
}

/* Mobile Optimization Tweaks */
@media (max-width: 768px) {
    .section-padding {
        padding: 2rem 0;
    }

    .hero-wrapper {
        height: auto;
        padding: 4rem 0;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-bg {
        height: 100%;
    }

    /* Make grids strict 1 column with spacing */
    .feature-card,
    .blog-card {
        margin-bottom: 1rem;
    }

    /* Buttons full width on mobile */
    .hero-content .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-content div {
        flex-direction: column;
    }
}