* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f7fa;
    color: #333;
}

/* Main Section */
#grand-fther {
    height: 70vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    color: white;
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-image 1s ease-in-out;
    /* Smooth fade on image change */
}


/* Nav styles */
#top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    position: sticky;
    top: 20px;
    margin: 20px 60px 0 60px;
    z-index: 10;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#top-nav:hover {
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.logo h2 {
    font-size: 30px;
}

.nav-opt {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-opt li a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    position: relative;
    font-size: 1.05rem;
    padding: 6px 0;
    letter-spacing: 0.05em;
    transition: color 0.35s ease, transform 0.25s ease;
}

.nav-opt li a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    height: 3px;
    width: 0;
    background-color: #ff522b;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-opt li a:hover {
    color: #3737ea;
    transform: translateY(-3px);
}

.nav-opt li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    height: 100%;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #ffffff;
    width: 0;
    animation: typing 3.5s steps(40, end) forwards, blink 0.7s step-end infinite;
    margin-bottom: 20px;
}

.hero-section p {
    max-width: 600px;
    margin-bottom: 40px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeSlideIn 1.5s ease forwards;
}

.hero-section a {
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    background-color: transparent;
    border: 2.5px solid #f5f4f4;
    color: #f2efef;
    border-radius: 35px;
    cursor: pointer;
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.3s ease;
    box-shadow: 0 0 10px #00000066;
    backdrop-filter: blur(4px);
    text-decoration: none;
}

.hero-section a:hover {
    background-color: rgba(246, 246, 252, 0.281);
}

/* Animations */
@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink {
    50% {
        border-color: transparent
    }
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */

/* Tablets & medium screens */
@media (max-width: 1024px) {
    #top-nav {
        padding: 15px 40px;
        margin: 20px 40px 0 40px;
    }

    .nav-opt {
        gap: 25px;
    }

    .logo h1 {
        font-size: 26px;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .hero-section p {
        font-size: 1rem;
        max-width: 80%;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    #top-nav {
        padding: 12px 20px;
        margin: 15px 20px 0 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-opt {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo img {
        font-size: 22px;
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .nav-opt li a {
        font-size: 0.95rem;
        padding: 6px 8px;
    }

    .hero-section {
        padding: 15px 10px;
    }

    .hero-section h1 {
        font-size: 2.4rem;
        border-right: 2px solid #fff;
        white-space: normal;
        overflow: visible;
        width: auto;
        animation: none;
    }

    .hero-section p {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero-section button {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    #top-nav {
        padding: 10px 15px;
        margin: 10px 15px 0 15px;
    }

    .nav-opt {
        gap: 15px;
    }

    .logo h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .nav-opt li a {
        font-size: 0.9rem;
    }

    .hero-section h1 {
        font-size: 2rem;
        border-right: 2px solid #fff;
    }

    .hero-section p {
        font-size: 0.9rem;
    }
}

/* Service Section */
.features-section {
    background-color: #c2c2c2;
    color: #0b0b0b;
    padding: 100px 10%;
    font-family: "Poppins", sans-serif;
}

.feature {
    margin-bottom: 120px;
}

.feature h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.feature h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0e0e0d;
    text-transform: uppercase;
}

.feature p {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 800px;
    color: #020202;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .feature h2 {
        font-size: 2.5rem;
    }

    .feature h4 {
        font-size: 1.1rem;
    }

    .feature p {
        font-size: 1rem;
    }
}

/* ===== Road Test Section ===== */
.road-test-section {
    background: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.road-test-header h2 {
    font-size: 32px;
    color: #004aad;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
}

.road-test-header p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #000000;
    font-size: 16px;
    line-height: 1.7;
}

.road-test-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.road-test-card {
    background: #f9f9f9;
    width: 280px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
    text-align: center;
}

.road-test-card:hover {
    transform: translateY(-8px);
    background: #f0f8ff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.road-test-card i {
    font-size: 40px;
    color: #0078d7;
    margin-bottom: 15px;
}

.road-test-card h3 {
    font-size: 18px;
    color: #000000;
    margin-bottom: 10px;
    font-weight: 600;
}

.road-test-card p {
    color: #020202;
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .road-test-card {
        width: 90%;
    }
}


.cta-pricing-landscape {
    position: relative;
    background: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    background-attachment: fixed;
    height: 55vh;
    /* Landscape height */
    width: 100%;
    margin: 2px auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.cta-pricing-landscape::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

/* 🟢 Horizontal layout for lesson cards */
.price-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    /* No left-right gap */
}

.price-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    padding: 25px 60px;
    border-radius: 15px;
    transition: 0.3s ease;
    width: 260px;
    margin: 0;
    /* No extra spacing */
}

.price-card:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.price-card:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.price-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.price-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #00e6b8;
    margin-bottom: 8px;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #00e613;
}

.cta-btn {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    background: #138ac6;
    color: #000;
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
}

.cta-btn:hover {
    background: transparent;
    border: 2px solid #00e6b8;
    color: #00e6b8;
}

/* 📱 Responsive: stack on small screens */
@media (max-width: 768px) {
    .cta-pricing-landscape {
        height: auto;
        padding: 60px 20px;
        width: 90%;
    }

    .price-container {
        flex-direction: column;
    }

    .price-card {
        width: 200px;
        border-radius: 15px;
    }
}


/*Contact Form*/
/*Contact Form*/

/* Contact Section with background image + gradient overlay */
#contact {
    position: relative;
    /* Make it parent for overlay */
    padding: 80px 20px;
    overflow: hidden;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    min-height: 700px;
    /* Adjust height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Background with gradient overlay */
.contact-bg-overlay {
    position: absolute;
    /* Changed from fixed */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('assets/C.jpeg') no-repeat center center;
    background-size: cover;
    z-index: 1;
    filter: brightness(0.7);
}

/* Container holds the form */
.contact-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 100%;
    margin: auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Form wrapper */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Show form with animation */
#contact.visible .contact-form-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* Form heading */
.contact-form-wrapper h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

/* Inputs and textarea */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    color: #333;
    resize: none;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    background: #fff;
    transform: translateY(-2px);
    outline: none;
}

