/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0c162d; /* Slightly darker base background for a more futuristic feel */
    color: #ccd6f6; /* Default text color light for dark background */
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(10, 25, 47, 0.85); /* Slightly transparent dark blue */
    backdrop-filter: blur(10px); /* Frosted glass effect for futuristic feel */
    color: #ccd6f6;
    padding-top: 20px;
    padding-bottom: 10px;
    border-bottom: #64ffda 2px solid; /* Thinner, sharper accent */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.5); /* Enhanced shadow for depth */
}

header .logo-container {
    display: flex;
    align-items: center;
    float: left;
}

header #logo {
    height: 50px;
    margin-right: 15px;
    transition: transform 0.3s ease; /* Add transition to logo */
}
header #logo:hover {
    transform: rotate(15deg) scale(1.1); /* Slight hover effect on logo */
}


header h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 1px; /* Add slight letter spacing */
}

header nav {
    float: right;
    margin-top: 15px;
    display: flex;
    align-items: center;
}

header nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    padding: 0 15px;
}

header nav a {
    color: #ccd6f6;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px; /* Add slight letter spacing */
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

header nav a:hover,
header nav a.active {
    color: #64ffda;
    text-shadow: 0 0 8px rgba(100, 255, 218, 0.7); /* Glowing effect on hover/active */
}

.language-switcher {
    margin-left: 20px;
}
.language-switcher a {
    color: #8892b0;
    font-size: 0.9em;
}
.language-switcher a.active {
    color: #64ffda;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(100, 255, 218, 0.5);
}


/* Hero Section */
#hero {
    min-height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    filter: brightness(0.4) contrast(1.1); /* Adjusted filter for more punch */
}

.hero-content {
    z-index: 1;
    padding: 30px; /* Increased padding */
    background: rgba(10, 25, 47, 0.6); /* More pronounced overlay */
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2); /* Subtle futuristic border */
    box-shadow: 0 0 25px rgba(100, 255, 218, 0.1); /* Subtle glow */
}

.hero-content h2 {
    font-size: 3em; /* Slightly larger */
    margin-bottom: 20px;
    color: #64ffda;
    font-style: italic;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.hero-content p {
    font-size: 1.5em; /* Slightly larger */
    margin-bottom: 30px;
    color: #e6f1ff; /* Brighter paragraph text */
}

.cta-button {
    display: inline-block;
    background: #64ffda;
    color: #0a192f;
    padding: 14px 30px; /* Larger padding */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #64ffda;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.cta-button:hover {
    background-color: #52d3c0;
    transform: translateY(-4px) scale(1.05); /* Enhanced hover effect */
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.6);
}

/* Content Sections */
.content-section {
    padding: 70px 0; /* Increased padding */
    text-align: center;
}
.content-section:nth-child(even) {
     background-color: #111f3a; /* Darker alternate background */
}

.content-section h2 {
    font-size: 2.8em; /* Slightly larger */
    margin-bottom: 45px;
    color: #e6f1ff; /* Brighter headings on dark bg */
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 70px; /* Longer underline */
    height: 4px;
    background: #64ffda;
    margin: 12px auto 0;
    border-radius: 2px; /* Rounded underline */
}

.content-section p {
    font-size: 1.15em; /* Slightly larger */
    color: #a8b2d1; /* Lighter paragraph text for dark bg */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
}

/* Flex Container for About Section */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* Increased gap */
    align-items: center;
    text-align: left;
}

.flex-item {
    flex: 1;
    min-width: 300px;
}

.flex-item img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* Enhanced shadow */
    border: 1px solid rgba(100, 255, 218, 0.1);
}

/* STEM Grid */
.stem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Slightly larger minmax */
    gap: 35px; /* Increased gap */
    margin-top: 40px;
    text-align: left;
}

.stem-item {
    background: #1c2a4a; /* Darker item background */
    padding: 30px; /* Increased padding */
    border-radius: 10px; /* More rounded */
    /* **MODIFIED/ENHANCED SHADOW AND HOVER** */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25), 0 0 5px rgba(100, 255, 218, 0.1); /* Base shadow with subtle glow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid transparent; /* For hover accent */
}

