/* ============================================
   GMACOVEI.COM - MODERN MINIMALIST PORTFOLIO
   Pure CSS - No Frameworks
   ============================================ */

/* CSS Variables - Color Theme */
:root {
    /* Primary Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --border-subtle: #2a2a35;
    
    /* RielArt Brand Colors */
    --rielart-blue: #3b82f6;
    --rielart-blue-light: #60a5fa;
    --rielart-purple: #8b5cf6;
    --rielart-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    
    /* Spotix Brand Colors */
    --spotix-orange: #f97316;
    --spotix-amber: #fbbf24;
    --spotix-coral: #fb7185;
    --spotix-gradient: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 6rem;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 40px rgba(59, 130, 246, 0.3);
    --shadow-glow-orange: 0 0 40px rgba(249, 115, 22, 0.3);
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-medium);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
    opacity: 0;
    animation: fadeIn 0.6s ease 0.2s forwards;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: var(--transition-medium);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, var(--text-primary) 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* 3D Floating Cards */
.cards-3d-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    perspective: 1000px;
    opacity: 0;
    animation: fadeIn 1s ease 0.4s forwards;
}

.card-3d {
    position: relative;
    width: 180px;
    height: 220px;
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: var(--transition-medium);
    will-change: transform;
}

.card-rielart {
    border: 1px solid rgba(59, 130, 246, 0.3);
    animation: float 4s ease-in-out infinite;
}

.card-spotix {
    border: 1px solid rgba(249, 115, 22, 0.3);
    animation: float 4s ease-in-out infinite 0.5s;
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    transition: var(--transition-medium);
}

.card-glow-blue {
    background: var(--rielart-gradient);
}

.card-glow-orange {
    background: var(--spotix-gradient);
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(17, 17, 24, 0.9) 0%, rgba(17, 17, 24, 0.7) 100%);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.card-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Card Hover Effects */
.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
}

.card-3d:hover .card-glow {
    opacity: 0.6;
}

.card-rielart:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: var(--shadow-glow-blue);
}

.card-spotix:hover {
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: var(--shadow-glow-orange);
}

/* Hero Bio */
.hero-bio {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 0.6s ease 1s forwards, bounce 2s ease-in-out infinite 1.5s;
}

.scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-philosophy {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 3px solid var(--rielart-blue);
}

/* ============================================
   COMPANIES SECTION
   ============================================ */
.companies {
    padding: var(--section-padding) 0;
    position: relative;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.company-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-medium);
    will-change: transform;
}

.company-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.company-card-rielart {
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.company-card-rielart .company-card-bg {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.company-card-spotix {
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.company-card-spotix .company-card-bg {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
}

.company-card-content {
    position: relative;
    z-index: 1;
    padding: 3rem 2.5rem;
}

.company-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.company-card-rielart .company-icon {
    color: var(--rielart-blue);
}

.company-card-spotix .company-icon {
    color: var(--spotix-orange);
}

.company-icon svg {
    width: 100%;
    height: 100%;
}

.company-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.company-tagline {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.company-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.company-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-medium);
}

.company-btn-rielart {
    background: var(--rielart-gradient);
}

.company-btn-spotix {
    background: var(--spotix-gradient);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.company-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.company-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.company-card-rielart:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: var(--shadow-glow-blue);
}

.company-card-spotix:hover {
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: var(--shadow-glow-orange);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--section-padding) 0;
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

/* Left Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rielart-blue-light);
}

.contact-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.contact-heading .highlight {
    background: var(--rielart-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Info Cards */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: var(--transition-medium);
}

.info-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.info-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    color: var(--rielart-blue);
    flex-shrink: 0;
}

.info-card-icon svg {
    width: 22px;
    height: 22px;
}

.info-card-icon-orange {
    background: rgba(249, 115, 22, 0.15);
    color: var(--spotix-orange);
}

.info-card-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.info-card-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.info-card-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rielart-blue-light);
    transition: var(--transition-fast);
}

.info-card-link:hover {
    color: var(--rielart-blue);
    text-decoration: underline;
}

