/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #c41e3a;
    --color-text: #2c2c2c;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-border: #e0e0e0;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

/* Logo Image Styles */
.logo-image-preload {
    max-width: 400px;
    height: auto;
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-image-header {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.logo-image-header:hover {
    transform: scale(1.05);
}

.logo-container-small a {
    display: inline-block;
    text-decoration: none;
}

.logo-image-footer {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-image-footer:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Logo Styles (Legacy - kept for compatibility) */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-graphic {
    position: relative;
    width: 80px;
    height: 80px;
}

.logo-n-black,
.logo-n-black-small {
    position: absolute;
    width: 40px;
    height: 60px;
    background-color: var(--color-primary);
    clip-path: polygon(0 0, 0 100%, 35% 100%, 35% 60%, 65% 60%, 65% 0);
}

.logo-n-red,
.logo-n-red-small {
    position: absolute;
    left: 35px;
    width: 45px;
    height: 60px;
    background-color: var(--color-secondary);
    clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 40%, 65% 40%, 65% 0);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-noroc {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 2px;
    line-height: 1;
}

.logo-noroc::first-letter {
    color: var(--color-secondary);
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-light);
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* Small Logo (Header/Footer) */
.logo-container-small {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-graphic-small {
    position: relative;
    width: 40px;
    height: 40px;
}

.logo-n-black-small {
    width: 20px;
    height: 30px;
}

.logo-n-red-small {
    left: 17px;
    width: 23px;
    height: 30px;
}

.logo-text-small {
    display: flex;
    flex-direction: column;
}

.logo-noroc-small {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
    line-height: 1;
}

.logo-noroc-small::first-letter {
    color: var(--color-secondary);
}

.logo-subtitle-small {
    font-size: 0.5rem;
    font-weight: 500;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
    margin-top: 0.125rem;
}

/* Header */
.header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

.nav-link:focus,
.logo-image-header:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-bottom: 2px solid var(--color-border);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.logo-image-hero {
    max-width: 450px;
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: fadeInScale 1s ease-out;
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: var(--font-primary);
    position: relative;
}

.section-title::first-letter {
    color: var(--color-secondary);
    font-weight: 700;
}

/* Content Box */
.content-box {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--color-bg);
    padding: var(--spacing-lg);
    border: 2px solid var(--color-border);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.content-box:hover::before {
    left: 100%;
}

.content-box:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.2), 
                0 0 0 1px rgba(196, 30, 58, 0.15),
                0 0 40px rgba(196, 30, 58, 0.1);
    transform: translateY(-4px);
    background: linear-gradient(135deg, #ffffff 0%, #fff5f7 100%);
}

.content-box > * {
    position: relative;
    z-index: 1;
}

.text-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.text-content:last-child {
    margin-bottom: 0;
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.activity-card {
    background-color: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 6px;
    padding: var(--spacing-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.activity-card:hover::before {
    left: 100%;
}

.activity-card:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.25), 
                0 0 0 1px rgba(196, 30, 58, 0.15),
                0 0 40px rgba(196, 30, 58, 0.1);
    transform: translateY(-4px) scale(1.02);
    background: linear-gradient(135deg, #ffffff 0%, #fff5f7 100%);
    animation: glow-pulse 2s ease-in-out infinite;
}

.activity-card > * {
    position: relative;
    z-index: 1;
}

.activity-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    transition: border-color 0.3s ease;
}

.activity-card:hover .activity-header {
    border-bottom-color: var(--color-secondary);
}

.activity-logo {
    max-height: 60px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.activity-card:hover .activity-logo {
    transform: scale(1.05);
}

.activity-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 1px;
    flex: 1;
    margin: 0;
}

.activity-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.activity-link {
    display: inline-block;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.activity-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Contacts Grid */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 0 0 rgba(196, 30, 58, 0);
    }
    50% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 20px rgba(196, 30, 58, 0.1);
    }
}

.contact-item {
    background-color: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 6px;
    padding: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.25), 
                0 0 0 1px rgba(196, 30, 58, 0.15),
                0 0 40px rgba(196, 30, 58, 0.1);
    transform: translateY(-4px) scale(1.02);
    background: linear-gradient(135deg, #ffffff 0%, #fff5f7 100%);
    animation: glow-pulse 2s ease-in-out infinite;
}

.contact-item:active {
    transform: translateY(-2px);
}

.contact-item:focus-within {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.contact-item.full-width {
    grid-column: 1 / -1;
}

.contact-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
    transition: color 0.3s ease;
}

.contact-item:hover .contact-label {
    color: var(--color-secondary);
}

.contact-value {
    font-size: 1.1rem;
    color: var(--color-text);
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.6;
}

.contact-value a[href^="mailto:"] {
    font-size: 0.85rem;
    white-space: nowrap;
    display: block;
    width: 100%;
}

.contact-link {
    color: var(--color-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
    padding: 2px 0;
}

.contact-link[href^="mailto:"] {
    font-size: 0.85rem;
    white-space: nowrap;
    display: block;
    width: 100%;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.contact-link:hover::after {
    width: 100%;
}

.contact-item:hover .contact-link {
    color: var(--color-primary);
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-bg-alt);
    border: 2px solid var(--color-border);
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pdf-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(196, 30, 58, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.pdf-link:hover::before {
    width: 300px;
    height: 300px;
}

.pdf-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-bg);
    border-color: var(--color-secondary);
    box-shadow: 0 6px 24px rgba(196, 30, 58, 0.3);
    transform: translateY(-2px);
}

.pdf-link:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-bg);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-logo .logo-noroc-small {
    color: var(--color-bg);
}

.footer-logo .logo-noroc-small::first-letter {
    color: var(--color-secondary);
}

.footer-logo .logo-subtitle-small {
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo .logo-n-black-small {
    background-color: var(--color-bg);
}

.footer-info {
    text-align: right;
}

.footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.footer-text:last-child {
    margin-bottom: 0;
}

.footer-credit {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-credit-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-credit-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .header-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }

    .logo-image-hero {
        max-width: 350px;
    }

    .section-title {
        font-size: 2rem;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .activity-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }

    .activity-logo {
        max-height: 50px;
        max-width: 180px;
        margin: 0 auto;
    }

    .activity-title {
        text-align: center;
        width: 100%;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contact-item:hover {
        transform: translateY(-2px) scale(1.01);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    .logo-image-preload {
        max-width: 280px;
    }

    .logo-image-header {
        height: 45px;
    }

    .logo-image-footer {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: var(--spacing-lg) 0;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

    .content-box {
        padding: var(--spacing-md);
    }

    .activity-card {
        padding: var(--spacing-md);
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Skip to main content for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-secondary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Print Styles */
@media print {
    .preloader,
    .header,
    .footer {
        display: none;
    }
}