.stem-item:hover {
    transform: translateY(-8px); /* Move up on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35), 0 0 15px rgba(100, 255, 218, 0.3); /* Enhanced shadow and glow on hover */
    border-left: 3px solid #64ffda;
}

.stem-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(100, 255, 218, 0.3)); /* Glow for icons */
}

.stem-item h3 {
    font-size: 1.6em; /* Slightly larger */
    color: #64ffda; /* Accent color for headings */
    margin-bottom: 10px;
}
.stem-item p {
    color: #a8b2d1; /* Lighter text for item content */
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Slightly larger minmax */
    gap: 35px; /* Increased gap */
    margin-top: 40px;
}

.activity-item {
    background: #1c2a4a; /* Darker item background */
    border-radius: 10px;
    overflow: hidden;
    /* **MODIFIED/ENHANCED SHADOW AND HOVER** */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25), 0 0 5px rgba(100, 255, 218, 0.1); /* Base shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    border-top: 3px solid transparent; /* For hover accent */
}

.activity-item:hover {
    transform: translateY(-8px); /* Move up on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35), 0 0 15px rgba(100, 255, 218, 0.3); /* Enhanced shadow on hover */
    border-top: 3px solid #64ffda;
}

.activity-item img {
    width: 100%;
    height: 220px; /* Slightly taller */
    object-fit: cover;
    filter: brightness(0.9) contrast(1.05); /* Slight image enhancement */
}

.activity-item h3 {
    font-size: 1.5em; /* Slightly larger */
    color: #64ffda;
    padding: 20px 20px 10px 20px;
    margin: 0;
}

.activity-item p {
    font-size: 1em;
    padding: 0 20px 25px 20px;
    margin:0;
    color: #a8b2d1;
}


/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted for better fit */
    gap: 20px; /* Increased gap */
    margin-bottom: 50px;
}

.gallery-grid img {
    width: 100%;
    height: 220px; /* Slightly taller */
    object-fit: cover;
    border-radius: 8px;
    /* **MODIFIED/ENHANCED SHADOW AND HOVER** */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 0 3px rgba(100, 255, 218, 0.05); /* Base shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    filter: grayscale(30%) brightness(0.95); /* Subtle desaturation and brightness */
}

.gallery-grid img:hover {
    transform: translateY(-6px) scale(1.03); /* Move up and slight scale */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(100, 255, 218, 0.2); /* Enhanced shadow and glow */
    filter: grayscale(0%) brightness(1.05); /* Full color and brighter on hover */
}

.video-gallery {
    margin-top: 50px;
}
.video-gallery h3 {
    font-size: 2em; /* Slightly larger */
    color: #e6f1ff;
    margin-bottom: 25px;
}
.video-gallery iframe {
    border-radius: 10px; /* More rounded */
    margin: 15px; /* Increased margin */
    box-shadow: 0 6px 20px rgba(0,0,0,0.3); /* Enhanced shadow */
    border: 1px solid rgba(100, 255, 218, 0.15);
}


/* Contact Section */
#contact {
    background-color: #0a192f; /* Kept dark for contrast */
    color: #ccd6f6;
    border-top: 1px solid rgba(100, 255, 218, 0.2); /* Subtle top border */
}

#contact h2 {
    color: #64ffda;
}
#contact h2::after {
    background: #ccd6f6; /* Light underline for dark background */
}

.contact-details p {
    font-size: 1.1em;
    color: #a8b2d1;
    margin-bottom: 10px;
}

.contact-details a {
    color: #64ffda;
    text-decoration: none;
    transition: text-shadow 0.3s ease;
}

.contact-details a:hover {
    text-decoration: underline;
    text-shadow: 0 0 5px rgba(100, 255, 218, 0.5);
}

#contact-form, #contact-form-bg {
    max-width: 600px;
    margin: 30px auto 0;
    padding: 25px; /* Increased padding */
    background: rgba(28, 42, 74, 0.5); /* Darker transparent background */
    border-radius: 10px;
    text-align: left;
    border: 1px solid rgba(100, 255, 218, 0.15);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
