/* 
   Samudra Biru Maritim - Global Stylesheet
   Design: Modern Maritime & Corporate Profile
*/

/* --- Design Tokens --- */
:root {
  --primary: #1b4d89;
  --primary-light: #3a75b8;
  --primary-dark: #0f2e54;
  --secondary: #4fa3e3;
  --accent: #00bcd4;
  --dark-text: #1e293b;
  --light-text: #f8fafc;
  --muted-text: #64748b;
  --bg-light: #f4f6f9;
  --bg-white: #ffffff;
  --bg-dark: #091a2e;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', 'Montserrat', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(79, 163, 227, 0.4);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography Helpers --- */
.text-serif { font-family: var(--font-serif); }
.text-sans { font-family: var(--font-sans); }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.italic { font-style: italic; }

/* --- Grid & Flex Layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column { display: flex; flex-direction: column; }

/* --- Button Styles --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--light-text);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(27, 77, 137, 0.3);
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: var(--light-text);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Section Formatting --- */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin: 12px auto 0;
  border-radius: var(--radius-full);
}

.section-subtitle {
  text-align: center;
  color: var(--muted-text);
  max-width: 600px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

/* --- Header / Navigation --- */
.site-header {
  background-color: transparent;
  box-shadow: none;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal), padding var(--transition-normal);
}

/* Glassmorphism background and shadow when scrolled */
.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}


.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px 0 0;
  max-width: 100%;
  position: relative;
}

/* Brand styling: Left Side */
.brand {
  display: flex;
  align-items: center;
  height: 95px;
  transition: height var(--transition-normal);
}

.brand-logo-img {
  height: 75px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: height var(--transition-normal);
}

.site-header.scrolled .brand {
  height: 70px;
}

.site-header.scrolled .brand-logo-img {
  height: 50px;
}




/* Navigation Wrapper */
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  transition: margin-top var(--transition-normal);
}

.site-header.scrolled .nav-wrapper {
  margin-top: 0;
}

/* Dark Hero Header styling (when at top on pages with dark hero background) */
.site-header.dark-hero-header:not(.scrolled) .nav-link {
  color: var(--light-text);
}

.site-header.dark-hero-header:not(.scrolled) .nav-link::after {
  background-color: var(--light-text);
}

.site-header.dark-hero-header:not(.scrolled) .nav-link.active {
  color: var(--secondary);
}

.site-header.dark-hero-header:not(.scrolled) .nav-link.active::after {
  background-color: var(--secondary);
}





.site-header.dark-hero-header:not(.scrolled) .nav-toggle span {
  background-color: var(--light-text);
}

.site-header.dark-hero-header:not(.scrolled) .brand-logo-img {
  filter: brightness(0) invert(1);
}


/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--primary-dark);
  font-size: 1.05rem;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-light);
  transition: var(--transition-normal);
}

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

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

.nav-link.active {
  color: var(--primary-light);
  font-weight: 600;
}

/* Mobile Toggle Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-dark);
  transition: var(--transition-normal);
}

/* --- Hero Banner Section --- */
.hero-wrapper {
  background: radial-gradient(circle at 10% 20%, rgba(244,246,249,1) 0%, rgba(230,235,242,1) 90%);
  padding: 100px 0 40px 0;
  position: relative;
  overflow: hidden;
}


/* Abstract wave vectors */
.hero-wrapper::before,
.hero-wrapper::after {
  content: '';
  position: absolute;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.3;
}

.hero-wrapper::before {
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background-image: radial-gradient(circle, rgba(79, 163, 227, 0.15) 0%, transparent 70%);
}

.hero-wrapper::after {
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background-image: radial-gradient(circle, rgba(27, 77, 137, 0.1) 0%, transparent 60%);
}

/* Hero Dotted grids */
.hero-dots-grid {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 180px;
  background-image: radial-gradient(var(--muted-text) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.25;
  pointer-events: none;
}

/* Curved Hero Banner Container */
.hero-banner-container {
  background: url('banner.png') no-repeat;
  background-size: cover;
  background-position: left center;
  width: 90%;
  max-width: 1400px;
  margin-left: 0;
  border-radius: 0 200px 200px 0;
  color: var(--light-text);
  padding: 85px 60px 85px 8%;
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: visible;
  min-height: 480px;
  display: flex;
  align-items: center;
  z-index: 10;
}

.hero-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 5;
}

.hero-left {
  flex: 1;
  max-width: 55%;
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-services-list li {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.3rem;
  font-style: italic;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.95;
}

.hero-services-list li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--light-text);
  border-radius: 50%;
}

