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

.nav-link-external {
    position: relative;
    padding-right: 18px;
}

.nav-link-external:after {
    content: '↗';
    font-size: 14px;
    position: absolute;
    right: 0;
    top: 0;
}

.nav-link.active {
    color: #5d7cf7 !important;
    position: relative;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #5d7cf7;
}

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

/* Services Section */
#services {
    padding: 80px 10%;
    background: linear-gradient(180deg, #121212, #0a0a0a);
    color: #fff;
}

.services-content {
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.services-content.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.services-intro {
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: #ccc;
}

.highlight {
    color: #5d7cf7;
    font-weight: 600;
}

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

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(93, 124, 247, 0.15);
    background-color: rgba(255, 255, 255, 0.08);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(93, 124, 247, 0.1);
    border-radius: 50%;
}

.service-icon img {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #aaa;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-experts {
    margin-top: auto;
}

.service-experts h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ccc;
}

.service-experts ul {
    list-style: none;
}

.service-experts li {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

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

.learn-more {
    margin-top: auto;
}

.learn-more-btn, .contact-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(93, 124, 247, 0.2);
    border: 1px solid #5d7cf7;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 15px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.learn-more-btn:hover, .contact-btn:hover {
    background-color: rgba(93, 124, 247, 0.4);
}

.contact-for-pricing {
    text-align: center;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 20px;
}

.contact-for-pricing h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #fff;
}

.contact-for-pricing p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 25px;
}

.contact-btn {
    font-size: 16px;
    padding: 12px 30px;
}

/* DigiNN Information Section */
.diginn-info {
    margin-top: 60px;
    display: flex;
    background-color: rgba(93, 124, 247, 0.1);
    border-radius: 8px;
    padding: 30px;
    align-items: center;
    border: 1px solid rgba(93, 124, 247, 0.3);
}

.diginn-logo {
    flex: 0 0 120px;
    margin-right: 30px;
}

.diginn-logo img {
    width: 100%;
    border-radius: 8px;
}

.diginn-details {
    flex: 1;
}

.diginn-details h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

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

.diginn-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(93, 124, 247, 0.2);
    border: 1px solid #5d7cf7;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 15px;
    transition: background-color 0.3s ease;
}

.diginn-btn:hover {
    background-color: rgba(93, 124, 247, 0.4);
}

/* 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.visible {
    opacity: 1;
    transform: translateY(0);
}

.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.selected {
    background-color: rgba(93, 124, 247, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(93, 124, 247, 0.3);
}

.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-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 18px;
    line-height: 1.6;
    color: #ccc;
}

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

.program-day.visible {
    opacity: 1;
    transform: translateY(0);
}

.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.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Workshops Page Specific Styles */
#workshops-header {
    height: 50vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/images/workshop-wide.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding-top: 80px; /* Add space for fixed nav */
}

.workshops-header-content {
    max-width: 800px;
    padding: 0 20px;
}

.workshops-header-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
}

.workshops-header-content p {
    font-size: 20px;
    color: #ccc;
}

.workshops-nav {
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 1;
    top: 0;
}

#diginn-section {
    padding: 50px 10%;
    background-color: #000;
}

/* 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: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@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),
    .diginn-info {
        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%;
    }
    
    .diginn-logo {
        flex: 0 0 100px;
        margin: 0 auto 20px;
    }
    
    .diginn-details {
        text-align: center;
    }
    
    .nav-links {
        gap: 10px;
        font-size: 14px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .facilities-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .ms-form-container iframe {
        height: 2200px; /* Taller on mobile */
    }
    
    .about-content h2, .facilities-content h2, .services-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, .service-card h3 {
        font-size: 26px;
    }
    
    .contact-for-pricing {
        padding: 30px 20px;
    }
    
    .contact-for-pricing h3 {
        font-size: 24px;
    }
    
    .contact-for-pricing p {
        font-size: 16px;
    }
    
    .workshops-header-content h1 {
        font-size: 36px;
    }
}

@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;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon img {
        width: 25px;
        height: 25px;
    }
}