/* ========================================================================= */
/* ===         MASTER STYLESHEET FOR RADAR AUTOMATION SYSTEMS            === */
/* ========================================================================= */

/* === 1. Global Variables & Base Styles === */
:root {
    /* Merged & Refined Variables */
    --brand-color: #34a953;
    --brand-color-dark: #2c9447;
    --brand-color-vibrant: #42f5b0;
    
    --color-heading: #1a202c;
    --color-text: #4a5568;
    --color-text-light: #a0aec0;
    
    --dark-bg: #0d1117;
    --light-bg: #f8f9fa;
    --color-white: #ffffff;
    --color-border: #e2e8f0;

    --font-primary: 'Manrope', sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-brand: 0 10px 25px -5px rgba(52, 169, 83, 0.2);

    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === 2. General Section & Element Styling === */
section {
    padding: 80px 0;
    overflow: hidden;
}

h2 {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    text-align: center;
    margin: 0 auto 60px auto;
    font-weight: 800;
    color: var(--color-heading);
    max-width: 800px;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text);
}

.highlight {
    color: var(--brand-color);
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-bg);
    background: var(--brand-color-vibrant);
    border-radius: 50px;
    text-decoration: none;
    box-shadow: var(--shadow-brand);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 30px rgba(66, 245, 176, 0.3);
}

.learn-more {
    color: var(--brand-color);
    text-decoration: none;
    font-weight: 700;
    margin-top: 1rem;
    display: inline-block;
}

/* === 3. Header & Navigation (Desktop & Mobile) === */
.site-header {
    position: fixed; /* Restored from original */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    background-color: var(--dark-bg);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.main-nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo img { 
    height: 50px; 
    transition: height 0.4s ease; 
}

.site-header.scrolled .logo img { 
    height: 40px; 
}

.nav-list { 
    display: flex; 
    align-items: center; 
    gap: 2.5rem; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}

.nav-list a { 
    color: var(--color-white); 
    text-decoration: none; 
    font-weight: 500; 
    position: relative; 
    padding-bottom: 5px; 
    transition: color 0.3s ease; 
}

.nav-list a:not(.nav-button)::after {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 2px;
    background-color: var(--brand-color); 
    transform: scaleX(0); 
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.nav-list a.active-nav:not(.nav-button),
.nav-list a:not(.nav-button):hover { 
    color: var(--brand-color-vibrant); 
}

.nav-list a.active-nav:not(.nav-button)::after,
.nav-list a:not(.nav-button):hover::after { 
    transform: scaleX(1); 
    transform-origin: bottom left; 
}

.nav-list .nav-button {
    padding: 10px 20px; 
    background-color: var(--brand-color); 
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-list .nav-button:hover { 
    background-color: var(--brand-color-vibrant); 
    color: var(--dark-bg); 
    transform: translateY(-2px); 
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9999;
}
.mobile-nav-toggle .material-symbols-outlined {
    position: absolute; inset: 0; font-size: 36px;
    color: var(--color-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-nav-toggle .icon-close { opacity: 0; transform: rotate(-45deg); }
.mobile-nav-toggle[aria-expanded="true"] .icon-hamburger { opacity: 0; transform: rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] .icon-close { opacity: 1; transform: rotate(0deg); }

/* === 4. Animated Hero Section === */
.hero-section { position: relative; height: 100vh; width: 100%; display: flex; justify-content: center; align-items: center; background-color: var(--dark-bg); }
.hero-section::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; box-shadow: inset 0 0 150px 50px rgba(0,0,0,0.5); }
#architectural-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.scene-container { position: relative; z-index: 10; display: flex; align-items: center; justify-content: center; perspective: 1200px; text-align: center; }
.central-hub { position: relative; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; transform-style: preserve-3d; }
.unfolder { position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background-color: var(--brand-color); box-shadow: 0 0 20px 2px var(--brand-color); transform: translateY(-50%) scaleY(0); z-index: 100; }
.hub-glow { position: absolute; width: 250px; height: 250px; background: radial-gradient(circle, rgba(52, 169, 83, 0.2) 0%, transparent 70%); border-radius: 50%; opacity: 0; }
.logo-anim { width: 60px; height: auto; flex-shrink: 0; filter: drop-shadow(0 0 25px var(--brand-color)); opacity: 0; margin-bottom: 20px; }
.hero-section .text-container { display: flex; flex-direction: column; align-items: center; padding: 0 1rem; }
.hero-section h1.main-title { font-family: 'Manrope', sans-serif; font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-white); margin: 0; }
.hero-section .subtitle { font-family: 'Manrope', sans-serif; font-size: clamp(0.85rem, 1.5vw, 1.1rem); font-weight: 400; color: #c0c0c0; margin: 15px 0 30px; max-width: 60ch; line-height: 1.6; opacity: 0; }
.char { display: inline-block; opacity: 0; transform: translateY(50%); }
.orbit-path { position: absolute; top: 55%; left: 45%; transform: translate(-50%, -50%); border-radius: 75%; z-index: 50; }
.icon-wrapper { position: absolute; top: 50%; left: 50%; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; opacity: 0; }
.icon-wrapper .material-symbols-outlined { font-size: 36px; color: var(--brand-color); transition: filter 0.3s ease, color 0.3s ease; }
.data-readout { position: absolute; top: 50%; left: 110%; transform: translateY(-50%); font-size: 10px; font-family: monospace; color: var(--brand-color); letter-spacing: 1px; opacity: 0; text-shadow: 0 0 5px var(--brand-color); white-space: nowrap; }
.hero-ui-elements { opacity: 0; } .hero-solutions-preview { display: flex; gap: 1rem; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.hero-solutions-preview .solution-item { padding: 0.5rem 1rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50px; backdrop-filter: blur(5px); transition: var(--transition); }
.hero-solutions-preview .solution-link { display: flex; align-items: center; gap: 0.5rem; color: #c0c0c0; text-decoration: none; }
.hero-solutions-preview .solution-item:hover { background-color: var(--brand-color); }
.hero-solutions-preview .solution-item:hover .solution-link { color: var(--color-white); }
.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 50; opacity: 0; }
.scroll-down .material-symbols-outlined { font-size: 3rem; color: rgba(255, 255, 255, 0.5); animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-15px); } 60% { transform: translateY(-7px); } }

/* === 5. Page Content Sections === */

/* --- Core Services Section --- */
.services-section { background-color: var(--light-bg); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--color-white); border-radius: var(--border-radius); padding: 35px; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--color-border); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-brand); border-color: var(--brand-color); }
.service-card h3 { font-size: 1.5rem; color: var(--color-heading); margin: 0 0 15px 0; }
.service-icon { font-size: 48px; color: var(--brand-color); margin-bottom: 25px; display: inline-block; }

