/* ===== Base Styles ===== */
:root {
    --primary: #E6E6FA; /* Lavender */
    --primary-dark: #D8BFD8;
    --primary-light: #F5F5FF;
    
    --secondary: #ADD8E6; /* Pastel blue */
    --secondary-dark: #87CEEB;
    --secondary-light: #E6F4F9;
    
    --tertiary: #D3D3D3; /* Light gray */
    --tertiary-dark: #A9A9A9;
    --tertiary-light: #F0F0F0;
    
    --text: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* Dark mode variables */
    --dark-bg: #121212;
    --dark-text: #f0f0f0;
    --dark-card: #1e1e1e;
    --dark-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    margin-top: 0;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
    color: var(--dark-text);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.dark-mode .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Layout Components ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    padding: 80px 5%;
    width: 100%;
}

.dark-mode .section {
    background-color: var(--dark-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ===== Header & Navigation ===== */
.header {
    display: flex;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .header {
    background-color: rgba(30, 30, 30, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    width: auto;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-weight: 600;
    box-shadow: var(--shadow);
    margin-right: 30px;
    padding: 0 20px;
    font-size: 1.1rem;
}

.dark-mode .logo {
    color: var(--dark-text);
    box-shadow: var(--dark-shadow);
	background: linear-gradient(35deg, var(--tertiary-dark), var(--dark));
}

.nav {
    display: flex;
    flex-grow: 1;
    align-items: center;
}

.nav-link {
    margin-right: 20px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.dark-mode .nav-link {
    color: var(--dark-text);
}

.nav-link:hover {
    color: var(--secondary-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.dark-mode .nav-link:hover::after {
    background-color: var(--primary);
}

.cta-button {
    margin-left: auto;
}
		/* Add this new rule */
.header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}
/* ===== Mobile Menu ===== */
.hamburger {
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: 1100;
    background: transparent;
    border: none;
    display: flex;
    justify-content: flex-end;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--secondary-dark);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
    top: 9px;
}

.hamburger span:nth-child(4) {
    top: 18px;
}

/* Animated X when menu is open */
.hamburger.open span:nth-child(1),
.hamburger.open span:nth-child(4) {
    top: 9px;
    width: 0%;
    left: 50%;
}

.hamburger.open span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    z-index: 1050;
    padding: 80px 30px 30px;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    right: 0;
}






.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.menu-item {
    color: var(--black);
    text-decoration: none;
    font-size: 18px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--primary-light);
    transition: all 0.3s ease;
}

.menu-item:hover {
    color: var(--primary-light);
}

.menu-item:hover:before {
    left: 0;
}

.menu-item.active {
    color: var(--primary);
    font-weight: 600;
}

.menu-cta {
    margin-top: 30px;
    background: var(--primary);
    color: var(--white);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.menu-cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* ===== Dark Mode Toggle ===== */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 15px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #555;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* ===== Hero Sections ===== */
.hero {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-light), var(--white));
    min-height: 80vh;
}

.dark-mode .hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
}

.dark-mode .hero-text {
    color: rgba(255, 255, 255, 0.7);
}

.hero-animation {
    flex: 1;
    position: relative;
    height: 400px;
    background-color: var(--primary);
    border-radius: 30px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode .hero-animation {
    box-shadow: var(--dark-shadow);
    background-color: var(--dark-card);
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 2;
    border-radius: 30px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-container video.loaded {
    opacity: 1;
}

/* Card Style Hero */
/* Hero Card Styles */
		.hero-card-container {
      
        margin: 0 auto;
        padding: 0 20px;
    }

    .hero-card {
        background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
        border-radius: 20px;
        box-shadow: var(--shadow);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .dark-mode .hero-card {
        background: linear-gradient(135deg, #1a1a2e, #16213e);
    }

    .hero-card-image {
        width: 100%;
        height: 200px;
        position: relative;
        background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    }

    .image-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--white);
        font-size: 1.2rem;
        background-color: rgba(0, 0, 0, 0.1);
    }

    .hero-card-content {
        padding: 30px;
    }

    .hero-card-title {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 10px;
        color: var(--text);
    }

    .dark-mode .hero-card-title {
        color: var(--dark-text);
    }

    .hero-card-subtitle {
        font-size: 1.1rem;
        color: var(--text-light);
    }

    .dark-mode .hero-card-subtitle {
        color: rgba(255, 255, 255, 0.7);
    }

    @media (min-width: 768px) {
        .hero-card {
            flex-direction: row;
            height: 250px;
        }

        .hero-card-image {
            width: 40%;
            height: auto;
        }

        .hero-card-content {
            width: 60%;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
    }

    @media (min-width: 992px) {
        .hero-card-title {
            font-size: 2.2rem;
        }
    }
/* ===== School Section ===== */
.school-section {
    position: relative;
    background-color: var(--white);
    z-index: 1;
}

.dark-mode .school-section {
    background-color: var(--dark-bg);
}

.school-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    background-image: url('https://drustvoneurologasrbije.org/skola/img/balerina.png');
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -1;
}

.dark-mode .school-section::before {
    opacity: 0.05;
}

.school-description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 30px auto 40px;
    color: var(--text-light);
    text-align: justify;
}

.dark-mode .school-description {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Card Components ===== */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .card {
    background: var(--dark-card);
    box-shadow: var(--dark-shadow);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-image-container {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 15px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.dark-mode .card-icon {
    background-color: rgba(214, 214, 250, 0.1);
    color: var(--primary);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
}

.dark-mode .card-text {
    color: rgba(255, 255, 255, 0.7);
}

.cta-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
    padding: 60px;
}

.dark-mode .cta-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.cta-card .card-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-card .card-text {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ===== Program Schedule Styles ===== */
.day-section {
    margin-bottom: 60px;
}

.day-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 10px;
}

.day-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--secondary);
}

.session-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .session-card {
    background: var(--dark-card);
    box-shadow: var(--dark-shadow);
}

.session-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.session-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.session-moderators {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.schedule-table th {
    text-align: left;
    padding: 12px 15px;
    background-color: var(--primary-light);
    color: var(--text);
    font-weight: 500;
}

.schedule-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--tertiary-light);
    vertical-align: top;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.break {
    background-color: var(--tertiary-light);
    padding: 12px 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

.dark-mode .break {
    background-color: #2a2a2a;
}

/* ===== Grid Systems ===== */
.grid {
    display: grid;
    gap: 15px;
}

.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.five-columns {
    grid-template-columns: repeat(5, 1fr);
}

/* ===== Button Styles ===== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text);
}

.dark-mode .btn-primary {
    background-color: var(--primary-dark);
    color: var(--dark-text);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.dark-mode .btn-secondary {
    background-color: var(--secondary-dark);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-about {
    background-color: var(--primary);
    color: var(--text);
    display: block;
    margin: 0 auto;
    max-width: 200px;
    text-align: center;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--tertiary-light);
    padding: 60px 5% 30px;
}

.dark-mode .footer {
    background-color: #1a1a1a;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-link {
    display: block;
    color: var(--text-light);
    margin-bottom: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dark-mode .footer-link {
    color: rgba(255, 255, 255, 0.7);
}

.footer-link:hover {
    color: var(--secondary-dark);
}

.dark-mode .footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-light);
}

.dark-mode .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1200px) {
    .five-columns {
        grid-template-columns: repeat(3, 1fr);
    }

    .school-section::before {
        width: 30%;
        opacity: 0.08;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }
    
    .three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-card {
        flex-direction: row;
        height: 250px;
    }

    .hero-card-image {
        width: 40%;
        height: auto;
    }

    .hero-card-content {
        width: 60%;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}


@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .cta-button {
        margin-left: 0;
    }
    
    .web-app-button {
        display: none;
    }
    
    .five-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-card {
        flex-direction: column;
        height: auto;
    }

    .hero-card-image {
        width: 100%;
        height: 200px;
    }

    .hero-card-content {
        width: 100%;
        padding: 30px;
    }

    .schedule-table {
        display: block;
        overflow-x: auto;
    }
    
    .school-section::before {
        display: none;
    }
}

  /* Desktop Navigation - Hidden on Mobile */
        .desktop-nav {
            display: none;
        }

        @media (min-width: 769px) {
            .hamburger {
                display: none;
            }
            .desktop-nav {
                display: flex;
            }
        }

@media (max-width: 576px) {
    .three-columns, .five-columns {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .hero-animation {
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 15px;
    }
    
    .session-card {
        padding: 20px;
    }
    
    .schedule-table th, 
    .schedule-table td {
        padding: 10px;
    }
}