:root {
  --bg-color: #F7F9FA;
  --text-main: #173042;
  --text-muted: #667782;
  --accent: #176B87;
  --nav-bg: rgba(8, 44, 70, 0.96);
  --nav-border: rgba(8, 44, 70, 0.12);
  --card-bg: #fff;
  --btn-bg: #173042;
  --btn-text: #ffffff;
  --btn-hover: #264A60;
  --btn-sec-bg: transparent;
  --btn-sec-text: #173042;
  --btn-sec-border: #D7E0E5;
  --btn-sec-hover: #EEF2F4;
}

[data-theme="dark"] {
  --bg-color: #071F31;
  --text-main: #F5F7F8;
  --text-muted: #AAB7BF;
  --accent: #B89452;
  --nav-bg: rgba(13, 13, 13, 0.85);
  --nav-border: rgba(31, 16, 16, 0.12);
  --card-bg: #0D3048;
  --btn-bg: #F5F7F8;
  --btn-text: #071F31;
  --btn-hover: #D8E0E4;
  --btn-sec-bg: transparent;
  --btn-sec-text: #F5F7F8;
  --btn-sec-border: #264A60;
  --btn-sec-hover: #173042;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.home-page {
  overflow: hidden;
  background: #f4f8fa;
  color: #082c46;
}

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: 120px 8% 180px;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 25, 42, 0.94), rgba(3, 25, 42, 0.45)),
    linear-gradient(0deg, rgba(3, 25, 42, 0.7), transparent);
  z-index: -1;
}

.hero-content {
  max-width: 760px;
  color: #ffffff;
}

.hero-subtitle,
.section-label {
  display: inline-block;
  color: #b89452;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-title {
  margin: 22px 0;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -3px;
}

.hero-title span,
.section-heading h2 span,
.about-content h2 span,
.cta-section h2 span {
  color: #b89452;
}

