/* ==========================================================================
   1. CORE RESET, TYPE ARCHITECTURE, & MATRIX PRE-SETS
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Inter", "Poppins", sans-serif; }
html, body { height: 100%; }
body { background-color: #000; color: #fff; overflow-y: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body::before {
  content: ""; position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 95% 5%, rgba(255, 59, 59, 0.45) 0%, transparent 40%),
    radial-gradient(circle at 5% 95%, rgba(255, 20, 20, 0.35) 0%, transparent 40%);
  filter: blur(80px); pointer-events: none; z-index: 0;
}

/* ==========================================================================
   2. CONTAINMENT CONFIGURATIONS & HERO SECTIONS
   ========================================================================== */
main { position: relative; z-index: 5; display: block; width: 100%; margin: 0 auto; padding: 0 40px 80px; }
.hero-art { background: linear-gradient(90deg, rgba(0, 0, 0, 0), transparent 28%), url("assets/front.png") center / cover no-repeat; filter: saturate(1.08) contrast(1.03); }
.hero { min-height: 85vh; display: flex; margin-top: 100px; justify-content: center; align-items: center; text-align: left; border-radius: 20px; }
.hero-copy { position: relative; width: 100%; z-index: 2; }
.hero-bg { padding: 0px 60px; border-radius: 24px; position: relative; }

.hero-bg::before {
  content: ""; position: absolute; inset: 0; opacity: .42;
  background-image:
    linear-gradient(115deg, transparent 0 31%, rgba(255, 40, 45, .22) 31.2%, transparent 31.6% 100%),
    radial-gradient(circle at 70% 38%, rgba(255, 255, 255, .75) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 18%, rgba(255, 38, 43, .9) 0 2px, transparent 3px),
    radial-gradient(circle at 91% 36%, rgba(255, 255, 255, .75) 0 2px, transparent 3px);
  background-size: 240px 180px, 100% 100%, 100% 100%, 100% 100%; pointer-events: none;
}

.hero h1 { max-width: 700px; font-size: clamp(38px, 5vw, 56px); line-height: 1.1; text-transform: uppercase; font-weight: 900; letter-spacing: .02em; text-shadow: 0 4px 0 rgba(255, 255, 255, .05), 0 0 20px rgba(255, 255, 255, .1); }
.animated-text { display: inline-block; font-size: inherit; font-weight: 900; min-width: 240px; }
#changing-word { display: inline-block; transition: opacity 0.4s ease, transform 0.4s ease; color: #ff2a2a; text-shadow: 0 0 20px rgba(255, 42, 42, 0.4); }
.hero p { max-width: 650px; margin: 24px 0 32px; color: #e5e5e8; font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }

.internship-btn, .resume-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; font-size: 14px; font-weight: 800; border-radius: 999px; color: #fff; cursor: pointer; white-space: nowrap; transition: transform 0.2s ease, box-shadow 0.2s ease; border: none; }
.internship-btn { background: linear-gradient(135deg, #ff3a3d, #f10910); box-shadow: 0 9px 22px rgba(255, 33, 40, .35); }
.internship-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 33, 40, .5); }
.resume-btn { background: linear-gradient(135deg, #7a38e5, #5023c8); box-shadow: 0 9px 24px rgba(93, 47, 208, .34); }
.resume-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(93, 47, 208, .5); }

.support-row { width: min(100%, 600px); padding: 12px; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; background: rgba(13, 14, 17, .85); box-shadow: inset 0 0 30px rgba(255, 255, 255, .02); }
.support-row div { min-height: 40px; padding-left: 36px; position: relative; display: flex; flex-direction: column; justify-content: center; font-size: 11px; line-height: 1.2; }
.support-row div::before { content: ""; position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: 1px solid #ffb321; border-radius: 50%; background: radial-gradient(circle, rgba(255, 179, 33, .22), transparent 68%); }
.support-row div:nth-child(2)::before { border-color: #d020ff; background: radial-gradient(circle, rgba(208, 32, 255, .22), transparent 68%); }
.support-row div:nth-child(3)::before { border-color: #1fa3ff; background: radial-gradient(circle, rgba(31, 163, 255, .22), transparent 68%); }
.support-row div:nth-child(4)::before { border-color: #ffd22a; background: radial-gradient(circle, rgba(255, 210, 42, .22), transparent 68%); }
.support-row b { font-weight: 700; color: #fff; }
.support-row span { color: #b3b3b3; }
.hero-spacer { height: 60px; }

/* ==========================================================================
   3. METRICS ROW
   ========================================================================== */
.stats { margin-top: 20px; padding: 24px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: linear-gradient(145deg, rgba(23, 24, 28, .92), rgba(9, 10, 12, .82)); box-shadow: 0 22px 55px rgba(0, 0, 0, .4); margin-bottom: 60px; }
.stats article { display: flex; align-items: center; gap: 20px; padding: 8px 24px; border-right: 1px solid rgba(255, 255, 255, .12); }
.stats article:last-child { border-right: 0; }
.stat-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #ff3a3d; font-size: 24px; }
.stats strong { display: block; color: #fff; font-size: 28px; font-weight: 900; line-height: 1.1; }
.stats small { display: block; margin-top: 4px; font-size: 13px; color: #a0a0a5; }

/* ==========================================================================
   4. INTERACTIVE COURSE GRIDS
   ========================================================================== */
.courses, .testimonials { margin-bottom: 60px; }
.section-head { display: flex; justify-content: center; align-items: center; margin-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 14px; }
h2 { font-size: 24px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.error-banner { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #ef4444; padding: 12px 18px; border-radius: 10px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.course-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }

.course-card { border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: linear-gradient(180deg, rgba(19, 20, 24, .8) 0%, rgba(8, 9, 11, .96) 100%); overflow: hidden; display: flex; flex-direction: column; -webkit-tap-highlight-color: transparent; will-change: transform, border-color, box-shadow; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.course-card:hover, .course-card.is-touched { transform: translateY(-6px) scale(1.02); }
.course-image-wrapper { width: 100%; height: 180px; background: rgba(255,255,255,0.02); position: relative; overflow: hidden; }
.course-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.course-card:hover .course-image-wrapper img, .course-card.is-touched .course-image-wrapper img { transform: scale(1.05); }

.course-card.red { border-color: rgba(255, 40, 45, .25); background-image: radial-gradient(circle at top, rgba(255, 35, 39, .08), transparent 50%), linear-gradient(180deg, rgba(19, 20, 24, .8), rgba(8, 9, 11, .96)); }
.course-card.red:hover, .course-card.red.is-touched { border-color: rgba(255, 40, 45, 0.6); box-shadow: 0 12px 30px rgba(255, 40, 45, 0.25); }
.course-card.blue { border-color: rgba(40, 130, 255, .25); background-image: radial-gradient(circle at top, rgba(40, 130, 255, .08), transparent 50%), linear-gradient(180deg, rgba(19, 20, 24, .8), rgba(8, 9, 11, .96)); }
.course-card.blue:hover, .course-card.blue.is-touched { border-color: rgba(40, 130, 255, 0.6); box-shadow: 0 12px 30px rgba(40, 130, 255, 0.25); }
.course-card.indigo { border-color: rgba(68, 92, 181, .3); background-image: radial-gradient(circle at top, rgba(68, 92, 181, .08), transparent 50%), linear-gradient(180deg, rgba(19, 20, 24, .8), rgba(8, 9, 11, .96)); }
.course-card.indigo:hover, .course-card.indigo.is-touched { border-color: rgba(68, 92, 181, 0.6); box-shadow: 0 12px 30px rgba(68, 92, 181, 0.25); }
.course-card.purple { border-color: rgba(121, 59, 238, .3); background-image: radial-gradient(circle at top, rgba(121, 59, 238, .08), transparent 50%), linear-gradient(180deg, rgba(19, 20, 24, .8), rgba(8, 9, 11, .96)); }
.course-card.purple:hover, .course-card.purple.is-touched { border-color: rgba(121, 59, 238, 0.6); box-shadow: 0 12px 30px rgba(121, 59, 238, 0.25); }
.course-card.cyan { border-color: rgba(37, 208, 255, .25); background-image: radial-gradient(circle at top, rgba(37, 208, 255, .08), transparent 50%), linear-gradient(180deg, rgba(19, 20, 24, .8), rgba(8, 9, 11, .96)); }
.course-card.cyan:hover, .course-card.cyan.is-touched { border-color: rgba(37, 208, 255, 0.6); box-shadow: 0 12px 30px rgba(37, 208, 255, 0.25); }
.course-card.green { border-color: rgba(88, 184, 70, .25); background-image: radial-gradient(circle at top, rgba(88, 184, 70, .08), transparent 50%), linear-gradient(180deg, rgba(19, 20, 24, .8), rgba(8, 9, 11, .96)); }
.course-card.green:hover, .course-card.green.is-touched { border-color: rgba(88, 184, 70, 0.6); box-shadow: 0 12px 30px rgba(88, 184, 70, 0.25); }

.course-card-content { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.course-card h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; color: #fff; }
.course-card p { color: #a0a0a5; font-size: 14px; line-height: 1.5; margin-bottom: 20px; flex: 1; }
.course-card strong { display: block; font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 16px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 14px; }
.action-anchor-wrapper { text-decoration: none; width: 100%; }
.enroll-action-btn { width: 100%; height: 44px; border: 0; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #f9373a, #c90f14); font-weight: 700; font-size: 14px; cursor: pointer; transition: opacity 0.2s; }
.enroll-action-btn:hover { opacity: 0.9; }
.coming-soon-btn { background: #333 !important; color: #777 !important; cursor: not-allowed; }

.courses-bottom-action { display: flex; justify-content: center; align-items: center; margin-top: 40px; width: 100%; }
.courses-bottom-action .see-all-btn { color: #ff3a3d; text-decoration: none; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 13px 34px; border: 1px solid rgba(255, 58, 61, 0.3); border-radius: 30px; background: rgba(255, 58, 61, 0.02); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
.courses-bottom-action .see-all-btn:hover { color: #fff; background: linear-gradient(135deg, #ff3a3d, #c90f14); border-color: transparent; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 33, 40, 0.35); }

/* ==========================================================================
   5. REVIEWS ROLLING TRACK
   ========================================================================== */
.testimonials { overflow: hidden; position: relative; }
.say { text-align: center; margin-bottom: 28px; }
.testimonials-container { width: 100%; overflow: hidden; position: relative; display: flex; padding: 20px 0; }
.testimonials-container::before, .testimonials-container::after { content: ""; position: absolute; top: 0; width: 150px; height: 100%; z-index: 3; pointer-events: none; }
.testimonials-container::before { left: 0; background: linear-gradient(to right, #000 0%, transparent 100%); }
.testimonials-container::after { right: 0; background: linear-gradient(to left, #000 0%, transparent 100%); }
.testimonials-marquee-track { display: flex; width: max-content; gap: 20px; animation: testimonialRotate 45s linear infinite; }
.testimonials-container:hover .testimonials-marquee-track { animation-play-state: paused; }

.testimonial-card-node { width: 360px; padding: 24px; display: flex; gap: 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: linear-gradient(145deg, rgba(27, 29, 34, .76), rgba(5, 6, 8, .9)); flex-shrink: 0; transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.testimonial-card-node:nth-child(even) { background: radial-gradient(circle at left, rgba(133, 15, 18, .2), transparent 60%), linear-gradient(145deg, rgba(27, 29, 34, .76), rgba(5, 6, 8, .9)); }
.testimonial-card-node:hover { border-color: rgba(255, 42, 42, 0.4); box-shadow: 0 10px 25px rgba(255, 42, 42, 0.15); transform: scale(1.03); }

.avatar { width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; border: 2px solid rgba(255, 255, 255, .15); }
.avatar.one { background: radial-gradient(circle at 50% 32%, #ffd2a7 0 15%, transparent 16%), radial-gradient(circle at 50% 53%, #21242b 0 20%, transparent 21%), linear-gradient(135deg, #ffe1b8, #0e6fa8); }
.avatar.two { background: radial-gradient(circle at 50% 32%, #f0b17d 0 15%, transparent 16%), radial-gradient(circle at 50% 53%, #1d2027 0 20%, transparent 21%), linear-gradient(135deg, #1c3148, #e5e5e5); }
.avatar.three { background: radial-gradient(circle at 50% 32%, #f3b484 0 15%, transparent 16%), radial-gradient(circle at 50% 53%, #321b20 0 20%, transparent 21%), linear-gradient(135deg, #f2a642, #237ac8); }
.stars { color: #ff3a3d; font-size: 14px; margin-bottom: 8px; }
.testimonial-card-node p { color: #e5e5e8; font-size: 13px; line-height: 1.5; margin-bottom: 12px; text-align: left; }
.testimonial-card-node strong { display: block; font-size: 14px; color: #fff; font-weight: 600; text-align: left;}
.testimonial-card-node small { display: block; margin-top: 2px; color: #a0a0a5; font-size: 12px; text-align: left;}
@keyframes testimonialRotate { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(calc(-50% - 10px), 0, 0); } }

/* ==========================================================================
   6. CORPORATE PLACEMENTS BRAND SCROLL
   ========================================================================== */
.placements { margin-top: 60px; padding: 60px 0; text-align: center; overflow: hidden; position: relative; }
.placements-title { font-size: 2.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 40px; color: #ffffff; text-shadow: 0 0 20px rgba(255, 58, 61, 0.3); }
.placements-container { display: flex; width: 100%; overflow: hidden; position: relative; background: linear-gradient(90deg, rgba(255,255,255,0.01) 0%, rgba(255, 42, 42, 0.02) 50%, rgba(255,255,255,0.01) 100%); border-top: 1px solid rgba(255, 42, 42, 0.15); border-bottom: 1px solid rgba(255, 42, 42, 0.15); padding: 35px 0; box-shadow: inset 0 0 30px rgba(255, 42, 42, 0.05); }
.placements-container::before, .placements-container::after { content: ""; position: absolute; top: 0; width: 150px; height: 100%; z-index: 3; pointer-events: none; }
.placements-container::before { left: 0; background: linear-gradient(to right, #000 0%, transparent 100%); }
.placements-container::after { right: 0; background: linear-gradient(to left, #000 0%, transparent 100%); }
.placements-marquee-track { display: flex; width: max-content; animation: corporateRotate 25s linear infinite; }
.marquee-slide { width: 200px; padding: 0 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.marquee-slide img { max-width: 130px; width: 100%; height: auto; opacity: 0.95; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)); background: rgba(255, 255, 255, 0.04); padding: 14px 20px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.placements-container:hover .placements-marquee-track { animation-play-state: paused; }
.marquee-slide img:hover { opacity: 1; background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 42, 42, 0.4); box-shadow: 0 10px 25px rgba(255, 42, 42, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2); transform: scale(1.12) rotate(2deg); }
@keyframes corporateRotate { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-50%, 0, 0); } }

/* ==========================================================================
   7. INTERNSHIP & GENERAL SYSTEM OVERLAYS
   ========================================================================== */
.internship-overlay, .thankyou-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 1001; }

/* MODIFIED: Added max-height, overflow, and hid scrollbar for responsive scrolling */
.internship-card, .thankyou-card { width: 440px; max-width: 95%; max-height: 90vh; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; background: rgba(20, 20, 25, 0.85); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 30px; color: #fff; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.8); animation: popupIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); transform-style: preserve-3d; }
.internship-card::-webkit-scrollbar, .thankyou-card::-webkit-scrollbar { display: none; }

@keyframes popupIn { from { opacity: 0; transform: scale(0.92) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.popup-header { text-align: center; margin-bottom: 24px; }
.popup-header img { height: 44px; margin-bottom: 12px; }
.popup-header h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.popup-header p { font-size: 14px; color: #a0a0a5; }
.status-error-msg-banner { background: rgba(239, 68, 68, 0.15); color: #ef4444; padding: 10px; border-radius: 8px; margin-bottom: 16px; text-align: center; font-size: 13px; font-weight: 600; border: 1px solid rgba(239, 68, 68, 0.25); }
.status-error-msg { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); padding: 10px; border-radius: 8px; font-size: 13px; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.internship-form { display: flex; flex-direction: column; gap: 18px; }
.input-group{ position: relative; }
.input-group input, .input-group select { width: 100%; padding: 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); outline: none; background: rgba(0,0,0,0.4); color: #fff; font-size: 14px; transition: border-color 0.2s; }
.input-group input:focus, .input-group select:focus { border-color: #ff3a3d; }
.input-group label { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #a0a0a5; font-size: 14px; pointer-events: none; transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.input-group input:focus + label, .input-group input:not(:placeholder-shown) + label, .input-group select:focus + label, .input-group select:valid + label { top: 0; font-size: 11px; color: #ff3a3d; background: #141419; padding: 0 6px; left: 10px; }

.empty-vector-notice { color: #a0a0a5; font-size: 13px; padding: 12px; border: 1px dashed rgba(255,255,255,0.15); border-radius: 8px; text-align: center; }
.drop-zone { border: 2px dashed rgba(255, 255, 255, 0.15); border-radius: 12px; background: rgba(255, 255, 255, 0.02); padding: 20px; text-align: center; cursor: pointer; position: relative; transition: background 0.2s, border-color 0.2s; }
.drop-zone:hover, .drop-zone.drag-over { background: rgba(255, 58, 61, 0.05); border-color: #ff3a3d; }
.upload-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.upload-text { font-size: 13px; color: #e5e5e8; }
.upload-hint { font-size: 11px; color: #777; margin-top: 2px; }
#resume-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.file-info-hidden { display: none; }
.file-info-visible { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 10px 14px; background: rgba(16, 185, 129, 0.1); border: 1px solid #10b981; border-radius: 8px; color: #10b981; font-size: 13px; }
.remove-file { background: none; border: none; color: #ef4444; cursor: pointer; font-weight: bold; font-size: 14px; }
.apply-btn, .check-btn { padding: 14px; border-radius: 10px; border: none; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform 0.2s; }
.apply-btn { background: linear-gradient(135deg, #ff3a3d, #c90f14); }
.check-btn { background: #222; border: 1px solid rgba(255,255,255,0.08); margin-top: -6px; }
.apply-btn:hover { transform: translateY(-1px); }
.check-btn:hover { background: #2a2a2a; }
.close-btn { position: absolute; top: 16px; right: 20px; font-size: 24px; cursor: pointer; color: #777; transition: color 0.2s; }
.close-btn:hover { color: #fff; }

.enroll-message { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2000; background: rgba(0,0,0,0.45); }
.enroll-card { background: #111; border-radius: 12px; padding: 24px; border: 1px solid rgba(255,255,255,0.1); text-align: center; width: 320px; }
.enroll-card p { margin-bottom: 16px; font-size: 14px; color: #fff; line-height: 1.4; }
.close-btn-inline { padding: 8px 16px; border-radius: 6px; border: none; background: #ff3a3d; color: #fff; font-weight: 600; cursor: pointer; }

.thankyou-card { text-align: center; padding: 40px 30px; }
.checkmark { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: #ff3a3d; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 0 24px rgba(255,58,61,0.5); }
.thankyou-card h2 { margin-bottom: 8px; }
.thankyou-card p { color: #a0a0a5; font-size: 14px; margin-bottom: 24px; line-height: 1.5; }
.thankyou-card button { padding: 12px 28px; border-radius: 999px; border: none; background: #ff3a3d; color: #fff; font-weight: 700; cursor: pointer; }
.confetti-container { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 2000; }
.confetti { position: absolute; width: 8px; height: 12px; opacity: 0.8; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: 0; } }
.hidden { display: none !important; }

/* ==========================================================================
   8. HUB VALUE CARDS
   ========================================================================== */
.best-known-section { padding: 60px 6px 40px; background: transparent; position: relative; }
.section-center-header { text-align: center; margin-bottom: 45px; }
.section-center-header h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #fff; line-height: 1.3; }
.section-subtitle { color: #cfcfcf; font-size: 1.05rem; margin-top: 10px; opacity: 0.85; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px; padding: 35px 22px; text-align: center; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); width: 100%; }
.feature-card:hover { transform: translateY(-8px); border-color: rgba(255, 42, 42, 0.4); box-shadow: 0 12px 40px rgba(255, 42, 42, 0.15); }
.feature-icon { font-size: 2.2rem; color: #ff2a2a; margin-bottom: 18px; display: inline-block; text-shadow: 0 0 15px rgba(255, 42, 42, 0.4); }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
.feature-card p { font-size: 0.92rem; color: #b3b3b3; line-height: 1.6; }

/* ==========================================================================
   9. CORE SPECIALIZED TRACKS
   ========================================================================== */
.all-courses-matrix { background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.9) 100%); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 50px 30px; margin-top: 40px; margin-bottom: 20px; }
.matrix-header { text-align: center; margin-bottom: 40px; }
.matrix-header h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; }
.matrix-header p { color: #b3b3b3; font-size: 1rem; margin-top: 10px; }
.matrix-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.matrix-card { background: rgba(255, 255, 255, 0.01); border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 14px; padding: 28px; transition: background 0.3s ease, border-color 0.3s ease; width: 100%; }
.matrix-card:hover { background: rgba(255, 42, 42, 0.01); border-color: rgba(255, 42, 42, 0.2); }
.matrix-card-title { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 10px; }
.matrix-card-title i { color: #ff2a2a; }
.matrix-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.matrix-list li { font-size: 0.9rem; color: #b3b3b3; line-height: 1.5; }
.matrix-list strong { color: #ff8a8a; }

/* ==========================================================================
   10. CENTRAL HUB BHOPAL CORE
   ========================================================================== */
.local-bhopal-section { background: linear-gradient(135deg, rgba(255, 42, 42, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 45px 30px; margin-top: 40px; margin-bottom: 20px; }
.bhopal-wrapper { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.location-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 42, 42, 0.12); color: #ff2a2a; padding: 6px 14px; border-radius: 30px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; border: 1px solid rgba(255, 42, 42, 0.25); }
.bhopal-content h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 15px; }
.bhopal-content p { color: #b3b3b3; font-size: 0.95rem; line-height: 1.6; margin-bottom: 30px; }
.local-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 15px; }
.stat-box { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 12px; padding: 20px 10px; text-align: center; }
.stat-box h3 { font-size: 1.6rem; color: #fff; font-weight: 800; margin-bottom: 4px; }
.stat-box p { font-size: 0.8rem; color: #a3a3a3; margin-bottom: 0; text-transform: uppercase; letter-spacing: 0.5px; }
.bhopal-amenities { background: rgba(255, 255, 255, 0.01); border: 1px solid rgba(255, 255, 255, 0.03); border-radius: 14px; padding: 30px; }
.bhopal-amenities h3 { font-size: 1.2rem; color: #fff; margin-bottom: 20px; font-weight: 700; }
.amenities-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.amenities-list li { display: flex; gap: 12px; font-size: 0.9rem; color: #b3b3b3; line-height: 1.5; }
.amenities-list i { color: #ff2a2a; font-size: 1.1rem; margin-top: 2px; }
.amenities-list strong { color: #fff; }

/* ==========================================================================
   10B. GALLERY STRUCTURAL MATRICES
   ========================================================================== */
.campus-gallery-section { padding: 60px 6px 40px; background: transparent; position: relative; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 30px; }
.gallery-card { background: rgba(255, 255, 255, 0.01); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px; overflow: hidden; position: relative; height: 260px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); will-change: transform, border-color, box-shadow; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.gallery-media-wrapper { width: 100%; height: 100%; position: relative; overflow: hidden; background: #070708; }
.gallery-media-wrapper img, .gallery-media-wrapper video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.gallery-card:hover { transform: translateY(-6px) scale(1.02); border-color: rgba(255, 42, 42, 0.5); box-shadow: 0 16px 35px rgba(255, 42, 42, 0.15); }
.gallery-card:hover .gallery-media-wrapper img, .gallery-card:hover .gallery-media-wrapper video { transform: scale(1.06); }

.gallery-overlay-info { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; opacity: 0; transform: translateY(10px); transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 2; }
.gallery-card:hover .gallery-overlay-info { opacity: 1; transform: translateY(0); }
.media-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 42, 42, 0.2); border: 1px solid rgba(255, 42, 42, 0.4); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; margin-bottom: 10px; }
.gallery-overlay-info h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 6px; line-height: 1.3; }
.gallery-overlay-info p { font-size: 0.85rem; color: #d1d1d6; line-height: 1.4; }

/* ==========================================================================
   10C. TRUNCATED ACCORDION TOGGLES
   ========================================================================== */
.gallery-card.hidden-asset { display: none !important; }
.gallery-card.visible-asset { display: block !important; animation: cardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes cardFadeIn { from { opacity: 0; transform: translateY(15px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ==========================================================================
   10D. THEATER MODAL VIEWPORT CONTAINER STYLES
   ========================================================================== */
.video-popup-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; z-index: 3000; animation: fadeIn 0.3s ease; }
.video-popup-card { width: min(90%, 960px); background: rgba(15, 15, 20, 0.85); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 10px; position: relative; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9); animation: popupIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.video-popup-body { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.04); }
.popup-video-frame { width: 100%; height: 100%; object-fit: contain; }
.video-popup-close { position: absolute; top: -46px; right: 4px; font-size: 36px; color: #aaa; cursor: pointer; transition: color 0.2s, transform 0.2s; }
.video-popup-close:hover { color: #ff3a3d; transform: scale(1.1); }
.video-popup-footer { padding: 14px 10px 6px; }
.video-popup-footer h3 { font-size: 1.2rem; font-weight: 700; color: #fff; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   10E. VIDEO CARD OVERLAY PLAY INDICATOR SYSTEM
   ========================================================================== */
.video-play-indicator { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 1; transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.play-icon-glow { width: 56px; height: 56px; background: rgba(255, 42, 42, 0.85); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 25px rgba(255, 42, 42, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.3); backdrop-filter: blur(4px); transition: background 0.2s ease, transform 0.2s ease; }
.play-icon-glow i { color: #fff; font-size: 20px; margin-left: 4px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
.gallery-card:hover .video-play-indicator { opacity: 0; transform: scale(0.8); }

/* ==========================================================================
   11. RESPONSIVENESS MATRICES
   ========================================================================== */
@media (max-width: 1300px) { .course-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) {
  main { padding: 0 24px 60px; } .course-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); } .stats article { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 16px; }
  .stats article:nth-child(3), .stats article:nth-child(4) { border-bottom: none; } .bhopal-wrapper { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 900px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  main { padding: 0 20px 60px; } .hero { margin-top: 116px; min-height: auto; } .hero-bg { padding: 30px 20px; background-size: cover; }
  .hero h1 { font-size: 32px; } .hero p { font-size: 16px; } .animated-text { min-width: 100%; display: block; }
  .support-row { grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; } .stats, .course-grid { grid-template-columns: 1fr; }
  .stats article:nth-child(3) { border-bottom: 1px solid rgba(255,255,255,0.08); } .stats article:last-child { border-bottom: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; } .placements-title { font-size: 1.8rem; margin-bottom: 24px; }
  .placements-container { padding: 25px 0; } .marquee-slide { width: 160px; padding: 0 12px; } .marquee-slide img { max-width: 110px; padding: 10px 14px; }
  .placements-container::before, .placements-container::after { width: 80px; } .best-known-section, .all-courses-matrix, .local-bhopal-section { padding: 35px 20px; }
  .testimonial-card-node { width: 280px; padding: 16px; gap: 12px; } .testimonial-card-node p { font-size: 12px; margin-bottom: 8px; }
  .avatar { width: 44px; height: 44px; } .testimonials-container::before, .testimonials-container::after { width: 50px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } .gallery-card { height: 220px; }
  .gallery-overlay-info { opacity: 1; transform: translateY(0); padding: 14px; background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 100%); }
  .video-popup-card { width: 95%; padding: 6px; } .video-popup-close { top: -40px; right: 0; font-size: 30px; } .video-popup-footer h3 { font-size: 1rem; }
}
@media (max-width: 480px) {
  main { padding: 0 16px 40px; } .hero { margin-top: 96px; } .hero-bg { padding: 24px 16px; } .hero h1 { font-size: 26px; }
  .hero-actions { flex-direction: column; width: 100%; gap: 12px; } .internship-btn, .resume-btn { width: 100%; }
  .support-row { grid-template-columns: 1fr; } .support-row div { padding-left: 40px; } .stats { padding: 12px; }
  .stats article { gap: 12px; padding: 12px 6px; } .stats strong { font-size: 24px; } .popup-header h2 { font-size: 18px; }
  .internship-card, .thankyou-card { padding: 24px 16px; } .local-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) { .hero h1 { font-size: 22px; } .stats strong { font-size: 20px; } .stat-icon { font-size: 20px; width: 36px; height: 36px; } .testimonial-card-node { width: 250px; } }

/* ==========================================================================
   12. ULTRA MICRO-VIEWPORT REFINEMENTS (No Core Architecture Changes)
   ========================================================================== */
@media (max-width: 400px) {
  .matrix-grid { grid-template-columns: 1fr !important; }
  .features-grid { grid-template-columns: 1fr !important; }
  .local-stats-grid { grid-template-columns: 1fr !important; }
  .hero-bg { padding: 20px 10px !important; }
  .internship-card, .thankyou-card { padding: 20px 12px !important; }
}