/* Submit button */
button[type="submit"] {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, #ff4b2b, #ff7848);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.4s ease, transform 0.3s ease;
    box-sizing: border-box;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #ff7848, #ff4b2b);
    transform: scale(1.02);
}

/* Responsive tweaks */

@media (max-width: 992px) {
    #contact {
        padding: 70px 15px;
    }

    .contact-form-wrapper {
        padding: 35px 25px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    }

    .contact-form-wrapper h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 600px) {
    #contact {
        padding: 60px 15px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .contact-form-wrapper h2 {
        font-size: 2rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 12px 15px;
    }

    button[type="submit"] {
        font-size: 1rem;
        padding: 12px;
    }
}

@media (max-width: 400px) {
    #contact {
        padding: 50px 10px;
    }

    .contact-form-wrapper {
        padding: 25px 15px;
        border-radius: 15px;
    }

    .contact-form-wrapper h2 {
        font-size: 1.8rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    button[type="submit"] {
        font-size: 0.95rem;
        padding: 10px;
        border-radius: 10px;
    }
}


/*Footer Section*/

.main-footer {
    background: linear-gradient(135deg, #a5a5a6, #a8a8a9);
    color: #f2f2f2;
    padding: 60px 20px 30px 20px;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    z-index: 2;
    position: relative;
}

.footer-col h2.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ff4b2b;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #040404;
    position: relative;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #ff4b2b;
    border-radius: 5px;
}

.footer-col p,
.footer-col li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #101010;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #121212;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ff4b2b;
    padding-left: 5px;
}

.footer-social-icons {
    margin-top: 10px;
}

.footer-social-icons a {
    display: inline-block;
    margin-right: 12px;
    color: #060606;
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-icons a:hover {
    color: #ff4b2b;
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    color: #141313;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social-icons {
        justify-content: center;
    }
}