/* Common styles for Kvantum 2025 */

/* CT Gates Font Declarations */
@font-face {
    font-family: 'CT Gates';
    src: url('/fonts/ct-gates/CTGates-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* Improves loading performance */
}

@font-face {
    font-family: 'CT Gates';
    src: url('/fonts/ct-gates/CTGates-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CT Gates';
    src: url('/fonts/ct-gates/CTGates-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CT Gates';
    src: url('/fonts/ct-gates/CTGates-Heavy.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Light weight for subtle text */
@font-face {
    font-family: 'CT Gates';
    src: url('/fonts/ct-gates/CTGates-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'CT Gates', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fafafa;
    font-weight: 400;
}

/* Heading styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'CT Gates', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #00E964;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: padding;
    transform: translateZ(0);
    backface-visibility: hidden;
}

header.scrolled {
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: -0.5px;
    transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    color: #00E964;
}

.logo a {
    color: #00E964;
    transition: color 0.3s;
}

.logo a:hover {
    color: #FF4E3B;
}

header.scrolled .logo {
    font-size: 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 16px;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    color: #FF4E3B;
    opacity: 1;
}

.nav-links a.active {
    font-weight: 600;
    color: #FF4E3B;
}

.cta-button {
    background: #00E964;
    color: #1a1a1a;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    margin-left: 20px;
}

.cta-button:hover {
    background: #00D45A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,233,100,0.3);
}

header.scrolled .cta-button {
    padding: 8px 20px;
    font-size: 15px;
}

/* Footer styles */
footer {
    padding: 60px 0;
    background: #1a1a1a;
    color: white;
    text-align: center;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #FF4E3B;
}

/* Responsive styles */
@media (max-width: 768px) {
    /* Header adjustments */
    header {
        padding: 20px 0;
    }
    
    nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        font-size: 20px;
        text-align: center;
    }
    
    header.scrolled .logo {
        font-size: 18px;
    }
    
    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
        margin-top: 15px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .cta-button {
        margin-left: 0;
        margin-top: 10px;
        padding: 8px 20px;
        font-size: 14px;
    }
    
    header.scrolled .cta-button {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    /* Container padding on mobile */
    .container {
        padding: 0 15px;
    }
    
    /* Headings */
    h1 {
        font-size: clamp(28px, 8vw, 48px);
    }
    
    h2 {
        font-size: clamp(24px, 6vw, 36px);
    }
    
    h3 {
        font-size: clamp(20px, 5vw, 28px);
    }
    
    /* Footer */
    footer {
        padding: 30px 0;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Very small screens */
    .nav-links {
        gap: 8px 15px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
}

/* Color scheme for categories */
.hudba {
    background-color: #90c695;
}

.divadlo {
    background-color: #b8a9d9;
}

.diskusia {
    background-color: #f4d4a7;
}

.vizual {
    background-color: #d4a5a5;
}

.workshop {
    background-color: #a8d4d4;
}