/* =========================
   Pyrix Interactive Styles
   ========================= */

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

:root {
    --primary-color: #F97323;
    --primary-dark: #E52B27;
    --primary-light: #ff9955;
    --secondary-color: #E52B27;
    --accent-color: #F97323;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-light: #6b7280;
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --bg-dark: #000000;
    --border-color: #1a1a1a;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --glow-subtle: 0 0 20px rgba(249, 115, 35, 0.15);
    --glow-primary: 0 0 30px rgba(249, 115, 35, 0.3);
    --header-height: 64px;
}

html {
    scroll-behavior: auto;
    scroll-padding-top: var(--header-height);
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }

/* Global sections spacing and anchor offset */
section { padding: 5rem 0; scroll-margin-top: calc(var(--header-height) + 16px); }

/* Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Header and Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #0f0f0f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #1a1a1a;
    z-index: 1000;
    transition: all 0.3s ease;
}
.navbar .nav-left a {
    transition: all 0.3s ease;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 0.25rem 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.navbar .nav-left a:hover {
    background: #252525;
    box-shadow: 0 6px 20px rgba(249,115,35,0.15);
    transform: scale(1.05);
    opacity: 1;
}
.navbar .nav-left img {
    border-radius: 6px;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 2rem; gap: 2rem; }
.navbar .nav-left { display: flex; align-items: center; gap: 0.5rem; color: #fff; }
.navbar .nav-left a { transition: all 0.3s ease; }
.navbar .nav-left a:hover { transform: scale(1.05); opacity: 0.9; }
.navbar .nav-left span { font-size: 1.1rem; font-weight: 600; color: #d1d5db; }
.navbar .nav-menu { display: flex; list-style: none; gap: 1.5rem; align-items: center; margin: 0; padding: 0; flex: 1; }
.navbar .nav-menu .nav-link { text-decoration: none; color: #d1d5db; font-weight: 500; font-size: 0.95rem; transition: all 0.3s ease; padding: 0.5rem 0.75rem; display: block; position: relative; }
.navbar .nav-menu .nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--primary-color); transition: width 0.3s ease; }
.navbar .nav-menu .nav-link:hover { color: var(--primary-color); }
.navbar .nav-menu .nav-link:hover::after { width: 80%; }
.navbar .nav-menu .nav-link.active { color: var(--primary-color); }
.navbar .nav-menu .nav-link.active::after { width: 80%; }
.navbar .nav-right { display: flex; align-items: center; gap: 0.75rem; }
.navbar .btn { text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 0.5rem 1rem; border-radius: 6px; transition: all 0.2s ease; white-space: nowrap; }
.navbar .btn:hover { transform: translateY(-1px); opacity: 0.9; }

.navbar.scrolled { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4); }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.logo { font-size: 1.5rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; transition: all 0.3s ease; }
.logo:hover { transform: scale(1.05); }
.logo-text { color: var(--text-primary); letter-spacing: -0.5px; }
.logo-accent { color: var(--primary-color); }
.nav-menu { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-link { text-decoration: none; color: var(--text-secondary); font-weight: 500; transition: all 0.3s ease; padding: 0.5rem 0; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary-color); transition: width 0.3s ease; }
.nav-link:hover { color: var(--primary-color); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--primary-color); }
.btn-nav { padding: 0.5rem 1.5rem !important; background: var(--primary-color); color: white !important; border-radius: 0.5rem; font-weight: 600; }
.btn-nav::after { display: none; }
.btn-nav:hover { background: var(--primary-dark); color: white !important; transform: translateY(-2px); }

/* Language Selector */
.language-selector { display: flex; align-items: center; position: relative; }
.custom-lang-dropdown { position: relative; cursor: pointer; outline: none; }
.lang-selected { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; background: #0a0a0a; border: 1px solid #1a1a1a; border-radius: 6px; color: #d1d5db; font-size: 0.9rem; font-weight: 500; transition: all 0.2s ease; }
.lang-selected:hover { background: #1a1a1a; border-color: #2a2a2a; }
.lang-options { position: absolute; top: calc(100% + 0.5rem); right: 0; min-width: 120px; background: #0a0a0a; border: 1px solid #1a1a1a; border-radius: 8px; padding: 0.5rem 0; list-style: none; margin: 0; box-shadow: 0 8px 24px rgba(0,0,0,0.8); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.2s ease; z-index: 1002; }
.custom-lang-dropdown:focus .lang-options, .custom-lang-dropdown:hover .lang-options { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-options li { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; color: #d1d5db; cursor: pointer; transition: all 0.15s ease; }
.lang-options li:hover { background: #1a1a1a; color: var(--primary-color); }
.flag-icon { width: 20px; height: 15px; border-radius: 2px; }
.language-selector select { background: #0a0a0a; color: #d1d5db; border: 1px solid #1a1a1a; padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; outline: none; font-family: 'Inter', sans-serif; }
.language-selector select:hover { background: #1a1a1a; border-color: #2a2a2a; }
.language-selector select:focus { border-color: var(--primary-color); }
.language-selector option { background: #0a0a0a; color: #d1d5db; padding: 0.5rem; }

/* Header (Epic-like compact variant) */
.header-epic { background: #000000; border-bottom: 1px solid #0a0a0a; }
.header-epic .container { max-width: 100%; padding: 0 2rem 0 4rem; }
.header-epic .header-inner { display: flex; align-items: center; justify-content: flex-start; gap: 1.5rem; padding: 0.6rem 0; max-width: none; }
.header-epic .logo { font-weight: 800; letter-spacing: -0.5px; font-size: 1.125rem; flex-shrink: 0; margin-left: 1rem; }
.header-epic .header-nav { display: flex; gap: 1.25rem; list-style: none; align-items: center; flex: 1; }
.header-epic .header-nav .nav-link { color: var(--text-secondary); font-weight: 600; padding: 0.5rem 0.25rem; text-decoration: none; transition: color 0.2s ease; }
.header-epic .header-nav .nav-link:hover { color: var(--text-primary); }
.header-epic .header-actions { display: flex; gap: 0.75rem; align-items: center; margin-left: auto; margin-right: 1rem; }
.header-epic .search-btn { background: transparent; border: none; color: var(--text-secondary); font-size: 1.05rem; cursor: pointer; }
.header-epic .account a { color: var(--text-secondary); text-decoration: none; font-weight: 600; }

/* Dropdown Navigation */
.nav-dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 0.35rem; color: #d1d5db; font-weight: 500; padding: 0.5rem 0.75rem; text-decoration: none; cursor: pointer; background: none; border: none; font-size: 0.95rem; font-family: inherit; transition: color 0.2s ease; }
.dropdown-toggle:hover, .dropdown-toggle.active { color: #fff; }
.dropdown-toggle::after { content: '▾'; font-size: 0.75em; transition: transform 0.2s ease; }
.nav-dropdown:hover .dropdown-toggle::after { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 180px; background: #0a0a0a; border: 1px solid #1a1a1a; border-radius: 8px; padding: 0.5rem 0; margin-top: 0.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.8); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; z-index: 1001; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown.active .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 0.65rem 1.25rem; color: #d1d5db; text-decoration: none; font-weight: 500; transition: background 0.15s ease, color 0.15s ease; }
.dropdown-menu a:hover { background: #1a1a1a; color: var(--primary-color); }
.dropdown-divider { height: 1px; margin: 0.5rem 0; background: #1a1a1a; opacity: 0.5; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background: var(--text-primary); border-radius: 3px; transition: all 0.3s ease; }

/* Buttons */
.btn { padding: 0.875rem 2rem; border-radius: 0.5rem; text-decoration: none; font-weight: 600; transition: all 0.3s ease; display: inline-block; border: none; cursor: pointer; font-size: 1rem; }
.btn-primary { background: var(--primary-color); color: white; box-shadow: 0 4px 12px rgba(249, 115, 35, 0.2); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(249, 115, 35, 0.4); }
.btn-secondary { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-secondary:hover { background: rgba(249, 115, 35, 0.1); color: var(--primary-color); transform: translateY(-2px); border-color: var(--primary-dark); box-shadow: 0 4px 16px rgba(249, 115, 35, 0.2); }
.btn-submit { grid-column: 1 / -1; width: 100%; cursor: pointer; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Hero Section */
.hero { padding: 8rem 0 6rem; background: var(--bg-primary); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; right: 0; width: 40%; height: 100%; background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 70%); z-index: 0; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero-content { max-width: 600px; }
.hero-title { font-size: 3.5rem; margin-bottom: 1.5rem; line-height: 1.1; font-weight: 700; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.8; }
.hero-buttons { display: flex; gap: 1rem; }
.hero-visual { display: flex; align-items: center; justify-content: center; }

/* Code Window component */
.code-window { background: var(--bg-dark); border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-xl); border: 1px solid var(--border-color); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }
.window-header { background: #0a0e14; padding: 1rem; display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--border-color); }
.window-dots { display: flex; gap: 0.5rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ef4444; } .dot.yellow { background: #f59e0b; } .dot.green { background: #10b981; }
.window-title { color: var(--text-secondary); font-size: 0.875rem; }
.window-content { padding: 2rem; font-family: 'Courier New', monospace; font-size: 0.9rem; line-height: 1.8; color: #e2e8f0; background: #0a0e14; }
.code-keyword { color: #c678dd; } .code-variable { color: #61afef; } .code-bracket { color: #abb2bf; }
.code-param { color: #e06c75; } .code-operator { color: #56b6c2; } .code-property { color: #d19a66; } .code-string { color: #98c379; }

/* Cards, tags, utilities */
.service-card { background: var(--bg-primary); padding: 2rem; border-radius: 1rem; box-shadow: var(--shadow-md); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid var(--border-color); }
.service-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 40px rgba(249, 115, 35, 0.15); border-color: var(--primary-color); }
.service-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: white; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 12px rgba(249, 115, 35, 0.2); }
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); box-shadow: 0 8px 24px rgba(249, 115, 35, 0.4); }
.service-title { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-primary); font-weight: 600; }
.service-description { color: var(--text-secondary); line-height: 1.8; }
.tag { padding: 0.25rem 0.75rem; background: rgba(16, 185, 129, 0.1); color: var(--primary-color); border-radius: 0.25rem; font-size: 0.875rem; font-weight: 500; border: 1px solid rgba(16, 185, 129, 0.2); }
.tech-badge { padding: 0.5rem 1rem; background: rgba(249, 115, 35, 0.1); color: var(--primary-color); border-radius: 0.5rem; font-weight: 500; font-size: 0.875rem; border: 1px solid rgba(249, 115, 35, 0.2); transition: all 0.3s ease; cursor: pointer; }
.tech-badge:hover { background: rgba(249, 115, 35, 0.2); border-color: var(--primary-color); transform: translateY(-3px) scale(1.05); box-shadow: 0 4px 12px rgba(249, 115, 35, 0.3); }

/* Services Section */
.services { background: var(--bg-secondary); padding-top: 25rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

/* Work Section */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.work-card { background: var(--bg-secondary); border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-md); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid var(--border-color); }
.work-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 24px 48px rgba(249, 115, 35, 0.2); border-color: var(--primary-color); }
.work-image { height: 250px; background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%); position: relative; overflow: hidden; }
.work-image-2 { background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%); }
.work-image-3 { background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%); }
.work-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.9); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(5px); }
.work-image:hover .work-overlay { opacity: 1; }
.work-link { color: white; text-decoration: none; font-weight: 600; font-size: 1.125rem; transition: all 0.3s ease; }
.work-link:hover { transform: scale(1.1); color: var(--primary-color); }
.work-info { padding: 1.5rem; }
.work-title { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-primary); font-weight: 600; }
.work-description { color: var(--text-secondary); margin-bottom: 1rem; }
.work-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* About Section */
.about { background: var(--bg-primary); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-description { color: var(--text-secondary); font-size: 1.125rem; margin-bottom: 1.5rem; line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.stat { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); margin-bottom: 0.5rem; }
.stat-label { color: var(--text-secondary); font-size: 0.875rem; }
.about-card { background: var(--bg-primary); padding: 2.5rem; border-radius: 1rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); }
.tech-stack h3 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text-primary); font-weight: 600; }
.tech-icons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Relay Section */
.relay { background: var(--bg-secondary); padding: 5rem 0; }
.relay-content { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: center; }
.relay-image { display: flex; justify-content: center; align-items: center; }
.bot-icon { width: 200px; height: 200px; background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1)); border-radius: 2rem; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(16, 185, 129, 0.3); box-shadow: var(--shadow-xl); }
.bot-icon svg { color: var(--primary-color); }
.relay-description { color: var(--text-secondary); font-size: 1.125rem; margin-bottom: 2rem; line-height: 1.8; }
.bot-features { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.bot-feature { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; background: var(--bg-secondary); border-radius: 0.75rem; border: 1px solid var(--border-color); transition: all 0.3s ease; }
.bot-feature:hover { border-color: rgba(16, 185, 129, 0.3); transform: translateX(5px); }
.bot-feature svg { color: var(--primary-color); flex-shrink: 0; margin-top: 0.25rem; }
.bot-feature h4 { font-size: 1.125rem; margin-bottom: 0.5rem; color: var(--text-primary); font-weight: 600; }
.bot-feature p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.bot-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.bot-buttons .btn { cursor: pointer; }

/* Contact Section */
.contact { background: var(--bg-secondary); }
.contact-content { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-group-full { grid-column: 1 / -1; }
.form-group label { margin-bottom: 0.5rem; font-weight: 600; color: var(--text-primary); }
.form-group label::after {
    content: '';
}
.form-group label[data-translate="contact.form.name"]::after,
.form-group label[data-translate="contact.form.email"]::after,
.form-group label[data-translate="contact.form.message"]::after {
    content: '*';
    color: #E52B27;
    margin-left: 0;
}
.form-group input, .form-group textarea { padding: 0.875rem; border: 2px solid var(--border-color); border-radius: 0.5rem; font-family: inherit; font-size: 1rem; transition: all 0.3s ease; background: var(--bg-secondary); color: var(--text-primary); }
.form-group input:hover, .form-group textarea:hover { border-color: #2a2a2a; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(249, 115, 35, 0.1); background: var(--bg-primary); }
.info-card { background: var(--bg-secondary); padding: 2rem; border-radius: 1rem; height: fit-content; border: 1px solid var(--border-color); }
.info-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-primary); font-weight: 600; }
.info-card p { color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.8; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; color: var(--text-secondary); }
.contact-item svg { color: var(--primary-color); flex-shrink: 0; }
.contact-item a { color: var(--text-secondary); text-decoration: none; transition: all 0.3s ease; padding: 0.25rem 0.5rem; border-radius: 6px; display: inline-block; }
.contact-item a:hover { color: var(--primary-color); background: rgba(249, 115, 35, 0.1); transform: translateX(5px); }

/* Footer */
.footer { background: var(--bg-dark); color: var(--text-light); padding: 4rem 0 2rem; border-top: 1px solid var(--border-color); box-shadow: none; }
.footer-content {
    border-radius: 0;
    background: none;
    box-shadow: none;
    padding: 0;
}
.footer-section h4 { color: var(--text-primary); margin-bottom: 1rem; font-size: 1.125rem; }
.footer-text { color: var(--text-light); line-height: 1.8; }
.footer-links { list-style: none; }
.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: none;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--primary-color);
    background: rgba(249, 115, 35, 0.1);
    transform: translateX(5px);
}
.social-links { display: flex; gap: 1rem; }
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: none;
}
.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-4px) scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(249, 115, 35, 0.4);
}
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-color); color: var(--text-light); }

