/* Cascade Layers Declaration */
@layer reset, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
  }

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  button, input, select, textarea {
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  ul, ol {
    list-style: none;
  }
}

@layer base {
  :root {
    /* Color Palette */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #ffffff;
    --color-bg-card: #f3f4f6;
    --color-bg-glass: rgba(255, 255, 255, 0.85);
    --color-border: rgba(5, 20, 36, 0.08);
    --color-border-hover: rgba(197, 168, 128, 0.5);
    
    /* Brand Accents */
    --color-brand-blue: #001b34;     /* Original logo background color */
    --color-gold: #0000ff;           /* Royal Blue Accent */
    --color-gold-hover: #0000d6;
    --color-emerald: #008770;        /* Success/Indicator Green */
    --color-emerald-hover: #006f5b;
    
    /* Typography */
    --color-text-primary: #051424;   /* Deep Navy for pure theme */
    --color-text-secondary: #3b4e61; /* Slate Navy-Grey for description copy */
    --color-text-muted: #708396;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
  }

  body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    font-weight: 600;
    line-height: 1.25;
  }
  
  /* Modern Focus visible outline styling */
  :focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
  }
  
  /* Scrollbar Customization */
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) var(--color-bg-primary);

  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--color-bg-card);
    border: 2px solid var(--color-bg-primary);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
  }
}

@layer layout {
  .section-container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 24px;
    padding-block: 100px;
  }

  .grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .grid-2-col-equal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
  }

  .grid-4-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
  }

  .grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  @media (min-width: 768px) {
    .grid-2-col {
      grid-template-columns: 1fr 1.5fr;
      align-items: start;
    }
    
    .grid-2-col-equal {
      grid-template-columns: 1fr 1fr;
      align-items: start;
    }

    .grid-2x2 {
      grid-template-columns: 1fr 1fr;
    }
  }

  /* Section Headers styling */
  .section-header {
    max-width: 700px;
    margin-block-end: 60px;
  }

  .section-tag {
    font-family: var(--font-heading);
    color: var(--color-gold);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    display: block;
    margin-block-end: 12px;
  }

  .section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    margin-block-end: 20px;
  }

  .section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.15rem;
    line-height: 1.5;
  }
}

