/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body, html {
    background: #f7f7f7;
    overflow-x: hidden; /* Prevent horizontal scrolling globally */
    color: #1a1a1a;
    width: 100%;
}

/* ================= NAVBAR (DESKTOP) ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    background: #000;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeInUp 0.7s ease;
}

.logo span img {
    display: block;
    max-width: 150px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #f4b400;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #f4b400;
}

.nav-right .btn {
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s ease;
    background: #f4b400;
    color: #000;
}

.nav-right .btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

.menu-icon {
    display: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

/* CAREER SECTION */
.career-section{
    width:70%;
    margin:auto;
    padding:60px 0;
    animation: fadeInUp 1s ease forwards;
}

.ctext{
    font-size:36px;
    margin-bottom:40px;
}

/* ACCORDION */
.accordion-item{
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:6px;
    overflow:hidden;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;

}

.accordion-header{
    width:100%;
    padding:15px;
    background:#f4f4f4;
    border:none;
    outline:none;
    font-size:18px;
    display:flex;
    justify-content:space-between;
    cursor:pointer;
}

.accordion-header:hover{
    background:#eaeaea;
}

.icon{
    font-size:20px;
}

.accordion-content{
    display:none;
    padding:15px;
    background:#fff;
    line-height:1.6;
}

.accordion-content p{
    margin-bottom:8px;
}

/* APPLY BUTTON */
.apply-btn{
    display:inline-block;
    margin:15px;
    padding:10px 18px;
    background:#febf03;
    color:#fff;
    text-decoration:none;
    border-radius:5px;
}

.apply-btn:hover{
    background:#e60023;
}


/* ===== APPLY BUTTON (PREMIUM ANIMATION) ===== */
.apply-btn{
    display:block;
    width:fit-content;
    margin:20px auto 0;
    padding:12px 28px;
    background:#f4b400;
    color:#000;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    border-radius:30px;
    transition:all 0.4s ease;
    box-shadow: 0 8px 20px rgba(171, 171, 171, 0.3);
    position:relative;
    overflow:hidden;
}

/* Shine effect */
.apply-btn::before{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
    transition:0.5s;
}

.apply-btn:hover::before{
    left:100%;
}

/* Hover animation */
.apply-btn:hover{
    background:#000;
    color:#fff;
    transform:translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}


/* ================= FOOTER ================= */
.footer {
    background: #0f0f0f;
    color: #ffffff;
    padding: 80px 10%;
    animation: fadeInUp 1s ease;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.footer-brand p, .footer-col ul li {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 15px;
}

.footer-col h4 {
    color: #febf03;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li a {
    text-decoration: none;
    color: #ccc;
    transition: 0.3s;
}

.footer-col ul li a:hover { color: #ffffff; }

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s ease;
}

.social-icons a:hover {
    background: #febf03;
    color: #000;
}





/* ============================================================== */
/* UNIFIED MOBILE RESPONSIVENESS & OVERFLOW FIXES                 */
/* ============================================================== */

@media (max-width: 992px) {
    /* Navbar Hamburger Logic */
    .menu-icon { display: block; }
    .nav-right { display: none; } /* Hide extra button to save space */
   
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0;
        overflow: hidden; /* hides links when menu is closed */
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .nav-links a {
        padding: 15px 0;
        width: 100%;
        text-align: center;
        border-top: 1px solid #222;
    }

    .nav-links.active {
        max-height: 400px; /* Opens the menu */
    }
    
     .footer-container { grid-template-columns: repeat(2, 1fr); gap: 40px; }


@media (max-width: 768px){
.footer-container { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
}
}



/* ===== FADE-IN ANIMATION ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Delay each item */
.accordion-item:nth-child(1) { animation-delay: 0.2s; }
.accordion-item:nth-child(2) { animation-delay: 0.4s; }
.accordion-item:nth-child(3) { animation-delay: 0.6s; }
.accordion-item:nth-child(4) { animation-delay: 0.8s; }

/* Smooth open animation */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* Active state */
.accordion-item.active .accordion-content {
    max-height: 300px;
}

/* Rotate + icon animation */
.accordion-item.active .icon {
    transform: rotate(45deg);
    transition: 0.3s;
}
