/* style.css */

/* CSS Variables for Theme */
:root {
    /* Primary Colors */
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #FFD700;
    --background-gradient: linear-gradient(135deg, #667eea, #764ba2);

    /* Text Colors */
    --text-color: #FFFFFF;
    --text-secondary: #F0F0F0;
    --link-color: #FFD700;
    --link-hover-color: #FFFFFF;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Font Sizes */
    --font-size-small: 0.875rem;
    --font-size-medium: 1rem;
    --font-size-large: 1.25rem;
    --font-size-xlarge: 2rem;

    /* Responsive Typography */
    --heading-font: 'Space Grotesk', sans-serif;
    --body-font: 'DM Sans', sans-serif;

    /* Transition */
    --transition-speed: 0.3s;

    /* Z-Index */
    --z-index-popup: 9999;
}

/* Global Styles */
body {
    font-family: var(--body-font);
    color: var(--text-secondary);
    background: #f5f7fa;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--text-color);
    text-align: center;
    margin-bottom: 1rem;
}

p {
    font-size: var(--font-size-medium);
    line-height: 1.6;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Typography */
.title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
}

/* Navbar */
.navbar {
    background: var(--background-gradient);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar.is-transparent {
    background: transparent;
}

.navbar-item img {
    height: 28px;
    width: 112px;
}

.navbar-burger {
    color: var(--text-color);
}

.navbar-menu {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.navbar-item {
    font-family: var(--body-font);
    color: var(--text-color);
}

.navbar-item:hover {
    color: var(--link-hover-color);
}

/* Hero Section */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    color: var(--text-color);
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

/* Sections */
.section {
    padding: 4rem 1.5rem;
    background: #f5f7fa;
}

.section:nth-child(even) {
    background: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Resources, Portfolio, Instructors, Workshops, Research, Careers */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: var(--font-size-large);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: var(--font-size-medium);
}

/* Portfolio Cards */
#portfolio .card {
    background: none;
    border: none;
    backdrop-filter: none;
}

#portfolio .card-content {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 1rem;
}

#portfolio .card:hover .card-content {
    background: rgba(255, 255, 255, 1);
}

/* Instructors Section */
#instructors .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#instructors .card-image img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-color);
}

/* Workshops Section */
.accordion-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease;
}

.accordion-header {
    padding: 1rem;
    cursor: pointer;
    position: relative;
    font-size: var(--font-size-medium);
    font-weight: bold;
    color: var(--text-color);
    background: var(--primary-color);
}

.accordion-header.active {
    background: var(--secondary-color);
}

.accordion-content {
    display: none;
    padding: 1rem;
    background: var(--glass-bg);
    color: var(--text-secondary);
}

/* Research & Careers Sections */
#research .content, #careers .content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

/* External Links Section */
#external-links ul {
    list-style: none;
    padding: 0;
}

#external-links li {
    margin-bottom: 0.5rem;
}

#external-links a {
    font-size: var(--font-size-medium);
    color: var(--link-color);
    transition: color var(--transition-speed);
}

#external-links a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Contact Section */
#contact form {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

#contact .button.is-link {
    background: var(--accent-color);
    color: #000000;
    transition: background var(--transition-speed), color var(--transition-speed);
}

#contact .button.is-link:hover {
    background: var(--link-hover-color);
    color: var(--text-color);
}

/* Footer */
.footer {
    background: var(--background-gradient);
    color: var(--text-color);
    padding: 2rem 1.5rem;
}

.footer a {
    color: var(--text-color);
    margin-right: 1rem;
    transition: color var(--transition-speed);
}

.footer a:hover {
    color: var(--link-hover-color);
}

.footer .social-links a {
    font-size: var(--font-size-medium);
    margin-right: 0.5rem;
    transition: color var(--transition-speed);
}

.footer .social-links a:hover {
    color: var(--link-hover-color);
}

/* Cookie Popup */
#cookie-popup {
    font-family: var(--body-font);
    font-size: var(--font-size-small);
}

#cookie-popup p {
    margin: 0 0 0.5rem 0;
}

#cookie-popup .button {
    background: var(--accent-color);
    color: #000000;
}

#cookie-popup .button:hover {
    background: var(--link-hover-color);
    color: var(--text-color);
}

/* Success Page */
body.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-gradient);
}

.success-page .container {
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
}

/* Privacy and Terms Pages */
body.privacy-terms {
    padding-top: 100px;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }
}

/* Helper Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Parallax Effect */
#hero {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Adaptive Typography */
html {
    font-size: 16px;
}

@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 12px;
    }
}

/* Read More Links */
.read-more {
    font-weight: bold;
    color: var(--link-color);
    transition: color var(--transition-speed);
}

.read-more:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Social Icons Text Styling */
.footer .social-links a {
    font-weight: bold;
    font-size: 1rem;
}

/* Glassmorphism for Cards and Containers */
.card, .accordion-item, #contact form, #research .content, #careers .content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Buttons */
.button {
    font-family: var(--body-font);
    font-size: var(--font-size-medium);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background var(--transition-speed), transform var(--transition-speed);
}

.button:hover {
    transform: translateY(-2px);
}

/* Custom Sliders */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--secondary-color);
    outline: none;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--link-hover-color);
    transform: scale(1.2);
}

/* Toggle Switches */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch span {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--secondary-color);
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-switch span::before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: var(--text-color);
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + span {
    background: var(--accent-color);
}

.toggle-switch input:checked + span::before {
    transform: translateX(26px);
}

/* Accordions */
.accordion-header {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 1rem;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.accordion-header.active {
    background: var(--secondary-color);
}

.accordion-content {
    padding: 1rem;
    display: none;
    background: var(--glass-bg);
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
}

/* Image Styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.background-image {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Smooth Transitions for Interactive Elements */
button, .button, .navbar-burger, .accordion-header {
    transition: all var(--transition-speed) ease;
}

/* Ensure Images with Text Have Dark Overlay */
.card, #hero, .section {
    position: relative;
}

.card::before, #hero::before, .section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 0;
}

.card-content, .hero-content, .section .container, #research .content, #careers .content {
    position: relative;
    z-index: 1;
}

/* Parallax and Particle Animations Placeholder */
@keyframes particles {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#hero {
    animation: particles 20s linear infinite;
    background-image: var(--background-gradient), url('image/hero_background.jpg');
    background-blend-mode: overlay;
}

/* Utility Classes for Spacing */
.px-1 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.px-2 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }


@media screen and (min-width: 769px), print {
    .columns:not(.is-desktop) {
        display: flex
;
        justify-content: center;
    }
}
body {
    font-family: var(--body-font);
    color: var(--text-secondary);
    background: #72757a;
    margin: 0;
    padding: 0;
}
p{
    color: black;
}