/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3e76af;
    --secondary-color: #3498DB;
    --dark-bg: #071434;
    --light-color: #ECF0F1;
    --text-color: #333;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============= NAVBAR (same design) ============= */

.navbar {
    background: #FFFFFF;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: #E5E7EB;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

/* OLD ICON STYLE ab zaroorat nahi, isko remove kar sakte ho
.nav-logo i {
    margin-right: 10px;
    font-size: 2rem;
    animation: rotate 3s linear infinite;
}
*/

/* NEW: image logo style */
.nav-logo-img {
    height: 65px;       /* desktop size */
    width: 130px;        /* proportion maintain karega */
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #252525;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #E43636;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    width: 32px;
    height: 3px;
    background: rgb(94, 65, 12);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.1s 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgb(94, 65, 12);
    border-radius: 3px;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.hamburger.active {
    background: transparent;
}

.hamburger.active::before {
    top: 0;
    transform: rotate(45deg);
}

.hamburger.active::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-container {
        position: relative;
    }

    .nav-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: -300px;
        flex-direction: column;
        background: #FFFFFF;
        width: calc(100% - 40px);
        margin: 0 20px;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        padding: 1rem 0;
        border-radius: 0 0 15px 15px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        z-index: 999;
    }

    .nav-menu.active {
        top: 70px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu a {
        margin: 0;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        display: block;
    }

    .nav-menu a:last-child {
        border-bottom: none;
        border-radius: 0 0 15px 15px;
    }

    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.05);
    }


    /* Add backdrop blur effect when menu is open */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.1);
        z-index: -1;
        backdrop-filter: blur(2px);
        opacity: 1;
    }

    .nav-menu::before {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

      .nav-logo-img {
        height: 60px;   /* mobile par thoda chhota */
    }

}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}



/* ============= CADMATE HERO SECTION ============= */
/* ========== CADMATE PAGE SECTIONS ========== */

/* Hero banner */
.cad-hero-banner {
    position: relative;
    min-height: 80vh;
    /* ✅ yaha se image responsive ho jayegi */
    background-image: url("img_of_cad_soft.png");
    background-size: cover;
    /* image ko full cover karne ke liye  */
    background-position: center;
    /* center me rakhega */
    background-repeat: no-repeat;
    /* repeat nahi hogi */

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 80px;
    /* thoda side padding mobile ke liye */
    color: #fff;
}


.cad-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(3, 16, 48, 0.75), rgba(3, 16, 48, 0.8));
    animation: fadeInUp 0.9s ease;
}

.cad-hero-content {
    position: relative;
    text-align: center;
    max-width: 720px;
}

.cad-hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.cad-hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 1.8rem;
}

.cad-hero-btn {
    display: inline-block;
    margin: 16px;
    padding: 14px 32px;
    border-radius: 999px;
    background: #ffd700;
    color: #333;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cad-hero-btn:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* Overview section */
.cad-overview {
    background: #ffffff;
    padding: 70px 0;
}

.cad-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: flex-start;
}

.cad-overview-text h2 {
    font-size: 2.1rem;
    color: #12213f;
    margin-bottom: 1rem;
}

.cad-overview-text p {
    color: #444;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.cad-tagline {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    color: #f97316;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.cad-overview-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    object-fit: cover;
    cursor: pointer;
}

/* Modules section (dark blue band) */
.cad-modules {
    background: #0b1538;
    padding: 60px 0;
}

.cad-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.cad-module-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px 22px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.cad-book-img {
    width: 100%;
    max-width: 220px;      /* book ka size control */
    display: block;
    margin: 0 auto 1rem;   /* center + neeche gap */
    object-fit: contain;
}


.cad-module-card h3 {
    font-size: 1.1rem;
    color: #f97316;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.cad-module-card p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

.cad-book-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 26px;
    background: #ffd700;
    color: #333;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
}

@media (max-width: 600px) {
    .cad-book-btn {
        width: 100%;
        max-width: 260px;        /* optional: zyada lamba na ho */
    }
}

.cad-book-btn:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.35);
}

/* ===================== YOUTUBE VIDEO SECTION ===================== */

.cad-videos {
    padding: 70px 0;
    background: #f4f5f7;
}

.cad-video-title {
    text-align: center;
    font-size: 2rem;
    color: #12213f;
    margin-bottom: 10px;
}

.cad-video-subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 40px;
}

.cad-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.video-card {
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Responsive YouTube iframe */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .cad-video-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .cad-video-grid {
        grid-template-columns: 1fr;
    }
}


/* Features section (light grey band) */
.cad-features {
    background: #d2d3d5;
    padding: 70px 0 80px;
}

.cad-features-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.cad-features-header h2 {
    font-size: 1.9rem;
    color: #12213f;
    margin-bottom: 0.6rem;
}

.cad-features-header p {
    color: #555;
}

.cad-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.cad-feature-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px 22px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.cad-feature-box h4 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: #f97316;
    text-transform: uppercase;
}

.cad-feature-box p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .cad-overview-grid {
        grid-template-columns: 1fr;
    }

    .cad-modules-grid,
    .cad-features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cad-hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .cad-hero-banner {
        padding: 120px 0 60px;
    }

    .cad-hero-title {
        font-size: 1.9rem;
    }

    .cad-overview,
    .cad-modules,
    .cad-features {
        padding: 50px 0;
    }

    .cad-modules-grid,
    .cad-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============= FOOTER (same design) ============= */

.footer {
    background: #0F0E0E;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #DCDCDC;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFB700;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
    text-align: center;
    color: #ccc;
}

.dvp {
    color: yellow;
}

a {
    text-decoration: none;
}