/* =================================
   1. VARIABLES & PALETTE (Burgundy + Navy + Gold)
================================= */
:root {
    --bg-navy: #0f2540;        /* Rich Royal Navy */
    --bg-navy-gradient: #1c3b60; 
    --brand-burgundy: #8a0a25; /* Vibrant Burgundy */
    --brand-gold: #FFD700;     /* Bright Metallic Gold */
    --brand-gold-hover: #ffecb3;
    --text-white: #ffffff;
    --text-off-white: #dbe4eb; 
    --glass-bg: rgba(255, 255, 255, 0.08); 
    --glass-border: rgba(255, 215, 0, 0.2); 
}

/* =================================
   2. ANIMATIONS
================================= */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

@keyframes floatShape {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

/* =================================
   3. RESET & BASE
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Garamond', 'Georgia', serif;
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at 50% 10%, var(--brand-burgundy), var(--bg-navy) 60%);
    background-attachment: fixed; 
    color: var(--text-off-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =================================
   4. PRELOADER
================================= */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-navy);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 4px solid var(--brand-burgundy);
    border-top: 4px solid var(--brand-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader.hidden {
    animation: fadeOut 0.5s forwards;
}

/* =================================
   5. AMBIENT BACKGROUND
================================= */
.ambient-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: floatShape 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px; height: 600px;
    background: var(--brand-burgundy);
    top: -20%; left: -10%;
}

.blob-2 {
    width: 500px; height: 500px;
    background: #1c3b60;
    bottom: -10%; right: -10%;
    animation-delay: -5s;
}

/* =================================
   6. NAVBAR
================================= */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1rem 2rem;
    background: rgba(15, 37, 64, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 140px;
    border: 1px solid var(--brand-gold);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--brand-gold);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.nav-links a.active {
    color: var(--brand-gold);
    border-bottom: 2px solid var(--brand-gold);
}

/* =================================
   7. SECTIONS & HERO
================================= */
.hero, .about-hero, .services-hero, .blog-hero, .contact-hero {
    min-height: 80vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    margin-bottom: 2rem;
}

.section {
    width: 100%;
    max-width: 1200px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.reveal-on-scroll {
    opacity: 0; 
    transform: translateY(30px);
    transition: all 1s ease-out;
}
.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    background: linear-gradient(to right, #fff, var(--brand-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 25px rgba(0,0,0,0.3);
}

h2 {
    font-size: 2.8rem;
    color: var(--text-white);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--brand-gold);
    margin: 15px auto 0;
    box-shadow: 0 0 10px var(--brand-gold);
}

p {
    font-size: 1.25rem;
    color: var(--text-off-white);
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.7;
}

/* =================================
   8. BUTTONS
================================= */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--brand-gold), #e6c200);
    color: #0f2540;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid var(--brand-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    background: #fff;
    color: var(--bg-navy);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--brand-gold);
    border: 1px solid var(--brand-gold);
    padding: 0.9rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--brand-gold);
    color: var(--bg-navy);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* =================================
   9. CARDS
================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
    justify-content: center;
}

.card {
    background: var(--glass-bg);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-gold);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.icon-box {
    font-size: 3rem;
    color: var(--brand-gold);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.card h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.card p {
    color: var(--text-off-white);
    font-size: 1.05rem;
}

/* =================================
   10. FORMS
================================= */
.contact-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info-side, .contact-form-side {
    flex: 1 1 450px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}

.contact-form-side h2, .contact-info-side h2 { text-align: left; }
.contact-form-side h2::after, .contact-info-side h2::after { margin: 10px 0 0; }

form { display: flex; flex-direction: column; gap: 1.5rem; }

label {
    color: var(--brand-gold);
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: -10px;
}

input, textarea {
    padding: 1.2rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 6px;
    outline: none;
    transition: all 0.3s;
    width: 100%;
}

input:focus, textarea:focus {
    border-color: var(--brand-gold);
    background: rgba(0,0,0,0.4);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

/* =================================
   11. FOOTER
================================= */
footer {
    width: 100%;
    text-align: center;
    padding: 4rem 2rem;
    background: #0a192f;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: auto;
}
footer p { color: #8892b0; font-size: 1rem; }

/* =================================
   12. MOBILE MENU
================================= */
.hamburger { display: none; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 3px; background: var(--brand-gold); margin: 5px 0; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    h1 { font-size: 2.8rem; }
    
    .mobile-menu {
        position: fixed; top: 0; right: -100%; width: 85%; height: 100%;
        background: #0f2540; 
        z-index: 1001; transition: 0.4s;
        padding-top: 5rem; display: flex; flex-direction: column; align-items: center;
        border-left: 2px solid var(--brand-gold);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .mobile-menu.active { right: 0; }
    .mobile-menu a { color: var(--text-white); padding: 1.5rem; text-decoration: none; font-size: 1.3rem; }
}

/* =================================
   13. PARTNER LAYOUT
================================= */
.partner-card {
    width: 100%;
    max-width: 1000px !important;
    padding: 3rem;
}

.partner-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    text-align: left;
}

.partner-image {
    flex: 0 0 350px; /* Fixed width for the image container */
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--brand-gold);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.partner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-info {
    flex: 1;
}

.partner-info h3 {
    text-align: left;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    color: var(--text-white);
}

.partner-role {
    display: block;
    color: var(--brand-gold);
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .partner-layout {
        flex-direction: column;
        text-align: center;
    }
    .partner-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px;
        height: 350px;
    }
    .partner-info h3 { text-align: center; }
}

/* =================================
   14. SERVICES ALTERNATING LAYOUT
================================= */
.services-list-container {
  display: flex;
  flex-direction: column;
  gap: 60px; /* Space between rows */
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.service-row {
  display: flex;
  align-items: center;
  /* Dark Glass Effect */
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-row:hover {
  transform: translateY(-5px);
  border-color: var(--brand-gold); /* Gold glow on hover */
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* FLIP LAYOUT: Even rows (2, 4, 6) reverse direction */
.service-row:nth-child(even) {
  flex-direction: row-reverse;
}

.service-image-box {
  flex: 1;
  height: 350px;
  overflow: hidden;
  position: relative;
  border-right: 1px solid rgba(255,255,255,0.05); /* Subtle divider */
}

/* Fix border for reversed items */
.service-row:nth-child(even) .service-image-box {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.05);
}

.service-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-row:hover .service-image-box img {
  transform: scale(1.05); /* Zoom image on hover */
}

.service-content-box {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.service-content-box h3 {
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--brand-gold); /* Gold Title */
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.service-content-box p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-off-white);
  margin: 0;
}

/* Responsiveness for Services */
@media (max-width: 900px) {
  .service-row, .service-row:nth-child(even) {
    flex-direction: column;
  }
  
  .service-image-box {
    width: 100%;
    height: 250px;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .service-content-box {
    padding: 30px;
    text-align: center;
  }
}
