/* 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;
}

/* Custom Form Styles */
.form-container {
    width: 100%;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group label {
    color: #eee;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 12px;
    color: #fff;
    font-family: 'Jura', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5d7cf7;
    box-shadow: 0 0 8px rgba(93, 124, 247, 0.4);
    background-color: rgba(255, 255, 255, 0.15);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-option label {
    margin-bottom: 0;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    margin: 0;
}

.radio-option input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #5d7cf7;
    border-radius: 50%;
}

.privacy-policy {
    margin-top: 10px;
}

.checkbox-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.checkbox-container input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    color: #5d7cf7;
    font-size: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.privacy-policy a {
    color: #5d7cf7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-policy a:hover {
    color: #7b92f9;
    text-decoration: underline;
}

.form-submit {
    margin-top: 10px;
}

.form-submit button {
    width: 100%;
    padding: 14px;
    background-color: #5d7cf7;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Jura', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit button:hover {
    background-color: #4a69e5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 124, 247, 0.4);
}

.form-submit button:disabled {
    background-color: #444;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.required {
    color: #ff6b6b;
}

#form-messages {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    display: none;
}

#form-messages.success {
    display: block;
    background-color: rgba(39, 174, 96, 0.2);
    border: 1px solid #27ae60;
    color: #2ecc71;
}

#form-messages.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* Loading spinner for submit button */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
}

/* 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;
    }
    
    .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;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-container {
        padding: 20px;
    }
}

@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;
    }
}