/* ============================================================
   STUDENT SKILLSET TECH INSTITUTE – MAIN STYLESHEET
   Fixed: Now fully overrides inline styles.
   ============================================================ */

/* ========== GLOBAL VARIABLES (Dark Theme – default) ========== */
:root {
    --primary: #ff2d95;
    --secondary: #00d4ff;
    --bg: #0a0a1a;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-hover: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.15);
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
    --btn-bg: linear-gradient(135deg, #ff2d95, #c0266b);
    --btn-shadow: 0 4px 20px rgba(255, 45, 149, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.25);
    --radius: 24px;
    --radius-sm: 12px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    --nav-bg: rgba(10, 10, 26, 0.7);
    --nav-scrolled-bg: rgba(10, 10, 26, 0.9);
    --footer-bg: rgba(0, 0, 0, 0.3);
    --orb-opacity: 0.15;
    --hero-gradient: to right, #fff, #00d4ff;
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --card-hover-border: #00d4ff;
    --btn-outline-border: rgba(255, 255, 255, 0.3);
    --btn-outline-hover-bg: #ffffff;
    --btn-outline-hover-text: #0a0a1a;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --panel-bg: rgba(5, 5, 20, 0.95);
    --dropdown-bg: rgba(10, 10, 26, 0.9);
}

/* ========== LIGHT THEME OVERRIDES ========== */
[data-theme="light"] {
    --primary: #d63384;
    --secondary: #0dcaf0;
    --bg: #f8f9fa;
    --surface: rgba(0, 0, 0, 0.05);
    --surface-hover: rgba(0, 0, 0, 0.1);
    --border: rgba(0, 0, 0, 0.15);
    --text: #212529;
    --text-dim: rgba(0, 0, 0, 0.65);
    --btn-bg: linear-gradient(135deg, #d63384, #e83e8c);
    --btn-shadow: 0 4px 15px rgba(214, 51, 132, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.2);
    --nav-bg: rgba(255, 255, 255, 0.7);
    --nav-scrolled-bg: rgba(255, 255, 255, 0.92);
    --footer-bg: rgba(200, 210, 230, 0.5);
    --orb-opacity: 0.08;
    --hero-gradient: to right, #1a1a4e, #00b8d4;
    --input-bg: rgba(0, 0, 0, 0.04);
    --input-border: rgba(0, 0, 0, 0.12);
    --card-hover-border: #00b8d4;
    --btn-outline-border: rgba(0, 0, 0, 0.25);
    --btn-outline-hover-bg: #0a0a1a;
    --btn-outline-hover-text: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.15);
    --panel-bg: rgba(240, 244, 255, 0.97);
    --dropdown-bg: rgba(255, 255, 255, 0.95);
}

/* ========== RESET & BASE (WITH !important to override inline styles) ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg) !important;   /* FORCES theme background */
    color: var(--text) !important;      /* FORCES theme text color */
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.4s, color 0.4s;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ========== UTILITY ========== */
.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.hidden { display: none !important; }

/* ========== BACKGROUND ORBS ========== */
.bg-orbs {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
.orb {
    position: absolute; border-radius: 50%; filter: blur(100px);
    opacity: var(--orb-opacity); animation: float 20s infinite ease-in-out;
    transition: opacity 0.5s ease;
}
.orb-1 { width: 600px; height: 600px; background: #ff2d95; top: -200px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: #00d4ff; bottom: -200px; right: -100px; animation-delay: -7s; }
.orb-3 { width: 400px; height: 400px; background: #7b2ff7; top: 50%; left: 50%; animation-delay: -14s; }
@keyframes float {
    0%,100%{transform:translate(0,0) scale(1);}
    25%{transform:translate(50px,-30px) scale(1.1);}
    50%{transform:translate(-20px,40px) scale(0.9);}
    75%{transform:translate(-40px,-20px) scale(1.05);}
}

 /* ============ GLASSMORPHIC NAVBAR ============ */
    nav {
      position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
      width: 92%; max-width: 1200px;
      background: var(--nav-bg);
      backdrop-filter: blur(24px);
      border: 1px solid var(--border);
      border-radius: 60px;
      padding: 0.7rem 2rem;
      display: flex; align-items: center; justify-content: space-between;
      z-index: 1000;
      transition: all 0.4s;
    }
    nav.scrolled {
      background: rgba(10, 15, 31, 0.9);
      box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    }
    .logo {
      font-weight: 800; font-size: 1.4rem; color: var(--heading);
      text-decoration: none; letter-spacing: -0.5px;
    }
    .logo span { color: var(--neon); }

    .nav-links { display: flex; list-style: none; gap: 1.9rem; align-items: center; }
    .nav-links a {
      color: var(--text-dim); text-decoration: none;
      font-weight: 500; font-size: 0.9rem; transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--link-hover); }

    .dropdown { position: relative; }
    .dropdown-toggle::after { content: "▾"; font-size: 0.7rem; margin-left: 4px; }
    .dropdown-menu {
      position: absolute; top: 100%; left: 0;
      background: var(--nav-bg); backdrop-filter: blur(24px);
      border: 1px solid var(--border); border-radius: 16px;
      padding: 0.6rem 0; min-width: 210px;
      display: none; flex-direction: column;
      box-shadow: var(--shadow-lg); z-index: 1001;
    }
    .dropdown:hover .dropdown-menu { display: flex; }
    .dropdown-menu a { padding: 0.65rem 1.5rem; color: var(--text-dim); white-space: nowrap; }
    .dropdown-menu a:hover { background: rgba(255,255,255,0.05); color: var(--link-hover); }

    .theme-toggle {
      background: transparent; border: 1px solid var(--border); border-radius: 50%;
      width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: var(--text-dim); transition: 0.2s;
    }
    .theme-toggle:hover { background: var(--surface); color: var(--link-hover); border-color: var(--link-hover); }

 
    .hamburger {
      display: none; /* hidden on desktop */
      flex-direction: column; cursor: pointer; gap: 5px;
      background: none; border: none; padding: 10px;
      justify-self: end;
    }
    .hamburger span { width: 26px; height: 3px; background: var(--text); border-radius: 3px; transition: 0.3s; }

    /* Mobile menu (slides from right) */
    .mobile-menu {
      position: fixed; top:0; right:0;
      left: auto;
      width:100%; height:100vh;
      background: var(--bg); z-index:999;
      display: flex; flex-direction: column;
      justify-content: flex-start;
      align-items: center; gap: 1.8rem;
      transform: translateX(100%);
      transition: 0.4s ease;
      padding: 6rem 2rem 2rem;
      overflow-y: auto;
    }
    .mobile-menu.open { transform: translateX(0); }
    .mobile-menu a {
      color: var(--text); font-size: 1.3rem; font-weight: 600; text-decoration: none;
    }

 @media (max-width: 868px) {
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .hero h1 { font-size: 2.3rem; }
      .card-grid { grid-template-columns: 1fr 1fr; }
    }

/* ========== BUTTONS ========== */
.btn {
    padding: 0.7rem 1.8rem; border-radius: 50px; font-weight: 600;
    background: var(--btn-bg); color: white;
    box-shadow: var(--btn-shadow); border: none; cursor: pointer;
    transition: var(--transition); text-decoration: none; display: inline-block;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255, 45, 149, 0.7); }
.btn-outline {
    background: transparent; border: 2px solid var(--btn-outline-border);
    box-shadow: none; color: var(--text);
}
.btn-outline:hover { background: var(--btn-outline-hover-bg); color: var(--btn-outline-hover-text); border-color: var(--btn-outline-hover-bg); }

/* ========== HERO ========== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; z-index: 1; padding-top: 80px;
}
.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-family: 'Montserrat', sans-serif; font-weight: 900;
    background: linear-gradient(var(--hero-gradient));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}
.typewriter { font-size: 1.3rem; opacity: 0.8; margin-bottom: 2.5rem; min-height: 30px; color: var(--text-dim); }

/* ========== SECTION TITLES & CARDS ========== */
.section-title {
    text-align: center; margin: 4rem 0 2rem; font-size: 2.5rem; font-weight: 800; color: var(--text);
}
.section-title span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.card-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
}
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem; text-align: center;
    transition: 0.4s; color: var(--text);
}
.card:hover { transform: translateY(-10px); border-color: var(--card-hover-border); }
.card i { font-size: 2.5rem; color: var(--secondary); margin-bottom: 1rem; }
.card .btn { margin-top: 0.8rem; }

