/* --- :root variables --- */
:root {
    --primary-accent-color: #0AF1E5; /* Brighter Cyan/Turquoise */
    --secondary-accent-color: #C77DFF; /* Lighter Purple/Magenta */
    --glow-color-rgb: 10, 241, 229; /* RGB for primary accent */
    --dark-bg-primary: #000205; /* Near absolute black */
    --dark-bg-secondary: #05080F;
    --panel-bg-rgb: 5, 8, 15; /* Very dark, almost black panel base */
    --light-text: #f5faff; /* Almost pure white, cool tint */
    --medium-text: #b8cff0; /* Slightly brighter medium */
    --border-color-light: rgba(173, 216, 230, 0.1);
    --border-color-medium: rgba(173, 216, 230, 0.15);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Orbitron', sans-serif; /* Orbitron for specific title parts */
    --navbar-height: 75px;
    --panel-border-radius: 20px; /* Sharper edges */
}

/* --- Base & Typography --- */
body {
    font-family: var(--font-primary);
    padding-top: var(--navbar-height);
    color: var(--light-text);
    overflow-x: hidden;
    background-color: var(--dark-bg-primary);
    background-image:
        radial-gradient(ellipse at 10% 15%, rgba(var(--glow-color-rgb), 0.04) 0%, transparent 35%),
        radial-gradient(ellipse at 90% 85%, rgba(199, 125, 255, 0.04) 0%, transparent 35%),
        linear-gradient(rgba(0, 2, 5, 0.45), rgba(5, 8, 15, 0.55)), /* Very reduced opacity */
        url('AI BG.png'); /* Make sure this path is correct */
    background-blend-mode: overlay, overlay, multiply, normal;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--light-text); }
.lead { font-weight: 300; color: var(--medium-text); line-height: 1.75; } /* Slightly increased line height */
.lead-sm { font-size: 0.95rem; line-height: 1.65; color: var(--medium-text); }

.hero-tagline {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--primary-accent-color);
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(var(--glow-color-rgb), 0.6);
}