.hero-desc {
  max-width: 600px;
  margin-bottom: 32px;
  color: #dce8ee;
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 15px 23px;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary {
  background: #654321;
  color: #ffffff;
}

.btn-primary:hover {
  background: #654321;
  transform: translateY(-4px);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fe0e0e;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #082c46;
  transform: translateY(-4px);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 45px;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #b89452;
  border-radius: 50%;
  color: #b89452;
}

.hero-trust strong {
  display: block;
}

.hero-trust p {
  margin-top: 4px;
  color: #c4d4dc;
  font-size: 0.85rem;
}

.hero-bottom-card {
  position: absolute;
  right: 8%;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  max-width: 540px;
  padding: 25px 30px;
  background: #ffffff;
  color: #082c46;
  border-top: 4px solid #b89452;
}

.hero-bottom-card span {
  display: block;
  margin-bottom: 8px;
  color: #b89452;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-bottom-card strong {
  display: block;
  max-width: 300px;
  line-height: 1.5;
}

.small-link,
.text-link,
.service-link {
  color: #082c46;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.small-link:hover,
.text-link:hover,
.service-link:hover {
  color: #b89452;
}

.intro-section,
.services-section,
.stats-section,
.about-preview,
.cta-section {
  padding: 100px 8%;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.section-top h2,
.stats-intro h2,
.about-content h2,
.cta-section h2 {
  margin-top: 15px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -1px;
}

.intro-text {
  max-width: 520px;
  margin-top: 25px;
  margin-left: auto;
  color: #587080;
  line-height: 1.8;
}

.services-section {
  background: #ffffff;
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  padding: 32px;
  background: #f4f8fa;
  border: 1px solid #e0e9ee;
  transition: 0.3s ease;
}

.service-card:hover {
  background: #082c46;
  color: #ffffff;
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(8, 44, 70, 0.2);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-number {
  color: #b89452;
  font-weight: 800;
}

.service-icon {
  font-size: 2rem;
}

.service-card h3 {
  margin: 55px 0 15px;
  font-size: 1.45rem;
}

.service-card p {
  min-height: 85px;
  color: #607987;
  line-height: 1.7;
}

.service-card:hover p {
  color: #dce8ee;
}

.service-link {
  display: inline-block;
  margin-top: 20px;
}

.service-card:hover .service-link {
  color: #b89452;
}

.stats-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  background: #082c46;
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
}

.stat-item {
  padding: 25px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item strong {
  display: block;
  color: #b89452;
  font-size: 3.5rem;
}

.stat-item span {
  color: #cbdbe3;
}

.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  background: #f4f8fa;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-introduction {
  padding: 85px 8%;
  background: #ffffff;
}

.about-introduction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 55px;
}

.about-main-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-content h2 {
  margin: 15px 0 20px;
  color: #082c46;
  font-size: 2.3rem;
}

.about-content p:not(.section-label) {
  margin-bottom: 18px;
  color: #607987;
  line-height: 1.8;
}

.primary-button {
  display: inline-block;
  margin-top: 12px;
  padding: 13px 22px;
  background: #082c46;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s ease;
}

.primary-button:hover {
  background: #654321;
}

.mission-vision {
  padding: 75px 8%;
  background: #f4f8fa;
}

.con {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.mission-card {
  padding: 32px;
  background: #ffffff;
  border: 1px solid #dce6eb;
  border-left: 4px solid #b89452;
}

.card-number1,
.value-card span {
  color: #b89452;
  font-weight: 800;
}

.mission-card h2 {
  margin: 25px 0 12px;
  color: #082c46;
}

.mission-card p {
  color: #607987;
  line-height: 1.7;
}

.values {
  padding: 80px 8%;
  background: #ffffff;
}

.section-heading h2 {
  margin-top: 12px;
  color: #082c46;
  font-size: 2.4rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 35px;
}

.value-card {
  padding: 25px;
  background: #f4f8fa;
  border: 1px solid #dce6eb;
}

.value-card h3 {
  margin: 18px 0 10px;
  color: #082c46;
}

.value-card p {
  color: #607987;
  line-height: 1.6;
}

.scroll-button {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #082c46;
  color: #ffffff;
  border: 1px solid #b89452;
  border-radius: 50%;
  text-decoration: none;
  font-size: 22px;
}

.scroll-button:hover {
  background: #b89452;
}

@media (max-width: 850px) {
  .about-introduction-grid,
  .con {
    grid-template-columns: 1fr;
}

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 550px) {
  .about-hero,
  .about-introduction,
  .mission-vision,
  .values {
    padding: 60px 6%;
}

  .about-main-image {
    height: 300px;
}

  .values-grid {
    grid-template-columns: 1fr;
}
}

.about-badge {
  position: absolute;
  right: -20px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 115px;
  height: 115px;
  background: #b89452;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

.about-badge strong {
  font-size: 1.3rem;
}

.about-content p {
  margin: 25px 0 30px;
  color: #607987;
  line-height: 1.9;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  background: #b89452;
  color: #ffffff;
}

.cta-section .section-label {
  color: #082c46;
}

.cta-section h2 {
  max-width: 700px;
}

.cta-section h2 span {
  color: #082c46;
}

.cta-section p {
  max-width: 600px;
  margin-top: 20px;
  line-height: 1.8;
}

.btn-light {
  background: #082c46;
  color: #ffffff;
  white-space: nowrap;
}

.btn-light:hover {
  background: #ffffff;
  color: #082c46;
  transform: translateY(-4px);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding: 60px 8%;
  background: #031925;
  color: #ffffff;
}

.footer-logo {
  color: #b89452;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.footer-left p {
  margin: 15px 0;
  color: #b8cbd4;
}

.footer-left span {
  color: #819aa8;
  font-size: 0.85rem;
}

.footer-links,
.socials {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-links a,
.socials a {
  color: #cbdbe3;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-links a:hover,
.socials a:hover {
  color: #b89452;
}

@media (max-width: 900px) {
  .hero {
    min-height: 680px;
    padding: 100px 6% 170px;
}

  .hero-bottom-card {
    right: 6%;
    left: 6%;
    max-width: none;
}

  .services-grid,
  .about-preview,
  .stats-section,
  .site-footer {
    grid-template-columns: 1fr;
}

  .intro-section,
  .services-section,
  .stats-section,
  .about-preview,
  .cta-section {
    padding: 75px 6%;
}

  .section-top,
  .cta-section {
    align-items: flex-start;
    flex-direction: column;
}

  .about-image {
    height: 380px;
}

  .site-footer {
    gap: 30px;
}
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 3rem;
    letter-spacing: -1px;
}

  .hero-bottom-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
}

  .btn-primary,
  .btn-secondary,
  .btn-light {
    width: 100%;
}

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

  .stat-item strong {
    font-size: 2.5rem;
}

  .about-badge {
    right: 15px;
}
}

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #082C46;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
  z-index: 1000;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    padding 0.3s ease;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: rgb(255, 255, 255);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 900;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: rgb(242, 64, 64);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--nav-border);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

.scroll-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #082C46;
  border: 1px solid #654321;
  border-radius: 50%;
  font-size: 22px;
  text-decoration: none;
  z-index: 9999;
}

.scroll-button:hover {
  background: #654321;
}

main {
  flex: 1;
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}

.hero {
  max-width: 1200px;
  padding: 1.2rem 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  text-align: left;
  transform: translateY(30px);
  background-image: url(/public/marinee.jpg);
}

.hero-content {
  flex: 1;
  max-width: 600px;
  background-image: url(/public/marinee.jpg);
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image {
  width: 100%;
  max-width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 4px solid var(--btn-sec-border);
  animation: blob-morph 12s ease-in-out infinite;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease;
}

.hero-image:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent);
}

@keyframes blob-morph {
  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

  33% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
}

  66% {
    border-radius: 73% 27% 41% 59% / 40% 58% 42% 50%;
}
}

