/* --- DESIGN SYSTEM --- */
:root {
    --primary-color: #0A1F44;
    --accent-color: #D4AF37;
    --accent-glow: rgba(212, 175, 55, 0.5);
    --text-color: #333333;
    --light-text: #FFFFFF;
    --bg-light: #F8F9FA;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.3s ease-in-out;
}

[data-theme="dark"] {
    --primary-color: #050E22;
    --accent-color: #D4AF37;
    --text-color: #FFFFFF;
    --bg-light: #0A1F44;
    --glass-bg: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    cursor: none; /* Hide default for custom cursor */
}

/* --- CUSTOM CURSOR --- */
#cursor {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

#cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.2s ease, top 0.15s ease, left 0.15s ease;
}

@media (max-width: 992px) {
    #cursor, #cursor-follower { display: none; }
    * { cursor: auto !important; }
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- LOADER --- */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-color);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px; height: 50px;
    border: 5px solid var(--accent-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- HEADER --- */
header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 80px; /* Fixed height for header */
    background: var(--primary-color);
    padding: 0 5%; /* Horizontal padding only */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* --- SCROLL PROGRESS BAR --- */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 2001;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 150px; /* Big logo for impact */
    width: auto;
    transition: var(--transition);
    object-fit: contain;
    position: relative;
    top: 5px; /* Slight hanging overhang */
}

@media (max-width: 768px) {
    header { height: 70px; } /* Slightly smaller mobile header */
    .logo img { height: 110px; } /* Hanging mobile logo */
}

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

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.header-cta {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.header-cta:hover {
    background: #B8860B;
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(10,31,68,0.8), rgba(10,31,68,0.8)), url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2rem;
}

/* --- UTILITIES --- */
.container {
    padding: 5rem 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

[data-theme="dark"] .section-title {
    color: var(--accent-color);
}

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

/* --- CARDS (GLASSMORPHISM) --- */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.card:hover::before { opacity: 1; }

.card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--accent-color);
    box-shadow: 0 15px 45px rgba(212,175,55,0.2);
}

/* --- FOOTER --- */
footer {
    background: #050E22;
    color: white;
    padding: 4rem 10% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

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

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

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

/* --- BUTTONS --- */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary { background: var(--accent-color); color: var(--primary-color); }
.btn-primary:hover { background: #B8860B; }

/* --- HEADER EXTENSION --- */
.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    transition: var(--transition);
}

#theme-toggle {
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 1rem;
    transition: var(--transition);
}

#theme-toggle:hover {
    color: var(--accent-color);
}

/* --- MOBILE RESPONSIVENESS (TABLET & MOBILE) --- */
@media (max-width: 1024px) {
    .container { padding: 4rem 5%; }
    .hero h1 { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 992px) {
    .menu-toggle { display: block; }
    
    nav ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-color);
        backdrop-filter: blur(20px);
        padding: 5rem 2rem;
        text-align: center;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1001;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    nav ul.active {
        transform: translateX(0);
    }

    nav ul li { width: 100%; }
    nav ul li a {
        font-size: 1.2rem;
        display: block;
        padding: 1rem;
        color: white;
    }

    #theme-toggle {
        margin-top: 1rem;
        font-size: 1.5rem;
    }

    .header-cta { display: none; }
}

@media (max-width: 768px) {
    header { padding: 1rem 5%; }
    .logo { font-size: 1.3rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; padding: 0 1rem; }
    .grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-btns { flex-direction: column; gap: 1rem; }
    .hero-btns .btn { margin-left: 0 !important; width: 100%; }
    .counter-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- ANIMATED COUNTERS --- */
.counters-section {
    background: var(--primary-color);
    padding: 5rem 10%;
    color: white;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
    gap: 3rem;
}

.counter-box h2 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* --- JOB SECTION STYLES --- */
.job-card {
    background: white;
    border: 1px solid #eee;
    text-align: left;
    color: var(--primary-color);
}

[data-theme="dark"] .job-card {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    color: white;
}

.job-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.job-type {
    background: #eef1f6;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

.job-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.job-info i {
    color: var(--accent-color);
    width: 20px;
}

/* --- MODAL --- */
#job-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    position: relative;
    color: #333;
}

[data-theme="dark"] .modal-content {
    background: #0A1F44;
    color: white;
    border: 1px solid var(--accent-color);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* --- CONTACT FORM --- */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

[data-theme="dark"] .contact-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    background: #fff;
}

[data-theme="dark"] .form-group input, [data-theme="dark"] .form-group textarea {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: white;
}

/* --- ANIMATE ON SCROLL --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- BACK TO TOP --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
}

/* --- TESTIMONIALS SLIDER --- */
.testimonials-section {
    background: #fdfdfd;
    padding: 5rem 10%;
}

[data-theme="dark"] .testimonials-section { background: #050E22; }

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    height: 300px;
}

.testimonial-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-slide.active { opacity: 1; }

.testimonial-slide img {
    width: 80px; height: 80px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid var(--accent-color);
}

.testimonial-slide blockquote {
    font-size: 1.4rem;
    font-style: italic;
    color: #555;
}

[data-theme="dark"] .testimonial-slide blockquote { color: #ccc; }

/* --- STEP PROCESS --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-step {
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
}

[data-theme="dark"] .process-step { background: var(--glass-bg); color: white; }

.step-num {
    position: absolute;
    top: -20px; left: 20px;
    width: 50px; height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* --- FAQ ACCORDION --- */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

[data-theme="dark"] .faq-item { border-color: var(--glass-border); }

.faq-question {
    padding: 1.5rem;
    background: white;
    cursor: pointer;
    font-weight: 600;
    display: flex; justify-content: space-between;
}

[data-theme="dark"] .faq-question { background: var(--glass-bg); color: white; }

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: #f9f9f9;
}

[data-theme="dark"] .faq-answer { background: rgba(0,0,0,0.2); color: #ccc; }

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* --- NEWSLETTER --- */
.newsletter {
    background: linear-gradient(rgba(10,31,68,0.95), rgba(10,31,68,0.95)), url('../assets/images/hero-bg.jpg');
    background-size: cover;
    padding: 6rem 10%;
    text-align: center;
    color: white;
}

.newsletter-form {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border-radius: 5px;
    border: none;
}

@media (max-width: 600px) {
    .newsletter-form { flex-direction: column; }
}

/* --- PREMIUM ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.animate-fade-in-up { animation: fadeInUp 1s ease-out forwards; }
.animate-fade-in-left { animation: fadeInLeft 1s ease-out forwards; }
.animate-fade-in-right { animation: fadeInRight 1s ease-out forwards; }

.float-icon { animation: float 4s ease-in-out infinite; }

/* Staggered Delay Classes */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Shine Effect for Buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.btn-primary:hover::after {
    animation: shine 0.75s;
}

/* Reveal on Scroll (Improved) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Card Hover Elevation */
.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Parallax Effect Utility */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