.text-primary-accent { color: var(--primary-accent-color) !important; }
.gradient-text, .gradient-text-alt {
    background: linear-gradient(90deg, var(--primary-accent-color), #FF00E6, var(--secondary-accent-color), var(--primary-accent-color)); /* Brighter magenta */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: textGradientShift 7s ease-in-out infinite; /* Slightly faster */
    background-size: 350% 200%;
}
@keyframes textGradientShift {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
.gradient-text-alt {
    background: linear-gradient(90deg, #0AF1E5, #00A9FF, #0AF1E5); /* More dynamic cyan gradient */
    background-size: 300% 200%;
}

/* --- Navigation Bar --- */
.navbar {
    background-color: rgba(var(--panel-bg-rgb), 0.2);
    backdrop-filter: blur(12px); /* Sharper blur */
    transition: background-color 0.3s ease-in-out, backdrop-filter 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-bottom: 1px solid var(--border-color-light);
    min-height: var(--navbar-height);
    padding-top: 0.5rem; padding-bottom: 0.5rem;
}
.navbar.navbar-scrolled {
    background-color: rgba(var(--panel-bg-rgb), 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 35px rgba(0,0,0,0.4);
    border-bottom: 1px solid var(--border-color-medium);
}
.navbar .navbar-brand img { margin-right: 0; transition: transform 0.4s ease, filter 0.4s ease; }
.navbar .navbar-brand:hover img { transform: rotate(12deg) scale(1.08); filter: drop-shadow(0 0 10px var(--primary-accent-color));}

.navbar .nav-link {
    color: var(--medium-text) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    padding: 0.8rem 1.1rem !important;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.navbar .nav-link::before {
    content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
    width: 0; height: 2.5px;
    background: linear-gradient(90deg, var(--primary-accent-color), var(--secondary-accent-color));
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 2px;
    filter: drop-shadow(0 0 4px var(--primary-accent-color));
}
.navbar .nav-link:hover::before, .navbar .nav-link.active::before { width: 65%; }
.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--light-text) !important;
    text-shadow: 0 0 12px rgba(var(--glow-color-rgb), 0.7);
}

/* --- Buttons (Final Sci-Fi Polish) --- */
.btn-glow {
    font-family: var(--font-primary);
    font-weight: 600; /* Bolder buttons */
    position: relative; overflow: hidden; z-index: 1;
    transition: color 0.4s ease-in-out, transform 0.25s ease-out, box-shadow 0.25s ease-out, background-position 0.4s ease;
    border-radius: 50px; text-transform: uppercase; letter-spacing: 0.06em; /* More spacing */
    border: 1.5px solid rgba(var(--glow-color-rgb), 0.4); /* Slightly thicker border */
    background-size: 250% auto;
    text-shadow: 0 0 3px rgba(0,0,0,0.3); /* Subtle text shadow for depth */
}
.btn-glow::before {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 280px; height: 280px; /* Wider glow */
    background: radial-gradient(circle, rgba(var(--glow-color-rgb), 0.45) 0%, rgba(var(--glow-color-rgb), 0) 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease;
    opacity: 0; z-index: -2; border-radius: 50%;
}
.btn-glow::after {
    content: ""; position: absolute; top: 0; left: -120%;
    width: 70%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent); /* Brighter scan line */
    transform: skewX(-30deg);
    transition: left 0.9s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
    animation: buttonShine 4s infinite alternate ease-in-out 0.5s; /* Added subtle shine animation */
}
@keyframes buttonShine {
    from { opacity: 0.3; }
    to { opacity: 0.7; }
}
.btn-glow:hover::before { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
.btn-glow:hover::after { left: 160%; }
.btn-glow:hover {
    transform: translateY(-5px) scale(1.04); /* More lift */
    box-shadow: 0 12px 35px rgba(var(--glow-color-rgb), 0.4), 0 0 20px rgba(var(--glow-color-rgb), 0.25) inset;
    background-position: right center;
}

.btn-primary-custom {
    background-image: linear-gradient(to right, var(--primary-accent-color) 0%, var(--secondary-accent-color) 50%, var(--primary-accent-color) 100%);
    color: white !important;
    padding: 0.7rem 1.4rem !important; font-weight: 600; font-size: 0.75rem; /* Bolder */
    box-shadow: 0 5px 18px rgba(var(--glow-color-rgb), 0.25);
}
.navbar .nav-link.btn-primary-custom:hover {
     box-shadow: 0 8px 25px rgba(var(--glow-color-rgb), 0.4), 0 0 18px rgba(var(--glow-color-rgb), 0.3) inset;
}
.btn-hero-cta {
    background-image: linear-gradient(to right, rgba(var(--glow-color-rgb),0.98) 0%, rgba(199, 125, 255,0.9) 50%, rgba(var(--glow-color-rgb),0.98) 100%); /* Brighter purple */
    border: 1.5px solid rgba(255,255,255,0.3); /* Thicker border */
    color: var(--light-text) !important; font-weight: 700; font-size: 1.1rem;
    padding: 0.9rem 2.2rem !important;
    box-shadow: 0 6px 20px rgba(var(--glow-color-rgb), 0.3);
}
.btn-hero-cta:hover {
    color: #fff !important;
    box-shadow: 0 10px 35px rgba(var(--glow-color-rgb), 0.45), 0 0 25px rgba(var(--glow-color-rgb), 0.35) inset;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 95vh; padding: 120px 0; background: transparent;
    display: flex; align-items: center; justify-content: center; position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}
.hero-title {
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: clamp(2.4rem, 6vw, 4.0rem); /* Slightly reduced max size for balance */
    color: #fff; text-shadow: 0 5px 25px rgba(var(--glow-color-rgb),0.3), 0 0 10px rgba(255,255,255,0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: heroTitleFadeIn 1s ease-out 0.5s forwards;
}
.hero-title .orbitron-text {
    font-family: var(--font-secondary); /* Orbitron for "Python & Data Science" */
    font-weight: 700; /* Ensure it's bold */
}
@keyframes heroTitleFadeIn {
    to { opacity: 1; transform: translateY(0); }
}
.hero-subtitle {
    color: var(--light-text); opacity: 0; line-height: 1.8; font-size: clamp(1rem, 2.2vw, 1.25rem);
    text-shadow: 0 2px 10px rgba(0,0,0,0.4); max-width: 800px;
    transform: translateY(15px);
    animation: heroSubtitleFadeIn 1s ease-out 0.8s forwards;
}
@keyframes heroSubtitleFadeIn {
    to { opacity: 0.85; transform: translateY(0); }
}
.hero-section .btn-hero-cta {
    opacity: 0;
    transform: translateY(10px);
    animation: heroElementFadeIn 0.8s ease-out 1.1s forwards;
}
@keyframes heroElementFadeIn {
    to { opacity: 1; transform: translateY(0); }
}
.hero-tagline {
    opacity: 0;
    transform: translateY(10px);
    animation: heroElementFadeIn 0.8s ease-out 1.1s forwards;
}


/* --- Main Content Panels --- */
.main-content-panel {
    background-color: rgba(var(--panel-bg-rgb), 0.7); /* Slightly more substance */
    backdrop-filter: blur(28px); /* Even stronger blur */
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid transparent;
    border-radius: var(--panel-border-radius);
    padding: 70px 0;
    margin: 3.5rem auto;
    max-width: 1180px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25), inset 0 0 150px rgba(var(--panel-bg-rgb),0.3);
    position: relative;
    z-index: 5;
    overflow: hidden;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}
.main-content-panel::after { /* Shining Edges / Slot Effect */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--panel-border-radius);
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(var(--primary-accent-color),0.7), rgba(var(--secondary-accent-color),0.7)); /* Brighter edges */
    -webkit-mask:
         linear-gradient(#fff 0 0) content-box,
         linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: panelEdgeShine 7s linear infinite; /* Slightly faster */
    background-size: 350% 300%; /* Larger size for smoother anim */
    z-index: -1;
}
@keyframes panelEdgeShine {
    0% { background-position: 0% 50%; filter: hue-rotate(0deg) brightness(1); }
    50% { background-position: 100% 50%; filter: hue-rotate(25deg) brightness(1.2); } /* Added brightness pulse */
    100% { background-position: 0% 50%; filter: hue-rotate(0deg) brightness(1); }
}
.main-content-panel:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 70px rgba(var(--glow-color-rgb), 0.12),
                0 20px 60px rgba(0,0,0,0.3),
                inset 0 0 160px rgba(var(--panel-bg-rgb),0.35);
}
.main-content-panel::before { /* Subtle animated background lines */
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 300%;
    height: 300%;
    background-image:
        linear-gradient(45deg, rgba(var(--primary-accent-color), 0.02) 25%, transparent 25%, transparent 75%, rgba(var(--primary-accent-color), 0.02) 75%, rgba(var(--primary-accent-color), 0.02)),
        linear-gradient(-45deg, rgba(var(--secondary-accent-color), 0.015) 25%, transparent 25%, transparent 75%, rgba(var(--secondary-accent-color), 0.015) 75%, rgba(var(--secondary-accent-color), 0.015)); /* Even more subtle */
    background-size: 45px 45px; /* Finer pattern */
    opacity: 0.4;
    z-index: -2;
    animation: subtlePatternScroll 120s linear infinite; /* Faster scroll */
    transform-origin: center center;
}
@keyframes subtlePatternScroll {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20%, -20%) rotate(3deg); } /* Less movement, faster cycle */
}

