/* =========================================
   SPACE-E-FIC: PREMIUM ROBOTICS STYLING
   Aligned with MAAC Design System
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0b1120;
    --accent-blue: #0ea5e9;
    --accent-orange: #f97316;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    
    --glow-blue: rgba(14, 165, 233, 0.4);
    --glow-orange: rgba(249, 115, 22, 0.4);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    --spacing-section: 100px;
    --border-radius: 12px;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Base Typo (matching MAAC hierarchy) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    margin: 0;
}

.sef-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-orange);
    margin-bottom: 12px;
    text-transform: uppercase;
    transition: color 0.3s ease, text-shadow 0.3s ease, letter-spacing 0.3s ease;
}

.sef-label:hover {
    color: #ff8c00;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.8);
    letter-spacing: 3px;
}

.sef-title {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    transition: text-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sef-title:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8), 0 0 20px rgba(119, 0, 255, 0.6);
    transform: scale(1.01);
}

.sef-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.sef-desc:hover {
    color: #e0f7ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.sef-section-header {
    margin-bottom: 50px;
}
.sef-section-header.center {
    text-align: center;
}

/* Section Overlays & Images */
.sef-section-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sef-info-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.sef-section-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.85), rgba(11, 17, 32, 0.6));
    z-index: 2;
}
.light-bg {
    background: #f8fafc;
}

/* ===================== HERO SECTION ===================== */
.sef-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: block;
}

.sef-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sef-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.sef-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 17, 32, 0.85) 0%, rgba(11, 17, 32, 0.6) 50%, rgba(11, 17, 32, 0.2) 100%);
    z-index: 2;
}

.sef-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: var(--container-w);
    width: 100%;
    margin: 0 auto;
    padding: 150px 24px 80px;
}

.sef-hero-left {
    flex: 0 0 55%;
    max-width: 55%;
}

.sef-hero-heading {
    display: flex;
    flex-direction: column;
    font-size: clamp(40px, 5vw, 65px);
    line-height: 1.1;
    text-transform: uppercase;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.sef-hero-heading:hover {
    transform: scale(1.02);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5), 0 0 30px rgba(119, 0, 255, 0.4);
}

.sef-hero-heading .passion {
    color: var(--accent-orange);
    text-shadow: 0 0 20px var(--glow-orange);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.sef-hero-heading:hover .passion {
    color: #ffaa00;
    text-shadow: 0 0 25px rgba(255, 170, 0, 0.9), 0 0 50px rgba(255, 60, 0, 0.6);
}

.sef-hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-top: 20px;
    color: var(--text-muted);
}

.sef-hero-tagline-wrapper {
    margin: 30px 0;
}

.sef-hero-tagline {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
}

.tagline-line {
    height: 3px;
    width: 80px;
    background: var(--accent-orange);
    box-shadow: 0 0 10px var(--glow-orange);
}

.sef-hero-offer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--border-radius);
    display: inline-block;
}

.offer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
}

.offer-emi {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-blue);
    font-weight: 600;
}

/* Form Styling - Matching MAAC exactly but elevated */
.sef-hero-right {
    flex: 0 0 42%;
    max-width: 42%;
}

.maac-enquiry-form {
    background: rgba(8, 10, 25, 0.4);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 15px rgba(138, 43, 226, 0.05);
    overflow: visible;
    transform: translateY(0);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.maac-enquiry-form:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), inset 0 0 25px rgba(138, 43, 226, 0.2);
}

.enquiry-form-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    text-align: center;
    color: #fff;
    position: relative;
}

.enquiry-logo {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 8px;
    box-sizing: border-box;
}

.enquiry-title {
    font-size: 20px;
    margin-bottom: 5px;
}

.enquiry-subtitle {
    font-size: 13px;
    opacity: 0.9;
    color: #fff;
}

.enquiry-form-body {
    padding: 15px 20px 20px;
}

.enquiry-field {
    position: relative;
    margin-bottom: 12px;
}

.enquiry-field-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.enquiry-field input, .enquiry-field select, .enquiry-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px 10px 45px;
    font-family: var(--font-body);
    font-size: 13px;
    color: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.enquiry-field input:focus, .enquiry-field select:focus, .enquiry-field textarea:focus {
    border-color: rgba(138, 43, 226, 0.8);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
}

.enquiry-field input::placeholder, .enquiry-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.enquiry-field select option {
    background: #0f172a;
    color: #fff;
}

.enquiry-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    margin-top: 4px;
}

.enquiry-consent input[type="checkbox"] {
    accent-color: var(--accent-orange);
    margin-top: 3px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.enquiry-consent label {
    font-family: var(--font-body);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
    cursor: pointer;
}

.enquiry-consent label a {
    color: var(--accent-orange);
    text-decoration: underline;
}

.enquiry-submit {
    width: 100%;
    background: var(--accent-orange);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.enquiry-submit:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--glow-orange);
}

/* ===================== INFO SECTION (Why Robotics & Parents) ===================== */
.sef-info-section {
    position: relative;
    padding: var(--spacing-section) 0;
}

