/* ==========================================
   SBK Traffic Solutions - Main Stylesheet
   Color Scheme: Blue & White (Primary), Green (Accent)
   ========================================== */

/* CSS Variables */
:root {
    --primary-blue: #1a56db;
    --primary-blue-dark: #1e429f;
    --primary-blue-light: #3f83f8;
    --primary-white: #ffffff;
    --accent-green: #10b981;
    --accent-green-dark: #059669;
    --accent-green-light: #34d399;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--primary-white);
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
/* Logo with Company Name */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0a0b0bc0;  /* Dark Green */
    white-space: nowrap;
}

/* Footer Logo with Name */
.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo {
    height: 45px;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #34d399;  /* Lighter green for dark footer */
    white-space: nowrap;
}

.logo img {
    height: 130px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-700);
    cursor: pointer;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    height: 400px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 10%);
    background-image: url('../images/background_home.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0d996e00 0%, rgb(30 66 159 / 0%) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    color: var(--primary-white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--accent-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-white:hover {
    background-color: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--gray-50);
}

.section-blue {
    background-color: var(--primary-blue);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.section-title.text-white {
    color: var(--primary-white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.text-white {
    color: var(--primary-white) !important;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* ==========================================
   PREVIEW CARDS (Home Page)
   ========================================== */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.preview-card {
    background-color: var(--primary-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.preview-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.preview-icon i {
    font-size: 2rem;
    color: var(--primary-white);
}

.preview-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.preview-card p {
    color: var(--gray-600);
}

/* ==========================================
   ABOUT PREVIEW (Home Page)
   ========================================== */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-preview-content h3 {
    font-size: 1.8rem;
    color: var(--primary-white);
    margin-bottom: 20px;
}

.about-preview-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.about-preview-stats {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--primary-white);
    font-size: 1rem;
}

/* ==========================================
   CONTACT PREVIEW (Home Page)
   ========================================== */
.contact-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.contact-info-preview {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-700);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* ==========================================
   PAGE HEADER
   ========================================== */
.page-header {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    background-image: url('../images/services-bg.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 70px;
}

.page-header-about {
    background-image: url('../images/about-bg.jpg');
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.9) 0%, rgba(30, 66, 159, 0.85) 100%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-white);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   SERVICES CAROUSEL
   ========================================== */
.services-section {
    background-color: var(--gray-50);
}

.services-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.carousel-arrow {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: var(--primary-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.carousel-arrow:hover {
    background-color: var(--primary-blue-dark);
    transform: scale(1.1);
}

.carousel-arrow:disabled {
    background-color: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

.services-carousel {
    flex: 1;
    overflow: hidden;
}

.services-track {
    display: flex;
    transition: transform 0.5s ease;
}

.service-card {
    flex: 0 0 100%;
    background-color: var(--primary-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin: 0 10px;
}

.service-card-top {
    display: flex;
    min-height: 280px;
}

.service-card-text {
    flex: 0 0 30%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--primary-white);
}

.service-card-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-brief {
    font-size: 1rem;
    opacity: 0.9;
}

.service-card-image {
    flex: 0 0 70%;
    position: relative;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-details {
    padding: 30px;
    background-color: var(--gray-50);
}

.service-card-details p {
    color: var(--gray-700);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-card-details ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-card-details li {
    background-color: var(--primary-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue-light);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

.indicator:hover {
    background-color: var(--primary-blue-light);
}

/* ==========================================
   SPLIT SECTION (About & Contact Page)
   ========================================== */
.split-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
}

.split-divider {
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--gray-300), transparent);
}

.split-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-green);
    display: inline-block;
}

/* About Half */
.about-intro {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 30px;
    line-height: 1.8;
}

.company-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.company-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--gray-50);
    border-radius: 10px;
}

.company-stat i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.company-stat strong {
    display: block;
    color: var(--gray-900);
}

.company-stat span {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.about-content h3 {
    font-size: 1.4rem;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

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

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-blue);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h4 {
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 5px;
}

.team-member p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.values-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--gray-700);
}

.values-list i {
    color: var(--accent-green);
    margin-top: 3px;
}

/* Contact Half */
.contact-form-wrapper {
    margin-bottom: 40px;
}

.contact-form-wrapper h3,
.contact-info-wrapper h3 {
    font-size: 1.3rem;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    gap: 15px;
}

.contact-detail i {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-top: 3px;
}

.contact-detail strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 5px;
}

.contact-detail p {
    color: var(--gray-600);
    line-height: 1.5;
}

.map-wrapper h3 {
    margin-bottom: 15px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-700);
}

.footer-logo {
    height: 45px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--primary-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-green);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gray-300);
}

.social-links a:hover {
    background-color: var(--primary-blue);
    color: var(--primary-white);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-contact i {
    color: var(--accent-green);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .split-wrapper {
        grid-template-columns: 1fr;
    }

    .split-divider {
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, transparent, var(--gray-300), transparent);
    }

    .about-preview {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-preview-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-item {
        flex: 1;
        min-width: 150px;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--primary-white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .service-card-top {
        flex-direction: column;
    }

    .service-card-text,
    .service-card-image {
        flex: 0 0 auto;
    }

    .service-card-image {
        height: 200px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-preview {
        flex-direction: column;
        align-items: center;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-photo {
        width: 120px;
        height: 120px;
    }
}