.hero-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
  color: var(--text-main);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #082C46;
  color: #FFFFFF;
  border: 1px solid var(--btn-bg);
}

.btn-primary:hover {
  background-color: var(--btn-hover);
  border-color: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px #082C46;
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(5px);
}

.btn-secondary {
  background-color: var(--btn-sec-bg);
  color: rgb(207, 50, 50);
  border: 1px solid var(--btn-sec-border);
}

.btn-secondary:hover {
  background-color: var(--btn-sec-hover);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.about-hero {
  min-height: 400px;
  width: 100%;
  color: #000000;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.about-hero,
.contact-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  

  background: linear-gradient(
    to right,
    rgba(32, 45, 88, 0.23),
    rgba(23, 107, 135, 0.5),
    rgba(184, 148, 82, 0.7)
  );
}
.about-hero .container,
.contact-hero .container {

 padding: 75px 0;
}

.about-hero h1,
.contact-hero h1 {
  max-width: 700px;
  margin: 0 0 24px;
  color: #000000;
  font-size: clamp(44px, 6vw, 70px);
  line-height: .98;
  letter-spacing: -2px;
  margin-left: 7%;
}

.hero-description {
  max-width: 650px;
  margin: 0;
  color: #000000;
  font-size: 17px;
  line-height: 1.8;
  margin-left: 7%;
}

.about-introduction {
  padding: 120px 0;
  background: #ffffff;
}

.about-introduction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  height: 550px;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: #E4E9EB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667782;
  font-size: 13px;
  letter-spacing: 2px;
}

.about-content h2 {
  font-size: 46px;
  line-height: 1.15;
  margin: 15px 0 25px;
}

.about-content p:not(.section-label) {
  color: #667782;
  line-height: 1.8;
  margin-bottom: 20px;
}

.mission-vision {
  background: #F5F7F8;
  color: #082C46;
  padding: 120px 0;
}

