/* Theme Variables from theme.json */
:root {
    /* Colors */
    --color-primary: #34B8C1;
    --color-primary-dark: #27949C;
    --color-primary-light: #6DD6DC;
    --color-accent: #FF6B35;
    --color-bg: #F7F9FA;
    --color-surface: #FFFFFF;
    --color-error: #E53E3E;
    --color-warning: #F2A900;
    --color-success: #2F9E44;
    --text-primary: #0F1720;
    --text-secondary: #5B6B73;
    --color-border: #E1E6E8;
    
    /* Typography */
    --font-family: Inter, Helvetica, Arial, sans-serif;
    
    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(13, 30, 35, 0.06);
    --shadow-md: 0 6px 18px rgba(13, 30, 35, 0.08);
    --shadow-lg: 0 10px 40px rgba(13, 30, 35, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    /* font-family: var(--font-family); */
    background: var(--color-bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

/* Ensure all elements are responsive */
* {
    max-width: 100%;
}

/* Mobile-first responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent horizontal scroll */
/* body, html {
    overflow-x: hidden;
} */

/* Ensure proper touch targets on mobile */
@media (max-width: 768px) {
    a, button, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Fix for mobile viewport */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 0 2rem; */
}


.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 101;
}

.brand-name {
    font-size: 1.25rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
}


/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-primary);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(52, 184, 193, 0.95) 0%, rgba(109, 214, 220, 0.9) 100%);
    backdrop-filter: blur(10px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.mobile-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.05rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(52, 184, 193, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 184, 193, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}

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

.btn-outline-white {
    background: transparent;
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 5rem 0 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #E0F7F8 0%, #B3FBFD 50%, #E0F7F8 100%);
    z-index: -1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(52, 184, 193, 0.03) 30px, rgba(52, 184, 193, 0.03) 60px);
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(109, 214, 220, 0.3) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Services Overview */
.services-overview {
    padding: 5rem 0;
    background: var(--color-surface);
}

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

.service-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.service-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.service-link:hover {
    color: var(--color-primary-dark);
    transform: translateX(5px);
    display: inline-block;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.05) 20px, rgba(255,255,255,0.05) 40px);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta .btn-primary {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 48px;
    width: auto;
    max-width: 200px;
    min-width: 120px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-brand-name {
    font-size: 1.25rem;
    
    color: white;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        /* padding: 0 1.5rem; */
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        /* padding: 0 1.25rem; */
    }
    
 
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }

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

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .brand {
        gap: 0.5rem;
    }

    .brand svg {
        width: 28px;
        height: 28px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .mobile-menu-toggle {
        display: flex;
        width: 40px;
        height: 40px;
    }

    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand {
        gap: 0.4rem;
    }

    .brand svg {
        width: 24px;
        height: 24px;
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .brand svg {
        width: 20px;
        height: 20px;
    }

    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }

    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon svg,
    .point-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .cta,
    .footer {
        display: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Popup styles moved to public/css/common_components/popup/popup.css */
a{
    text-decoration: none;  
    color: inherit;
}