/* =========================================
   GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #007bff;     
    --primary-dark: #0056b3;      
    --secondary-color: #17a2b8;   
    --accent-color: #28a745;      
    --dark-color: #212529;        
    --light-bg: #f8f9fa;          
    --card-bg: #ffffff;
    --text-color: #495057;
    --heading-color: #212529;
    --light-text: #ffffff;
    --soft-shadow: 0 5px 15px rgba(0,0,0,0.05);
    --hover-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

a { text-decoration: none; }

section { padding: 90px 5%; }

/* TYPOGRAPHY */
.section-header { text-align: center; margin-bottom: 60px; }

h2 { 
    font-size: 2.8rem; 
    color: var(--heading-color); 
    margin-bottom: 15px; 
    font-weight: 800;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.subtitle { color: #6c757d; font-size: 1.15rem; max-width: 700px; margin: 0 auto; }

/* BUTTONS */
.btn {
    padding: 12px 30px;
    border: none; 
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600; 
    transition: all 0.3s ease;
    display: inline-block; 
    text-align: center;
    font-size: 1rem;
}

.btn-primary { 
    background-color: var(--primary-color); 
    color: var(--light-text); 
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}
.btn-primary:hover { 
    background-color: var(--primary-dark); 
    transform: translateY(-3px); 
}

.btn-secondary {
    background-color: transparent; 
    color: var(--light-text); 
    border: 2px solid var(--light-text);
}
.btn-secondary:hover { 
    background-color: var(--light-text); 
    color: var(--dark-color); 
    transform: translateY(-3px); 
}
/* =========================================
   HERO SECTION - UPDATED
   ========================================= */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.9), rgba(0, 31, 63, 0.9)), url('../img/careers-bg.jpg'); 
    background-size: cover; 
    background-position: center;
    color: var(--light-text); 
    height: 70vh; 
    min-height: 500px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    position: relative;
}

.hero-content h1 { 
    font-size: 4rem; 
    margin-bottom: 20px; 
    font-weight: 900; 
    letter-spacing: 1px;
    /* Added forwards to ensure it stays visible */
    animation: fadeInDown 1s ease-out forwards;
}

.hero-content p { 
    font-size: 1.3rem; 
    max-width: 800px; 
    margin: 0 auto 35px auto; 
    opacity: 0; /* Set initial state to 0 */
    /* Changed backwards to forwards */
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    opacity: 0; /* Set initial state to 0 */
    /* Changed backwards to forwards */
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

/* Keyframes updated to ensure 100% state is fully visible */
@keyframes fadeInDown { 
    from { opacity: 0; transform: translateY(-30px); } 
    to { opacity: 1; transform: translateY(0); } 
}

@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(30px); } 
    to { opacity: 1; transform: translateY(0); } 
}
/* =========================================
   BENEFITS SECTION
   ========================================= */
.work-with-us-section { background-color: #ffffff; }

.benefits-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 30px; 
    max-width: 1200px; 
    margin: 0 auto;
}

.benefit-card {
    position: relative;
    text-align: center; 
    padding: 40px 25px; 
    background-color: var(--card-bg);
    border-radius: 15px; 
    border: 1px solid #e9ecef;
    box-shadow: var(--soft-shadow);
    overflow: hidden; 
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.benefit-card:hover { 
    transform: translateY(-10px); 
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
}

.benefit-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    z-index: -1;
    opacity: 0;
    transform: scaleY(0.7);
    transform-origin: bottom;
    transition: all 0.4s ease;
}

.benefit-card:hover::before { opacity: 1; transform: scaleY(1); }

.icon-container {
    width: 70px; height: 70px; 
    border-radius: 50%; 
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center; 
    font-size: 1.8rem; 
    color: var(--light-text);
    transition: transform 0.4s ease, background 0.4s ease;
}

/* Icon Colors */
.primary { background-color: #007bff; }
.success { background-color: #28a745; }
.info { background-color: #17a2b8; }
.danger { background-color: #dc3545; }
.primary-light { background-color: #6f42c1; }
.secondary-dark { background-color: #6c757d; }
.dark { background-color: #343a40; }
.accent { background-color: #ffc107; color: #333; }

.benefit-card:hover h3, 
.benefit-card:hover p { color: var(--light-text); }

.benefit-card:hover .icon-container {
    background-color: #ffffff !important;
    transform: scale(1.1) rotate(10deg);
}

.benefit-card:hover .icon-container i { color: var(--primary-color); }
.benefit-card h3 { font-size: 1.25rem; margin-bottom: 10px; transition: color 0.3s; }
.benefit-card p { font-size: 0.95rem; margin: 0; color: #666; transition: color 0.3s; }

/* =========================================
   OPEN POSITIONS
   ========================================= */
.open-positions-section { background-color: var(--light-bg); }
.job-listing-container { max-width: 1000px; margin: 0 auto; }

.job-card {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background-color: var(--card-bg); 
    padding: 30px; 
    border-radius: 12px;
    box-shadow: var(--soft-shadow); 
    margin-bottom: 25px;
    border-left: 5px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}

.job-card:hover { 
    transform: translateX(10px); 
    border-left-color: var(--primary-color);
    box-shadow: var(--hover-shadow); 
}

.job-info h3 { font-size: 1.4rem; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.tag { font-size: 0.75rem; padding: 4px 10px; border-radius: 20px; font-weight: 700; text-transform: uppercase; }
.tag-engineering { background: #e7f1ff; color: #007bff; }
.tag-data-science { background: #e0f7fa; color: #0097a7; }
.tag-marketing { background: #fff3cd; color: #856404; }
.tag-design { background: #f3e5f5; color: #7b1fa2; }
.description { color: #666; margin-bottom: 12px; font-size: 0.95rem; }
.details { display: flex; gap: 25px; margin-bottom: 12px; font-size: 0.9rem; color: #555; }
.details i { color: var(--secondary-color); margin-right: 5px; }
.skills { font-size: 0.85rem; color: #999; font-style: italic; }

.btn-apply { 
    background-color: var(--secondary-color); 
    color: white; 
    min-width: 130px;
    transition: 0.3s;
}
.job-card:hover .btn-apply { background-color: var(--primary-color); transform: scale(1.05); }

/* =========================================
   INTERNSHIPS (Updated: 2 Cards per Div Row)
   ========================================= */
.internship-section { background-color: #ffffff; }

.internship-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between rows */
}

/* The Row holding 2 cards */
.internship-row {
    display: flex;
    gap: 30px; /* Space between cards */
    justify-content: center;
}

.internship-card {
    flex: 1; /* Makes cards equal width */
    padding: 35px; 
    border: 1px solid #eee; 
    border-radius: 15px;
    background-color: var(--card-bg); 
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
}

.internship-card:hover { 
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--secondary-color);
}

.internship-card h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.3rem; transition: color 0.3s; }
.internship-card:hover h3 { color: var(--secondary-color); }

.btn-apply-internship { 
    width: 100%; 
    margin-top: 20px; 
    background-color: var(--primary-color); 
    color: white; 
}
.btn-apply-internship:hover { background-color: var(--primary-dark); }

/* =========================================
   CULTURE (Updated: Solid Colors like Image)
   ========================================= */
.culture-section { 
    background-color: #212529; /* Dark Background like image */
    color: white; 
    padding: 100px 5%; 
}

.culture-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; 
    max-width: 1200px; 
    margin: 0 auto; 
    text-align: center;
}

.culture-card { 
    padding: 40px 30px; 
    border-radius: 15px; 
    /* Default transition */
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: white;
}

.culture-card:hover { transform: translateY(-10px); }

/* Specific Colors matching the uploaded image */
.card-blue {
    background-color: #007bff; /* Bright Blue */
}

.card-teal {
    background-color: #17a2b8; /* Teal / Cyan */
}

.card-green {
    background-color: #28a745; /* Green */
}

.culture-icon { 
    font-size: 3.5rem; 
    margin-bottom: 25px; 
    color: white; /* Icon always white */
}

.culture-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.culture-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* =========================================
   NO ROLE & MODAL
   ========================================= */
.no-role-section { background-color: #e9ecef; text-align: center; padding: 80px 5%; border-top: 5px solid var(--primary-color); }
.btn-send-resume { background-color: var(--secondary-color); color: white; padding: 16px 45px; margin-top: 30px; font-size: 1.1rem; }
.btn-send-resume:hover { background-color: #138496; transform: translateY(-3px); }

/* Modal Styles */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); z-index: 2000;
    justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; }

.modal-box {
    background: #fff; width: 90%; max-width: 500px; padding: 30px; border-radius: 12px;
    position: relative; animation: slideUp 0.3s ease-out;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #999; }
.input-group { margin-bottom: 15px; }
.input-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }
.input-group input, .input-group textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; }
.btn-submit-modal { width: 100%; padding: 12px; background: var(--primary-color); color: white; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; }
.btn-submit-modal:hover { background: var(--primary-dark); }

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal-on-scroll.active { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
    h2 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .job-card { flex-direction: column; align-items: flex-start; gap: 20px; }
    .btn-apply { width: 100%; }
    
    /* Stack internship cards on mobile */
    .internship-row { flex-direction: column; gap: 20px; }
}