/* Custom Styles for Robo Home Care */

:root {
    --primary: #e6c99f;
    --background: #1C1C1C;
    --surface: #2A2A2A;
    --on-background: #FFFFFF;
    --on-surface: #D2C4B8;
    --accent-brown: #47413b;
}

.max-w-container-max {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.px-margin-desktop {
    padding-left: 8%;
    padding-right: 8%;
}

@media (max-width: 1024px) {
    .px-margin-desktop {
        padding-left: 5%;
        padding-right: 5%;
    }
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--on-background);
    background-color: var(--background);
}

.glass-card {
    background: rgba(42, 42, 42, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header Adjustments */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(28, 28, 28, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Hero Typography */
h1 {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.05em;
}

/* Statistic Columns */
.stat-col {
    position: relative;
}

.stat-col::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A38662;
}

/* Custom Hamburger */
.hamburger {
    cursor: pointer;
    display: none; /* Hidden by default, shown on mobile */
    border: 0;
    background: transparent;
    padding: 10px;
    z-index: 101;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: #fff;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before {
    content: "";
    top: -8px;
}

.hamburger-inner::after {
    content: "";
    top: 8px;
}

/* Active State for Hamburger */
.hamburger.active .hamburger-inner {
    background-color: transparent;
}

.hamburger.active .hamburger-inner::before {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active .hamburger-inner::after {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.mobile-menu a, .mobile-link {
    font-size: 20px; /* Reduced from 28px */
    font-family: 'Noto Serif', serif;
    color: white;
    margin: 8px 0;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-menu a:hover, .mobile-link:hover {
    color: var(--primary);
}

.mobile-accordion-content.active, .mobile-sub-accordion-content.active {
    display: block !important;
    animation: fadeIn 0.4s ease forwards;
}

.mobile-link .material-symbols-outlined.rotate {
    transform: rotate(180deg);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    :root {
        --margin-mobile: 4%;
    }

    h1 { font-size: 32px !important; line-height: 1.2 !important; }
    h2 { font-size: 26px !important; line-height: 1.3 !important; }
    h3 { font-size: 22px !important; }
    h4 { font-size: 20px !important; }
    p { font-size: 14px !important; line-height: 1.6 !important; }
    
    .text-lg { font-size: 16px !important; }
    .text-xl { font-size: 18px !important; }
    .text-2xl { font-size: 20px !important; }
    
    /* Component Scaling */
    .py-20 { py-12 !important; }
    .py-32 { py-16 !important; }
    .px-margin-desktop { px-margin-mobile !important; }
    
    .h-20 { height: 60px !important; width: 60px !important; } /* Logo reduction */
    
    /* Navigation Adjustments */
    header nav { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    
    /* Hero Adjustments */
    .hero-title { font-size: 36px !important; }
    .hero-subtitle { font-size: 14px !important; }

    /* Reduce hero padding when top bar is hidden on mobile */
    section[class*="pt-[180px]"], 
    section[class*="pt-[200px]"],
    section[class*="pt-[140px]"] {
        padding-top: 100px !important;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in-left {
    opacity: 0;
    animation: fadeInLeft 0.8s ease forwards;
}
