* {
    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;
    }
}

/*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, #c6c6c6, #b0b0b0);
    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: #050505;
    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: #0a0a0a;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #141313;
    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: #0f0f0f;
    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: #161616;
}

/* 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;
    }
}