/* Hero Right: Circle Emblem */
.hero-right {
  position: relative;
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-emblem-outer {
  background-color: var(--bg-white);
  border-radius: 50%;
  width: 320px;
  height: 320px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  transition: transform var(--transition-slow);
}

.hero-emblem-outer:hover {
  transform: translateY(-50%) scale(1.03) rotate(5deg);
}

.emblem-svg,
.emblem-img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}


/* Sub-Hero Link bar */
.hero-link-bar {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  position: relative;
  z-index: 1;
}

.hero-domain-link {
  display: flex;
  align-items: center;
  gap: 15px;
}

.domain-chevrons {
  display: flex;
  gap: 4px;
}

.domain-chevrons span {
  border: solid var(--primary-light);
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 4px;
  transform: rotate(-45deg);
  opacity: 0.8;
  animation: chevronGlow 1.5s infinite;
}

.domain-chevrons span:nth-child(2) { animation-delay: 0.2s; }
.domain-chevrons span:nth-child(3) { animation-delay: 0.4s; }

.domain-text {
  font-family: var(--font-sans);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-line-spacer {
  flex-grow: 1;
  height: 2px;
  background-color: var(--primary-light);
  opacity: 0.4;
  margin: 0 40px;
}

.hero-bar-dots {
  display: flex;
  gap: 8px;
}

.hero-bar-dots span {
  width: 10px;
  height: 10px;
  background-color: var(--primary-dark);
  border-radius: 50%;
}

/* --- Footer Area --- */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--light-text);
  padding: 70px 0 30px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

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

.footer-brand .brand-title {
  color: var(--light-text);
}

.footer-brand .brand-subtitle {
  color: var(--secondary);
}

.footer-desc {
  color: var(--muted-text);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--muted-text);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: var(--muted-text);
  font-size: 0.95rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-list i {
  color: var(--secondary);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted-text);
  font-size: 0.9rem;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  color: var(--light-text);
}

.social-icon:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* --- Custom Animations --- */
@keyframes chevronGlow {
  0%, 100% { opacity: 0.3; transform: rotate(-45deg) translateX(0); }
}

/* --- Client Projects / Logos Grid --- */
.projects-section {
  position: relative;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.client-logo-item {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 77, 137, 0.05);
  width: 220px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: var(--transition-normal);
  filter: grayscale(100%);
  opacity: 0.65;
}

.client-logo-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 163, 227, 0.3);
  filter: grayscale(0%);
  opacity: 1;
}

.client-logo-svg,
.client-logo-img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

