:root {
    /* Branding Colors */
    --primary: #0a192f;
    /* Deep Navy */
    --secondary: #112240;
    /* Lighter Navy */
    --tertiary: #233554;
    /* Accent Navy */
    --accent: #64ffda;
    /* Cyan/Teal Accent */
    --white: #e6f1ff;
    --text-gray: #8892b0;
    --text-light: #ccd6f6;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 320px;
    --radius: 8px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--primary);
    color: var(--text-gray);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    height: 80%;
    background-image: url('public/logo-transparent.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-weight: 600;
    font-size: 1.5rem;
}

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

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

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

.btn-primary:hover {
    background: #4cdbb6;
    transform: translateY(-2px);
}

.text-accent {
    color: var(--accent);
}

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

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

/* Header */

header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-small {
    min-height: 50vh;
    align-items: center;
}

.mb-large {
    margin-bottom: 100px;
}

.mt-large {
    margin-top: 50px;
}


header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 300px;
    width: auto;
    object-fit: contain;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background:
        linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.95)),
        url('public/hero-new.png');
    /* Trucking Placeholder */
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
}

.tagline {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Services Grid (Home) */
.services-section {
    padding: 100px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 3rem;
}

.card {
    background: var(--secondary);
    padding: 2rem;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: var(--tertiary);
}

.card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* Service Table (Services Page) */
.pricing-table-container {
    overflow-x: auto;
    background: var(--secondary);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th,
td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--tertiary);
}

th {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}

td {
    color: var(--text-light);
}

tr:hover td {
    background: var(--tertiary);
}

.price-tag {
    font-weight: 700;
    color: var(--white);
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--primary);
    position: relative;
    border-top: 1px solid var(--tertiary);
    border-bottom: 1px solid var(--tertiary);
}

.testimonial-card {
    background: var(--secondary);
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.testimonial-quote {
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--accent);
}

.testimonial-author {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
}

.author-info h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin: 0;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.about-image-placeholder {
    background: var(--tertiary);
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-placeholder span {
    font-size: 4rem;
    opacity: 0.2;
}

/* Footer */
footer {
    background: #020c1b;
    padding: 50px 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--secondary);
    padding: 2rem;
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

input,
textarea {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    border: 1px solid var(--tertiary);
    border-radius: 4px;
    color: var(--white);
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* ================================
   MOBILE RESPONSIVE STYLES
   ================================ */

@media (max-width: 768px) {
    :root {
        --header-height: auto;
    }

    header {
        position: relative;
        height: auto;
        padding-bottom: 10px;
        background: rgb(10, 25, 47);
        /* Solid bg for mobile */
    }

    .hero {
        padding-top: 20px;
        background-position: center top;
    }

    /* Header Stack Layout */
    header .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px;
    }

    .logo-img {
        height: 80px;
    }

    .nav-wrapper {
        width: 100%;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
        padding: 8px 15px !important;
        border-radius: 8px !important;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .header-taglines {
        font-size: 0.85rem !important;
    }

    .header-taglines div:last-child {
        font-size: 0.75rem !important;
    }

    header .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        margin-bottom: 10px;
        /* Add space below button */
    }

    /* Hero Section */
    .hero {
        padding-top: 20px;
        /* Header is relative now, so just standard padding */
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    /* Grid adjustments */
    .grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-quote {
        font-size: 1rem;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Footer */
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    /* Services Page */
    .pricing-table-container {
        padding: 0.5rem;
    }

    th,
    td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}

/* Admin Panel Mobile Fix */
@media (max-width: 900px) {
    .admin-layout {
        flex-direction: column !important;
    }

    .admin-sidebar {
        width: 100% !important;
        min-width: unset !important;
        max-width: unset !important;
    }

    .admin-main {
        width: 100% !important;
        padding: 20px !important;
    }
}