/* Google Fonts - Premium Selection */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Modern Color Palette */
    --primary: #0891b2;
    /* Cyan-700 - Deep Rich Teal */
    --primary-light: #06b6d4;
    /* Cyan-500 */
    --primary-dark: #155e75;
    /* Cyan-900 */

    --secondary: #3b82f6;
    /* Blue-500 */
    --accent-light: #e0f2fe;
    /* Blue-50 for subtle backgrounds */

    --bg-body: #f8fafc;
    /* Slate-50 */
    --bg-white: #ffffff;
    --bg-surface: #f1f5f9;
    /* Slate-100 */

    --text-main: #0f172a;
    /* Slate-900 */
    --text-muted: #64748b;
    /* Slate-500 */
    --text-light: #cbd5e1;
    /* Slate-300 */

    /* Metrics */
    --container-width: 1280px;
    --header-height: 90px;
    --radius-sm: 0.5rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;

    /* Premium Shadows */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.08);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 25px rgba(8, 145, 178, 0.2);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.grid {
    display: grid;
    gap: 2rem;
}

.flex {
    display: flex;
    align-items: center;
}

/* Animation Utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* Interactive Elements */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.text-primary {
    color: var(--primary);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.25rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background: transparent;
    border-color: var(--text-light);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

/* Default state: hidden on desktop */
.mobile-toggle {
    display: none;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.85rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.975rem;
    color: var(--text-muted);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: 8rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(8, 145, 178, 0.07), transparent 45%),
        radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.07), transparent 45%);
    background-color: var(--bg-body);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: rotate(2deg);
    object-fit: cover;
    height: 500px;
    width: 100%;
    transition: var(--transition);
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25), var(--shadow-glow);
}

/* Features / Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 1.2rem;
    background: var(--accent-light);
    border-radius: var(--radius);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Footer */
footer {
    background-color: var(--text-main);
    color: var(--bg-body);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    opacity: 0.8;
    font-size: 0.95rem;
    color: var(--text-light);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-light);
    transform: translateX(5px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    margin-top: 4rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Responsive */
/* Mobile Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-image {
        order: -1;
        animation: none;
    }

    .hero-image img {
        height: 350px;
        transform: none;
    }

    .hero-image img:hover {
        transform: none;
        box-shadow: var(--shadow-xl);
    }

    /* Mobile Menu */
    .nav-links {
        display: flex;
        /* Always display for transition */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);

        /* Animation Props */
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }

    .nav-links.active {
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateY(10px);
        transition: var(--transition);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered delay for list items */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-links a {
        padding: 1.25rem 2rem;
        display: block;
        text-align: left;
        color: var(--text-main);
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        font-size: 1.1rem;
    }

    .nav-links a.btn {
        margin: 1.5rem 2rem 2rem;
        /* Add margin for the button */
        text-align: center;
        width: calc(100% - 4rem);
        display: flex;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        color: var(--primary);
        background: var(--bg-surface);
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: none;
        background: transparent;
        color: var(--text-main);
        cursor: pointer;
        transition: var(--transition);
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-toggle:active {
        background: rgba(0, 0, 0, 0.05);
        transform: scale(0.95);
    }

    .feature-grid {
        margin-top: 2rem;
    }

    /* Reduce padding on mobile */
    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .flex {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

/* Helper Chasses */
.hidden {
    display: none !important;
}