:root {
    /* Colors */
    --primary-color: #84C040;
    /* Principale Green */
    --primary-light: #A3D968;
    --secondary-color: #00B0EB;
    /* Cyan/Blue */
    --secondary-dark: #008CB9;
    --accent-color: #FC5200;
    /* Orange */
    --text-color-dark: #1F2937;
    --text-color-light: #F3F4F6;
    --text-muted: #6B7280;
    --bg-white: #FFFFFF;
    --bg-off-white: #F9FAFB;
    --bg-dark: #111827;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    /* Navbar height offset handled by padding or just allowing full bleed */
}

.hero-video-wrapper {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay darkness increased for better text visibility */
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;

    /* Force 16:9 aspect ratio coverage */
    @media (min-aspect-ratio: 16/9) {
        height: 56.25vw;
    }

    @media (max-aspect-ratio: 16/9) {
        width: 177.78vh;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    /* Account for fixed navbar */
    max-width: 1200px;
    /* Move content up slightly */
    transform: translateY(-40px);
}

.hero-subtitle {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 3.5rem;
    /* Large Addepto style */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* Hero Footer Services */
.hero-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 24, 39, 1);
    /* Dark background */
    z-index: 2;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    /* Hide on mobile to prevent overlap */
    @media (max-width: 768px) {
        display: none;
    }
}

.hero-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.hero-footer-item {
    color: white;
    padding: 0 1rem;
}

.hero-footer-item h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hero-footer-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.branding-border {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .branding-border {
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem 0;
        margin: 1rem 0;
    }
}

/* Navigation */
.navbar {
    position: absolute;
    /* Changed from fixed to absolute to sit on top of video without background scrolling issue (for now) */
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    /* Transparent background */
    z-index: 1000;
    /* Removed box-shadow */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    /* Slight increase for better spacing */
}

.logo {
    display: flex;
    align-items: center;
    /* Remove text properties if using image only, but if keeping text: */
    /* color: white; */
}

.logo img {
    height: 40px;
    /* Keep consistent */
    width: auto;
    filter: brightness(0) invert(1);
    /* Make logo white if it's black/colored */
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    /* Center align items vertically */
}

.nav-link {
    font-weight: 500;
    color: white;
    /* White text */
    opacity: 0.9;
    font-size: 1.05rem;
}

.nav-link:hover {
    color: var(--secondary-color);
    opacity: 1;
}

/* New Menu Selection Button */
.btn-nav-cta {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50px;
    /* Pill shape */
    padding: 0.6rem 2rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-nav-cta:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 176, 235, 0.3);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    cursor: pointer;
    color: white;
    /* White icon */
    border: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu implementation would need darker background */
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Smartphone Mockup */
.smartphone-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    /* Ensure absolute children are positioned relative to this */
}

.smartphone-frame {
    position: relative;
    width: 300px;
    height: 600px;
    background: #1f1f1f;
    /* Dark bezel */
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 12px solid #1f1f1f;
    overflow: hidden;
}

/* Optional: Top notch/camera area simulation */
.smartphone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #1f1f1f;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 2;
}

.smartphone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: white;
    /* Fallback */
}

/* Hector Product Section Grid */
.hector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .hector-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Center text on mobile for better look */
    .hector-grid>div:first-child {
        text-align: center;
        /* Ensure text comes first naturally in HTML flow */
    }

    .hector-grid ul {
        text-align: left;
        display: inline-block;
    }
}

/* Team Section */
.team-grid {
    display: grid;
    gap: 2rem;
}

.team-member {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: #ddd;
    border-radius: 50%;
    background-size: cover;
    flex-shrink: 0;
    /* Prevents avatar from squishing on mobile */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}