.sef-info-inner {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sef-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.sef-info-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: all 0.4s ease;
}

.sef-info-card:hover {
    transform: translateY(-10px);
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--glow-blue);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.info-card-icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.sef-info-card:hover .info-card-icon-wrap {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 10px 20px var(--glow-blue);
}

.info-card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.info-card-text {
    font-size: 15px;
    color: var(--text-muted);
}

/* ===================== PROGRAM SECTION ===================== */
.sef-program-section {
    padding: var(--spacing-section) 0;
    position: relative;
}

.sef-program-inner {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sef-program-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sef-program-split.reverse {
    direction: rtl;
}
.sef-program-split.reverse > * {
    direction: ltr;
}

.program-feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.program-feature-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.program-feature-list li:hover {
    transform: translateX(10px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.program-feature-list li b {
    color: #ffffff;
}

.list-icon {
    color: var(--accent-orange);
    flex-shrink: 0;
    margin-top: 2px;
}

.cinematic-img {
    width: 85%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 2px solid transparent;
}

.cinematic-img:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 35px 60px rgba(119, 0, 255, 0.3), 0 0 50px rgba(0, 212, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ===================== STUDENT PROJECTS SHOWCASE ===================== */
.sef-showcase-section {
    padding: var(--spacing-section) 0;
    position: relative;
}

.sef-showcase-inner {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sef-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.showcase-cinematic-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    transition: all 0.5s ease;
    cursor: pointer;
}

.showcase-cinematic-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.5s ease;
    z-index: 10;
    pointer-events: none;
}

.showcase-cinematic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.showcase-cinematic-card:hover::after {
    border-color: var(--accent-blue);
    box-shadow: inset 0 0 20px var(--glow-blue);
}

.cinematic-image-wrap {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.cinematic-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.showcase-cinematic-card:hover .cinematic-image-wrap img {
    transform: scale(1.1);
}

.cinematic-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f172a, transparent);
    z-index: 1;
}

.cinematic-content {
    position: relative;
    z-index: 2;
    padding: 0 30px 30px;
    transform: translateY(-20px);
}

.cinematic-content h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 10px;
}

.cinematic-content p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===================== LOCATIONS SECTION ===================== */
.sef-locations-section {
    padding: var(--spacing-section) 0;
    position: relative;
}

.sef-locations-inner {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sef-locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sef-location-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.sef-location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--accent-orange);
}

.location-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #0f172a;
}

.location-header svg {
    color: var(--accent-orange);
}

.location-header h3 {
    font-size: 20px;
}

.sef-location-card p {
    color: #475569;
    font-size: 15px;
    margin: 0;
}

/* ===================== FINAL CTA SECTION ===================== */
.sef-final-cta {
    position: relative;
    padding: 120px 0;
    text-align: center;
}

.sef-final-cta-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.sef-final-cta-content h2 {
    font-size: clamp(30px, 4vw, 48px);
    margin-bottom: 20px;
}

.sef-final-cta-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.sef-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-orange);
    color: #fff;
    padding: 18px 40px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sef-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px var(--glow-orange);
}

/* ===================== RESPONSIVE OPTIMIZATIONS ===================== */
@media (max-width: 1024px) {
    .sef-hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 160px;
        padding-bottom: 50px;
        gap: 30px;
    }
    .sef-hero-left {
        flex: none;
        max-width: 100%;
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    .sef-hero-right {
        flex: none;
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }
    .sef-hero-tagline-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .sef-program-split {
        grid-template-columns: 1fr;
    }
    .sef-program-split.reverse {
        direction: ltr;
    }
    .sef-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sef-info-grid, .sef-locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sef-showcase-grid {
        grid-template-columns: 1fr;
    }
    .sef-info-grid, .sef-locations-grid {
        grid-template-columns: 1fr;
    }
    .sef-hero-content {
        padding-top: 180px;
        padding-bottom: 40px;
        gap: 24px;
    }
    .sef-hero-left {
        transform: none !important;
        margin-bottom: 30px !important;
        width: 100%;
    }
    .sef-hero-right {
        margin: 0 auto !important;
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 400px;
    }
    .maac-enquiry-form {
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        border-radius: 16px;
        transform: none !important;
    }
    :root {
        --spacing-section: 60px;
    }
    .cinematic-image-wrap {
        height: 200px;
    }
    .maac-enquiry-form {
        border-radius: 16px;
    }
    .enquiry-form-header {
        padding: 12px;
    }
    .enquiry-form-body {
        padding: 12px;
    }
    .enquiry-title {
        font-size: 0.95rem;
    }
    .enquiry-field {
        margin-bottom: 10px;
    }
    .enquiry-field input, .enquiry-field select, .enquiry-field textarea {
        padding: 8px 12px 8px 35px;
        font-size: 0.75rem;
    }
    .enquiry-field textarea {
        min-height: 50px;
    }
    .enquiry-submit {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .sef-cta-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    .sef-cta-btn span {
        white-space: nowrap;
    }
}