.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-radius: var(--radius); padding: 2rem;
}

/* ========== COUNTERS ========== */
.counter-section {
    display: flex; justify-content: center; gap: 4rem; margin: 5rem 0; text-align: center; color: var(--text);
}
.counter-num { font-size: 3rem; font-weight: 900; color: var(--secondary); }

/* ========== GALLERY ========== */
.gallery-preview {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.gallery-preview img { width: 100%; border-radius: 16px; transition: 0.3s; }
.gallery-preview img:hover { transform: scale(1.05); }

/* ========== FORMS ========== */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.3rem; color: var(--secondary); font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 14px 18px;
    background: var(--input-bg); border: 1px solid var(--input-border);
    border-radius: var(--radius-sm); color: var(--text);
    font-family: inherit; font-size: 1rem; transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary); box-shadow: 0 0 15px rgba(0,206,201,0.2);
}
.file-upload-box {
    background: var(--surface); border: 1px dashed var(--border);
    border-radius: var(--radius-sm); padding: 1.2rem; text-align: center;
    cursor: pointer; transition: var(--transition); margin-bottom: 0.8rem; position: relative;
}
.file-upload-box i { font-size: 1.5rem; color: var(--secondary); display: block; }
.file-upload-box span { display: block; margin-top: 0.3rem; color: var(--text-dim); }
.file-upload-box input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-upload-box:hover { border-color: var(--secondary); }

