:root {
    --primary: #B38054;
    /* Gold */
    --secondary: #1a1a1a;
    /* Charcoal */
    --accent-slate: #40607A;
    /* Slate Blue */
    --accent: #f4f4f4;
    /* Off-white */
    --glass: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #e0e0e0;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--secondary);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Slideshow */
#background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: #000;
    /* Base fallback */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    /* transition: opacity 2s ease-in-out; /* Smooth 2s fade */
    will-change: opacity;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
    /* Active slide stays on top */
}

.slide.previous {
    opacity: 0;
    z-index: 1;
    /* Previous slide stays behind the active one during fade */
    transition: opacity 2s ease-in-out;
}

.slide.incoming {
    opacity: 1;
    z-index: 2;
    transition: opacity 2s ease-in-out;
}

/* Dark Overlay for Readability */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: -1;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 3rem;
    /* Increased padding for corner feel */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: all 0.4s ease;
    z-index: 1000;
}

nav.scrolled {
    background: transparent;
    padding: 0.8rem 3rem;
}

.logo-container img {
    height: 90px;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled .logo-container img {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.logo-container img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    animation: fadeIn 1.5s ease-out;
}

.hero-logo {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 0 40px rgba(179, 128, 84, 0.6);
    background: #fff;
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease-out;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(179, 128, 84, 0.8), 0 0 40px rgba(179, 128, 84, 0.6);
    color: #ffffff;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.cta-button {
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: #000;
    text-decoration: none;
    font-weight: 800;
    border-radius: 50px;
    /* Pill shape for premium feel */
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    background: #e5c060;
}

/* Content Universal Styles */
.page-header {
    padding-top: 2rem;
    padding-bottom: 2vh;
    text-align: center;
}

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

.content-block {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.content-block h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.content-block p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Grid Layouts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(20px);     /* Maximum diffusion */
    border: 1px solid rgba(255, 255, 255, 0.2); 
    padding: 2.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.feature-card p {
    color: var(--text-main); /* Brighter white for body text */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Profiles */
.profile-section {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    padding: 3rem;
    background: rgba(179, 128, 84, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(179, 128, 84, 0.2);
}

.profile-text {
    flex: 2;
}

.profile-image {
    flex: 1;
    max-width: 300px;
    border-radius: 10px;
    border: 3px solid var(--primary);
}

/* Values */
.values-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.value-tag {
    background: var(--primary);
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Specific to Careers */
.benefit-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Services and Footer Readability */
#services h2,
#services p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Media Control Bar */
.media-control-bar {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(64, 96, 122, 0.4); /* Slate Blue tint */
    backdrop-filter: blur(15px);
    border: 1px solid var(--accent-slate);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.media-control-bar:hover {
    transform: translateY(-5px);
    background: rgba(64, 96, 122, 0.7);
    border-color: var(--primary);
}

.ticker-container {
    width: 150px;
    overflow: hidden;
    white-space: nowrap;
    border-left: 2px solid var(--accent-slate);
    padding-left: 1rem;
}

.ticker-text {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    animation: ticker 10s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Modal System */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 10, 0.85);
    backdrop-filter: blur(20px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Modal Background Slideshow */
.modal-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.modal-slideshow .slide {
    z-index: 1;
}

.modal-slideshow .slide.active {
    z-index: 2;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    overflow-y: auto;
    background: rgba(26, 26, 26, 0.4); /* Made more transparent to see slideshow */
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    transform: translateY(30px);
    border: 1px solid rgba(179, 128, 84, 0.3);
    transition: transform 0.5s ease;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.modal.active .modal-content {
    transform: translateY(0);
}

/* About Dashboard Layout */
.about-dashboard {
    display: flex;
    gap: 0;
    margin: -3rem; /* Offset modal padding */
    height: 85vh;
    overflow: hidden;
}

.about-sidebar {
    width: 250px;
    background: rgba(64, 96, 122, 0.4); /* Slate Blue tint */
    backdrop-filter: blur(5px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    flex-shrink: 0;
}

.about-sidebar .modal-logo-simple {
    max-width: 180px;
    margin-top: 1rem; /* Added margin to prevent clipping */
    margin-bottom: 2rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.about-internal-nav {
    list-style: none;
    padding: 0;
}

.about-internal-nav li {
    margin-bottom: 0.5rem;
}

.about-internal-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.about-internal-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.about-internal-nav a.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 15px rgba(179, 128, 84, 0.4);
}

.about-content-area {
    flex-grow: 1;
    padding: 3rem;
    overflow-y: auto;
    position: relative;
}

.about-tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.about-tab-content.active {
    display: block;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: sticky;
    top: -1.5rem;
    float: right;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.close-modal:hover {
    transform: rotate(90deg) scale(1.1);
    background: #fff;
}

/* Custom Scrollbar for Modals */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

body.modal-open {
    overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive Typography & Mobile Layouts */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

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

    .hero {
        padding-bottom: 8rem; /* Space for media bar */
    }

    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-logo {
        width: 180px;
        height: 180px;
        margin-bottom: 1.5rem;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
        max-height: 80vh;
    }

    .page-header h2 {
        font-size: 2rem !important;
    }

    .modal-logo-circle {
        width: 160px;
        height: 160px;
    }

    .modal-logo-simple {
        max-width: 250px;
    }

    /* About Dashboard Mobile Refinements */
    .about-dashboard {
        flex-direction: column;
        margin: -1.5rem; 
        height: 80vh;
    }

    .about-sidebar {
        width: 100%;
        height: auto;
        padding: 0.8rem 1.2rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        position: relative;
        z-index: 10;
    }

    .about-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .about-sidebar .modal-logo-simple {
        display: block !important;
        max-width: 120px !important;
        margin: 0.5rem 0 0.5rem 0 !important; /* Added top/bottom margin to prevent clipping */
    }

    .about-hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .about-hamburger span {
        width: 25px;
        height: 2px;
        background: #fff;
        border-radius: 10px;
    }

    .about-internal-nav {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        gap: 0.2rem;
        padding: 1rem 0;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        border-bottom: 1px solid var(--primary);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .about-internal-nav.active {
        display: flex;
    }

    .about-internal-nav li {
        width: 100%;
    }

    .about-internal-nav a {
        padding: 1rem 1.5rem;
        border-radius: 0;
        text-align: left;
    }

    .about-content-area {
        padding: 1.5rem;
    }

    .media-control-bar {
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        border-radius: 50px;
        padding: 0.8rem 1rem;
        justify-content: space-between;
    }

    .media-control-bar:hover {
        transform: translateX(-50%) translateY(-5px);
    }
}
/* Modal Circular Logo */
.modal-logo-container {
    text-align: center;
    margin-bottom: 0.5rem;
}

.modal-logo-circle {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(179, 128, 84, 0.4);
    background: #fff;
}

.modal-logo-simple {
    max-width: 350px;
    height: auto;
    margin: 0 auto 0 auto;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}
