﻿/* Layout CSS - Header, Navigation & Footer */

/* CSS Variables */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-light: #ecf0f1;
    --text-dark: #2c3e50;
    --bg-light: #f8f9fa;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

    .navbar.scrolled {
        background: rgba(44, 62, 80, 0.98);
        box-shadow: var(--shadow);
    }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

    .logo:hover {
        color: var(--accent-color);
        text-decoration: none;
    }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--accent-color);
        background: rgba(52, 152, 219, 0.2);
        text-decoration: none;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--accent-color);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 80%;
    }

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .lang-btn:hover {
        color: var(--accent-color);
        background: rgba(255,255,255,0.1);
    }

    .lang-btn.active {
        color: var(--accent-color);
        background: rgba(52, 152, 219, 0.2);
    }

.lang-divider {
    color: rgba(255,255,255,0.5);
    font-weight: 300;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

    .mobile-menu span {
        width: 25px;
        height: 3px;
        background: var(--text-light);
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }

    /* Mobile Menu Animation */
    .mobile-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

/* Footer */
.footer {
    background: #1a1a1a;
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

    .footer .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .social-links a {
        color: var(--text-light);
        font-size: 1.5rem;
        transition: all 0.3s ease;
        padding: 0.5rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
    }

        .social-links a:hover {
            color: var(--accent-color);
            background: rgba(52, 152, 219, 0.1);
            transform: translateY(-2px);
            text-decoration: none;
        }

.footer p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* Container utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Button utilities for layout */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.btn-primary:hover {
    color: white;
}

.btn-outline:hover {
    color: var(--text-dark);
    background: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(44, 62, 80, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem 0;
        transition: right 0.3s ease;
        backdrop-filter: blur(10px);
        z-index: 999;
    }

        .nav-menu.active {
            right: 0;
        }

        .nav-menu li {
            margin: 2rem 0;
            text-align: center;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s ease;
        }

        .nav-menu.active li {
            opacity: 1;
            transform: translateY(0);
        }

            .nav-menu.active li:nth-child(1) {
                transition-delay: 0.1s;
            }

            .nav-menu.active li:nth-child(2) {
                transition-delay: 0.2s;
            }

            .nav-menu.active li:nth-child(3) {
                transition-delay: 0.3s;
            }

    .nav-link {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .nav-link:hover,
        .nav-link.active {
            background: rgba(52, 152, 219, 0.2);
            transform: scale(1.05);
        }

    .mobile-menu {
        display: flex;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .language-selector {
        gap: 0.3rem;
    }

    .lang-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .container {
        padding: 0 1rem;
    }

    .social-links {
        gap: 0.5rem;
    }

        .social-links a {
            width: 45px;
            height: 45px;
            font-size: 1.3rem;
        }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .lang-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .footer p {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
}

/* Loading and transition states */
body:not(.loaded) .navbar {
    transform: translateY(-100%);
}

body.loaded .navbar {
    transform: translateY(0);
    transition: transform 0.5s ease 0.3s;
}

/* Keyboard navigation accessibility */
.nav-link:focus,
.lang-btn:focus,
.logo:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.social-links a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar {
        background: rgba(0, 0, 0, 0.95);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .navbar,
    .nav-link,
    .lang-btn,
    .mobile-menu span,
    .social-links a {
        transition: none;
    }

    .fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