/* --- Solutions Overview Section --- */
.solutions-overview-section { background-color: var(--color-white); }
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.solution-card { background-color: var(--color-white); border-radius: var(--border-radius); overflow: hidden; text-align: left; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--color-border); }
.solution-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-brand); }
.solution-card a { text-decoration: none; color: inherit; display: block; height: 100%; }
.solution-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.solution-card .card-content { padding: 2rem; }
.solution-card .card-content h3 { font-size: 1.75rem; color: var(--color-heading); margin: 0 0 10px 0; }
.solution-card .card-content p { margin: 0 0 20px 0; }
.solution-card .learn-more { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.2s ease; }
.solution-card a:hover .learn-more { gap: 12px; }
.solution-card .learn-more .material-symbols-outlined { vertical-align: middle; }

/* --- Automation Benefits Section --- */
.automation-section-container { background-image: linear-gradient(180deg, white 0%, var(--light-bg) 15%); }
.automation-benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 35px; }
.benefit-card { background-color: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--border-radius); padding: 40px; text-align: left; box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column; }
.benefit-card h3 { font-size: 1.4rem; color: var(--color-heading); margin: 0 0 12px 0; }
.benefit-card:hover { transform: translateY(-10px); border-color: var(--brand-color); box-shadow: var(--shadow-brand); }
.benefit-card .icon-wrapper { width: 60px; height: 60px; margin-bottom: 25px; border-radius: 50%; background-color: rgba(52, 169, 83, 0.1); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.benefit-card:hover .icon-wrapper { background-color: var(--brand-color); }
.benefit-icon { font-size: 32px; color: var(--brand-color); line-height: 1; transition: color 0.3s ease; }
.benefit-card:hover .benefit-icon { color: var(--color-white); }
.automation-section-cta { margin-top: 80px; text-align: center; }
.automation-section-cta .cta-text { max-width: 700px; margin: 0 auto 30px auto; }
.automation-section-cta .cta-button { background-color: var(--brand-color); color: var(--color-white); }
.automation-section-cta .cta-button:hover { background-color: var(--brand-color-dark); }

/* --- Process Section --- */
.process-section { background: var(--light-bg); }
.process-steps { display: flex; justify-content: space-between; gap: 40px; text-align: center; }
.step .step-number { width: 60px; height: 60px; background: var(--brand-color); color: var(--color-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; margin: 0 auto 20px auto; transition: var(--transition); }
.step:hover .step-number { transform: scale(1.1); box-shadow: var(--shadow-brand); }
.step h3 { font-size: 1.5rem; color: var(--color-heading); margin-bottom: 10px; }

/* --- Service Areas Section --- */
.service-areas-section { background-color: var(--light-bg); }
.locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; text-align: left; }
.location-card { background-color: #ffffff; padding: 30px 25px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07); border-left: 5px solid var(--brand-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.location-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.location-card h3 { font-size: 1.3rem; margin-top: 0; margin-bottom: 10px; color: #333; }
.location-card p { margin-bottom: 0; line-height: 1.6; color: #666; }

/* --- Why Us Section --- */
.why-us-section { background: var(--dark-bg); color: var(--color-white); }
.why-us-section .container { max-width: 800px; }
.why-us-section h2 { color: var(--color-white); }
.why-us-section ul { list-style: none; padding: 0; margin-top: 2rem; }
.why-us-section li { font-size: 1.1rem; padding-left: 35px; position: relative; margin-bottom: 20px; }
.why-us-section li::before { content: '✓'; color: var(--brand-color); position: absolute; left: 0; font-size: 1.5rem; font-weight: bold; }

/* --- Video Demo Section --- */
.video-demo-section { background-color: var(--color-white); }
.video-player-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-lg); cursor: pointer; }
.video-player-wrapper img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
.play-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90px; height: 90px; background-color: rgba(255, 255, 255, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, 0.5); backdrop-filter: blur(5px); transition: var(--transition); z-index: 10; }
.play-button .material-symbols-outlined { font-size: 50px; color: var(--color-white); padding-left: 5px; }
.video-player-wrapper:hover .play-button { transform: translate(-50%, -50%) scale(1.1); background-color: rgba(255, 255, 255, 0.3); }
#youtube-player-container, #youtube-player-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --- Final CTA / Contact Section --- */
.contact-section { background: var(--brand-color); text-align: center; color: var(--color-white); }
.contact-section h2 { color: var(--color-white); }
.contact-section p { max-width: 600px; margin: -40px auto 30px auto; opacity: 0.9; }
.contact-section .cta-button { background: var(--color-white); color: var(--brand-color); }
.contact-section .cta-button:hover { background: var(--light-bg); transform: translateY(-4px) scale(1.03); }

