/* =========================================
   PYTHON AI & DEEP LEARNING — THEME
========================================= */

:root{
  --bg-color:#000;
  --primary:#ff0000;
  --text-light:#ddd;
  --card-bg:#0d0d0d;
  --border-dark:#1a1a1a;
}

/* =========================================
   HERO SECTION
========================================= */

#page1{
    min-height:100vh;
    padding-top:110px;
    display:flex;
    align-items:center;
    background:#000;
}

.hero-container{
    max-width:1500px;
    margin:auto;
    padding:0 8vw;
}

.hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
}

/* LEFT */
.hero-left{
    max-width:640px;
}

.hero-left h1{
    font-size:clamp(2.6rem,5vw,5.6rem);
    font-weight:900;
    line-height:1.15;
    margin-bottom:22px;
}

.hero-left h1 span{
    color:var(--primary);
    text-shadow:0 0 18px rgba(255,0,0,.6);
}

.hero-left p{
    font-size:1.05rem;
    line-height:1.75;
    color:var(--text-light);
    margin-bottom:34px;
    text-align: justify;
}

/* BUTTONS */
.hero-buttons{
    display:flex;
    gap:20px;
}

.hero-btn-primary{
    background:var(--primary);
    color:#000;
    padding:14px 34px;
    border-radius:30px;
    font-weight:600;
    box-shadow:0 0 22px rgba(255,0,0,.45);
}

.hero-btn-secondary{
    background:transparent;
    border:2px solid var(--primary);
    color:#fff;
    padding:14px 34px;
    border-radius:30px;
}

.hero-btn-primary:hover,
.hero-btn-secondary:hover{
    transform:translateY(-3px);
    opacity:.9;
}

/* RIGHT */
.hero-right img{
    width:100%;
    max-width:520px;
    filter:drop-shadow(0 0 28px rgba(255,0,0,.35));
    animation:float 4s ease-in-out infinite;
}

@keyframes float{
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(-12px)}
}

/* =========================================
   INTRO SECTION
========================================= */

.fs-intro{
    position:relative;
    padding:110px 8vw;
    background:#000;
    overflow:hidden;
}

.grid-overlay{
    position:absolute;
    inset:0;
    background:
      linear-gradient(rgba(255,0,0,.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,0,0,.08) 1px, transparent 1px);
    background-size:40px 40px;
    opacity:.25;
}

.fs-container{
    max-width:1300px;
    margin:auto;
    position:relative;
    z-index:2;
    text-align:center;
}

.fs-title{
    font-size:clamp(2.2rem,4vw,3.4rem);
    font-weight:800;
    margin-bottom:18px;
    text-align: center;
    color: #fff;
}

.fs-title span{
    color:var(--primary);
    text-shadow:0 0 14px rgba(255,0,0,.6);
    text-align: center;
}

.fs-subtitle{
    max-width:900px;
    margin:auto auto 70px;
    color:#ccc;
    line-height:1.75;
}

/* FEATURES */
.fs-features{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.fs-card{
    background:var(--card-bg);
    border:1px solid var(--border-dark);
    padding:38px 26px;
    border-radius:16px;
    transition:.35s;
    
}

.fs-card:hover{
    transform:translateY(-10px);
    border-color:var(--primary);
    box-shadow:0 0 28px rgba(255,0,0,.35);
}

.fs-card i{
    font-size:2.6rem;
    color:var(--primary);
    margin-bottom:18px;
}

.fs-card h3{
    font-size:1.15rem;
    margin-bottom:12px;
    color: #fff;
}

.fs-card p{
    color:#ccc;
    font-size:.95rem;
    line-height:1.6;
}

/* BUTTONS */
.fs-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:60px;
}

.fs-btn-main{
    background:var(--primary);
    color:#000;
    padding:14px 34px;
    border-radius:30px;
    font-weight:600;
}

.fs-btn-outline{
    background:transparent;
    border:2px solid var(--primary);
    color:#fff;
    padding:14px 34px;
    border-radius:30px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:1100px){
    .fs-features{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:900px){
    #page1{
        min-height:auto;
        padding-top:140px;
    }

    .hero{
        flex-direction:column;
        text-align:center;
    }

    .hero-left p{
        margin:auto auto 30px;
    }

    .hero-buttons{
        justify-content:center;
        flex-wrap:wrap;
    }
}

@media(max-width:600px){
    .fs-features{
        grid-template-columns:1fr;
    }

    .hero-left h1{
        font-size:2.1rem;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .hero-btn-primary,
    .hero-btn-secondary{
        width:100%;
        max-width:320px;
    }

    .hero-right img{
        max-width:320px;
    }
}

/* ================= NAVBAR STYLE (IMAGE MATCH) ================= */

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: #000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 6vw;
    z-index: 9999;
}