.mission-grid {
  width: min(1200px, 90%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #d9dee2;
  border-bottom: 1px solid #d9dee2;
}

.mission-card {
  position: relative;
  padding: 70px 60px;
  background: #ffffff;
  border: none;
  border-radius: 0;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.mission-card:first-child {
  border-right: 1px solid #d9dee2;
}

.card-number {
  display: block;
  color: #062B45;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 35px;
}

.mission-card h2 {
  color: #082C46;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 0 0 25px;
}

.mission-card p {
  color: #654321;
  font-size: 17px;
  line-height: 1.8;
  max-width: 500px;
  margin: 0;
}

.mission-card::after {
  content: "";
  display: block;
  width: 45px;
  height: 2px;
  background: #062B45;
  margin-top: 35px;
  transition: width 0.3s ease;
}

.mission-card:hover::after {
  width: 75px;
}

.mission-card:hover {
  background: #FAFBFB;
}

@media (max-width: 768px) {

  .mission-vision {
    padding: 80px 0;
}

  .mission-grid {
    grid-template-columns: 1fr;
}

  .mission-card {
    padding: 50px 30px;
}

  .mission-card:first-child {
    border-right: none;
    border-bottom: 1px solid #d9dee2;
}

  .mission-card h2 {
    font-size: 32px;
}
}

.values {
  padding: 120px 0;
  background: #F1F4F5;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 55px;
}

.section-heading h2 {
  font-size: 46px;
  line-height: 1.2;
  margin-top: 15px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  background: #ffffff;
  padding: 35px;
  min-height: 280px;
  border-top: 3px solid #082C46;
}

.value-card span {
  color: #082C46;
  font-size: 14px;
  font-weight: 700;
}

.value-card h3 {
  font-size: 24px;
  margin: 30px 0 15px;
}

.value-card p {
  color: #062B45;
  line-height: 1.7;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.section-label {
  color: #082C46;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
  padding-left: 3%;
}

.pagee {
  padding-top: 0;
  margin-top: 0;
  color: #0D4F6B;
}

.con {
  width: min(1200px, 90%);
  margin: 0 auto;
  background-color: #082C46;
}

.card-number1 {
  color: #062B45;
  font-size: 14px;
  font-weight: 700;
}

footer {
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--nav-border);
  font-size: 0.9rem;
  color: #654321;
}

.socials {
  display: flex;
  gap: 1.25rem;
}

.socials a {
  color: var(--text-muted);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  display: flex;
}

.socials a:hover {
  color: var(--text-main);
  transform: translateY(-2px);
}

.page-main {
  padding: 0;
  margin: 0;
}

.page-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  letter-spacing: -1px;
}

.section-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
  position: relative;
  display: inline-block;
}

.section-heading.mt-2 {
  margin-top: 2rem;
}

.section-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.text-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.about-grid {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.about-image-col {
  flex: 0 0 35%;
  position: sticky;
  top: 8rem;
}

.about-text-col {
  flex: 1;
}

.image-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
}

.stack-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 4px solid var(--btn-sec-border);
  transition: transform 0.3s ease;
}

.stack-img:hover {
  transform: scale(1.02);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.exp-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.exp-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: var(--nav-border);
}

.exp-year {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
  white-space: nowrap;
}

.exp-details h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  margin-top: -0.3rem;
  color: #ffffff;
}

.exp-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 1rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--nav-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.overlay-btn {
  background: var(--bg-color);
  color: var(--text-main);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(20px);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
  text-decoration: none;
}

.project-card:hover .overlay-btn {
  transform: translateY(0);
}

.overlay-btn:hover {
  background: var(--accent);
  color: #fff;
}

.project-status-overlay {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: inline-block;
}

.project-card:hover .project-status-overlay {
  transform: translateY(0);
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-main);
  line-height: 1.3;
}

.project-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  background: var(--btn-sec-border);
  border: 1px solid var(--nav-border);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border: 1px solid var(--nav-border);
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.carousel-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.resume-container {
  width: 100%;
  aspect-ratio: 8.5/11;
  max-width: 800px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.resume-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.updated-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.input-box textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  resize: vertical;
  font-family: inherit;
}

.input-box input,
.input-box textarea {
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

.input-box input:focus,
.input-box textarea:focus {
  border-color: #1d4ed8;
}

.contact-page .page-title {
  margin-bottom: 0;
}

.contact-page .section-text {
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 16px;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.text-link-card.info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.text-link-card.info-item:hover .info-icon {
  background: var(--accent);
  color: #fff;
}

.info-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--btn-sec-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.info-details h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.info-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--nav-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--nav-border);
  background: var(--bg-color);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.w-100 {
  width: 100%;
  justify-content: center;
}

.form-status {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status.success {
  color: #10b981;
}

.form-status.error {
  color: #ef4444;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
}
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
    padding-block: 4rem;
}

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

  .hero-actions {
    align-items: center;
}

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
}

