/* 
   Hind Transport Corporation - Premium Style Sheet
   Includes modern variables, reset, and component styles
*/

:root {
    /* Premium Color Palette */
    --primary-color: #0d1b3e;
    /* Deep Royal Blue */
    --primary-light: #1a3c75;
    --secondary-color: #e63946;
    /* Vibrant Red Accent */
    --secondary-dark: #b31e2b;
    --accent-color: #f1faee;
    /* Off-white / Ice */
    --text-dark: #1d3557;
    --text-light: #5a6e84;
    --bg-light: #ffffff;
    --bg-off-white: #f8f9fa;
    --bg-dark: #0d1b3e;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0d1b3e 0%, #1a3c75 100%);
    --gradient-overlay: linear-gradient(rgba(13, 27, 62, 0.7), rgba(13, 27, 62, 0.5));

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-heading: 'Roboto', sans-serif;
    /* Fallback, should load Google Fonts */
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}

.main-header.scrolled {
    height: 75px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 65px;
    width: auto;
    transition: height 0.4s ease;
}

.main-header.scrolled .logo img {
    height: 55px;
}

.main-nav ul {
    display: flex;
    gap: 35px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    position: relative;
    padding: 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary-color);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 1010;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: white;
    box-shadow: var(--shadow-lg);
    min-width: 250px;
    display: flex;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 15px 0;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Desktop Hover Logic */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 25px;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
}

.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-off-white);
    color: var(--secondary-color);
    padding-left: 30px;
}

/* Hero Section */
.hero {
    height: 70vh;
    /* Large hero */
    background: var(--gradient-overlay), url('../images/bannerimg.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 80px;
    /* Offset for fixed header */
}

/* Fallback if image missing */
.hero {
    background-color: var(--primary-color);
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: capitalize;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Page Header (for internal pages like Privacy, Terms) */
.page-header {
    min-height: 40vh;
    background: var(--gradient-overlay), url('../images/hero-bg.png') no-repeat center center/cover;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
    padding: 60px 20px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: white;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: #f1faee;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Sections Common */
.section-spacing {
    padding: var(--section-padding);
    background-color: #0000001a;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.text-center {
    text-align: center;
}

/* Services Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .service-img img {
    transform: scale(1.08);
}

.service-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(13, 27, 62, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-img::after {
    opacity: 1;
}

.service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.service-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.service-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.service-card:hover .service-content h3::after {
    width: 60px;
}

.service-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 12px;
    color: var(--secondary-dark);
}

/* Features/Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

/* Gallery Section (Home & Page) */
.gallery-section {
    padding: var(--section-padding);
    background-color: var(--bg-off-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive Grid */
    gap: 20px;
    /* Modern Gap */
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    /* Consistent aspect ratio */
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 62, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

/* Contact Form Section */
.contact-section {
    padding: var(--section-padding);
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info-box {
    background: var(--primary-color);
    color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.contact-form-box {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    background-color: white;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* CTA */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* Footer */
.main-footer {
    background-color: #0b162a;
    color: #adb5bd;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-legal-links {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-legal-links a {
    color: inherit;
    margin: 0 5px;
    transition: opacity 0.3s;
}

.footer-legal-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .main-nav ul {
        gap: 20px;
    }

    .main-nav a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        height: 75px;
    }

    .logo img {
        height: 55px;
    }

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        padding: 100px 30px 40px;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        width: 100%;
    }

    .main-nav a::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        left: 0;
        transform: none !important;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        background: #f9f9f9;
        display: block;
        max-height: 0;
        overflow: hidden;
        min-width: 100%;
        margin-top: 0;
        border-radius: 8px;
        border: none;
        padding: 0;
        transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), padding 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 10px 0;
        margin-top: 5px;
        transform: none !important;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu li a {
        padding: 12px 25px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .dropdown-menu li a:hover {
        padding-left: 35px;
        background-color: #eee;
    }

    /* Rotate chevron when active */
    .dropdown.active>a .fa-chevron-down {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

    .dropdown>a .fa-chevron-down {
        transition: transform 0.3s ease;
    }

    /* Overlay for mobile menu */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hero & Sections Mobile */
    .hero {
        height: auto;
        padding: 120px 0 80px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-btns a {
        margin: 0 !important;
        width: 100%;
        max-width: 280px;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col .footer-logo-container {
        margin: 0 auto 25px;
    }
}

.vm-section {
    padding: 80px 0;
    background: #f5f7fb;
}

.vm-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Grid */
.vm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Card */
.vm-card {
    background: #ffffff;
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

/* Icon */
.vm-icon {
    width: 55px;
    height: 55px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.vm-icon i {
    font-size: 24px;
    color: #e74c3c;
}

/* Text */
.vm-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0a2540;
}

.vm-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

/* 📱 Mobile Responsive */
@media (max-width: 991px) {
    .vm-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .vm-card {
        padding: 30px 25px;
    }
}