/* ===== MODERN VARIABLES & BRAND COLORS ===== */
:root {
    --primary: #1293EE;          /* Brand Blue */
    --primary-dark: #0D66A5;     /* Darker Blue for hover states */
    --primary-light: #E8F4FD;    /* Soft blue accent background */
    --accent: #FD5BFF;           /* Brand Pink/Magenta Accent */
    --accent-dark: #D43BD6;
    --dark: #1D1D1D;             /* Main Dark Text / Header background */
    --gray-dark: #333333;        /* Secondary Dark */
    --gray: #666666;             /* Paragraph / Body */
    --gray-light: #F5F7FA;       /* Section Backgrounds */
    --border: #E2E8F0;           /* Clean dividers */
    --white: #FFFFFF;
    --radius: 12px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(18,147,238,0.12);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE STYLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    background: #FAFCFF;
    color: var(--gray-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#wrapper { display: flex; flex-direction: column; min-height: 100vh; flex: 1; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 16px;
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; color: var(--dark); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 16px; color: var(--gray); }

ul, ol { margin: 0 0 24px 24px; color: var(--gray); }
li { margin-bottom: 8px; }

/* ===== REUSABLE SECTIONS ===== */
.section { padding: 80px 0; }
.bg-light-gray { background-color: var(--gray-light); }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}
.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--gray); margin: 0; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(18,147,238,0.25);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

/* ===== HEADER & LOGO ===== */
#header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 24px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-img { width: 64px; height: auto; }

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo-accent { color: var(--primary); }

/* ===== NAVIGATION ===== */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-list li { margin: 0; }

.nav-list a {
    display: block;
    padding: 10px 20px;
    color: var(--gray-dark);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 4px;
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 100%), url('hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(18,147,238,0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    background: rgba(18,147,238,0.2);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    border: 1px solid rgba(18,147,238,0.3);
}

.hero h1 {
    color: var(--white);
    font-size: 3.6rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero .highlight {
    color: var(--primary);
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #aaa;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 36px;
}

.stat {
    font-size: 14px;
    color: #888;
}

.stat strong {
    display: block;
    font-size: 24px;
    color: var(--white);
    margin-bottom: 4px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.service-card p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

/* ===== NEWS LAYOUT ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    padding: 24px;
    gap: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    width: 64px;
    height: 64px;
    min-width: 64px;
    text-align: center;
}

.news-date .day {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.news-date .month {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 2px;
}

.news-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.news-content p {
    font-size: 14px;
    margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section { padding-top: 40px; }

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(18,147,238,0.2);
}

.cta-content { max-width: 600px; }
.cta-content h2 { color: var(--white); margin-bottom: 12px; font-weight: 800; }
.cta-content p { color: rgba(255,255,255,0.85); margin: 0; font-size: 16px; }

.cta-card .btn-primary {
    background: var(--white);
    color: var(--primary);
}
.cta-card .btn-primary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* ===== PAGE HEROS ===== */
.page-hero {
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 100%), url('traffic-aerial.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 2.4rem; margin-bottom: 8px; font-weight: 800; }
.page-hero-subtitle { color: #aaa; font-size: 16px; margin: 0; }

/* ===== INNER PAGE CONTENT LAYOUTS ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}
.content-grid-single { grid-template-columns: 1fr; }

.content-main {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.content-article p { font-size: 16px; margin-bottom: 24px; }
.content-article h2 { margin-top: 40px; margin-bottom: 16px; }

.content-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.side-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.side-card h4 { font-size: 1.15rem; color: var(--primary); margin-bottom: 12px; }
.side-card p { font-size: 14px; margin: 0; }

/* ===== VALUES SECTION ===== */
.values-section { background-color: var(--gray-light); }
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.value-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.value-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.value-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.value-card p { font-size: 14px; margin: 0; }

/* ===== CLIENTS SECTION ===== */
.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.client-badge {
    background: var(--white);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    color: var(--dark);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    font-size: 14px;
}

/* ===== TECHNOLOGY CARDS ===== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.tech-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.tech-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.tech-card img { width: 100%; height: 220px; object-fit: cover; }
.tech-card h3 { font-size: 1.2rem; padding: 24px 24px 8px; margin: 0; }
.tech-card p { padding: 0 24px 24px; font-size: 14px; margin: 0; }

/* ===== GALLERY STYLES ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.gallery-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border);
}

.gallery-caption {
    padding: 16px 20px;
    font-size: 14px;
    margin: 0;
}

.gallery-placeholder {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

.gallery-placeholder img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.gallery-placeholder img:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* ===== CONTACT LAYOUT ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 48px;
}

.contact-info-card {
    background: var(--dark);
    color: var(--white);
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-info-card h2 { color: var(--white); margin-bottom: 24px; }
.contact-info-card p { color: #aaa; font-size: 15px; }

.info-item { margin-top: 36px; }
.info-item strong { display: block; color: var(--primary); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.info-item p { margin: 0; color: #fff; font-size: 15px; }
.info-item a { color: #fff; }
.info-item a:hover { color: var(--primary); }

.contact-form-card {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.contact-form-card h2 { margin-bottom: 30px; }

.contact-form .form-group { margin-bottom: 24px; }
.contact-form label { display: block; font-weight: 700; font-size: 14px; color: var(--dark); margin-bottom: 8px; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--gray-light);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(18,147,238,0.1);
}

.btn-submit { width: 100%; padding: 16px; font-size: 16px; margin-top: 8px; }

/* ===== FOOTER ===== */
#footer {
    background: var(--dark);
    color: #888;
    padding: 80px 0 0;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 48px;
}

.footer-news h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-news-grid .news-card {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.05);
    padding: 20px;
}
.footer-news-grid .news-card h4 { color: var(--white); font-size: 15px; margin-bottom: 6px; }
.footer-news-grid .news-card time { display: block; font-size: 11px; color: var(--primary); margin-bottom: 8px; font-weight: 700; }
.footer-news-grid .news-card p { font-size: 13px; color: #888; margin: 0; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-col h4 {
    color: var(--white);
    font-size: 15px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--primary);
}

.footer-col p { font-size: 14px; line-height: 1.8; color: #888; margin-bottom: 12px; }
.footer-col a { color: #888; }
.footer-col a:hover { color: var(--primary); }

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; color: #888; transition: var(--transition); }
.footer-col ul a:hover { color: var(--primary); padding-left: 6px; }

.footer-bottom {
    padding: 28px 0;
    text-align: center;
    font-size: 13px;
    color: #666;
}
.footer-bottom p { margin: 0; }

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }
    .hero h1 { font-size: 3rem; }
    
    .content-grid { grid-template-columns: 1fr; gap: 36px; }
    .content-side { flex-direction: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    
    .contact-layout { grid-template-columns: 1fr; gap: 36px; }
    
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    #mainNav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        border-top: 1px solid var(--border);
        padding: 16px;
    }
    #mainNav.open { display: block; }
    
    .nav-list { flex-direction: column; gap: 4px; }
    .nav-list a { padding: 12px 16px; border-radius: 6px; }
    
    .hero { padding: 60px 0 80px; }
    .hero h1 { font-size: 2.4rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    
    .section { padding: 56px 0; }
    
    .cta-card { padding: 36px; flex-direction: column; text-align: center; gap: 24px; }
    .cta-content { max-width: 100%; }
    
    .content-main { padding: 24px; }
    .content-side { grid-template-columns: 1fr; }
    
    .tech-grid { grid-template-columns: 1fr; }
    .footer-news-grid { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { grid-template-columns: 1fr; }
    
    .client-badge { width: 100%; text-align: center; }
}