#contact-form h3, #contact-form-bg h3 {
    text-align:center;
    color: #ccd6f6;
    margin-bottom: 20px;
    font-size: 1.5em;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea,
#contact-form-bg input[type="text"],
#contact-form-bg input[type="email"],
#contact-form-bg textarea {
    width: calc(100% - 24px); /* Adjusted for padding */
    padding: 12px; /* Increased padding */
    margin-bottom: 18px; /* Increased margin */
    border: 1px solid #303C55;
    border-radius: 5px;
    background-color: #0a192f; /* Dark input background */
    color: #ccd6f6;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#contact-form input[type="text"]::placeholder,
#contact-form input[type="email"]::placeholder,
#contact-form textarea::placeholder,
#contact-form-bg input[type="text"]::placeholder,
#contact-form-bg input[type="email"]::placeholder,
#contact-form-bg textarea::placeholder {
    color: #8892b0;
}

#contact-form input:focus,
#contact-form textarea:focus,
#contact-form-bg input:focus,
#contact-form-bg textarea:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 8px rgba(100, 255, 218, 0.3);
}


#contact-form button, #contact-form-bg button {
    display: block;
    width: 100%;
    /* Uses .cta-button styles defined earlier */
}


/* Footer */
footer {
    background: #051021;
    color: #8892b0;
    text-align: center;
    padding: 35px 0; /* Increased padding */
    border-top: 1px solid #303C55;
}

footer p {
    margin: 5px 0;
    font-size: 0.9em;
    letter-spacing: 0.3px;
}

/* Footer Social Media Links */
.social-media-links {
    margin-bottom: 15px; /* Space between icons and copyright text */
}

.social-media-links a {
    display: inline-block; /* Allows for margin and padding */
    color: #8892b0;      /* Softer icon color, matches footer text */
    font-size: 1.8em;     /* Size of the icons */
    margin: 0 12px;       /* Space between icons */
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

.social-media-links a:hover {
    color: #64ffda;      /* Accent color on hover */
    transform: translateY(-3px) scale(1.1); /* Lift and scale effect */
    text-shadow: 0 0 8px rgba(100, 255, 218, 0.5); /* Subtle glow on hover */
}

/* Specific hover colors if desired (optional) */
.social-media-links a:hover .fa-facebook-f { color: #1877F2; }
.social-media-links a:hover .fa-linkedin-in { color: #0A66C2; }
.social-media-links a:hover .fa-instagram { color: #E4405F; }

/* Ensure footer text remains centered if social links take up space */
footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive Design */
@media(max-width: 768px) {
    header {
        padding-top: 10px;
        padding-bottom: 10px;
        backdrop-filter: blur(5px); /* Less blur on mobile if performance is an issue */
    }
    header .logo-container, header nav {
        float: none;
        text-align: center;
        width: 100%;
    }
    header #logo {
        height: 40px;
        margin-bottom: 5px;
    }
    header h1 {
        font-size: 1.5em;
    }
    header nav {
        margin-top: 10px;
    }
    header nav ul li {
        display: block;
        padding: 10px 0; /* Increased padding for touch targets */
    }
    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
    }

    .hero-content h2 {
        font-size: 2.2em; /* Adjusted for mobile */
    }
    .hero-content p {
        font-size: 1.2em; /* Adjusted for mobile */
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .content-section {
        padding: 50px 0;
    }
    .content-section h2 {
        font-size: 2.2em; /* Adjusted for mobile */
    }
    .flex-container {
        flex-direction: column;
    }
    .video-gallery iframe {
        width: 95%; /* Wider on mobile */
        max-width: 500px;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .stem-item, .activity-item {
        padding: 20px; /* Adjust padding for smaller screens */
    }
    .stem-item h3, .activity-item h3 {
        font-size: 1.4em;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media(max-width: 480px) {
    .hero-content h2 {
        font-size: 1.8em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .content-section h2 {
        font-size: 1.8em;
    }
    .stem-grid, .activities-grid, .gallery-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 25px;
    }
}