/* Team Page Styles */
.team-hero { padding: 8rem 0 4rem; background: var(--bg-primary); text-align: center; }
.team-hero .section-title { font-size: 3rem; margin-bottom: 1rem; }
.team-hero .section-subtitle { font-size: 1.25rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.team-section { padding: 6rem 0; background: var(--bg-secondary); }
.team-filter { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2rem; }
.filter-btn { padding: 0.5rem 1rem; background: var(--bg-primary); color: var(--text-secondary); border: 1px solid var(--border-color); border-radius: 999px; cursor: pointer; font-weight: 600; transition: all 0.2s ease; }
.filter-btn:hover { color: var(--text-primary); border-color: var(--primary-color); }
.filter-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.team-empty { text-align: center; color: var(--text-secondary); margin-top: 1rem; }
.hidden { display: none !important; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.team-card { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; padding: 2rem; text-align: center; transition: all 0.3s ease; }
.team-card:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: var(--glow-subtle); }
.team-avatar { margin-bottom: 1.5rem; }
.avatar-placeholder { width: 120px; height: 120px; margin: 0 auto; background: var(--bg-secondary); border: 2px solid var(--border-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.3s ease; }
.team-card:hover .avatar-placeholder { border-color: var(--primary-color); background: var(--bg-dark); }
.team-name { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.team-role { color: var(--primary-color); font-weight: 600; margin-bottom: 0.5rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; }
.team-discord { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; font-family: 'Courier New', monospace; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.team-discord::before { content: ''; display: inline-block; width: 16px; height: 16px; background-image: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 24 24" fill="%239ca3af" xmlns="http://www.w3.org/2000/svg"><path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515a.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0a12.64 12.64 0 0 0-.617-1.25a.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057a19.9 19.9 0 0 0 5.993 3.03a.078.078 0 0 0 .084-.028a14.09 14.09 0 0 0 1.226-1.994a.076.076 0 0 0-.041-.106a13.107 13.107 0 0 1-1.872-.892a.077.077 0 0 1-.008-.128a10.2 10.2 0 0 0 .372-.292a.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127a12.299 12.299 0 0 1-1.873.892a.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028a19.839 19.839 0 0 0 6.002-3.03a.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.956-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.955-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.946 2.418-2.157 2.418z"/></svg>'); background-size: contain; background-repeat: no-repeat; }
.team-bio { color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.5rem; }
.team-works-on { margin-bottom: 1.5rem; text-align: left; }
.team-works-on h4 { font-size: 0.9rem; color: var(--text-primary); margin-bottom: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; text-align: center; }
.team-works-on ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.team-works-on li { padding: 0.5rem 0.75rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-secondary); font-size: 0.875rem; transition: all 0.3s ease; text-align: center; }
.team-works-on li:hover { border-color: var(--primary-color); color: var(--text-primary); background: var(--bg-dark); }
.team-social { display: flex; gap: 1rem; justify-content: center; }
.team-social a { width: 40px; height: 40px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.3s ease; }
.team-social a:hover { background: var(--primary-color); border-color: var(--primary-color); color: white; transform: translateY(-2px); }
.join-team { padding: 4rem 0; background: var(--bg-primary); }
.cta-content { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-content h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-content p { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 2rem; }

/* --- Footer Styles --- */

.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-section h4 { color: var(--text-primary); margin-bottom: 1rem; font-size: 1.125rem; }
.footer-text { color: var(--text-light); line-height: 1.8; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--primary-color);
    background: rgba(249, 115, 35, 0.1);
    transform: translateX(5px);
}
.social-links { display: flex; gap: 1rem; }
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: none;
}
.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-4px) scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(249, 115, 35, 0.4);
}
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-color); color: var(--text-light); }

