/* Reset & base */
* {
    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 h2 {
        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*/
#services {
    padding: 80px 20px;
    background: linear-gradient(135deg, #bdbdbd, #848383);
    animation: gradientBG 15s ease infinite reverse;
    color: #141313;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

#services h2 {
    font-size: 3.4rem;
    margin-bottom: 50px;
    letter-spacing: 2.5px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.4s ease forwards;
    animation-delay: 0.3s;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(145deg, rgba(19, 13, 67, 0.839), rgba(20, 10, 61, 0.75));
    border-radius: 25px;
    padding: 50px 30px 40px;
    width: 360px;
    /* wider for bigger image */
    box-shadow: 0 15px 35px rgba(179, 27, 27, 0.4);
    backdrop-filter: blur(12px);
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    /* Start hidden for scroll animation */
    opacity: 0;
    transform: translateY(50px) scale(0.95);

    /* Smooth transition for animation */
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.7s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.7s ease;
}

.service-card.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    box-shadow: 0 15px 40px rgba(35, 12, 151, 0.4);
}

.service-card:hover {
    transform: translateY(-20px) scale(1.07);
    box-shadow: 0 20px 50px rgba(47, 42, 87, 0.85);
    background: linear-gradient(145deg, rgba(14, 13, 13, 0.25), rgba(68, 67, 67, 0.15))
}

/* New image style */
.service-image {
    width: 300px;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(5, 5, 5, 0.5);
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.service-card:hover .service-image {
    box-shadow: 0 15px 40px rgba(11, 11, 11, 0.85);
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 18px;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.service-card p {
    font-size: 1.05rem;
    font-weight: 400;
    color: #f9f9f9;
    line-height: 1.6;
    letter-spacing: 0.03em;
    user-select: none;
}

.more-info-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 26px;
    background: linear-gradient(135deg, #fffdfd, #ffffff);
    /* Navy gradient */
    color: #0a0a0a;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 50, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.more-info-btn:hover {
    background: linear-gradient(135deg, #100442, #05053b);
    color: #fff;
    box-shadow: 0 0 15px 3px rgba(9, 9, 9, 0.6);
    /* Red glow effect */
    transform: translateY(-3px) scale(1.05);
}

/* Responsive */

@media (max-width: 900px) {
    .services-container {
        gap: 25px;
    }

    .service-card {
        width: 90%;
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
    }
}

@media (max-width: 480px) {
    #services h2 {
        font-size: 2.4rem;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }

    .service-card p {
        font-size: 1rem;
    }

    .service-image {
        width: 110px;
        height: 110px;
        margin-bottom: 20px;
    }
}

/* Gradient animation for background */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Fade in up animation for section heading */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 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;
    box-sizing: border-box;
}

/* 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: 120%;
    height: auto;
    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;
    overflow-x: hidden;
}

.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;

    /* ✅ Fixes for text responsiveness */
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* 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 15px;
    }

    .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 {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .about-image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .about-image img {
        width: 100%;
        max-width: 280px;
        /* perfect size */
        margin: 0 auto;
        /* center image */
        display: block;
    }

    .about-text {
        text-align: center !important;
        width: 100%;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .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;
    }
}

.contact-section {
    width: 100%;
    padding: 90px 20px;
    background: linear-gradient(135deg, #0F2027, #581550, #521a41);
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-glass {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.12);
    padding: 50px 70px;
    border-radius: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1.2s ease forwards;
}

.contact-glass h4 {
    color: #fff;
    font-size: 30px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.contact-number {
    font-size: 42px;
    font-weight: 700;
    color: #00f5d4;
    text-decoration: none;
    transition: 0.3s ease;
}

.contact-number:hover {
    color: #79ffe8;
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.6);
}

.contact-tagline {
    color: #eee;
    font-size: 16px;
    margin-top: 10px;
    opacity: 0.8;
}

/* Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-glass {
        padding: 35px 40px;
    }

    .contact-number {
        font-size: 32px;
    }

    .contact-glass h4 {
        font-size: 24px;
    }
}

/*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: #0d0c0c;
    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: #a8a6a6;
    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, #c2c0c0, #a9a8a8);
    color: #121111;
    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: #0d0d0d;
    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: #0d0d0d;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #0f0f0f;
    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: #0a0a0a;
    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: #060606;
}

/* 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;
    }
}