.info-card-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: var(--spotix-gradient);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-medium);
}

.info-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-orange);
}

/* Why Work With Me */
.why-work-with-me h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.why-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.check-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    color: var(--rielart-blue);
    flex-shrink: 0;
}

.check-icon svg {
    width: 12px;
    height: 12px;
}

/* Availability Notice */
.availability-notice {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.availability-label {
    font-weight: 600;
    color: var(--rielart-blue-light);
}

/* Right Form */
.contact-form-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition-fast);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(160, 160, 176, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rielart-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--rielart-gradient);
    color: var(--text-primary);
    border: none;
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-medium);
    margin-top: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-blue);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Responsive Contact */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-sidebar {
        text-align: center;
    }
    
    .contact-badge {
        align-self: center;
    }
    
    .info-card {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    padding: 6rem 0 3rem;
    overflow: hidden;
    border-top: 1px solid var(--border-subtle);
}

.footer-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(8rem, 20vw, 16rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

.footer-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: var(--transition-medium);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.social-link:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
    transform: translateY(-3px);
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: var(--transition-medium);
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-divider {
    color: var(--border-subtle);
}

.copyright {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   LEGAL PAGES (Terms & Privacy)
   ============================================ */
.legal-page-body {
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.simple-nav {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.simple-nav .logo {
    display: inline-block;
}

/* Back to Home Button */
.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-medium);
    text-decoration: none;
}

.back-home-btn svg {
    width: 16px;
    height: 16px;
}

.back-home-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
    background: var(--bg-tertiary);
}

.back-home-btn-mobile {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-medium);
    text-decoration: none;
    margin-bottom: 2rem;
    align-self: flex-start;
}

.back-home-btn-mobile svg {
    width: 16px;
    height: 16px;
}

.back-home-btn-mobile:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.back-home-btn-bottom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--rielart-gradient);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-medium);
    text-decoration: none;
    margin-top: 2rem;
}

.back-home-btn-bottom svg {
    width: 18px;
    height: 18px;
}

.back-home-btn-bottom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-blue);
}

.legal-page {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.legal-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.last-updated {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.legal-page section {
    margin-bottom: 2.5rem;
}

.legal-page h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-page p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.legal-page a {
    color: var(--rielart-blue);
    text-decoration: underline;
    transition: var(--transition-fast);
}

.legal-page a:hover {
    color: var(--rielart-blue-light);
}

.simple-footer {
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.simple-footer p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateX(0);
    }
    50% {
        transform: translateY(-20px) rotateX(2deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for reveal animations */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }
    
    /* Mobile Navigation */
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-medium);
        z-index: 999;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1.25rem;
        opacity: 1;
        animation: none;
    }
    
    /* Hero */
    .hero {
        padding: 5rem 1rem 3rem;
    }
    
    .hero-title {
        margin-bottom: 3rem;
    }
    
    /* 3D Cards - Stack vertically on mobile */
    .cards-3d-container {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .card-3d {
        width: 160px;
        height: 180px;
        animation: none;
    }
    
    .card-rielart,
    .card-spotix {
        animation: float 4s ease-in-out infinite;
    }
    
    /* Companies Grid */
    .companies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .company-card-content {
        padding: 2rem 1.5rem;
    }
    
    .company-name {
        font-size: 2rem;
    }
    
    /* About Philosophy */
    .about-philosophy {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 4rem 0 2rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-divider {
        display: none;
    }
    
    /* Legal Pages */
    .legal-page {
        padding: 2rem 1rem;
    }
    
    .legal-page h1 {
        font-size: 2rem;
    }
    
    .back-home-btn {
        display: none;
    }
    
    .back-home-btn-mobile {
        display: inline-flex;
    }
    
    .simple-nav {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.5rem;
    }
    
    .card-3d {
        width: 140px;
        height: 160px;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .company-name {
        font-size: 1.75rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .card-3d,
    .card-rielart,
    .card-spotix {
        animation: none;
    }
    
    .scroll-indicator {
        animation: fadeIn 0.6s ease 1s forwards;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--rielart-blue);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
