/* ATR Careers v1.0.0
 * Derived from sealed homepage CSS.
 * Homepage-specific animation excluded.
 */

/* Root variables and color scheme */
:root {
    --primary: #38B137;
    --primary-dark: #2a8c29;
    --secondary: #0a2e36;
    --dark: #111;
    --light: #f8f9fa;
    --link-hover: rgba(56, 177, 55, 0.8);
    --gray: #6c757d;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --gold: #FFD700;
    --gold-dark: #DAA520;
    --gold-light: rgba(255, 215, 0, 0.1);
}

/* Global overflow fixes */
html {
    overflow-x: hidden;
    overflow-y: scroll;
}

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

/* Fixed — only media elements get max-width */
img, video, iframe, embed, object {
    max-width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    background: linear-gradient(135deg, #0a1a1f 0%, #0a0a0a 100%);
    position: relative;
    min-height: 100vh;
    padding-right: calc(100vw - 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Merged visibility into one body block */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

body.loaded {
    visibility: visible;
    opacity: 1;
}

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

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

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

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 70px;
}

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

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

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

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text h1 span.gold  { color: var(--gold); }

.hero-text .subtitle {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #b0b0b0;
    line-height: 1.8;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Button styles */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-gold {
    background-color: var(--gold);
    color: #000;
    font-weight: 700;
}

.btn-gold:hover {
    background-color: var(--gold-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: rgba(56, 177, 55, 0.1);
}

/* Section styles */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 700px;
    margin: 0 auto;
}

/* Features section */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 35px;
    border: 0px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(56, 177, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 30px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #aaa;
    line-height: 1.7;
}

/* Footer */
footer {
    background: #080808;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 100px;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-links > div {
    min-width: 180px;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

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

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

.footer-links ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #777;
    font-size: 0.9rem;
}

/* Mobile menu */
nav ul.show {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
