* {
    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;
    }
}

/* About Section */
/* ---------------- About Section ---------------- */
#about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    /* kam padding mobile ke liye */
    background: linear-gradient(135deg, #b9b9bc, #a1a0a0);
    color: #000;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    overflow-x: hidden;
    /* fix overflow horizontally */
    overflow-y: auto;
    box-sizing: border-box;
}

#about .content {
    max-width: 900px;
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    /* ensure long words wrap properly */
    overflow-wrap: break-word;
}

/* Wrapper Box */
.about-wrapper {
    max-width: 1300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(18px);
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease;
    margin: auto;
    overflow: hidden;
}

/* Fade-in Animation on Scroll */
#about.visible .about-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* Image Section */
.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 90%;
    height: 120%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
    transition: transform 0.5s ease;
    object-fit: contain;
}

.about-image img:hover {
    transform: scale(1);
}

/* Text Section */
.about-text {
    flex: 1;
    min-width: 350px;
    max-width: 650px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    color: #090909;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #060505;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
}

/* Button */
.read-more-btn a {
    display: inline-block;
    background-color: #004bd7;
    color: #fff;
    margin: 10px auto 0;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.read-more-btn a:hover {
    background-color: #005fa3;
    transform: scale(1.05);
}

/* ---------------- Responsive Design ---------------- */

/* Tablets / Small Laptops */
@media (max-width: 992px) {
    #about {
        padding: 80px 30px;
    }

    .about-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 35px;
    }

    .about-image img {
        width: 80%;
        max-width: 380px;
    }

    .about-text {
        padding: 0;
    }

    .about-text h2 {
        font-size: 2.4rem;
    }

    .about-text p {
        font-size: 1.05rem;
    }

    .read-more-btn a {
        margin: 15px auto 0;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    #about {
        padding: 60px 15px;
    }

    #about .content {
        font-size: 16px;
        padding: 15px;
    }

    .about-wrapper {
        padding: 25px;
        gap: 30px;
    }

    .about-image img {
        width: 100%;
        height: auto;
        max-width: 300px;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .read-more-btn a {
        padding: 8px 20px;
        font-size: 0.95rem;
    }
}

/* Extra Small Phones */
@media (max-width: 480px) {
    #about .content {
        font-size: 14px;
    }

    .about-text h2 {
        font-size: 1.7rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .about-image img {
        max-width: 260px;
    }
}


.traffic-safety {
    background: linear-gradient(to right, #9c9c9c, #9e9f9f);
    padding: 60px 20px;
    text-align: center;
}

.traffic-safety h2 {
    font-size: 32px;
    font-weight: 700;
    color: #004aad;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.traffic-safety .intro {
    font-size: 16px;
    color: #000000;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.safety-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.safety-card {
    background: #e1e1e1;
    width: 300px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.safety-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.safety-card i {
    font-size: 45px;
    color: #0078d7;
    margin-bottom: 15px;
}

.safety-card h3 {
    font-size: 20px;
    color: #000000;
    margin-bottom: 10px;
}

.safety-card p {
    color: #000000;
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .safety-card {
        width: 90%;
    }
}



/*Footer Section*/

.main-footer {
    background: linear-gradient(135deg, #c2c2c3, #bebec0);
    color: #000000;
    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: #0f0f0f;
    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: #0e0e0e;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #0e0d0d;
    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: #111111;
    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: #0f0f0f;
}

/* 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;
    }
}