:root {
  --white: #e9e9e9;
  --black: #141414;
  --background: #141414;
  --blue: #097dd3;
}

/* ========================================================
   Reset & Base
   ======================================================== */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}


/* ========================================================
   Global Styles
   ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Helvetica:wght@400;700&display=swap');

/* ========================================================
   Heading Styles
   ======================================================== */

body {
  background-color: var(--background);
  color: var(--white);
  margin: 0;
  padding: 0;
}

.main-heading {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    width: 100vw;
    margin: 0;
    color: var(--white);
    box-sizing: border-box;
    white-space: nowrap; /* Prevents wrapping */
    font-size: calc(18vw + 2rem); /* Increased responsive font size */
    line-height: 1;
}

/* On mobile, allow wrapping and reduce font size */
@media (max-width: 600px) {
  .main-heading {
    white-space: normal;
    font-size: 2.5rem;
    word-break: break-word;
  }
}

/* ======================= Banner ======================= */

.banner-container {
  width: 100%;
  overflow: hidden;
  background: var(--background);
  padding: 64px 0 10px 0; /* Increased top padding for more space below nav bar */
}

.scrolling-banner {
  display: flex;
  align-items: center;
  width: 100%;
  white-space: nowrap;
}

.scrolling-banner span {
  display: inline-block;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: calc(10vw + 2rem);
  color: var(--white);
  animation: scroll-left 100s linear infinite; /* Slowed down */
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* On mobile, reduce font size */
@media (max-width: 600px) {
  .scrolling-banner span {
    font-size: 5.5rem;
  }
}



/* ======================= Floating Navigation ======================= */

.floating-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  z-index: 1000;
  background: var(--background); /* Use your blue as nav bar background */
  border-radius: 0;
  padding: 18px 32px 8px 32px;
box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  min-height: 48px;
  transition: top 0.45s cubic-bezier(.4,0,.2,1); /* Smooth slide transition */
}

.floating-nav a {
  color: var(--white);
  text-decoration: none;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 8px 24px;
  border-radius: 0;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  display: inline-block;
}

.floating-nav a::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.3s cubic-bezier(.4,0,.2,1);
}

.floating-nav a:hover,
.floating-nav a:focus {
  color: var(--white);
}

.floating-nav a:hover::after,
.floating-nav a:focus::after {
  width: 100%;
}

/* Remove button styles from nav */
.floating-nav button {
  all: unset;
  display: none;
}

.floating-nav.hide {
  top: -120px;        /* Move fully out of view (adjust if needed) */
  opacity: 1;
  pointer-events: none;
}

/* ======================= Smooth Scroll ======================= */

html {
  scroll-behavior: smooth;
}

/* ======================= Section Scroll Margins ======================= */

#home,
#portfolio,
#about,
#contact {
  scroll-margin-top: 80px; /* Adjust to your nav bar height */
}

/* ======================= Footer ======================= */

.site-footer {
  width: 100%;         /* Changed from 100vw */
  background: var(--background);
  color: #fff;
  padding: 48px 48px 32px 48px; /* Adjusted right padding from 48pc to 48px */
  display: flex;
  flex-direction: column;
  align-items: left;
  margin-top: 64px;
}

.footer-brand {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 8rem;
  letter-spacing: 0.0em;
  line-height: 1;      /* Adjust this value for more/less line spacing */
  margin-bottom: 32px;
  display: flex;
  align-items: left;
}

.footer-links {
  display: flex;
  flex-direction: row;
  gap: 64px;
  justify-content: left;
  align-items: flex-start;
  flex-wrap: wrap;
}

.site-footer nav,
.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer nav a,
.footer-socials a {
  color: #fff;
  text-decoration: none;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  position: relative; /* Needed for the underline effect */
  transition: color 0.2s;
}

.site-footer nav a::after,
.footer-socials a::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s cubic-bezier(.4,0,.2,1);
}

.site-footer nav a:hover,
.footer-socials a:hover {
  color: #fff; /* Keep text white on hover */
}

.site-footer nav a:hover::after,
.footer-socials a:hover::after {
  width: 100%;
}



/* ======================= shark-fin ======================= */


.shark-fin {
  position: absolute;
  width: 320px;    /* Slightly smaller than 400px */
  height: 430px;   /* Adjusted proportionally */
  left: 0;
  top: 5%;         /* Start at a random value within 0-10% */
  z-index: 4;
  animation: swim-horizontal 18s linear infinite;
}

