:root {
    --primary-color: #00d4ff;
    --primary-dark: #0099cc;
    --secondary-color: #ff006e;
    --accent-color: #7209b7;
    --accent-gold: #ffd700;
    --dark-bg: #0a0e27;
    --darker-bg: #05070f;
    --card-bg: #1a1f3a;
    --text-light: #e0e0e0;
    --text-lighter: #b0b0b0;
    --success: #00ff88;
    --gradient-1: linear-gradient(135deg, #00d4ff, #7209b7);
    --gradient-2: linear-gradient(135deg, #ff006e, #ffd700);
    --gradient-3: linear-gradient(135deg, #7209b7, #00ff88);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== PAGE LOADER ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 4rem;
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    margin-bottom: 2rem;
    animation: logo-pulse 1.5s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); text-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
    50% { transform: scale(1.1); text-shadow: 0 0 40px rgba(0, 212, 255, 0.8); }
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ===== ANIMATED BACKGROUND ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circuit-line {
    position: absolute;
    background: rgba(0, 212, 255, 0.1);
    animation: pulse 3s ease-in-out infinite;
}

.circuit-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-color);
    animation: glow 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 15px var(--primary-color); }
    50% { box-shadow: 0 0 30px var(--primary-color), 0 0 40px var(--primary-color); }
}

/* ===== SECTION ANIMATIONS ===== */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== NAVBAR ===== */
.navbar {
    backdrop-filter: blur(20px);
    background: rgba(10, 14, 39, 0.9) !important;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 7, 15, 0.95) !important;
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.3);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-size: 1.6rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--dark-bg);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 1.3rem;
    color: rgba(0,0,0,0.85);
    font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--dark-bg);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.4rem;
    color: rgba(0,0,0,0.85);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 600;
}

.btn-cta {
    background: linear-gradient(45deg, var(--dark-bg), var(--darker-bg));
    border: 3px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    padding: 1.3rem 3.5rem;
    border-radius: 50px;
    font-size: 1.15rem;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.6);
    color: var(--primary-color);
    background: linear-gradient(45deg, var(--primary-dark), var(--accent-color));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.robot-icon {
    font-size: 15rem;
    background: linear-gradient(135deg, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
}

/* ===== STAT BOX ===== */
.stat-box {
    background: rgba(26, 31, 58, 0.8);
    border: 2px solid rgba(0, 212, 255, 0.3);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    display: block;
    margin-bottom: 0.5rem;
}

/* ===== PROGRAM CARDS ===== */
.program-card-mini {
    background: rgba(26, 31, 58, 0.8);
    border: 2px solid rgba(0, 212, 255, 0.2);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.program-card-mini:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.program-icon-mini {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.program-card-mini h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.learn-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.learn-more:hover {
    color: var(--primary-color);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 5rem 0;
    margin: 4rem 0;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark-bg);
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.cta-section p {
    font-size: 1.4rem;
    color: rgba(0,0,0,0.8);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-lighter);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 4rem 0;
}

.content-section:nth-child(even) {
    background: rgba(26, 31, 58, 0.3);
}

/* ===== PROGRAM CARD ===== */
.program-card {
    background: rgba(26, 31, 58, 0.9);
    border: 2px solid rgba(0, 212, 255, 0.2);
    padding: 3rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3);
}

.program-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.program-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', monospace;
}

.program-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.program-features {
    list-style: none;
    padding: 0;
}

.program-features li {
    padding: 0.8rem 0;
    color: var(--text-lighter);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.program-features li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* ===== ABOUT CARD ===== */
.about-card {
    background: rgba(26, 31, 58, 0.9);
    border: 2px solid rgba(0, 212, 255, 0.2);
    padding: 3rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    border-left: 6px solid var(--primary-color);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3);
}

.about-card h4 {
    color: var(--primary-color);
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    font-family: 'Orbitron', monospace;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.9;
}

/* ===== VALUES GRID ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 31, 58, 0.8);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
}

.value-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-item h5 {
    color: var(--text-light);
    font-weight: 700;
}

/* ===== TEAM CARD ===== */
.team-card {
    background: rgba(26, 31, 58, 0.9);
    border: 2px solid rgba(0, 212, 255, 0.2);
    padding: 3rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 30px 60px rgba(0, 212, 255, 0.3);
}

.team-header {
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.team-name {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.team-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.tech-stack-title {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 800;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 2px solid rgba(0, 212, 255, 0.4);
    font-weight: 700;
}

.member-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--secondary-color);
}

.member-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.member-role {
    font-size: 0.9rem;
    color: var(--text-lighter);
}

.lead-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* ===== EVENT CARD ===== */
.event-card {
    background: rgba(26, 31, 58, 0.9);
    border: 2px solid rgba(0, 212, 255, 0.2);
    padding: 2.5rem;
    border-radius: 15px;
    transition: all 0.4s ease;
    border-left: 6px solid var(--primary-color);
    height: 100%;
}

.event-card:hover {
    transform: translateX(10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.event-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.event-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 800;
    font-family: 'Orbitron', monospace;
}

.event-description {
    color: var(--text-lighter);
    margin-bottom: 1.5rem;
}

.event-details {
    margin-top: 1.5rem;
}

.event-date, .event-location {
    color: var(--text-lighter);
    margin-bottom: 0.7rem;
    font-weight: 600;
}

/* ===== GALLERY ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    height: 300px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.8), rgba(255, 0, 110, 0.8));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
}

/* ===== FEEDBACK FORM ===== */
.feedback-form-card {
    background: rgba(26, 31, 58, 0.9);
    border: 2px solid rgba(0, 212, 255, 0.3);
    padding: 3rem;
    border-radius: 20px;
}

.form-control, .form-select {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 212, 255, 0.3);
    color: var(--text-light);
    border-radius: 10px;
    padding: 1rem;
}

.form-control::placeholder {
    color: var(--text-lighter);
}

.form-control:focus, .form-select:focus {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.3);
}

.form-label {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 0.7rem;
    font-family: 'Orbitron', monospace;
}

/* ===== FEEDBACK CARD ===== */
.feedback-card {
    background: rgba(26, 31, 58, 0.9);
    border: 2px solid rgba(0, 212, 255, 0.2);
    padding: 2.5rem;
    border-radius: 15px;
    height: 100%;
    transition: all 0.4s ease;
}

.feedback-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.feedback-text {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.feedback-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
}

.author-name {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.author-role {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.star-rating {
    color: var(--accent-gold);
    font-size: 1rem;
}

/* ===== FOOTER ===== */
footer {
    background: rgba(5, 7, 15, 0.98);
    border-top: 2px solid rgba(0, 212, 255, 0.3);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

footer h5, footer h6 {
    color: var(--primary-color);
    font-weight: 800;
    font-family: 'Orbitron', monospace;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 25px rgba(0, 212, 255, 0.4);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 35px rgba(0, 212, 255, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .page-header h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .robot-icon { font-size: 8rem; }
    .btn-cta { padding: 1rem 2rem; font-size: 1rem; }
    .values-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}