.main-content-panel:first-of-type { margin-top: 2.5rem; }
.main-content-panel:last-of-type { margin-bottom: 3.5 rem; }

.section-title-panel {
    font-family: var(--font-primary);
    color: var(--light-text);
    font-weight: 700; letter-spacing: 0.5px;
    position: relative; padding-bottom: 20px; margin-bottom: 3.5rem !important;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-shadow: 0 0 10px rgba(var(--glow-color-rgb), 0.25);
}
.section-title-panel::after {
    content: ''; position: absolute; display: block;
    width: 80px; height: 3px;
    background: linear-gradient(90deg, var(--primary-accent-color), var(--secondary-accent-color) 70%, transparent);
    bottom: 0; left: 50%; transform: translateX(-50%);
    border-radius: 3px;
    filter: drop-shadow(0 0 6px var(--primary-accent-color)); /* Sharper shadow */
}
.text-panel-muted { color: var(--medium-text) !important; opacity: 0.85; }
.text-panel-muted-light { color: var(--medium-text) !important; opacity: 0.8; font-size: 0.9rem; }

/* --- Registration Form --- */
.registration-section .form-container-wrapper {
    padding: 2px;
    background: linear-gradient(135deg, rgba(var(--primary-accent-color),0.8) 0%, rgba(var(--secondary-accent-color),0.8) 50%, rgba(var(--primary-accent-color),0.8) 100%);
    background-size: 300% 300%;
    border-radius: calc(var(--panel-border-radius) - 2px);
    animation: animatedElegantBorder 8s linear infinite; /* Faster, more dynamic */
    box-shadow: 0 0 35px rgba(var(--glow-color-rgb), 0.3); /* Stronger glow */
}
.registration-section .form-panel {
    background: transparent;
    border-radius: calc(var(--panel-border-radius) - 5px); /* Slightly more inset */
}
@keyframes animatedElegantBorder {
    0% { background-position: 0% 50%; filter: hue-rotate(0deg) brightness(1.0); }
    50% { background-position: 100% 50%; filter: hue-rotate(20deg) brightness(1.15); }
    100% { background-position: 0% 50%; filter: hue-rotate(0deg) brightness(1.0); }
}
.google-form-embed iframe {
    border-radius: 12px; /* Match panel rounding more */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color-light) !important;
}