/* LOGO */
.logo {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    white-space: nowrap;
}

.logo .red {
    color: #ff0000;
}

/* CENTER MENU */
.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 42px;
}

.nav-link {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.9;
    transition: 0.3s ease;
}

.nav-link:hover {
    color: #ff0000;
}

/* BUY NOW BUTTON (RIGHT) */
.buy-now-btn.desktop-btn {
    background: #ff0000;
    color: #fff;
    padding: 12px 26px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.45);
    transition: 0.3s ease;
}

.buy-now-btn.desktop-btn i {
    font-size: 14px;
}

.buy-now-btn.desktop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(255, 0, 0, 0.7);
}

/* HAMBURGER */
.mobile-menu-icon {
    display: none;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
    .nav {
        grid-template-columns: auto auto;
    }

    .nav-menu,
    .desktop-btn,
    .desktop-only {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }
}

/* =========================================
   MOBILE VIEW – DATA SCIENCE / AI COURSE
========================================= */

@media (max-width: 768px) {

    /* NAVBAR */
    .nav {
        height: 70px;
        padding: 0 18px;
    }

    .logo {
        font-size: 18px;
        font-weight: 600;
    }

    .mobile-menu-icon {
        font-size: 24px;
    }

    /* HERO SECTION */
    #page1 {
        padding-top: 90px;
        min-height: auto;
    }

    .hero-container {
        padding: 0 18px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 28px;
    }

    /* IMAGE CARD */
    .hero-right {
        order: 1;
    }

    .hero-right img {
        max-width: 260px;
        border-radius: 18px;
        box-shadow: 0 0 40px rgba(255, 0, 0, 0.55);
    }

    /* TEXT */
    .hero-left {
        order: 2;
    }

    .hero-left h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 14px;
    }

    .hero-left h1 span {
        color: #ff0000;
    }

    .hero-left p {
        font-size: 0.95rem;
        line-height: 1.65;
        opacity: 0.9;
        margin-bottom: 26px;
        text-align: center;
    }

    /* BUTTON */
    .hero-buttons {
        justify-content: center;
    }

    .hero-btn-primary {
        width: 100%;
        max-width: 320px;
        padding: 15px;
        border-radius: 30px;
        font-size: 15px;
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
    }

    .hero-btn-secondary {
        display: none;
    }

    /* WHATSAPP FLOAT FIX */
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
    }
}

/* =========================================
   MOBILE HAMBURGER MENU FIX
========================================= */

@media (max-width: 900px) {

    /* Hide desktop elements */
    .nav-menu,
    .desktop-btn,
    .desktop-only {
        display: none !important;
    }

    /* Show hamburger */
    .mobile-menu-icon {
        display: block;
        z-index: 10001;
    }

    /* Mobile menu base */
    .mobile-menu {
        position: fixed;
        inset: 0;
        background: #000;
        padding: 30px 24px;
        display: none;
        z-index: 10000;
    }

    /* When active */
    .mobile-menu.active {
        display: block;
    }

    /* Buy Now ONLY inside mobile menu */
    .mobile-btn {
        display: block;
        width: 100%;
        margin-top: 30px;
        padding: 16px;
        font-size: 16px;
        border-radius: 30px;
        background: #ff0000;
        color: #fff;
        box-shadow: 0 0 25px rgba(255,0,0,0.6);
    }
}

/* =========================================
   MOBILE HAMBURGER MENU – FINAL (REFERENCE)
========================================= */

@media (max-width: 900px) {

    /* NAVBAR */
    .nav {
        height: 70px;
        padding: 0 18px;
        z-index: 10002;
    }

    /* Hide desktop items */
    .nav-menu,
    .desktop-btn,
    .desktop-only {
        display: none !important;
    }

    /* Hamburger icon */
    .mobile-menu-icon {
        display: block;
        font-size: 24px;
        z-index: 10003;
    }

    /* MOBILE MENU OVERLAY */
    .mobile-menu {
        position: fixed;
        inset: 0;
        background: #000;
        padding: 28px 22px;
        display: none;
        z-index: 10001;
    }

    /* ACTIVE STATE */
    .mobile-menu.active {
        display: block;
    }

    /* BRAND */
    .mobile-brand {
        font-size: 18px;
        font-weight: 600;
        color: #fff;
        display: none;
    }

    .mobile-brand span {
        color: #ff0000;
    }

    /* PAGE TITLE */
    .mobile-title {
        font-size: 22px;
        font-weight: 700;
        margin-top: 25px;
        margin-bottom: 8px;
    }

    .mobile-title span {
        color: #ff0000;
    }

    .mobile-line {
        width: 355px;
        height: 3px;
        background: #ff0000;
        margin-bottom: 28px;
    }

    /* LINKS */
    .mobile-links {
        list-style: none;
    }

    .mobile-links li {
        margin-bottom: 22px;
    }

    .mobile-links a {
        font-size: 16px;
        font-weight: 500;
        color: #fff;
        opacity: 0.9;
    }

    /* BUY NOW BUTTON */
    .mobile-btn {
        display: block;
        width: 100%;
        margin-top: 35px;
        padding: 16px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 30px;
        background: #ff0000;
        color: #fff;
        box-shadow: 0 0 30px rgba(255,0,0,0.55);
        text-align: center;
    }
}