/* === 6. Footer === */
.transparent-footer { background-color: var(--dark-bg); padding: 20px 0; color: var(--color-text-light); }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; padding: 25px 0; }
.footer-nav-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav-links a { color: var(--color-text-light); text-decoration: none; transition: var(--transition); }
.footer-nav-links a:hover { color: var(--color-white); }
.footer-contact-group { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer-contact-item { display: flex; align-items: center; text-decoration: none; color: var(--color-text-light); transition: var(--transition); }
.footer-contact-item:hover { color: var(--color-white); transform: translateY(-2px); }
.footer-contact-item .material-symbols-outlined { font-size: 24px; margin-right: 0.75rem; color: var(--brand-color); }
.footer-bottom-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; }
.footer-policy-links { display: flex; gap: 1.5rem; }
.footer-policy-links a { color: var(--color-text-light); text-decoration: none; transition: var(--transition); }
.footer-policy-links a:hover { color: var(--color-white); text-decoration: underline; }

/* === 7. Responsive Adjustments === */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    h2 { margin-bottom: 40px; font-size: 2rem; }
    .nav-list { position: fixed; inset: 0 0 0 30%; flex-direction: column; justify-content: center; gap: 3rem; padding: 5rem 2rem; background-color: rgba(13, 17, 23, 0.95); backdrop-filter: blur(10px); transform: translateX(100%); transition: transform 350ms ease-out; z-index: 1000; }
    .nav-list[data-visible="true"] { transform: translateX(0%); }
    .nav-list a { font-size: 1.25rem; font-weight: 700; }
    .mobile-nav-toggle { display: block; }
    body.nav-open { overflow: hidden; }
    .process-steps { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; gap: 1.5rem; }
    .footer-bottom-row { flex-direction: column; align-items: center; text-align: center; }
}

/* === 8. Utility Classes === */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }