/* ========================================
   BEACON TECH HUB - GLOBAL STYLES
   Modern, Responsive, Roborange Theme
   ======================================== */

/* ROOT VARIABLES */
:root {
    --primary-orange: #FF6B35;
    --secondary-orange: #FF8C42;
    --accent-orange: #FFA552;
    --light-orange: #FFB74D;
    --dark-bg: #0F0F0F;
    --light-bg: #FFFFFF;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-2xl: 2rem;
    --fade-distance: 30px; /* used by responsive keyframes */
    --hero-content-top: 70%; /* adjustable per breakpoint */
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(1.5rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.25rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.25rem; }
p { color: var(--text-light); font-size: 1rem; }

a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-orange);
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 2vw, 2rem);
}

/* Make images scale responsibly */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
}

.btn-secondary:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   NAVBAR / HEADER
   ======================================== */

.navbar {
    position: sticky;
    top: 0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.8rem;
    background-image: url("assets/images/final_logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   HERO SECTION
   ======================================== */


.hero-slider {
    position: relative;
    /* responsive hero height: min 360px, prefer viewport, cap at 900px */
    height: clamp(360px, 60vh, 900px);
    width: 100%;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slides */
.slides {
    height: 100%;
    width: 100%;
    position: absolute;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.slide:nth-child(1) {
    background-image: url("assets/images/slide1.png")
}

.slide:nth-child(2) {
    background-image: url("assets/images/slide2.png")
}

.slide:nth-child(3) {
    background-image: url("assets/images/slide3.png")
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Gradient Overlay */
.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.45),
        rgba(10, 77, 140, 0.20),
        rgba(0, 230, 118, 0.08)
    );
    z-index: 1;
}


/* Content at Bottom */
.hero-content {
    position: absolute;
    top: var(--hero-content-top);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 0 clamp(0.5rem, 2vw, 20px);
    width: 100%;
}

/* Text */
.hero-title {
    font-size: clamp(1.6rem, 4.8vw, 4.2rem);
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(90deg, #1e88e5, #00e676, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.hero-subtitle {
    margin-top: 1.25rem;
    font-size: clamp(0.9rem, 2.2vw, 1.25rem);
    color: #f0f0f0;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.hero-buttons {
    margin-top: 1%;
    margin-bottom: 1%;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: clamp(8px, 1.8vw, 12px) clamp(14px, 3.2vw, 26px);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, #1e88e5, #00e676);
    color: #fff;
}

.btn-secondary {
    border: 2px solid #ff9800;
    color: #ff9800;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 230, 118, 0.4);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    background: #aaa;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: linear-gradient(90deg, #00e676, #ff9800);
}

.hero-slider {
    position: relative;
    height: 75vh;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s ease, transform 1.2s ease;
}
.slide.active {
    opacity: 1;
    transform: scale(1);
}


/* ========================================
   STATS / COUNTERS SECTION
   ======================================== */

.stats {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* ========================================
   MISSION & VISION SECTION
   ======================================== */

.mission-vision {
    padding: 5rem 2rem;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.mission-card {
    background: linear-gradient(135deg, #fff9f0, #fff5e6);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    border: 2px solid rgba(255, 107, 53, 0.1);
    transition: var(--transition);
}

.mission-card:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mission-card h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.mission-list {
    list-style: none;
}

.mission-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.mission-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

/* ========================================
   COURSES SECTION
   ======================================== */

.courses {
    padding: 5rem 2rem;
    background: #fafafa;
}

/* FILTER BUTTONS */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-dark);
}

.filter-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    border-color: transparent;
}

/* COURSES GRID */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: clamp(1rem, 2.5vw, 2rem);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 1;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    transition: var(--transition);
    z-index: 2;
}

.course-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; /* default: no background image shown */
    z-index: 0;
    pointer-events: none;
    border-radius: var(--radius-2xl);
}

/* Utility: add background to a specific card by giving it `has-bg` and setting --bg-image */
.course-card.has-bg::after {
    background-image: var(--bg-image);
    opacity: 0.12; /* adjust visibility as needed */
}

/* Ensure all course card content appears above background */
.course-card > * {
    position: relative;
    z-index: 1;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-card.hide {
    display: none;
    opacity: 0;
}

.course-badge {
    display: inline-block;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-orange);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.course-logo {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 140, 66, 0.05));
    border-radius: var(--radius-lg);
}

.course-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.course-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-title-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.course-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

.course-link {
    color: var(--primary-orange);
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.course-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: var(--transition);
}

.course-link:hover::after {
    width: 100%;
}

/* ========================================
   OUR TEAM SECTION
   ======================================== */

.team {
    padding: 5rem 2rem;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

.team-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.team-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--text-dark);
}

.team-designation {
    padding: 0 1.5rem;
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 0.95rem;
}

.team-contact {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
}