/* =========================================
   FIX: MOBILE MENU CONTENT BEHIND NAVBAR
========================================= */

@media (max-width: 900px) {

    /* Navbar height reference */
    .nav {
        height: 70px;
    }

    /* Push mobile menu content below navbar */
    .mobile-menu {
        padding-top: calc(70px + 24px); /* navbar height + spacing */
    }

}

@media (max-width: 900px) {

    /* Hide navbar branding completely when menu is open */
    .mobile-menu.active {
        z-index: 10001;
    }

    .mobile-menu.active + * .logo,
    .mobile-menu.active ~ .nav .logo {
        display: none !important;
    }

}

/* =========================================
   CURRICULUM (FS-SERVICES)
========================================= */

.fs-services{
    padding:110px 8vw;
    background:#000;
    text-align:center;
}

.fs-services-title{
    font-size:clamp(2.2rem,4vw,3.2rem);
    font-weight:800;
    margin-bottom:14px;
    align-items: center;
}

.fs-services-title span{
    color:#ff0000;
    text-shadow:0 0 14px rgba(255,0,0,0.6);
}

.fs-services-subtitle{
    max-width:850px;
    margin:0 auto 60px;
    color:#ccc;
    line-height:1.7;
}

.fs-services-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.fs-service-box{
    background:#0d0d0d;
    border:1px solid #1a1a1a;
    border-radius:16px;
    padding:38px 30px;
    text-align:left;
    transition:.35s ease;
}

.fs-service-box:hover{
    transform:translateY(-10px);
    border-color:#ff0000;
    box-shadow:0 0 28px rgba(255,0,0,0.35);
}

.fs-service-box i{
    font-size:2.6rem;
    color:#ff0000;
    margin-bottom:18px;
}

.fs-service-box h3{
    font-size:1.2rem;
    font-weight:600;
    margin-bottom:10px;
    color: #fff;
}

.fs-service-box p{
    font-size:.95rem;
    color:#ccc;
    line-height:1.6;
}

/* =========================================
   TOOLS SECTION
========================================= */

.fs-tools{
    padding:110px 8vw;
    background:#000;
    text-align:center;
}

.fs-tools-title{
    font-size:clamp(2.2rem,4vw,3.2rem);
    font-weight:800;
    margin-bottom:14px;
    color: #fff;
}

.fs-tools-title span{
    color:#ff0000;
}

.fs-tools-subtitle{
    max-width:800px;
    margin:0 auto 50px;
    color:#ccc;
}

.fs-tools-slider{
    overflow:hidden;
    width:100%;
}

.fs-tools-track{
    display:flex;
    gap:40px;
    animation:toolsSlide 22s linear infinite;
}

@keyframes toolsSlide{
    0%{transform:translateX(0)}
    100%{transform:translateX(-50%)}
}

.fs-tool-box{
    min-width:180px;
    background:#0d0d0d;
    border:1px solid #1a1a1a;
    border-radius:14px;
    padding:24px;
    text-align:center;
}

.fs-tool-box img{
    width:70px;
    margin-bottom:10px;
    filter:drop-shadow(0 0 12px rgba(255,0,0,0.4));
}

.fs-tool-box p{
    color:#fff;
    font-size:.95rem;
    text-align: center;
}

/* =========================================
   COURSE DETAILS (FS-PROCESS)
========================================= */

.fs-process{
    padding:110px 8vw;
    background:#000;
    text-align:center;
}

.fs-process-title{
    font-size:clamp(2.2rem,4vw,3.2rem);
    font-weight:800;
    margin-bottom:14px;
    color: #fff;
}

.fs-process-title span{
    color:#ff0000;
}

.fs-process-subtitle{
    max-width:850px;
    margin:0 auto 60px;
    color:#ccc;
    
}

.fs-process-subtitle p{
    text-align: center;
}

