@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --primary: #00A8B5;
    /* Turquoise */
    --primary-dark: #008a95;
    --primary-light: #e6f7f8;
    --secondary: #8CC63F;
    /* Green */
    --secondary-dark: #7ab135;
    --secondary-light: #f4faeb;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;

    --glass: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.brand {
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    background: transparent;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: clamp(80px, 12vw, 180px);
    /* Balanced logo scaling */
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2.5px;
    background: var(--primary);
    margin: 5px 0;
    border-radius: 4px;
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    /* Ensure content starts at top after padding */
    justify-content: center;
    flex-direction: column;
    background: url('./assets/images/hero_bg.png') center/cover no-repeat;
    padding-top: clamp(140px, 20vw, 320px);
    padding-bottom: 80px;
    opacity: 1 !important;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: left;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 168, 181, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    color: var(--dark);
    margin-bottom: 2rem;
    letter-spacing: -3px;
    line-height: 1;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 650px;
    font-weight: 400;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: var(--light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* --- SECTIONS --- */
section {
    padding: 140px 0;
    scroll-margin-top: 180px;
}

.section-head {
    text-align: center;
    margin-bottom: 100px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    display: block;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    color: var(--dark);
    letter-spacing: -1.5px;
}

/* --- ABOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.feature-item i {
    color: var(--secondary);
    background: var(--secondary-light);
    padding: 12px;
    border-radius: 12px;
    flex-shrink: 0;
}

/* --- SERVICES --- */
.services-section {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: var(--radius);
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    font-size: 1.75rem;
}

/* --- PRODUCTS DESCRIPTION BOX --- */
.products-description-box {
    background: var(--white);
    padding: 6rem 4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    text-align: center;
    border: 1px solid rgba(0, 168, 181, 0.1);
}

.products-description-box .main-description {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.products-description-box .sub-description {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.product-tags {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    border-top: 1px solid #f1f5f9;
    padding-top: 3.5rem;
}

.product-tags span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--gray);
    font-size: 1.1rem;
}

.product-tags i {
    color: var(--secondary);
    width: 20px;
}

/* --- DIFFERENTIALS --- */
.differentials {
    background: var(--dark);
    border-radius: 4rem;
    padding: 120px 4rem;
    color: var(--white);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
}

.diff-item {
    text-align: center;
}

.diff-item i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    display: block;
}

.diff-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* --- CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.contact-card {
    background: var(--white);
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 168, 181, 0.05);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    width: 65px;
    height: 65px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.contact-card p {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.btn-text {
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-text:hover {
    gap: 0.75rem;
}

/* --- FOOTER --- */
footer {
    background: #0b111e;
    padding: 120px 0 60px;
    color: var(--white);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 6rem;
    margin-bottom: 80px;
}

.footer-brand img {
    height: 150px;
    margin-bottom: 3rem;
    background: white;
    /* Necessary since footer background is dark */
    padding: 15px;
    border-radius: 12px;
}

.footer-links h4 {
    margin-bottom: 2.5rem;
    font-size: 1.35rem;
}

.footer-links ul li {
    margin-bottom: 1.25rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 50px;
    text-align: center;
}

/* --- ANIMATIONS --- */
@keyframes revealItem {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-active {
    animation: revealItem 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- MOBILE NAV --- */
/* --- MOBILE NAV --- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-header img {
    height: 100px;
}

.close-menu {
    border: none;
    background: var(--secondary-light);
    color: var(--secondary-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.close-menu:active {
    transform: scale(0.9);
}

.mobile-nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 4rem;
    gap: 1.5rem;
}

.nav-item {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    opacity: 0;
    transform: translateX(30px);
}

.mobile-nav.active .nav-item {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger Animation */
.mobile-nav.active .nav-item:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav.active .nav-item:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-nav.active .nav-item:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav.active .nav-item:nth-child(4) {
    transition-delay: 0.4s;
}

.nav-item span {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    opacity: 0.5;
}

.nav-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 1.5rem 0;
}

.mobile-nav-footer {
    padding: 3rem 4rem;
    background: #f8fafc;
    text-align: center;
}

.mobile-nav-footer p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.mobile-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.mobile-socials i {
    width: 24px;
    color: var(--dark);
    transition: var(--transition);
}

.mobile-socials a:hover i {
    color: var(--primary);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {

    .about-grid,
    .footer-top {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .products-grid,
    .diff-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-image {
        order: 2;
    }

    .about-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .products-grid,
    .diff-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .cta-group {
        justify-content: center;
    }

    section {
        padding: 80px 0;
    }
}