.social-icon {
    display: inline-block;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    text-align: center;
    line-height: 35px;
    font-weight: 700;
    transition: var(--transition);
    font-size: 0.85rem;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.phone {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   PROJECTS SECTION
   ======================================== */

.projects {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-orange);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    padding: 5rem 2rem;
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    background: linear-gradient(135deg, #fff9f0, #fff5e6);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    border: 2px solid rgba(255, 107, 53, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Inline form messages (success / error) */
.form-message {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: none;
}
.form-message.is-visible { display: block; }
.form-message.success {
    background: linear-gradient(90deg, rgba(0,230,118,0.12), rgba(30,136,229,0.06));
    color: #117a3a;
    border: 1px solid rgba(0,230,118,0.12);
}
.form-message.error {
    background: rgba(255, 107, 53, 0.06);
    color: #7a2b1a;
    border: 1px solid rgba(255, 107, 53, 0.12);
}
.form-message small { display:block; opacity:0.9; font-weight:500; }

/* Loading indicator inside button */
.btn.loading { position: relative; pointer-events: none; opacity: 0.9; }
.btn.loading::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.6);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.contact-item {
    padding: 2rem;
    background: linear-gradient(135deg, #fff9f0, #fff5e6);
    border-radius: var(--radius-2xl);
    border: 2px solid rgba(255, 107, 53, 0.1);
}

.contact-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.contact-item p {
    color: var(--text-light);
}

.contact-item a {
    color: var(--primary-orange);
    font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */

/* ========================================
   OUR LOCATION SECTION
   ======================================== */
.location-section {
    padding: 4rem 2rem;
    background: #fafafa;
}

.location-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    max-width: 1200px;
    margin: 0 auto 2rem;
    overflow: hidden;
}

.location-content {
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-subtitle {
    color: var(--text-light);
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.location-address {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 1rem;
}

.location-address address {
    font-style: normal;
    line-height: 1.5;
    color: var(--text-dark);
}

.location-icon {
    color: var(--primary-orange);
    font-size: 1.6rem;
    margin-top: 4px;
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: block;
}

@media (max-width: 768px) {
    /* responsive variable overrides */
    :root {
        --fade-distance: 16px;
        --hero-content-top: 62%;
    }
    .location-card {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .map-wrapper iframe {
        height: 300px;
    }
    .location-subtitle {
        font-size: 0.98rem;
    }
}



    .footer-content {
        padding: 0 1rem;
    }
    .social-links {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    }

    .social-link {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 152, 0, 0.15);
        color: #ff9800;
        font-size: 18px;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .social-link:hover {
    background: linear-gradient(135deg, #ff9800 30%, #00e676 100%);
    color: #ffffff !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.4);
    }

    .social-link:hover i {
        color: #ffffff !important;
    }


    .social-link:hover i {
        transform: scale(1.15);
    }
    .footer {
        background: var(--dark-bg);
        color: white;
        padding: 3rem 2rem 1rem;
    }

    .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 3rem;
        max-width: 1200px;
        margin: 0 auto 2rem;
    }

    .footer-section h4 {
        margin-bottom: 1rem;
        color: var(--light-orange);
    }

    .footer-section ul {
        list-style: none;
    }

    .footer-section li {
        margin-bottom: 0.75rem;
    }

    .footer-section a {
        color: #bbb;
        transition: var(--transition);
    }

    .footer-section a:hover {
        color: var(--primary-orange);
    }

    .social-links {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .social-link {
        display: inline-block;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 107, 53, 0.2);
        color: var(--light-orange);
        text-align: center;
        line-height: 40px;
        transition: var(--transition);
        font-size: 0.85rem;
        font-weight: 600;
    }

    .social-link:hover {
        background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
        color: white;
        transform: scale(1.1);
    } 

    /* .footer-bottom {
        text-align: center;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: #999;
    }

    /* ========================================
    ANIMATIONS
    ======================================== */
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(var(--fade-distance, 30px));
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(calc(var(--fade-distance, 30px) * -1));
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes countUp {
        from {
            transform: scale(0.8);
        }
        to {
            transform: scale(1);
        }
    }

/* ========================================
   RESPONSIVE DESIGN (Mobile-First)
   ======================================== */

@media (max-width: 768px) {
    /* NAVBAR */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 1.5rem;
        padding: 2rem 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .cta-btn {
        display: none;
    }

    /* HERO */
    .hero {
        min-height: auto;
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* TYPOGRAPHY */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    /* CONTAINER PADDING */
    .container {
        padding: 0 1rem;
    }

    /* STATS */
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* MISSION */
    .mission-grid {
        gap: 1.5rem;
    }

    .mission-card {
        padding: 1.5rem;
    }

    /* COURSES */
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .filter-buttons {
        gap: 0.75rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* TEAM */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .team-image {
        height: 200px;
        font-size: 3.5rem;
    }

    /* PROJECTS */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* CONTACT */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    FOOTER
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* mobile variable overrides */
    :root {
        --fade-distance: 10px;
        --hero-content-top: 56%;
    }
    /* HERO */
    .hero {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* TYPOGRAPHY */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1rem; }
    p { font-size: 0.9rem; }

    /* BUTTONS */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* SECTIONS PADDING */
    .stats,
    .mission-vision,
    .courses,
    .team,
    .projects,
    .contact,
    .footer {
        padding: 2.5rem 1rem;
    }

    /* STATS */
    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* COURSES GRID */
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    /* TEAM GRID */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* CONTACT */
    .contact-form,
    .contact-item {
        padding: 1.5rem;
    }

    /* MISSION CARD */
    .mission-card {
        padding: 1rem;
    }

    .mission-icon {
        font-size: 2.5rem;
    }

    /* FOOTER */
    .footer-content {
        padding: 0 1rem;
    }
    .social-links {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    }

    .social-link {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 152, 0, 0.15);
        color: #ff9800;
        font-size: 18px;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .social-link:hover {
    background: linear-gradient(135deg, #ff9800 30%, #00e676 100%);
    color: #ffffff !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.4);
    }

    .social-link:hover i {
        color: #ffffff !important;
    }


    .social-link:hover i {
        transform: scale(1.15);
    }

}
/* UTILITY CLASSES */
@media (max-width: 768px) {
    /* Compact header */
    .navbar { padding: 0.45rem 0; }
    .nav-container { padding: 0 1rem; }
    .nav-logo { font-size: 1.05rem; }
    .logo-icon { width: 32px; height: 32px; background-size: contain; }
    .nav-menu { gap: 1rem; top: 58px; padding: 0.75rem 0; }
    .nav-link { font-size: 0.95rem; }

    /* Compact hero */
    .hero-slider { height: clamp(220px, 36vh, 420px); }
    .hero-content { top: 58%; padding: 0 0.75rem; }
    .hero-title { font-size: clamp(1.25rem, 5vw, 2rem); margin-bottom: 8px; }
    .hero-subtitle { font-size: clamp(0.8rem, 2.4vw, 1rem); max-width: 95%; }
    .slider-dots { bottom: 18px; gap: 8px; }

    /* Buttons smaller and tighter */
    .btn { padding: 0.45rem 0.9rem; border-radius: 0.6rem; font-size: 0.95rem; }
    .cta-btn, .btn-primary, .btn-secondary { padding: 0.45rem 0.9rem; border-radius: 0.6rem; }

    /* Cards & grids */
    .stat-card { padding: 1rem; border-radius: 0.6rem; }
    .stat-number { font-size: 2rem; }
    .mission-card, .project-card, .course-card, .team-card { padding: 0.9rem; border-radius: 0.5rem; }
    .course-card { padding: 0.75rem; }
    .course-badge { padding: 0.25rem 0.45rem; border-radius: 0.35rem; font-size: 0.7rem; }

    /* Contact area compact */
    .contact-wrapper { grid-template-columns: 1fr; gap: 1rem; }
    .contact-form { padding: 1rem; border-radius: 0.5rem; }
    .contact-item { padding: 1rem; border-radius: 0.5rem; }
    .form-group input, .form-group textarea { padding: 0.6rem; font-size: 0.95rem; }

    /* Location/map */
    .map-wrapper iframe { height: 240px; }

    /* Footer compact */
    .footer { padding: 1.25rem 1rem; }
    .footer-content { gap: 1rem; max-width: 100%; }
    .footer-section h4 { font-size: 1rem; margin-bottom: 0.5rem; }
    .footer-bottom p { font-size: 0.85rem; }

    /* Prevent text scaling / overflow on mobile devices */
    html, body { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
    * { max-width: 100%; box-sizing: border-box; }
}
.text-center { text-align: center; }
.text-dark { color: var(--text-dark); }
.text-light { color: var(--text-light); }
.text-orange { color: var(--primary-orange); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
/* SUCCESS POPUP */
.success-popup{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.success-content{
    background: white;
    width: 320px;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    animation: popupFade 0.3s ease;
}

.success-content .check{
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg,#00e676,#1e88e5);
    color: white;
    font-size: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   IMAGE PROTECTION
   Lightweight client-side measures to
   discourage right-clicking, dragging, and
   basic long-press downloads on instructor images.
   Note: Nothing on the web fully prevents saving
   (users can still screenshot or inspect), but these
   steps raise the bar for casual downloads.
   ======================================== */

.image-protect img {
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none; /* iOS Safari long-press */
}

.image-protect {
    /* keeps layout identical while signalling protection */
    position: relative;
}

/* Optional helper class if you want to style a protective overlay later */
.image-protect--overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 2;
    pointer-events: auto;
}