.fs-process-steps{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.step-box{
    background:#0d0d0d;
    border:1px solid #1a1a1a;
    border-radius:16px;
    padding:36px 28px;
    transition:.35s ease;
    text-align:left;
}

.step-box:hover{
    transform:translateY(-10px);
    border-color:#ff0000;
    box-shadow:0 0 28px rgba(255,0,0,0.35);
}

.step-number{
    color:#ff0000;
    font-weight:700;
    font-size:1rem;
    display:block;
    margin-bottom:10px;
}

.step-box h3{
    font-size:1.2rem;
    margin-bottom:8px;
    color: #fff;
}

.step-box p{
    font-size:.95rem;
    color:#ccc;
    line-height:1.6;
}

/* =========================================
   FAQ SECTION
========================================= */

.fs-faq{
    padding:110px 8vw;
    background:#000;
}

.fs-faq-title{
    text-align:center;
    font-size:clamp(2.2rem,4vw,3.2rem);
    font-weight:800;
    margin-bottom:10px;
    color: #fff;
}

.fs-faq-title span{
    color:#ff0000;
}

.fs-faq-subtitle{
    text-align:center;
    max-width:800px;
    margin:0 auto 50px;
    color:#ccc;
}

.fs-faq-container{
    max-width:900px;
    margin:0 auto;
}

.faq-item{
    margin-bottom:18px;
}

.faq-question{
    width:100%;
    background:#0d0d0d;
    border:1px solid #1a1a1a;
    border-radius:10px;
    padding:18px 22px;
    color:#fff;
    font-size:1rem;
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
}

.faq-question:hover{
    border-color:#ff0000;
}

.arrow{
    color:#ff0000;
    font-size:1.4rem;
    font-weight:600;
}

.faq-answer{
    display:none;
    background:#111;
    margin-top:6px;
    padding:16px 22px;
    border-radius:10px;
    border-left:3px solid #ff0000;
    color:#ccc;
    line-height:1.6;
}

.faq-answer.open{
    display:block;
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:1100px){
    .fs-services-grid,
    .fs-process-steps{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:600px){
    .fs-services,
    .fs-tools,
    .fs-process,
    .fs-faq{
        padding:90px 20px;
    }

    .fs-services-grid,
    .fs-process-steps{
        grid-template-columns:1fr;
    }

    .fs-services-subtitle,
    .fs-process-subtitle,
    .fs-faq-subtitle{
        text-align:justify;
    }
}

/* =========================================
   TEXT JUSTIFICATION – DESKTOP & MOBILE
========================================= */

/* Global paragraph justify */
p {
    text-align: justify;
    text-justify: inter-word;
}

/* Specific DSS sections (extra safety) */
.hero-left p,
.fs-subtitle,
.fs-services-subtitle,
.fs-service-box p,
.fs-tools-subtitle,
.fs-process-subtitle,
.step-box p,
.faq-answer {
    text-align: justify;
    text-justify: inter-word;
}

/* Mobile refinement */
@media (max-width: 768px) {
    p {
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
    }
}

/* ===============================
   DSS MODAL SELECT – FINAL STYLE
   (MATCHES REFERENCE IMAGE)
================================ */

.course-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.course-modal.active {
    display: flex;
}

.course-modal-box {
    background: #0b0b0b;
    border-radius: 16px;
    padding: 32px 30px;
    width: 100%;
    max-width: 460px;
    border: 1px solid rgba(255,0,0,0.4);
    box-shadow: 0 0 40px rgba(255,0,0,0.45);
    text-align: center;
}

/* TITLE */
.course-modal-box h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 22px;
}

/* SELECT DROPDOWN */
.course-modal-box select {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #333;
    font-size: 15px;
    outline: none;
    cursor: pointer;

    /* Remove default styles */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Custom arrow */
    background-image:
        linear-gradient(45deg, transparent 50%, #ff0000 50%),
        linear-gradient(135deg, #ff0000 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

/* SELECT HOVER / FOCUS */
.course-modal-box select:hover,
.course-modal-box select:focus {
    border-color: #ff0000;
    box-shadow: 0 0 12px rgba(255,0,0,0.4);
}

/* OPTIONS */
.course-modal-box select option {
    background: #000;
    color: #fff;
}

/* ACTION BUTTONS */
.modal-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 28px;
}

.modal-actions .btn {
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ff0000;
    color: #fff;
}

.btn-primary {
    background: #ff0000;
    border: none;
    color: #000;
    box-shadow: 0 0 18px rgba(255,0,0,0.6);
}

/* MOBILE FIX */
@media (max-width: 600px) {
    .course-modal-box {
        margin: 0 16px;
    }

    .course-modal-box select {
        appearance: menulist;
        -webkit-appearance: menulist;
        background-image: none;
    }
}

@media (max-width: 768px) {

    .hero-buttons {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        display: block;
        width: 100%;
        max-width: 320px;
        padding: 15px;
        border-radius: 30px;
        font-size: 15px;
        text-align: center;
    }

    .hero-btn-secondary {
        background: transparent;
        border: 2px solid #ff0000;
        color: #fff;
    }
}