/* --- Feature Boxes (Dark Theme) --- */
.feature-box-dark {
    padding: 35px 25px;
    background-color: rgba(var(--panel-bg-rgb), 0.55); /* Slightly more opaque than general panel */
    border: 1px solid transparent;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), inset 0 0 70px rgba(var(--panel-bg-rgb),0.25); /* Stronger inset */
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    height: 100%; position: relative; overflow: hidden;
}
.feature-box-dark::after { /* Shining Edges for Feature Boxes */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(120deg, rgba(var(--primary-accent-color),0.55), rgba(var(--secondary-accent-color),0.55)); /* Slightly brighter */
    -webkit-mask:
         linear-gradient(#fff 0 0) content-box,
         linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: panelEdgeShine 9s linear infinite reverse;
    background-size: 280% 250%;
    z-index: 0;
}
.feature-box-dark::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(var(--glow-color-rgb),0.18) 0%, transparent 45%); /* Wider glow */
    transform: scale(0); transition: transform 0.6s ease, opacity 0.6s ease; opacity: 0;
    z-index: 0;
}
.feature-box-dark:hover::before { transform: scale(1); opacity: 1; }
.feature-box-dark:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(var(--glow-color-rgb), 0.18), inset 0 0 80px rgba(var(--panel-bg-rgb),0.3); /* Stronger glow */
}
.feature-icon-dark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 65px; height: 65px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-accent-color), var(--secondary-accent-color));
    color: white;
    box-shadow: 0 5px 15px rgba(var(--glow-color-rgb), 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; z-index: 1;
}
.feature-box-dark:hover .feature-icon-dark {
    transform: scale(1.15) rotate(-12deg);
    box-shadow: 0 8px 20px rgba(var(--glow-color-rgb), 0.45);
}
.feature-box-dark h4 { color: var(--light-text); margin-bottom: 0.75rem; font-weight: 500; position: relative; z-index: 1;}
.feature-box-dark p { position: relative; z-index: 1; }

/* --- Instructor Card --- */
.instructor-card { padding: 20px; position: relative; /* For z-index of description */ }
.instructor-icon-cluster { position: relative; z-index: 1; /* Ensure icons are above description if overlap happens */ }
.instructor-icon-cluster i {
    filter: drop-shadow(0 0 10px rgba(var(--glow-color-rgb), 0.6));
    transition: transform 0.3s ease, filter 0.3s ease;
}
.icon-pulse, .icon-pulse-delay1, .icon-pulse-delay2 {
    animation: iconPulseAnimation 3s infinite ease-in-out;
}
.icon-pulse-delay1 { animation-delay: 0.3s; }
.icon-pulse-delay2 { animation-delay: 0.6s; }
@keyframes iconPulseAnimation {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; } /* Added rotate for subtle movement */
    50% { transform: scale(1.1) rotate(3deg); opacity: 1; }
}
.instructor-icon-cluster .main-instructor-icon {
    transform: scale(1.1);
}
.instructor-card:hover .instructor-icon-cluster i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px rgba(var(--glow-color-rgb), 0.8));
}
.instructor-name { font-family: var(--font-primary); font-size: 1.6rem; margin-top: 1rem; color: #fff; position: relative; z-index: 1;}
.instructor-title { font-size: 1rem; position: relative; z-index: 1;}
.instructor-description { position: relative; z-index: 0; /* Ensure text is visible */ }


/* --- FAQ Accordion (AI Dark Theme) --- */
.accordion-ai .accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color-light) !important;
    margin-bottom: 0; border-radius: 0 !important;
    transition: background-color 0.2s ease-out;
}
.accordion-ai .accordion-item:hover {
    background-color: rgba(var(--glow-color-rgb), 0.04); /* Slightly more hover feedback */
}
.accordion-ai .accordion-item:last-child { border-bottom: none !important; }
.accordion-ai .accordion-header { /* To fix any potential overlap issue */
    position: relative;
    z-index: 1;
}

.accordion-ai .accordion-button {
    font-weight: 500; color: var(--medium-text);
    background-color: transparent;
    padding: 1.35rem 1.5rem; font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    border-top: 1px solid transparent; /* Fix for potential line */
}
.accordion-ai .accordion-button:not(.collapsed) {
    color: var(--light-text);
    background-color: rgba(var(--glow-color-rgb), 0.12);
    box-shadow: inset 4px 0 0 var(--primary-accent-color);
    font-weight: 600;
    border-top-color: rgba(var(--glow-color-rgb), 0.05); /* Fix for potential line */
}
.accordion-ai .accordion-button:focus {
    box-shadow: inset 4px 0 0 var(--primary-accent-color), 0 0 0 0.2rem rgba(var(--glow-color-rgb), 0.2);
    border-color: transparent;
}
.accordion-ai .accordion-button::after {
    filter: invert(80%) sepia(20%) saturate(500%) hue-rotate(180deg) brightness(100%) contrast(90%);
    transition: transform 0.3s ease, filter 0.3s ease;
}
.accordion-ai .accordion-button:not(.collapsed)::after {
    filter: invert(70%) sepia(100%) saturate(2000%) hue-rotate(170deg) brightness(100%) contrast(100%);
    transform: rotate(-180deg);
}
.accordion-ai .accordion-body {
    padding: 1rem 1.5rem 1.75rem;
    color: var(--medium-text); opacity: 0.9;
    line-height: 1.75; font-size: 0.9rem;
}

/* --- Footer --- */
footer {
    background-color: rgba(var(--panel-bg-rgb), 0.2);
    backdrop-filter: blur(8px);
    padding: 60px 0;
    border-top: 1px solid var(--border-color-light);
    position: relative; z-index: 10;
}
.footer-text { color: var(--medium-text); font-size: 0.9rem; }
.footer-link {
    color: var(--medium-text) !important; text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease; font-weight: 500;
}
.footer-link:hover {
    color: var(--primary-accent-color) !important;
    text-shadow: 0 0 10px rgba(var(--glow-color-rgb), 0.6);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    :root { --navbar-height: 70px; }
    .navbar .nav-link.btn-primary-custom { margin-top: 0.5rem; display: inline-block; }
    .hero-section { min-height: 80vh; padding: 100px 0; transform: none !important; }
    .main-content-panel { padding: 60px 20px; margin: 3rem 20px; border-radius: 15px; }
    .hero-title { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
    .main-content-panel::after {
        padding: 1px;
        animation-duration: 10s;
    }
}

@media (max-width: 768px) {
    :root { --navbar-height: 65px; }
    body { padding-top: var(--navbar-height); }
    .hero-title { font-size: 1.8rem; }
    .hero-tagline { font-size: 0.9rem; }
    .hero-subtitle { font-size: 0.85rem; }
    .section-title-panel { font-size: 1.5rem; padding-bottom: 15px; margin-bottom: 2.5rem !important; }
    .section-title-panel::after { width: 60px; }
    .main-content-panel { padding: 40px 15px; margin: 2rem 10px; border-radius: 12px; }
    .feature-box-dark { padding: 25px 15px; }
    .accordion-ai .accordion-button { font-size: 0.85rem; padding: 1rem 1.1rem; }
    .accordion-ai .accordion-body { font-size: 0.8rem; padding: 0.75rem 1.1rem 1.25rem; }
    .btn-hero-cta { font-size: 0.85rem; padding: 0.75rem 1.6rem !important; }
    .navbar .nav-link { font-size: 0.7rem; padding: 0.6rem 0.7rem !important;}
    .main-content-panel::after {
        background: linear-gradient(135deg, rgba(var(--primary-accent-color),0.3), rgba(var(--secondary-accent-color),0.3));
        animation-duration: 15s;
    }
    .feature-box-dark::after {
        background: linear-gradient(120deg, rgba(var(--primary-accent-color),0.3), rgba(var(--secondary-accent-color),0.3));
        animation-duration: 18s;
    }
}

/* --- Custom Form Styles --- */
.custom-form {
    margin-top: 1.5rem;
}
.custom-form .row {
    margin-bottom: 0.5rem; /* Add some space between rows of inputs */
}
/* Add bottom margin to each column in the form for spacing */
.custom-form .col-12,
.custom-form .col-md-6 {
    margin-bottom: 1rem;
}
/* Remove bottom margin from the last row's columns if they are directly before the button */
.custom-form .row:has(+ .text-center) .col-12,
.custom-form .row:has(+ .text-center) .col-md-6 {
    margin-bottom: 0;
}


.form-label-custom {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--medium-text);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-align: left;
}
.form-label-custom .text-danger {
    font-weight: 700;
}

.form-control-custom { /* Applied to input and select */
    display: block;
    width: 100%;
    padding: 0.9rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--light-text);
    background-color: rgba(var(--panel-bg-rgb), 0.35);
    background-clip: padding-box;
    border: 1.5px solid var(--border-color-medium);
    appearance: none;
    border-radius: 12px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
    backdrop-filter: blur(4px);
}

.form-control-custom::placeholder {
    color: var(--medium-text);
    opacity: 0.6;
}

.form-control-custom:focus {
    color: var(--light-text);
    background-color: rgba(var(--panel-bg-rgb), 0.55);
    border-color: var(--primary-accent-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(var(--glow-color-rgb), 0.3),
                0 0 20px rgba(var(--glow-color-rgb), 0.25);
}

/* Validation Feedback Styling */
.form-control-custom.is-invalid {
    border-color: #e74c3c;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e74c3c'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e74c3c' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.form-control-custom.is-invalid:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.25);
}
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.35rem;
    font-size: .875em;
    color: #e74c3c;
    text-align: left;
}
.was-validated .form-control-custom:invalid ~ .invalid-feedback,
.form-control-custom.is-invalid ~ .invalid-feedback {
    display: block;
}

#form-status {
    font-weight: 500;
    font-size: 0.95rem;
}
#form-status.success {
    color: var(--primary-accent-color);
    text-shadow: 0 0 5px rgba(var(--glow-color-rgb), 0.3);
}
#form-status.error {
    color: #ff6b6b;
}

.form-submit-button {
    font-size: 1rem !important;
    padding: 0.85rem 2rem !important;
}


/* --- Styles for PHP Success/Error Message Pages --- */
.message-page-body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg-primary);
    /* Match your main body background - assuming static image for simplicity here */
    /* If using video on main, this is a static fallback for message pages */
    background-image:
        radial-gradient(ellipse at 10% 15%, rgba(var(--glow-color-rgb), 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 85%, rgba(199, 125, 255, 0.07) 0%, transparent 50%),
        linear-gradient(rgba(0, 2, 5, 0.60), rgba(5, 8, 15, 0.65)), /* Adjust opacity as on your main page */
        url('images/AI BG.png'); /* Ensure path is 'images/your-background-image.png' */
    background-blend-mode: overlay, overlay, multiply, normal;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    overflow: hidden;
}

.message-page-header {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.message-page-header img {
    height: 50px;
    opacity: 0.8;
}

.message-box {
    padding: 3rem 2.5rem;
    background-color: rgba(var(--panel-bg-rgb), 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--panel-border-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), inset 0 0 180px rgba(var(--panel-bg-rgb),0.35);
    max-width: 600px;
    width: 90%;
    position: relative;
    z-index: 5;
}
.message-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--panel-border-radius);
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(var(--primary-accent-color),0.75), rgba(var(--secondary-accent-color),0.75));
    -webkit-mask:
         linear-gradient(#fff 0 0) content-box,
         linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: panelEdgeShine 7s linear infinite; /* Assuming panelEdgeShine animation is defined elsewhere in your main style.css */
    background-size: 350% 300%;
    z-index: -1;
}

.message-box h1 {
    font-family: var(--font-secondary);
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 2.2rem;
    text-shadow: 0 0 10px rgba(var(--glow-color-rgb), 0.3);
}
.message-box h1 .gradient-text {
     background: linear-gradient(90deg, var(--primary-accent-color), #00ff87, var(--secondary-accent-color));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: textGradientShift 6s ease infinite; /* Assuming textGradientShift is defined */
    background-size: 300% 200%;
}
.message-box.error-message h1 .gradient-text {
     background: linear-gradient(90deg, #ff6b6b, #e74c3c, #ff8c8c);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: textGradientShift 6s ease infinite;
    background-size: 300% 200%;
}

.message-box p {
    color: var(--medium-text);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.message-box .btn-back {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--light-text) !important;
    text-decoration: none;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    background-image: linear-gradient(to right, var(--primary-accent-color) 0%, var(--secondary-accent-color) 50%, var(--primary-accent-color) 100%);
    background-size: 200% auto;
    border: 1.5px solid rgba(var(--glow-color-rgb), 0.4);
    box-shadow: 0 5px 18px rgba(var(--glow-color-rgb), 0.25);
    transition: all 0.3s ease;
}
.message-box .btn-back:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(var(--glow-color-rgb), 0.4);
    background-position: right center;
}
/* --- END OF NEW STYLES --- */