:root {
    --bg-dark: #0a0a0a;
    --brown-primary: #8b5a2b;
    --brown-light: #c4a484;
    --brown-dark: #5d3a1a;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

#galaxyCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1005 0%, #000 100%);
}

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

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-white);
}

.logo span {
    color: var(--brown-light);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 400;
    transition: var(--transition-smooth);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--brown-light);
}

.btn-primary {
    background: var(--brown-primary);
    color: white !important;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600 !important;
}

.btn-primary:hover {
    background: var(--brown-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 90, 43, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.eagle-container {
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
    position: relative;
    animation: eagleFloat 6s ease-in-out infinite;
}

.eagle-face {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--brown-light);
    box-shadow: 0 0 50px rgba(196, 164, 132, 0.3);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.eagle-face img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(196, 164, 132, 0.5));
    transition: var(--transition-smooth);
}

#logoFallback {
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 0 20px rgba(196, 164, 132, 0.5);
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.eagle-face:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(196, 164, 132, 0.8));
}

h1.reveal-text {
    font-size: 80px;
    font-weight: 800;
    letter-spacing: 10px;
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(45deg, var(--text-white) 30%, var(--brown-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}

.subtitle {
    font-size: 18px;
    color: var(--text-gray);
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: fadeInUp 1.2s ease-out;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: rgba(0,0,0,0.5);
}

.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    color: var(--brown-light);
    font-family: 'Space Grotesk', sans-serif;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}

.service-card:hover {
    background: rgba(139, 90, 43, 0.1);
    border-color: var(--brown-light);
    transform: translateY(-10px);
}

.service-card i {
    font-size: 40px;
    color: var(--brown-light);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-white);
}

.service-card p {
    color: var(--text-gray);
    font-size: 15px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--brown-light), transparent);
    animation: scrollLine 2s infinite;
}

/* About Section */
.about {
    padding: 100px 0;
    background: rgba(139, 90, 43, 0.02);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat-item h3 {
    font-size: 48px;
    color: var(--brown-light);
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Animations */
@keyframes eagleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.service-card .icon-box {
    width: 60px;
    height: 60px;
    background: var(--brown-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 0 auto 20px;
    color: var(--brown-light);
    font-size: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .icon-box {
    background: var(--brown-light);
    color: white;
}

/* Tech Stack Section */
.tech-stack {
    padding: 80px 0;
}

.tech-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tech-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--brown-light);
    transition: var(--transition-smooth);
}

.tech-item:hover {
    background: var(--brown-primary);
    color: white;
    border-color: var(--brown-primary);
    transform: translateY(-5px);
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-card {
    background: linear-gradient(135deg, var(--brown-dark), var(--bg-dark));
    border: 1px solid var(--brown-primary);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 40px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--brown-light);
    background: rgba(255, 255, 255, 0.1);
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    border: none;
}

#form-status {
    margin-top: 20px;
    font-weight: 600;
}

#form-status.success { color: #4CAF50; }
#form-status.error { color: #f44336; }

/* Careers Section */
.careers {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.4);
}

.career-detail-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 60px;
    border-radius: 30px;
    max-width: 1000px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.job-header h3 {
    font-size: 32px;
    color: var(--brown-light);
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 20px;
}

.job-summary {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 40px;
    line-height: 1.8;
}

.job-section {
    margin-bottom: 40px;
}

.job-section h4 {
    color: var(--brown-light);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--brown-dark);
    padding-bottom: 10px;
    display: inline-block;
}

.job-section ul {
    list-style: none;
}

.job-section ul li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: var(--text-gray);
}

.job-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brown-light);
}

.job-section blockquote {
    font-style: italic;
    font-size: 20px;
    color: var(--text-white);
    border-left: 4px solid var(--brown-light);
    padding-left: 20px;
    margin: 20px 0;
}

.apply-box {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.apply-box p {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-white);
}

.apply-box .btn-primary {
    padding: 20px 40px;
    font-size: 16px;
    letter-spacing: 2px;
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

footer p {
    color: var(--text-gray);
    font-size: 14px;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--brown-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: var(--brown-light);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .career-card { flex-direction: column; text-align: center; gap: 30px; }
    h1.reveal-text { font-size: 40px; letter-spacing: 5px; }
    .eagle-container { width: 200px; height: 200px; }
    nav ul { display: none; }
    .subtitle { font-size: 14px; letter-spacing: 2px; }
    .contact-card h2 { font-size: 32px; }
}