@layer components {
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  }

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

  .btn-primary:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
    color: #ffffff;
    transform: translateY(-2px);
  }

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

  .btn-secondary:hover {
    background-color: rgba(10, 17, 26, 0.05);
    border-color: var(--color-text-primary);
    transform: translateY(-2px);
  }

  .btn-nav {
    padding: 8px 20px;
    font-size: 0.85rem;
    background-color: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
  }

  .btn-nav:hover {
    background-color: var(--color-gold);
    color: #ffffff;
  }

  /* Header & Navigation */
  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #000000;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    z-index: 100;
    transition: background-color var(--transition-normal);
  }

  .nav-container {
    max-width: 100%;
    height: 100%;
    margin-inline: auto;
    padding-inline: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
  }

  .logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    color: #ffffff;
  }

  .logo-accent {
    color: #ffffff;
    font-weight: 400;
  }

  .nav-links {
    display: none;
    align-items: center;
    gap: 32px;
  }

  .nav-links a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    transition: color var(--transition-fast);
  }

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

  @media (min-width: 768px) {
    .nav-links {
      display: flex;
    }
  }

  /* Hero Section */
  .hero-section {
    position: relative;
    height: 100vh;
    min-block-size: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-primary);
    overflow: hidden;
    padding-inline: 24px;
    padding-block-start: var(--header-height);
  }

  .ambient-glows {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
  }

  .glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.06;
    pointer-events: none;
  }

  /* Shifting Gold Glow */
  .glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    animation: floatGlow1 25s infinite alternate ease-in-out;
  }

  /* Shifting Deep Blue Glow */
  .glow-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #0a2240 0%, transparent 75%);
    bottom: -15%;
    left: -10%;
    animation: floatGlow2 30s infinite alternate ease-in-out;
  }

  /* Shifting Emerald/Teal Glow */
  .glow-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00A389 0%, transparent 70%);
    top: 30%;
    left: 20%;
    animation: floatGlow3 22s infinite alternate ease-in-out;
  }

  /* Shifting Animations */
  @keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, 80px) scale(1.1); }
  }

  @keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, -80px) scale(0.9); }
  }

  @keyframes floatGlow3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, -60px) scale(1.2); }
  }

  /* Structured capital grid overlay */
  .hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
      linear-gradient(rgba(10, 17, 26, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(10, 17, 26, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center;
    z-index: 2;
    mask-image: radial-gradient(circle at center, black 30%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 95%);
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    text-align: center;
    animation: fadeInScale var(--transition-slow);
  }

  .hero-tagline {
    font-family: var(--font-heading);
    color: var(--color-gold);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-block-end: 20px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-block-end: 24px;
    letter-spacing: -0.5px;
  }

  .hero-description {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--color-text-secondary);
    max-width: 720px;
    margin-inline: auto;
    margin-block-end: 0;
    font-weight: 300;
  }

  .hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  /* Scroll indicator mouse */
  .scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
  }

  .mouse-icon {
    width: 26px;
    height: 44px;
    border: 2px solid var(--color-text-muted);
    border-radius: 13px;
    display: block;
    position: relative;
  }

  .mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite;
  }

  @keyframes scrollMouse {
    0% { top: 8px; opacity: 1; }
    50% { top: 22px; opacity: 0; }
    100% { top: 8px; opacity: 1; }
  }

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

  /* Overview Section */
  .overview-section {
    background-color: var(--color-bg-primary);
  }

  .overview-left {
    position: sticky;
    top: 120px;
  }

  .accent-line {
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    margin-block-start: 16px;
  }

  .lead-text {
    font-size: 1.15rem;
    color: var(--color-text-primary);
    font-weight: 300;
    margin-block-end: 24px;
    line-height: 1.5;
  }

  .overview-right p {
    margin-block-end: 20px;
    font-weight: 300;
  }

  .metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-block-start: 50px;
  }

  .metric-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 24px;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
  }

  .metric-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-2px);
  }

  .metric-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-block-end: 6px;
  }

  .metric-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
  }

  /* Strategy Section */
  .strategy-section {
    background-color: var(--color-bg-secondary);
  }

  #strategy .section-header,
  #portfolio .section-header,
  #team .section-header,
  #locations .section-header,
  #contact .section-header {
    max-width: 100%;
  }

  .strategy-card {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(0, 0, 255, 0.25);
    border-radius: 6px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 255, 0.05), 0 0 12px rgba(0, 0, 255, 0.08);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  }

  .strategy-card:hover {
    transform: translateY(-6px);
    border-color: #0000ff;
    box-shadow: 0 8px 30px rgba(0, 0, 255, 0.12), 0 0 22px rgba(0, 0, 255, 0.18);
  }

  .card-icon-container {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    background-color: #e2e5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-block-end: 0;
    border: 1px solid #cdd3db;
    flex-shrink: 0;
  }

  .card-icon-container img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
  }

  .strategy-card h3 {
    font-size: 1.35rem;
    font-weight: 500;
    margin-block-end: 0;
  }

  .strategy-card ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .strategy-card li {
    font-size: 0.95rem;
    font-weight: 300;
    position: relative;
    padding-inline-start: 20px;
  }

  .strategy-card li::before {
    content: "•";
    color: var(--color-gold);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.1rem;
  }

  /* Sectors Section */
  .sectors-section {
    background-color: var(--color-bg-primary);
  }

  .sector-block {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 280px;
    border: 1px solid var(--color-border);
    transition: border-color var(--transition-normal), transform var(--transition-normal);
  }

  .sector-block:hover {
    border-color: var(--color-gold);
    transform: translateY(-4px);
  }

  .sector-image-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 32px;
    transition: transform var(--transition-slow);
  }

  /* Distinct premium gradient combinations for sector placeholders */
  .b2b-tech {
    background-image: linear-gradient(135deg, #021124 0%, #001b34 100%);
  }

  .industrial-systems {
    background-image: linear-gradient(135deg, #041b18 0%, #052a22 100%);
  }

  .niche-services {
    background-image: linear-gradient(135deg, #1b0e04 0%, #301705 100%);
  }

  .infrastructure-logistics {
    background-image: linear-gradient(135deg, #191c24 0%, #0b0b0e 100%);
  }

  .overlay-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 11, 20, 0.9) 0%, rgba(2, 11, 20, 0.2) 70%, transparent 100%);
    z-index: 1;
    pointer-events: none;
  }

  .sector-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
  }

  .sector-content h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-block-end: 8px;
  }

  .sector-content p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-text-secondary);
  }

  /* Portfolio Section */
  .portfolio-section {
    background-color: var(--color-bg-primary);
  }



  .portfolio-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--color-bg-card);
    border: 1px solid rgba(0, 0, 255, 0.25);
    border-radius: 6px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 255, 0.05), 0 0 12px rgba(0, 0, 255, 0.08);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  }

  .portfolio-card:hover {
    border-color: #0000ff;
    box-shadow: 0 8px 30px rgba(0, 0, 255, 0.12), 0 0 22px rgba(0, 0, 255, 0.18);
    transform: translateY(-6px);
  }

  .portfolio-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .portfolio-link-arrow {
    margin-left: auto;
    width: 20px;
    height: 20px;
    color: #0000ff;
    opacity: 0.4;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
  }

  .portfolio-link-arrow svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
  }

  .portfolio-card:hover .portfolio-link-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
  }

  .portfolio-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background-color: #e2e5e9;
    border: 1px solid #cdd3db;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .portfolio-icon svg,
  .portfolio-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .portfolio-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .company-tag {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: #0000ff;
    display: inline-block;
    margin: 0;
  }

  .portfolio-header-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-text-primary);
    line-height: 1.2;
  }

  .portfolio-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
  }

  /* Team Section */
  .team-section {
    background-color: var(--color-bg-secondary);
  }

  .team-card {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(0, 0, 255, 0.25);
    border-radius: 6px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 255, 0.05), 0 0 12px rgba(0, 0, 255, 0.08);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  }

  .team-card:hover {
    border-color: #0000ff;
    box-shadow: 0 8px 30px rgba(0, 0, 255, 0.12), 0 0 22px rgba(0, 0, 255, 0.18);
    transform: translateY(-4px);
  }

  .team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(197, 168, 128, 0.08);
    border: 1px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-block-end: 24px;
    overflow: hidden;
  }

  .team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .team-avatar span {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-gold);
    letter-spacing: 1px;
  }

  .team-info h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-block-end: 4px;
  }

  .team-title {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-block-end: 16px;
  }

  .team-bio {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
    text-align: left;
  }

  /* Contact Section */
  .contact-section {
    background-color: var(--color-bg-primary);
  }

  .office-location {
    margin-block-start: 40px;
  }

  .office-location h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-block-end: 20px;
  }

  .office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
  }

  .office-card h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-block-end: 8px;
  }

  .office-card p {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.4;
  }

  /* Contact Section */
  .contact-section {
    background-color: var(--color-bg-primary);
  }

  /* Form Styling */
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-block-start: 40px;
    width: 100%;
  }

  .form-group-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  @media (min-width: 768px) {
    .form-group-row {
      grid-template-columns: 1fr 1fr;
    }
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
  }



  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: #f2f3f5;
    border: 1px solid #e2e5e9;
    border-radius: 4px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    resize: none;
  }

  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: var(--color-text-muted);
  }

  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.08);
  }

  /* Validation Error Styling */
  .form-group input.invalid,
  .form-group textarea.invalid {
    border-color: #ff3b30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.08);
  }

  .error-msg {
    font-size: 0.75rem;
    color: #ff3b30;
    margin-block-start: 4px;
    display: block;
  }
  .error-msg:empty {
    display: none;
  }

  /* Submit Button styling */
  .submit-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 28px;
  }

  .submit-arrow {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
  }

  .submit-btn:hover .submit-arrow {
    transform: translateX(4px);
  }

  /* Footer Section */
  .main-footer {
    background-color: #000000;
    border-top: 1px solid rgba(197, 168, 128, 0.15);
  }

  .footer-container {
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 40px;
    padding-block: 60px 40px;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
  }

  @media (min-width: 768px) {
    .footer-top {
      flex-direction: row;
    }
  }

  .footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.05rem;
    color: #ffffff;
  }

  .logo-img-footer {
    height: 24px;
    width: auto;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    justify-content: center;
  }

  .footer-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #ffffff;
    transition: color var(--transition-fast);
  }

  .footer-links a:hover {
    color: var(--color-gold);
  }

  .footer-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-block: 40px 30px;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
  }

  .disclaimer {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    text-align: left;
    width: 100%;
  }

  .git-info {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
  }

  .git-link {
    color: var(--color-gold);
    transition: color var(--transition-fast);
  }

  .git-link:hover {
    color: var(--color-gold-hover);
    text-decoration: underline;
  }

  /* Native Success Dialog Overlay styling */
  .success-dialog {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-bg-card);
    color: var(--color-text-secondary);
    padding: 0;
    max-width: 480px;
    width: calc(100% - 48px);
    margin: auto;
    box-shadow: 0 20px 50px rgba(5, 20, 36, 0.15);
    animation: dialogShow var(--transition-normal);
  }

  .success-dialog::backdrop {
    background-color: rgba(2, 11, 20, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .dialog-content {
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .success-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(0, 163, 137, 0.08);
    border: 2px solid var(--color-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .success-dialog h2 {
    font-size: 1.6rem;
    font-weight: 500;
  }

  .success-dialog p {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.5;
    margin-block-end: 10px;
  }

  .btn-close {
    width: 100%;
    min-inline-size: 160px;
  }

  @keyframes dialogShow {
    from {
      opacity: 0;
      transform: scale(0.95) translateY(15px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  /* Locations Section styles */
  .locations-section {
    background-color: var(--color-bg-secondary);
  }

  .office-grid-global {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
  }

  .office-card-global {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(0, 0, 255, 0.25);
    border-radius: 6px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 255, 0.05), 0 0 12px rgba(0, 0, 255, 0.08);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  }

  .office-card-global:hover {
    transform: translateY(-4px);
    border-color: #0000ff;
    box-shadow: 0 8px 30px rgba(0, 0, 255, 0.12), 0 0 22px rgba(0, 0, 255, 0.18);
  }

  .region-tag {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--color-gold);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
    display: block;
    margin-block-end: 10px;
  }

  .office-card-global h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-block-end: 8px;
  }

  .office-card-global p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
  }
}

/* Footer overrides for light theme */
.main-footer .logo-accent {
  color: #ffffff;
}

  /* Scrolling Country Ticker Banner */
  .ticker-banner {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background-color: var(--color-bg-secondary);
    border-block: 1px solid rgba(0, 0, 0, 0.05);
    padding-block: 18px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
  }

  /* Hero Ticker Override */
  .hero-section .ticker-banner {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding-inline: 40px;
    background-color: transparent;
    border-block: none;
    z-index: 5;
    margin-block-start: 80px;
  }

  @media (max-height: 680px) {
    .hero-section .ticker-banner {
      margin-block-start: 40px;
    }
  }

  @media (max-width: 768px) {
    .hero-section .ticker-banner {
      padding-inline: 24px;
      margin-block-start: 50px;
    }
  }

  .ticker-track {
    display: inline-flex;
    animation: ticker-slide 40s linear infinite;
    gap: 48px;
    padding-inline-start: 48px;
  }

  .ticker-banner:hover .ticker-track {
    animation-play-state: paused;
  }

  .ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    font-family: var(--font-body);
  }

  .ticker-flag {
    font-size: 1.3rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  }

  .ticker-country {
    letter-spacing: 0.5px;
  }

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

  /* Legal Page Styles */
  .legal-section {
    padding-block: 160px 80px;
    background-color: var(--color-bg-primary);
  }

  .legal-container {
    max-width: 800px;
    margin-inline: auto;
    padding-inline: 24px;
  }

  .legal-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-block-end: 20px;
    font-family: var(--font-display);
    letter-spacing: -0.5px;
  }

  .legal-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-block-end: 40px;
    border-block-end: 1px solid rgba(0, 0, 0, 0.08);
    padding-block-end: 20px;
  }

  .legal-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-block-start: 40px;
    margin-block-end: 16px;
    font-family: var(--font-display);
  }

  .legal-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-block-end: 20px;
  }

  .legal-content ul {
    margin-block-end: 24px;
    padding-inline-start: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .legal-content li {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    list-style-type: disc;
  }
}

@layer utilities {
  /* Scroll reveal elements utility classes */
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
  }

  .reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
  }
}
