:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #457b9d;
    --background-light: #f1faee;
    --text-dark: #1d3557;
    --text-light: #f1faee;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.malayalam {
    font-family: 'Noto Sans Malayalam', sans-serif;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.logo h1 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 5px;
}

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

.btn-signin {
    background-color: transparent;
    color: var(--secondary-color) !important;
    padding: 6px 18px;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    margin-left: 10px;
}

.btn-signin:hover {
    background-color: var(--secondary-color);
    color: var(--white) !important;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 20px;
    /* Reduced padding for mobile fit */
    background: linear-gradient(135deg, var(--background-light) 0%, #e0fbfc 100%);
    min-height: 80vh;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h2 {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.truck-graphic {
    font-size: 15rem;
    color: var(--secondary-color);
    animation: float 3s ease-in-out infinite;
    text-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Features */
.features {
    padding: 50px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Details Section */
.details-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.detail-card {
    background: var(--background-light);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.detail-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.detail-card p {
    margin-bottom: 10px;
}

.cert-preview .cert-image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.cert-img {
    width: 100%;
    height: auto;
    transition: var(--transition);
    cursor: pointer;
}

.cert-img:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--white);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
}

.contact-text {
    flex: 1;
    min-width: 300px;
}

.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-text p {
    margin-bottom: 40px;
    color: #a8dadc;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item a {
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
}

.contact-form button {
    width: 100%;
    border: none;
}

/* Footer */
.footer {
    background-color: #112240;
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
}

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

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
    }

    .nav-links {
        display: none;
        /* Add JS to toggle */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero {
        flex-direction: column-reverse;
        /* Image on top on mobile? Or bottom. Let's keep text top */
        padding-top: 20px;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-top: 30px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-visual {
        margin-bottom: 20px;
    }

    .truck-graphic {
        font-size: 10rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}