/* ========================================
   SHARED COMPONENTS - Softure UG Website
   Reusable Header, Footer, and Common Styles
   ======================================== */

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

/* Variables */
:root {
    --primary: #1a365d;
    --primary-light: #2c5aa0;
    --accent: #00d4aa;
    --gold: #d4a855;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* ========================================
   HEADER
   ======================================== */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

/* Gold dots decoration */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: radial-gradient(circle, var(--gold) 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    opacity: 0.12;
    pointer-events: none;
}

/* Hero gold dots - apply to any hero section */
.hero, .apps-hero, .contact-hero {
    position: relative;
}

.hero::before, .apps-hero::before, .contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, var(--gold) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    opacity: 0.1;
    pointer-events: none;
}

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

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon i {
    color: white;
    font-size: 1.2rem;
}

.logo-icon .logo-accent {
    color: var(--accent);
}

.logo-text h1 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin: 0;
    line-height: 1;
}

.logo-tagline {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Navigation */
.nav-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 4px;
    background: rgba(26, 54, 93, 0.08);
    padding: 4px;
    border-radius: 8px;
}

.lang-switch button {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-switch button.active {
    background: var(--primary);
    color: white;
}

.lang-switch button:hover:not(.active) {
    background: rgba(26, 54, 93, 0.12);
}

/* ========================================
   FOOTER (from apps.html style)
   ======================================== */
footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 40px 30px;
    position: relative;
    overflow: hidden;
}

/* Gold dots decoration for footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, var(--gold) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    opacity: 0.08;
    pointer-events: none;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin: 0 0 8px;
    font-weight: 700;
}

.footer-brand p {
    opacity: 0.7;
    margin: 0;
}

.footer-links h4 {
    font-size: 0.9rem;
    margin: 0 0 16px;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-section {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-section.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    footer {
        padding: 40px 20px 20px;
    }

    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