/* ========== ADMISSION PANEL ========== */
.admission-panel {
    position: fixed; top: 0; right: 0; width: 100%; max-width: 550px; height: 100vh;
    background: var(--panel-bg); backdrop-filter: blur(30px);
    z-index: 3000; transform: translateX(100%);
    transition: transform 0.5s, background 0.3s; padding: 2.5rem;
    overflow-y: auto; border-left: 1px solid var(--glass-border); color: var(--text);
}
.admission-panel.open { transform: translateX(0); }
.panel-close { position: absolute; top: 20px; right: 20px; font-size: 2rem; cursor: pointer; color: var(--text); }
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 2999; display: none;
}
.overlay.show { display: block; }

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background: #25D366; color: white; width: 65px; height: 65px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    box-shadow: 0 10px 30px rgba(37,211,102,0.5); z-index: 999;
    animation: pulse 2s infinite; text-decoration: none;
}
@keyframes pulse {
    0%{box-shadow:0 0 0 0 rgba(37,211,102,0.7);}
    70%{box-shadow:0 0 0 25px rgba(37,211,102,0);}
    100%{box-shadow:0 0 0 0 rgba(37,211,102,0);}
}

/* ========== FOOTER ========== */
footer {
    background: var(--footer-bg); backdrop-filter: blur(15px);
    padding: 3rem 2rem; margin-top: 5rem; border-top: 1px solid var(--border);
    transition: background 0.3s;
}
.footer-grid {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem;
}
.footer-grid a { color: var(--text); text-decoration: none; transition: color 0.3s; }
.footer-grid a:hover { color: var(--secondary); }
.footer-grid .fa-2x { margin: 0 6px; color: var(--text); transition: color 0.3s; }
.footer-grid .fa-2x:hover { color: var(--secondary); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .gallery-preview { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: var(--bg); backdrop-filter: blur(30px);
        flex-direction: column; justify-content: center; align-items: center;
        gap: 2rem; transform: translateX(-100%);
        transition: transform 0.4s ease-in-out; z-index: 1500; padding: 2rem;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { font-size: 1.2rem; }
    .hamburger { display: flex; position: relative; z-index: 2000; }
    .dropdown-menu { position: static; background: transparent; border: none; padding: 0.5rem 0; backdrop-filter: none; }
    .dropdown-menu a { padding: 0.4rem 1rem; color: var(--text); }
    .hero h1 { font-size: 2.5rem; }
    .counter-section { gap: 2rem; flex-wrap: wrap; }
    .gallery-preview { grid-template-columns: repeat(2, 1fr); }
    .admission-panel { max-width: 100%; }
    nav { padding: 0.6rem 1.2rem; top: 12px; border-radius: 40px; }
    .theme-toggle { width: 34px; height: 34px; font-size: 1rem; }
    .footer-grid { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
    .gallery-preview { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .card-grid { grid-template-columns: 1fr; }
}

/* ========== PAGE-SPECIFIC OVERRIDES (optional) ========== */
.about-hero { min-height: 60vh; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.placement-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; transition: 0.3s; text-align: center;
}
.placement-card:hover { border-color: var(--secondary); transform: translateY(-5px); }
.placement-card .company-logo { font-size: 3rem; color: var(--secondary); margin-bottom: 1rem; }
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem;
}
.gallery-grid img {
    width: 100%; height: 200px; object-fit: cover;
    border-radius: var(--radius-sm); transition: 0.3s;
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: 0 10px 30px var(--shadow-color); }
.auth-container { max-width: 450px; margin: 120px auto 60px; padding: 0 20px; }
.auth-card {
    background: var(--glass-bg); backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 2.5rem; box-shadow: 0 20px 60px var(--shadow-color);
}
.auth-card h2 { text-align: center; margin-bottom: 1.5rem; }
.auth-card .btn { width: 100%; margin-top: 0.5rem; }
.auth-footer { text-align: center; margin-top: 1.2rem; color: var(--text-dim); }
.auth-footer a { color: var(--secondary); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }