/* --- Variables based on your logo analysis --- */
:root {
    --primary: #19454f;       /* Deep Teal */
    --primary-dark: #0f2c33;
    --accent: #c0a261;        /* Gold/Tan */
    --accent-light: #d4bd85;
    --bg-light: #f8f9f7;      /* Off-white */
    --text-dark: #0f1110;
    --text-light: #f8f9f7;
    --gray: #8f9c9d;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 20px 40px rgba(0,0,0,0.08);
    --shadow-hover: 0 30px 60px rgba(25, 69, 79, 0.15);
}

/* --- Global Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; }
ul { list-style: none; }

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 100px 0; }
.bg-light { background: #fff; }
.bg-dark { background: var(--primary); color: white; }
.text-light { color: white; }
.text-light-mute { color: rgba(255,255,255,0.7); }
.center-text { text-align: center; }

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.sub-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 800;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(25, 69, 79, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(25, 69, 79, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: 0.3s;
}

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

.btn-text {
    color: var(--primary);
    font-weight: 700;
    margin-top: 20px;
    display: inline-block;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo .accent { color: var(--accent); }

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-link:hover { color: var(--accent); }

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at top right, #f0f4f5, #fff);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    background: rgba(192, 162, 97, 0.15);
    color: #a08241;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 90%;
}

.btn-group { display: flex; gap: 15px; }

/* 3D Composition */
.hero-3d-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-stack {
    position: relative;
    width: 300px;
    height: 350px;
}

.card-layer {
    position: absolute;
    width: 280px;
    height: 160px;
    background: white;
    border-radius: 15px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1), -20px -20px 60px rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    font-weight: 600;
    color: var(--primary);
    transition: 0.5s;
    border: 1px solid rgba(255,255,255,0.5);
}

.card-layer i {
    font-size: 2rem;
    color: var(--accent);
}

.layer-1 { top: 0; left: 0; transform: rotate(-5deg); z-index: 1; opacity: 0.9; }
.layer-2 { top: 60px; left: 20px; transform: rotate(5deg); z-index: 2; background: var(--bg-light); }
.layer-3 { 
    bottom: 20px; right: -20px; 
    width: 150px; height: 150px; 
    border-radius: 20px;
    background: var(--primary); 
    color: white;
    transform: rotate(0deg); 
    z-index: 3;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.layer-3 .stat strong { display: block; font-size: 2rem; color: var(--accent); }

/* --- Services Grid --- */
.division-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    /* For 3D Tilt */
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(25, 69, 79, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: 0.3s;
}

.service-card:hover .icon-circle {
    background: var(--primary);
    color: white;
    transform: translateZ(20px);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
    transform: translateZ(10px);
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    transform: translateZ(5px);
}

/* Featured Card */
.highlight {
    background: linear-gradient(145deg, #19454f, #1f5560);
    color: white;
}
.highlight h3, .highlight p, .highlight .icon-circle { color: white; }
.highlight .icon-circle { background: rgba(255,255,255,0.1); }
.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.service-list { margin-top: 20px; }
.service-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}
.service-list li i { color: var(--accent); }

/* --- Careers --- */
.job-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}
.job-card {
    background: rgba(255,255,255,0.1);
    padding: 20px 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: left;
}
.job-card h4 { color: var(--accent); margin-bottom: 5px; }

/* --- Contact Section --- */
.contact-box {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden;
}

.contact-info {
    flex: 1;
    background: var(--primary);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.info-row .icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.contact-form-wrapper {
    flex: 1.5;
    padding: 50px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 69, 79, 0.1);
}

.full-width { width: 100%; }

/* --- Footer --- */
footer {
    padding: 40px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--primary);
    font-size: 1.2rem;
    margin-left: 20px;
    transition: 0.3s;
}
.social-links a:hover { color: var(--accent); }

/* --- Mobile Responsiveness --- */
.hamburger { display: none; cursor: pointer; }

@media (max-width: 968px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-3d-visual { display: none; } /* Hide 3D on tablet/mobile for cleaner look */
    .hero-text h1 { font-size: 2.5rem; }
    .btn-group { justify-content: center; }
    .contact-box { flex-direction: column; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--primary);
        transition: 0.3s;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transition: 0.3s;
    }
    
    .nav-menu.active { left: 0; }
    .services-grid { grid-template-columns: 1fr; }
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; animation-delay: 0.2s; }

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