@keyframes swim-horizontal {
    0% {
        left: -350px;
        top: 0%;
        transform: scaleX(1);
    }
    10% {
        top: 0%;
    }
    20% {
        top: 0%;
    }
    30% {
        top: 0%;
    }
    40% {
        top: 0%;
    }
    50% {
        left: 50vw;
        top: 0%;
        transform: scaleX(1);
    }
    60% {
        top: 0%;
    }
    70% {
        top: 0%;
    }
    80% {
        top: 0%;
    }
    90% {
        top: 0%;
    }
    100% {
        left: 100vw;
        top: 0%;
        transform: scaleX(1);
    }
}

.ocean {
  position: relative;
  width: 100%;         /* Changed from 100vw */
  height: 200px;
  overflow: hidden;
/*background: linear-gradient(to bottom, #232323 50%, var(--background) 100%);*/
  margin: 0 auto;
}

/* ======================= Homepage ======================= */

.section-divider {
  width: 100%;
  height: 5px;
  background: var(--white);
  border-radius: 2px;
  border: none;
  display: block;
  margin: 20px auto; /* Center the line with space above and below */
}

.intro-section {
  color: var(--white);
  max-width: 900px;      /* Match the divider */
  margin: 48px auto;     /* Center the section */
  padding: 0 40px;       /* Small gap on each side */
  box-sizing: border-box;
}

.intro-content {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 32px;
  max-width: 1400px;
  margin-left: 40px;   /* 40px gap from the left */
  margin-right: auto;
  margin-bottom: 0;
}

.intro-content h2 {
  margin: 0;
  font-size: 3.5rem;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0.01em;
  line-height: 1.2;
  min-width: 200px;
 /* max-width: 400px; /* Increased from 220px to 400px */
  text-align: left;
}

.intro-content p {
  font-size: 1.25rem;
  font-family: Helvetica, Arial, sans-serif;
  margin: 0 0 0 24px; /* 24px space between h2 and p */
  text-align: left;
  align-self: top;
  max-width: 700px;
}

/* Responsive for mobile */
@media (max-width: 600px) {
  .section-divider {
    width: calc(100vw);
    margin: 32px auto;
  }
  .intro-content {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 16px;
    margin-right: 0;
    gap: 16px;
  }
}


/* ======================= Work ======================= */

.work-section {
  margin: 64px auto 0 auto;
  padding: 0 40px;
  color: var(--white);
}

.work-heading {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 32px;
  width: 100%;         /* Changed from 100vw */
  max-width: 100%;     /* Changed from 100vw */
  padding: 0 40px;
  box-sizing: border-box;
  margin: 0 auto;
}

.work-item {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0; /* No rounded corners */
  box-shadow: none;
  background: none;
  text-decoration: none;
}

.work-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
  transition: filter 0.2s;
}

.work-item:hover img {
  filter: brightness(0.7); /* Slightly darker on hover */
}

/* Responsive */
@media (max-width: 700px) {
  .work-section {
    padding: 0 12px;
  }
  .work-heading {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }
  .work-grid {
    gap: 16px;
  }
  .work-item img {
    height: 120px;
  }
  .work-item span {
    padding: 12px 12px 12px 12px;
    font-size: 1rem;
  }
}

/* Responsive: stack to 1 column on mobile */
@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 18px;
    padding: 0 12px;
  }
}

/* ======================= About ======================= */

.about-section {
  width: 100%;
  background: var(--background);
  color: var(--white);
  padding: 64px 0 64px 0;
  display: flex;
  justify-content: center;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  /* Remove max-width so it matches .work-section */
  width: 100%;
  padding: 0 40px;      /* Same as .work-section */
  box-sizing: border-box;
  margin: 0 auto;
}

.about-photo {
  width: 100%;
  aspect-ratio: 21/9;
  height: auto;
  max-width: none;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  background: #222;
  display: block;
  margin: 0 auto;
}

.about-text {
  width: 100%;
  text-align: left;
  margin-bottom: 16px;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 18px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0.01em;
}

.about-text p {
  font-size: 1.25rem;
  line-height: 1.6;
  font-family: Helvetica, Arial, sans-serif;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 0 16px;
  }
  .about-photo {
    width: 180px;
    height: 180px;
  }
  .about-text h2 {
    font-size: 1.5rem;
  }
  .about-text p {
    font-size: 1rem;
  }
}