/* Team Page Styles */
.team-hero { padding: 8rem 0 4rem; background: var(--bg-primary); text-align: center; }
.team-hero .section-title { font-size: 3rem; margin-bottom: 1rem; }
.team-hero .section-subtitle { font-size: 1.25rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.team-section { padding: 6rem 0; background: var(--bg-secondary); }
.team-filter { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2rem; }
.filter-btn { padding: 0.5rem 1rem; background: var(--bg-primary); color: var(--text-secondary); border: 1px solid var(--border-color); border-radius: 999px; cursor: pointer; font-weight: 600; transition: all 0.2s ease; }
.filter-btn:hover { color: var(--text-primary); border-color: var(--primary-color); }
.filter-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.team-empty { text-align: center; color: var(--text-secondary); margin-top: 1rem; }
.hidden { display: none !important; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.team-card { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; padding: 2rem; text-align: center; transition: all 0.3s ease; }
.team-card:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: var(--glow-subtle); }
.team-avatar { margin-bottom: 1.5rem; }
.avatar-placeholder { width: 120px; height: 120px; margin: 0 auto; background: var(--bg-secondary); border: 2px solid var(--border-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.3s ease; }
.team-card:hover .avatar-placeholder { border-color: var(--primary-color); background: var(--bg-dark); }
.team-name { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.team-role { color: var(--primary-color); font-weight: 600; margin-bottom: 0.5rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; }
.team-discord { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; font-family: 'Courier New', monospace; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.team-discord::before { content: ''; display: inline-block; width: 16px; height: 16px; background-image: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 24 24" fill="%239ca3af" xmlns="http://www.w3.org/2000/svg"><path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515a.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0a12.64 12.64 0 0 0-.617-1.25a.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057a19.9 19.9 0 0 0 5.993 3.03a.078.078 0 0 0 .084-.028a14.09 14.09 0 0 0 1.226-1.994a.076.076 0 0 0-.041-.106a13.107 13.107 0 0 1-1.872-.892a.077.077 0 0 1-.008-.128a10.2 10.2 0 0 0 .372-.292a.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127a12.299 12.299 0 0 1-1.873.892a.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028a19.839 19.839 0 0 0 6.002-3.03a.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.956-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.955-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.946 2.418-2.157 2.418z"/></svg>'); background-size: contain; background-repeat: no-repeat; }
.team-bio { color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.5rem; }
.team-works-on { margin-bottom: 1.5rem; text-align: left; }
.team-works-on h4 { font-size: 0.9rem; color: var(--text-primary); margin-bottom: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; text-align: center; }
.team-works-on ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.team-works-on li { padding: 0.5rem 0.75rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-secondary); font-size: 0.875rem; transition: all 0.3s ease; text-align: center; }
.team-works-on li:hover { border-color: var(--primary-color); color: var(--text-primary); background: var(--bg-dark); }
.team-social { display: flex; gap: 1rem; justify-content: center; }
.team-social a { width: 40px; height: 40px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.3s ease; }
.team-social a:hover { background: var(--primary-color); border-color: var(--primary-color); color: white; transform: translateY(-2px); }
.join-team { padding: 4rem 0; background: var(--bg-primary); }
.cta-content { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-content h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-content p { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 2rem; }

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu { position: fixed; left: -100%; top: 70px; flex-direction: column; background: rgba(15, 20, 25, 0.98); width: 100%; text-align: center; transition: 0.3s; box-shadow: var(--shadow-lg); padding: 2rem 0; gap: 0; border-top: 1px solid var(--border-color); }
    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 1rem 0; }
    .language-selector { justify-content: center; }
    .language-selector select { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .hero-visual { order: -1; }
    .about-content { grid-template-columns: 1fr; }
    .relay-content { grid-template-columns: 1fr; }
    .bot-icon { width: 150px; height: 150px; }
    .bot-icon svg { width: 80px; height: 80px; }
    .contact-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .about-stats { grid-template-columns: repeat(3, 1fr); }
    .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { padding: 0 1rem; }
    .hero { padding: 6rem 0 4rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    section { padding: 3rem 0; }
    .section-title { font-size: 2rem; }
    .services-grid, .work-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .team-hero .section-title { font-size: 2.5rem; }
    .cta-content h2 { font-size: 2rem; }
    .contact-form { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; gap: 1.5rem; }
    .window-content { font-size: 0.75rem; padding: 1rem; }
    .interactive-desktop { height: 450px; max-width: 100%; }
    .macos-window { width: 90%; max-width: none; min-height: 300px; }
    .macos-content { min-height: 200px; max-height: 300px; }
}

/* Interactive Desktop & macOS Window */
.interactive-desktop {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 500px;
    margin: 0 auto;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16 / 9;
}

.desktop-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/code-snippet-background.png') center/cover no-repeat;
    border-radius: 1rem;
}

.macos-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 650px;
    min-height: 200px;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    will-change: transform;
}

.macos-window:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.macos-window.dragging {
    cursor: grabbing;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.7);
    transition: none;
}

.macos-titlebar {
    background: #2d2d2d;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #1a1a1a;
    cursor: grab;
    user-select: none;
}

.macos-titlebar:active {
    cursor: grabbing;
}

.macos-controls {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.macos-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.macos-btn::before {
    content: '';
    position: absolute;
    font-size: 8px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: rgba(0, 0, 0, 0.6);
}

.macos-controls:hover .macos-btn::before {
    opacity: 1;
}

.macos-btn.close {
    background: #ff5f56;
}

.macos-btn.close:hover {
    background: #ff4842;
    transform: scale(1.1);
}

.macos-btn.close::before {
    content: '×';
    font-size: 10px;
}

.macos-btn.minimize {
    background: #ffbd2e;
}

.macos-btn.minimize:hover {
    background: #ffb01a;
    transform: scale(1.1);
}

.macos-btn.minimize::before {
    content: '−';
    font-size: 10px;
    margin-bottom: 2px;
}

.macos-btn.maximize {
    background: #27c93f;
}

.macos-btn.maximize:hover {
    background: #1fb52b;
    transform: scale(1.1);
}

.macos-btn.maximize::before {
    content: '⤢';
    font-size: 9px;
}

.macos-title {
    color: #999;
    font-size: 0.813rem;
    text-align: center;
    flex: 1;
    font-weight: 500;
}

.macos-spacer {
    width: calc(12px * 3 + 0.5rem * 2);
    flex-shrink: 0;
}

.macos-content {
    background: #1e1e1e;
    padding: 1.5rem;
    min-height: 300px;
    max-height: 450px;
    overflow: auto;
}

.code-editor {
    display: flex;
    gap: 1rem;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.line-numbers {
    display: flex;
    flex-direction: column;
    color: #858585;
    user-select: none;
    text-align: right;
    padding-right: 1rem;
    border-right: 1px solid #333;
}

.line-numbers span {
    height: 1.6em;
}

.code-area {
    flex: 1;
    color: #d4d4d4;
    outline: none;
    white-space: pre;
    overflow-x: auto;
    caret-color: #fff;
}

.code-area:focus {
    outline: none;
}

/* Code syntax highlighting */
.code-keyword {
    color: #569cd6;
}

.code-class {
    color: #4ec9b0;
}

.code-function {
    color: #dcdcaa;
}

.code-variable {
    color: #9cdcfe;
}

.code-bracket {
    color: #d4d4d4;
}

.code-comment {
    color: #6a9955;
    font-style: italic;
}
