:root {
    --bg-main: #ffffff;
    --bg-secondary: #f4f4f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-red: #e3000f;
    --accent-red-hover: #cc000d;
    --accent-orange: #f39200;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6, .logo-text, .stat-number {
    font-family: 'Outfit', sans-serif;
}

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

ul {
    list-style: none;
}

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

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red), #b3000b);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(227, 0, 15, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 0, 15, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-orange);
    box-shadow: 0 4px 15px rgba(243, 146, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(243, 146, 0, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}
.btn-outline:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
    transform: scale(3.5);
    transform-origin: left center;
    /* Subtle drop shadow is no longer needed on a white background if logo is dark/red/orange */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.dark-alt {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-header p {
    color: var(--accent-orange);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/office_bg.jpg') no-repeat center center / cover;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.tagline {
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    padding: 2rem 1rem;
    text-align: center;
    transition: transform 0.3s ease;
    background: rgba(255,255,255,0.9);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(243, 146, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

/* Why MAC */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: #ffffff;
    border-color: var(--accent-red);
    box-shadow: 0 10px 40px rgba(227, 0, 15, 0.08);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Services List */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-row {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--glass-border);
    padding-bottom: 2rem;
}

.service-row::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-orange);
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Industries */
.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-weight: 500;
}

.tag:hover {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.ind-card {
    padding: 2rem;
    background: #ffffff;
}

.ind-card h4 {
    margin-bottom: 1rem;
    color: var(--accent-red);
}

.ind-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Careers */
.career-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.career-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.career-text .subtitle {
    color: var(--accent-orange);
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.career-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.benefits-list li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.benefits-list strong {
    color: var(--text-primary);
}

.vacancies {
    padding: 3rem;
    background: #ffffff;
}

.vacancies h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.job-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: padding-left 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.job-list li:hover {
    padding-left: 10px;
    color: var(--accent-red);
}

.send-resume {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Footer */
.footer {
    background: #ffffff;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.footer-brand .company-desc {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    max-width: 400px;
    line-height: 1.6;
}

.footer-locations h3, .footer-links h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.office {
    margin-bottom: 2rem;
}

.office h4 {
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.office p {
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links ul li a:hover {
    color: var(--accent-red);
}

.hours {
    margin-top: 2rem;
}

.hours strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.hours p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Responsive */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .career-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-main);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: 0.3s;
        border-top: 1px solid var(--glass-border);
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
