/* CSS Variables for theming */
:root {
    /* Light mode colors */
    --bg-primary: #f7fafc;
    --bg-secondary: #edf2f7;
    --bg-card: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-heading: #1a202c;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-border: rgba(226, 232, 240, 0.8);
    --card-shadow: rgba(0,0,0,0.08);
    --card-border: rgba(226, 232, 240, 0.8);
    --link-color: #3182ce;
    --link-hover: #2c5282;
    --hero-bg: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    --footer-bg: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    --button-bg: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    --button-shadow: rgba(26, 32, 44, 0.3);
}

[data-theme="dark"] {
    /* Dark mode colors - brighter and more vibrant than typical dark modes */
    --bg-primary: #2d3748;
    --bg-secondary: #4a5568;
    --bg-card: #2d3748;
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-heading: #ffffff;
    --nav-bg: rgba(45, 55, 72, 0.95);
    --nav-border: rgba(226, 232, 240, 0.3);
    --card-shadow: rgba(0,0,0,0.2);
    --card-border: rgba(226, 232, 240, 0.2);
    --link-color: #63b3ed;
    --link-hover: #90cdf4;
    --hero-bg: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    --footer-bg: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    --button-bg: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    --button-shadow: rgba(49, 130, 206, 0.4);
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    margin: 0;
    padding: 0;
    font-weight: 400;
    transition: all 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-heading);
    letter-spacing: -0.025em;
    transition: color 0.3s ease;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-heading) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-heading);
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    transition: color 0.3s ease;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

a:hover {
    color: var(--link-hover);
    transform: translateY(-1px);
}

/* Navigation */
nav {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    box-shadow: 0 4px 20px var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--nav-border);
    transition: all 0.3s ease;
}

nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 1rem;
}

nav .nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

nav a:hover {
    background: var(--button-bg);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--button-shadow);
}

nav select {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--card-border);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav select:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.1);
}

/* Dark mode toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--card-border);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: var(--button-bg);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--button-shadow);
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(45, 55, 72, 0.1);
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Info boxes */
.info-box {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--card-shadow);
    margin-bottom: 3rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--card-border);
    position: relative;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--button-bg);
}

.info-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px var(--card-shadow);
}

.info-box .content {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
}

.info-box img {
    width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 8px 25px var(--card-shadow);
    transition: transform 0.3s ease;
}

.info-box:hover img {
    transform: scale(1.02);
}

.info-text {
    flex: 1;
}

.info-text h3 {
    color: var(--text-heading);
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.info-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.info-text a {
    display: inline-block;
    background: var(--button-bg);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px var(--button-shadow);
    position: relative;
    overflow: hidden;
}

.info-text a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.info-text a:hover::before {
    left: 100%;
}

.info-text a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--button-shadow);
}

/* Hero section */
.hero {
    background: var(--hero-bg);
    color: white;
    padding: 5rem 3rem;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    background: none;
    -webkit-text-fill-color: white;
}

.hero p {
    color: rgba(255,255,255,0.95);
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

footer a {
    color: #63b3ed;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #90cdf4;
}

/* Cookie banner */
.cookie-banner {
    background: var(--button-bg);
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    display: none;
    box-shadow: 0 -4px 20px var(--card-shadow);
}

.cookie-banner button {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    margin: 0 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.cookie-banner button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.4);
}

/* Video container */
.video-container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--card-shadow);
    position: relative;
}

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

/* Contact page specific styles */
.contact-details {
    margin: 2rem 0;
}

/* Contact page image positioning */
.info-box img[src*="20240905_165227.jpg"] {
    object-position: center 30%;
    width: 250px;
    height: 350px;
}

/* Contact page image positioning */
.info-box img[src*="Foto_2018_lq.jpg"] {
    object-position: center 0%;
    width: 250px;
    height: 350px;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-details p strong {
    color: var(--text-heading);
    font-weight: 600;
    min-width: 80px;
}

.contact-details a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Mobile contact styling - button style */
@media (max-width: 768px) {
    .contact-details {
        background: none;
        border: none;
        padding: 0;
        margin: 1rem 0;
    }
    
    .contact-details p {
        background: none;
        border: none;
        padding: 0;
        margin-bottom: 1rem;
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-details a {
        display: inline-block;
        background: var(--button-bg);
        color: white;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        box-shadow: 0 4px 15px var(--button-shadow);
        margin-top: 0.5rem;
    }
    
    .contact-details a:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--button-shadow);
        color: white;
        background: var(--button-bg);
    }
}

.contact-cta {
    margin-top: 2.5rem;
}

.contact-cta a {
    display: inline-block;
    background: var(--button-bg);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 6px 20px var(--button-shadow);
}

.contact-cta a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--button-shadow);
}

/* Download page specific styles */
.download-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.3);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.4);
}

.download-btn span {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Responsive design */
@media (max-width: 768px) {
    /* Mobile navigation */
    .mobile-menu-toggle {
        display: block;
    }
    
    nav .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    nav .nav-links.active {
        display: flex;
    }
    
    nav .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Hero section */
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Info boxes */
    .info-box .content {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 2rem;
    }
    
    .info-box img {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }
    
    /* Main content */
    main {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .info-box .content {
        padding: 1.5rem;
    }
    
    .info-box img {
        height: 200px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    nav {
        padding: 1rem;
    }
    
    nav a {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

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