@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --color-bg-primary: #F7F3EA;
  --color-bg-hero: #F3E8D0;
  --color-bg-secondary: #E7DDCA;
  --color-bg-white: #FFFDF8;
  --color-gold-primary: #B88A2B;
  --color-gold-highlight: #D9AD4A;
  --color-text-primary: #292825;
  --color-text-secondary: #68645D;
  --color-text-emphasis: #3A3732;
  --color-border: #D8C7A5;
}

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

h1, h2, h3, .title, .section-title, .page-title {
    font-family: 'Lora', serif;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

canvas#goldDust {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Faint background gradient similar to Arakan */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 168, 76, 0.07) 0%, transparent 70%),
                radial-gradient(ellipse 50% 50% at 20% 80%, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
    z-index: -1;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 2rem; 
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    flex: 1;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box {
    background: var(--color-bg-white);
    padding: 0.25rem;
    border-radius: 4px;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    width: 100%;
    height: auto;
    display: block;
}

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

.nav-links a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold-primary);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #FFD97A;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header & Logo */
.header {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out forwards;
    opacity: 0;
    transform: translateY(-20px);
}

.logo-wrapper {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.logo {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Slight softening of the JPEG corners */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 10px 20px rgba(196, 150, 44, 0.2));
}

.logo:hover {
    transform: scale(1.02);
}

/* Hero Section */
.hero-wrapper {
    width: 100%;
    min-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 150px;
    background-image: url('hero_bg.jpg');
    background-size: cover;
    background-position: center 70%;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(
      circle at 50% 40%,
      rgba(255, 253, 248, 0.90) 0%,
      rgba(247, 243, 234, 0.85) 55%,
      rgba(243, 232, 208, 0.75) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: transparent;
    color: var(--color-gold-primary);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: -1.5px;
    color: var(--color-text-primary);
}

.gold-text {
    color: var(--color-gold-primary);
}

.subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-primary, .btn-secondary, .link-btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    border: 1px solid var(--color-gold-primary);
}

.btn-primary {
    background: var(--color-gold-highlight);
    color: var(--color-text-primary);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--color-gold-primary);
    box-shadow: 0 6px 20px rgba(184, 138, 43, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-hero);
    border-color: var(--color-gold-primary);
}

.link-btn {
    padding: 0;
    background: transparent;
    color: #C9A84C;
    margin-top: 1rem;
    font-size: 0.9rem;
}
.link-btn:hover {
    color: #FFD97A;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.divider {
    width: 60px;
    height: 3px;
    background: var(--color-border);
    margin: 0 auto;
}

.services-overview, .global-offices {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 3rem auto 0;
    justify-content: center;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.service-card:hover {
    border-color: var(--color-gold-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(184, 138, 43, 0.08);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--color-text-emphasis);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* Pages */
.page-content {
    padding-top: 10rem;
}

.services-overview {
    background-color: var(--color-bg-secondary);
    padding: 4rem 0 6rem;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 3rem;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Equipment Grid */
.equipment-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-bottom: 4rem;
}

.equipment-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.equipment-card.reverse {
    direction: rtl;
}
.equipment-card.reverse > * {
    direction: ltr;
}

.img-wrapper {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.equipment-info {
    padding: 2rem 3rem;
}

.equipment-info h3 {
    color: var(--color-text-emphasis);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.team-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 2px solid var(--color-gold-primary);
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    color: var(--color-text-emphasis);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.role {
    color: var(--color-gold-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.bio {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

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

.office-card {
    text-align: center;
    padding: 2rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.office-card h4 {
    color: var(--color-text-emphasis);
    margin-bottom: 0.5rem;
}

.footer {
    width: 100%;
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    margin-top: auto;
    background: var(--color-bg-secondary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--color-gold-primary);
    text-decoration: none;
    font-weight: 600;
}
.footer-links a:hover {
    color: var(--color-gold-highlight);
}

.copyright {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal & Form Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(41, 40, 37, 0.6); /* Graphite overlay with opacity */
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
}

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--color-text-primary);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    color: var(--color-text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-gold-primary);
    box-shadow: 0 0 0 3px rgba(184, 138, 43, 0.1);
}

input[readonly] {
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        padding-top: 1rem;
    }
    
    .logo-wrapper {
        max-width: 250px;
    }
    
    .content {
        padding: 2rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        flex-direction: column;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(201,168,76,0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem 2rem;
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn .hamburger {
        display: block;
        width: 25px;
        height: 2px;
        background: #C9A84C;
        position: relative;
    }
    .mobile-menu-btn .hamburger::before,
    .mobile-menu-btn .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 2px;
        background: #C9A84C;
        left: 0;
    }
    .mobile-menu-btn .hamburger::before { top: -8px; }
    .mobile-menu-btn .hamburger::after { bottom: -8px; }

    .equipment-card {
        grid-template-columns: 1fr;
    }
    .equipment-card.reverse {
        direction: ltr;
    }
    .img-wrapper {
        min-height: 200px;
    }
    .equipment-info {
        padding: 1.5rem;
    }
}
