/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color palette */
    --primary-bg: #1a2238;
    --secondary-bg: #2d3250;
    --white-text: #ffffff;
    --beige-text: #f9e2ac;
    --overlay-bg: rgba(0, 0, 0, 0.8);

    /* Typography */
    --font-primary: 'Google Sans Flex', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

body {
    font-family: var(--font-primary);
    background-image: url('pozadi.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--white-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===========================
   HEADER
   =========================== */
.header {
    padding: var(--spacing-md) 0;
    text-align: center;
}

.logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: inline-block;
}

/* ===========================
   MAIN CONTENT
   =========================== */
.main-content {
    padding: var(--spacing-md) 0;
}

/* ===========================
   VIDEO SECTION
   =========================== */
.video-section {
    margin: 0 0;
    text-align: center;
}

.video-wrapper {
    position: relative;
    display: inline-block;
    max-width: 800px;
    width: 100%;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

.video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.video-wrapper:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===========================
   ICONS SECTION
   =========================== */
.icons-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 6rem;   
    margin: var(--spacing-xl) 0;
    flex-wrap: wrap;
}

.icon-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    max-width: 200px;
}

.icon-item:hover {
    transform: translateY(-10px);
}

.icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease;
}

.icon-item:hover .icon {
    filter: drop-shadow(0 6px 12px rgba(249, 226, 172, 0.5));
}

.icon-label {
    color: var(--white-text);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* ===========================
   TEXT SECTIONS
   =========================== */
.text-section {
    text-align: center;
    padding: var(--spacing-md) var(--spacing-sm);
    margin: var(--spacing-md) 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.text-white {
    color: var(--white-text);
}

.text-beige {
    color: var(--beige-text);
    font-size: 1.5rem;
}

.text-beige a {
    color: var(--beige-text);
    text-decoration: none;
    cursor: pointer;
}

.text-beige a:hover {
    color: var(--beige-text);
}

.text-section p {
    margin: 0;
    line-height: 1.8;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    padding: var(--spacing-md) 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-xl);
}

.legal-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.6;
}

.legal-info a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-info a:hover {
    color: var(--beige-text);
}

.placeholder-text {
    /* Styling for placeholder information that needs to be updated */
    font-style: italic;
    opacity: 0.7;
}

/* ===========================
   MODALS
   =========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--overlay-bg);
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--secondary-bg);
    padding: var(--spacing-lg);
    border-radius: 12px;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-button {
    color: var(--white-text);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 10;
}

.close-button:hover,
.close-button:focus {
    color: var(--beige-text);
}

/* Video Modal */
.modal-video {
    width: 90%;
    max-width: 1000px;
    padding: var(--spacing-sm);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Contact Modal */
.modal-contact {
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.modal-contact h2 {
    color: var(--beige-text);
    margin-bottom: var(--spacing-md);
    font-size: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-item svg {
    flex-shrink: 0;
}

.contact-item a {
    color: var(--white-text);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--beige-text);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet screens */
@media screen and (max-width: 768px) {
    .logo {
        max-width: 300px;
    }

    .icons-section {
        gap: var(--spacing-md);
    }

    .icon-wrapper {
        width: 100px;
        height: 100px;
    }

    .text-section {
        font-size: 1.125rem;
    }

    .text-beige {
        font-size: 1.25rem;
    }

    .modal-contact h2 {
        font-size: 1.5rem;
    }
}

/* Mobile screens */
@media screen and (max-width: 480px) {
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .logo {
        max-width: 250px;
    }

    .video-wrapper {
        border-radius: 4px;
    }

    .play-button svg {
        width: 60px;
        height: 60px;
    }

    .icons-section {
        gap: var(--spacing-sm);
    }

    .icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .icon-label {
        font-size: 0.875rem;
    }

    .text-section {
        font-size: 1rem;
        padding: var(--spacing-sm);
    }

    .text-beige {
        font-size: 1.125rem;
    }

    .modal-content {
        padding: var(--spacing-md);
    }

    .modal-contact h2 {
        font-size: 1.25rem;
    }

    .contact-item a {
        font-size: 1rem;
    }

    .legal-info {
        font-size: 0.75rem;
    }
}

/* Very small screens */
@media screen and (max-width: 360px) {
    .logo {
        max-width: 200px;
    }

    .icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .text-section {
        font-size: 0.9rem;
    }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.no-scroll {
    overflow: hidden;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .video-wrapper,
    .icon-item,
    .modal-content {
        border: 2px solid var(--white-text);
    }
}