/* --- Responsiveness & Media Queries --- */
@media (max-width: 1024px) {
  .hero-banner-container {
    padding: 60px 40px 60px 8%;
    border-radius: 0 140px 140px 0;
    width: 95%;
    margin-left: 0;
    min-height: 420px;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-services-list li {
    font-size: 1.15rem;
  }
  
  .hero-emblem-outer {
    width: 260px;
    height: 260px;
    right: -40px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 992px) {
  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .header-container {
    padding: 0 24px 0 0;
  }

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

  /* Keep stats cards grid as 2 columns on tablet/mobile */
  .about-preview .grid-2 .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Stack service bullet points to 1 column on mobile */
  .service-list-bullets {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition-normal);
    z-index: 99;
  }

  /* Override dark-hero links on mobile to prevent white-on-white text */
  .site-header.dark-hero-header:not(.scrolled) .nav-link {
    color: var(--primary-dark);
  }
  .site-header.dark-hero-header:not(.scrolled) .nav-link.active {
    color: var(--primary-light);
  }

  .main-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .hero-banner-container {
    flex-direction: column;
    padding: 40px 30px;
    border-radius: 0;
    width: 100%;
    margin-left: 0;
    min-height: auto;
    background: linear-gradient(rgba(9, 26, 46, 0.75), rgba(9, 26, 46, 0.85)), url('banner.png') no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
  }
  
  .hero-banner-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .hero-left {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-services-list {
    align-items: center;
  }
  
  .hero-right {
    flex: auto;
    width: 100%;
    height: auto;
    padding: 20px 0;
  }
  
  .hero-emblem-outer {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 260px;
    height: 260px;
    margin: 0 auto;
  }
  
  .hero-emblem-outer:hover {
    transform: scale(1.03);
  }
  
  .hero-link-bar {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .hero-line-spacer {
    display: none;
  }

  /* Responsive Brand Logo on Mobile */
  .brand {
    height: 70px;
  }

  .brand-logo-img {
    height: 55px;
  }

  .site-header.scrolled .brand {
    height: 60px;
  }

  .site-header.scrolled .brand-logo-img {
    height: 45px;
  }
}


@media (max-width: 480px) {
  .hero-banner-container {
    padding: 30px 20px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-services-list li {
    font-size: 1rem;
  }
  
  .hero-emblem-outer {
    width: 200px;
    height: 200px;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .about-preview .grid-2 .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .about-preview-text {
    text-align: center;
  }

  .about-preview-text h2.section-title {
    text-align: center !important;
  }
}

/* --- Language Switcher --- */
/* --- Header Actions (Grouping Lang Switcher & Avatar) --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 20px;
  z-index: 102;
}

@media (max-width: 992px) {
  .header-actions {
    margin-left: auto;
    margin-right: 15px;
  }
}

/* --- Language Switcher --- */
.lang-switcher {
  position: relative;
  font-family: var(--font-sans);
}

.lang-flag-img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  display: block;
}

.lang-trigger {
  background: transparent;
  border: 1px solid rgba(27, 77, 137, 0.2);
  color: var(--primary-dark);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.lang-trigger:hover {
  background-color: rgba(27, 77, 137, 0.05);
}

.lang-trigger i {
  font-size: 0.8rem;
  transition: transform var(--transition-normal);
}

/* Scrolled/Non-scrolled Header Styles compatibility */
.site-header.scrolled .lang-trigger {
  color: var(--primary-dark);
  border-color: rgba(27, 77, 137, 0.2);
}

.site-header.dark-hero-header:not(.scrolled) .lang-trigger {
  color: var(--light-text);
  border-color: rgba(255, 255, 255, 0.3);
}

.site-header.dark-hero-header:not(.scrolled) .lang-trigger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown styling */
.lang-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 8px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-normal);
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  width: 100%;
  background: none;
  border: none;
  padding: 10px 16px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-text);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-option:hover {
  background-color: var(--bg-light);
  color: var(--primary);
}

.lang-option.active {
  background-color: rgba(79, 163, 227, 0.1);
  color: var(--primary);
  font-weight: 600;
}

/* --- User Login Avatar & Profile Dropdown --- */
.login-avatar-wrapper {
  position: relative;
  display: inline-block;
  z-index: 105;
}

.login-avatar-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-avatar-img {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
  transition: width var(--transition-normal), height var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
  cursor: pointer;
}

.login-avatar-img:hover {
  transform: scale(1.08);
  border-color: var(--secondary);
  box-shadow: 0 0 12px rgba(79, 163, 227, 0.5);
}

.login-avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-white);
  background-color: var(--muted-text);
  transition: background-color var(--transition-normal), width var(--transition-normal), height var(--transition-normal);
}

.login-avatar-status.online {
  background-color: #10b981; /* Emerald green */
}

/* Profile Dropdown */
.profile-dropdown {
  position: absolute;
  top: 125%;
  right: 0; /* Align to the right edge of avatar to prevent clipping */
  left: auto;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 14px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-normal);
}

.profile-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown-header {
  border-bottom: 1px solid rgba(27, 77, 137, 0.1);
  padding-bottom: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.profile-email {
  color: var(--muted-text);
  font-size: 0.8rem;
}

.profile-dropdown-item {
  width: 100%;
  background: none;
  border: none;
  padding: 10px 12px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: #ef4444; /* red-500 */
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.profile-dropdown-item:hover {
  background-color: rgba(239, 68, 68, 0.08);
}

/* Scrolled Header Adjustments */
.site-header.scrolled .login-avatar-img {
  width: 36px;
  height: 36px;
  border-color: var(--primary);
}

.site-header.scrolled .login-avatar-status {
  width: 10px;
  height: 10px;
  border-width: 1.5px;
}

.site-header.dark-hero-header:not(.scrolled) .login-avatar-img {
  border-color: rgba(255, 255, 255, 0.4);
}

/* Responsive adjust */
@media (max-width: 992px) {
  .login-avatar-img {
    width: 34px;
    height: 34px;
  }
  
  .login-avatar-status {
    width: 9px;
    height: 9px;
    border-width: 1.5px;
  }
  
  .profile-dropdown {
    right: -10px; /* Aligned nicely to the right of the screen on mobile */
    left: auto;
    min-width: 210px;
  }
}

/* --- Floating Instagram Link --- */
.floating-link-bottom-left {
  position: fixed;
  bottom: 5px;
  left: 15px;
  z-index: 9999;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(30, 41, 59, 0.45); /* Transparent slate color */
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.35); /* Semi-transparent background */
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(226, 232, 240, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-link-bottom-left:hover {
  color: rgba(27, 77, 137, 0.85); /* Brand blue color on hover */
  background-color: rgba(255, 255, 255, 0.85);
  border-color: rgba(27, 77, 137, 0.15);
  box-shadow: 0 4px 12px rgba(27, 77, 137, 0.08);
}

