/* Reset and Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Jura', 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    color: #333;
    background-color: #000;
}

section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Font styles for Jura */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Jura', sans-serif;
    font-weight: 600;
}

p, li, a {
    font-family: 'Jura', sans-serif;
    font-weight: 400;
}

/* Navigation Bar */
.nav-bar {
    position: fixed;
    top: -80px; /* Start hidden */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    transition: top 0.5s ease, background-color 0.5s ease;
    opacity: 0; /* Start fully transparent */
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
    color: white;  /* Default color */
}

.cyens-logo {
    height: 40px;
    transition: opacity 0.5s ease;
    color: white;
}

/* Hero Section */
#hero {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 150px;
    background-color: white;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/studio-bg.jpg') no-repeat center center;
    background-size: cover;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

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

.main-logo img {
    height: 80px;
    transition: transform 0.5s ease;
}

.main-cyens-logo {
    height: 60px;
    margin-left: 10px;
    transition: opacity 0.5s ease, filter 0.5s ease;
}

/* About Section */
#about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 10%;
    color: #fff;
    background: linear-gradient(180deg, #000, #121212);
}

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

.about-content h2 {
    font-size: 42px;
    margin-bottom: 40px;
    text-align: center;
    color: #fff;
}

.about-intro {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #fff;
}

.about-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #ccc;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.about-objectives, .about-services {
    margin-bottom: 60px;
}

.about-objectives h3, .about-services h3, .about-facilities-preview h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #fff;
}

.objectives-list li {
    margin-bottom: 10px;
    list-style-type: none;
    position: relative;
    padding-left: 25px;
    color: #aaa;
}

.objectives-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #5d7cf7;
}

.services-columns {
    display: flex;
    gap: 40px;
}

.services-list {
    flex: 1;
}

.services-list li {
    margin-bottom: 10px;
    list-style-type: none;
    position: relative;
    padding-left: 25px;
    color: #aaa;
}

.services-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #5d7cf7;
}

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

.facility-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.facility-image {
    height: 200px;
    overflow: hidden;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.facility-card:hover .facility-image img {
    transform: scale(1.05);
}

.facility-card h4 {
    padding: 15px 15px 5px;
    font-size: 20px;
    color: #fff;
}

.facility-card p {
    padding: 0 15px 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #aaa;
}

/* Facilities Section */
#facilities {
    padding: 80px 10%;
    background-color: #0a0a0a;
    color: #fff;
}

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

.facilities-content h2 {
    font-size: 42px;
    margin-bottom: 40px;
    text-align: center;
    color: #fff;
}

.facility-category {
    display: flex;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.facility-category:nth-child(even) {
    flex-direction: row-reverse;
}

.facility-info {
    flex: 1;
    padding: 0 30px;
}

.facility-info h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #fff;
}

.facility-info p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ccc;
}

.equipment-list h4 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #eee;
}

.equipment-list ul {
    margin-left: 20px;
}

.equipment-list li {
    margin-bottom: 8px;
    color: #aaa;
}

.facility-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.facility-gallery img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-row {
    display: flex;
    gap: 10px;
}

.gallery-row img {
    flex: 1;
    height: 150px;
    object-fit: cover;
}

/* Workshops Section */
#workshops {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 10%;
    color: #fff;
    background: linear-gradient(180deg, #0a0a0a, #000);
}

.workshops-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    z-index: 10;
}

.workshops-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #fff;
}

.workshops-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ccc;
}

.workshop-dates {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.date-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.date-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.date-card p {
    font-size: 14px;
    margin-bottom: 0;
    color: #aaa;
}

/* Programs Section */
#programs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 10%;
    color: #eee;
    background-color: #000;
}

.programs-content {
    width: 100%;
    max-width: 1200px;
}

.program-day {
    display: flex;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.program-day:nth-child(even) {
    flex-direction: row-reverse;
}

.program-info {
    flex: 1;
    padding: 30px;
}

.program-image {
    flex: 1;
    min-height: 300px;
    transition: opacity 0.5s ease;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.program-day h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: white;
}

.program-day p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ccc;
}

.program-features {
    margin-top: 30px;
}

.program-features li {
    margin-bottom: 10px;
    list-style-type: none;
    position: relative;
    padding-left: 25px;
    color: #aaa;
}

.program-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #5d7cf7;
}

/* Registration Section */
#registration {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 10%;
    background-color: #000;
    color: white;
}

.registration-content {
    max-width: 800px;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.registration-content h2 {
    font-size: 42px;
    margin-bottom: 30px;
    text-align: center;
}

.ms-form-container {
    width: 100%;
    margin: 0 auto;
    overflow: visible;
}

.ms-form-container iframe {
    width: 100%;
    height: 2100px;
    border: none;
    overflow: hidden;
}

/* Footer */
footer {
    padding: 50px 10%;
    background-color: #0c0c0c;
    color: #666;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #999;
}

.footer-col p,
.footer-col a {
    color: #666;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-col a:hover {
    color: #999;
}

.copyright {
    margin-top: 50px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 14px;
}

/* Animation States for ScrollSpy */
.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-intro {
        flex-direction: column;
    }
    
    .services-columns {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .program-day, .program-day:nth-child(even),
    .facility-category, .facility-category:nth-child(even) {
        flex-direction: column;
    }
    
    .facility-gallery {
        margin-bottom: 30px;
    }
    
    .facility-category:nth-child(even) .facility-gallery {
        margin-bottom: 30px;
        margin-top: 0;
    }
    
    .facility-info {
        padding: 0;
    }
    
    .program-image {
        min-height: 200px;
        margin-bottom: 20px;
    }
    
    .workshop-dates {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-bar {
        padding: 15px 3%;
    }
    
    .nav-links {
        gap: 10px;
        font-size: 14px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .ms-form-container iframe {
        height: 2200px; /* Taller on mobile */
    }
    
    .about-content h2, .facilities-content h2, .workshops-content h2, .registration-content h2 {
        font-size: 32px;
    }
    
    .about-text h3, .about-objectives h3, .about-services h3, .about-facilities-preview h3,
    .facility-info h3, .program-day h3 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .gallery-row {
        flex-direction: column;
    }
    
    .gallery-row img {
        height: auto;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 12px;
    }
    
    .cyens-logo {
        height: 30px;
    }
    
    .nav-logo img {
        height: 30px;
    }
}