@media (max-width: 768px) {
  .navbar .nav-container {
    padding: 1rem 5%;
}

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(252, 252, 252, 1);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    border: none;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 900;
}

  [data-theme="dark"] .nav-links {
    background: rgba(13, 13, 13, 1);
}

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
}

  .nav-links a {
    font-size: 2rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--text-muted);
    transition:
      color 0.3s ease,
      transform 0.3s ease;
}

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--text-main);
    transform: translateX(10px);
}

  .mobile-toggle {
    display: block;
    z-index: 999;
}

  .hero-title {
    font-size: 3rem;
}

  .hero-desc {
    font-size: 1.1rem;
}

  .hero-actions {
    flex-direction: column;
    align-items: center;
}

  .hero-image {
    max-width: 250px;
    height: 250px;
}

  footer {
    flex-direction: column-reverse;
    gap: 1.5rem;
    text-align: center;
}

  .about-grid {
    flex-direction: column;
    gap: 2rem;
}

  .about-image-col {
    position: static;
    max-width: 400px;
    margin: 0 auto;
}

  .exp-item {
    flex-direction: column;
    gap: 0.5rem;
}

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
}

.ctn {
  text-align: center;
  text-decoration: underline;
  font-size: 60px;
}

.container {
  width: 100%;
  background: #fff;
  border-radius: 6px;
  padding: 20px 60px 30px 40px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.container .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.container .content .left-side {
  width: 30%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  position: relative;
}

.content .left-side::before {
  content: '';
  position: absolute;
  height: 70%;
  width: 2px;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  background: #8A9AA3;
}

.container .content .left-side .details {
  margin: 14px;
  text-align: center;
}

.container .content .left-side .details i {
  font-size: 30px;
  color: #176B87;
  margin-bottom: 10px;
}

.container .content .left-side .details .topic {
  font-size: 18px;
  font-weight: 500;
}

.container .content .left-side .details .text-one,
.container .content .left-side .details .text-two {
  font-size: 14px;
  color: #8A9AA3;
}

.container .content .right-side {
  width: 100%;
  margin-left: 75px;
}

.content .right-side .topic-text {
  font-size: 23px;
  font-weight: 600;
  color: #176B87;
}

.right-side .input-box {
  height: 50px;
  width: 100%;
  margin: 12px 0;
}

.right-side .input-box input,
.right-side .input-box textarea {
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  background: #F0F1F8;
  border-radius: 6px;
  padding: 0 15px;
  resize: none;
}

.right-side .message-box {
  min-height: 110px;
}

.right-side .input-box textarea {
  padding-top: 6px;
}

.right-side .button {
  display: inline-block;
  margin-top: 12px;
}

.right-side .button input[type="button"] {
  color: #fff;
  font-size: 18px;
  outline: none;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  background: #176B87;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button input[type="button"]:hover {
  background: #0D5B73;
}

@media (max-width: 950px) {
  .container {
    width: 90%;
    padding: 30px 40px 40px 35px;
}

  .container .content .right-side {
    width: 75%;
    margin-left: 55px;
}
}

@media (max-width: 820px) {
  .container {
    margin: 40px 0;
    height: 100%;
}

  .container .content {
    flex-direction: column-reverse;
}

  .container .content .left-side {
    width: 100%;
    flex-direction: row;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

  .container .content .left-side::before {
    display: none;
}

  .container .content .right-side {
    width: 100%;
    margin-left: 0;
}
}

.home-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-page .hero {
  width: 100%;
  max-width: none;
  min-height: 720px;
  margin: 0;
  padding: 120px 8% 180px;
  transform: none;
  background-image: url("../images/marinee.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-page .hero-content {
  background-image: none;
}

@media (max-width: 768px) {
  .home-page .hero {
    width: 100%;
    min-height: 650px;
    padding: 100px 25px;
}
}

.right-side .button {
  margin-top: 25px;
}

.right-side .button input,
.right-side .button button {
  display: inline-block;
  padding: 14px 35px;
  border: none;
  border-radius: 30px;
  background: #087da8;
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.right-side .button input:hover,
.right-side .button button:hover {
  background: #075c7d;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(8, 125, 168, 0.25);
}

.right-side .button input:active,
.right-side .button button:active {
  transform: translateY(0);
}


/* =========================================================
   FINAL RESPONSIVE FIX
   Keeps the existing desktop design and only improves
   tablet/mobile behavior.
   ========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

@media (max-width: 992px) {
  .home-page .hero {
    width: 100%;
    max-width: none;
    min-height: 680px;
    padding: 100px 6% 150px;
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    gap: 2.5rem;
  }

  .home-page .hero-content {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: none;
  }

  .home-page .hero-title {
    max-width: 850px;
    font-size: clamp(3rem, 8vw, 5rem);
  }

  .home-page .hero-desc {
    max-width: 650px;
  }

  .home-page .hero-actions {
    justify-content: center;
  }

  .hero-image-wrapper {
    width: 100%;
  }

  .contact-grid,
  .about-introduction-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    height: 420px;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .about-introduction-grid,
  .con,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-card:first-child {
    border-right: none;
    border-bottom: 1px solid #d9dee2;
  }
}

@media (max-width: 820px) {
  .container {
    width: 90%;
    max-width: 100%;
    margin: 40px auto;
    height: auto;
    padding: 30px 35px 40px;
  }

  .container .content {
    flex-direction: column-reverse;
  }

  .container .content .left-side {
    width: 100%;
    flex-direction: row;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .container .content .left-side::before {
    display: none;
  }

  .container .content .right-side {
    width: 100%;
    margin-left: 0;
  }

  .right-side .input-box input,
  .right-side .input-box textarea {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-container,
  .navbar .nav-container {
    width: 100%;
    padding: 1rem 5%;
  }

  .home-page .hero {
    min-height: 650px;
    padding: 90px 25px 140px;
  }

  .home-page .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
    letter-spacing: -1.5px;
  }

  .home-page .hero-desc {
    font-size: 1rem;
  }

  .hero-actions {
    width: 100%;
    max-width: 420px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-light {
    max-width: 100%;
  }

  .hero-bottom-card {
    right: 5%;
    left: 5%;
    width: 90%;
    max-width: none;
  }

  .about-hero,
  .contact-hero {
    min-height: 400px;
  }

  .about-hero .container,
  .contact-hero .container {
    padding: 60px 0;
  }

  .about-hero h1,
  .contact-hero h1 {
    margin-left: 0;
    font-size: clamp(40px, 9vw, 60px);
  }

  .hero-description {
    margin-left: 0;
    font-size: 16px;
  }

  .about-introduction,
  .mission-vision,
  .values {
    padding: 80px 0;
  }

  .about-introduction-grid {
    gap: 45px;
  }

  .about-main-image {
    height: 360px;
  }

  .about-content h2 {
    font-size: clamp(32px, 8vw, 46px);
  }

  .mission-card {
    padding: 50px 30px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: auto;
  }

  .page-container {
    width: 100%;
    padding: 0 5%;
  }

  .about-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .about-image-col {
    position: static;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .about-text-col {
    width: 100%;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 2rem;
  }

  footer {
    flex-direction: column-reverse;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .home-page .hero {
    min-height: 620px;
    padding: 80px 20px 135px;
  }

  .home-page .hero-title {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .home-page .hero-desc {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .home-page .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .home-page .hero-actions .btn-primary,
  .home-page .hero-actions .btn-secondary {
    width: 100%;
    max-width: 360px;
  }

  .hero-bottom-card {
    padding: 20px;
    gap: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .stat-item strong {
    font-size: 2.3rem;
  }

  .about-badge {
    right: 15px;
    bottom: 15px;
    width: 100px;
    height: 100px;
  }

  .about-main-image,
  .about-image {
    height: 300px;
  }

  .container {
    width: 94%;
    padding: 25px 20px 30px;
  }

  .container .content .left-side .details {
    margin: 10px;
  }

  .right-side .button input,
  .right-side .button button {
    max-width: 100%;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .info-item {
    gap: 1rem;
    padding: 1.2rem;
  }

  .info-details p {
    overflow-wrap: anywhere;
  }

  .page-title {
    font-size: 2.6rem;
  }

  .ctn {
    font-size: clamp(36px, 12vw, 60px);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-bottom-card {
    position: absolute;
  }

  .about-hero h1,
  .contact-hero h1 {
    font-size: 38px;
  }

  .mission-card {
    padding: 40px 22px;
  }

  .section-heading h2,
  .section-top h2 {
    font-size: 2rem;
  }

  .form-control {
    font-size: 16px;
  }
}

/* MOBILE MENU FIX */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 71px;
        left: 0;
        width: 100%;
        background: #082C46;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 35px 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        color: white;
        font-size: 18px;
        text-decoration: none;
    }
}
@media (max-width: 768px) {
    .mobile-toggle {
        display: block !important;
        color: #ffffff !important;
        font-size: 24px;
        z-index: 1001;
    }

    .nav-links {
        z-index: 1000;
    }

    .nav-links.active {
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }
}