* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Only apply custom cursor on devices with a precise mouse (Desktops/Laptops) */
@media (pointer: fine) and (hover: hover) {
  * {
    cursor: url('./assets/cursor.svg'), auto !important;
  }
}

body {
  background-color: #1a1a1a;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

@keyframes hueShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes textColorShift {
  0% { color: #E91D4F; }
  50% { color: #FAB01E; }
  100% { color: #E91D4F; }
}

.webgl {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  animation: hueShift 30s infinite linear;
}

.scroll-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 5rem;
  text-align: left;
}

.first-view {
  /* Center exactly */
}

.first-view .content {
  transform: translateY(-25vh);
}

.second-view, .third-view, .fourth-view, .fifth-view {
  /* Some spacing to make scroll obvious */
  margin-top: 50vh; 
  margin-bottom: 50vh;
}

.second-view .content > p:first-of-type:not(.desc), .third-view .content > p:first-of-type:not(.desc), .fourth-view .content > p:first-of-type:not(.desc) {
  font-size: 1.75rem;
}

.logo {
  width: 500px; /* Reduced from 800px to find the perfect middle ground */
  max-width: 100%; /* Ensures it still shrinks on mobile screens */
  margin-bottom: 1.5rem;
  animation: hueShift 30s infinite linear;
}

h1, h2, h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1 {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: 0.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 6rem; /* Significantly increased for visual impact */
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  font-size: 1.25rem;
  font-weight: 300;
  color: #ffffff;
  max-width: 600px;
  line-height: 1.6;
}

.header-subtitle {
  font-size: 1.75rem;
  color: #ffffff;
}

.author-signature {
  font-family: 'Shadows Into Light', cursive;
  font-size: 1.5rem;
  color: #ffffff;
  margin-top: -0.25rem;
  opacity: 0.4; /* Reduced from 0.8 to make it significantly darker */
}

/* Expertise Grid Layout */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 4rem;
  width: 100%;
  max-width: 700px;
}

.expertise-column h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.expertise-column h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.expertise-column h3 a:hover {
  animation: textColorShift 1.5s infinite linear;
}

.expertise-column ul {
  list-style: none;
  padding: 0;
}

.expertise-column ul li, p.desc {
  font-size: 1.1rem;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  position: relative;
}

.expertise-column ul li {
  padding-left: 1rem;
}

/* Custom minimal bullet points */
.expertise-column ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #ffffff;
  font-weight: 300;
}

/* Contact CTA */
.contact-cta {
  margin-top: 6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.cta-subtitle {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.cta-email {
  font-size: 6.8vw; /* Precisely calculated to span 23 characters across the screen padding */
  font-weight: 300;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.cta-email:hover {
  opacity: 0.8;
  animation: textColorShift 1.5s infinite linear;
}

.footer-copy {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  padding: 0 5rem; /* Match the .view padding */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo {
  max-width: 120px;
  opacity: 0.8;
  animation: hueShift 30s infinite linear;
}

.footer-copy p {
  font-size: 0.85rem;
  font-weight: 300;
  color: #ffffff;
  opacity: 0.4;
  letter-spacing: 0.05rem;
  margin: 0;
  max-width: none;
}

@media (max-width: 1024px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .view {
    padding: 2rem 1.5rem; /* Drastically reduce padding on mobile to widen the content area */
  }

  h1 { font-size: 3rem; }
  h2 { font-size: 3.5rem; } /* Increased for mobile as well */
  p { 
    font-size: 1rem; 
    line-height: 1.3;
    letter-spacing: 0;
  }
  
  /* Removed the overly specific .first-view paragraph rule that was overriding the subtitle */
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .header-subtitle,
  .second-view .content > p:first-of-type:not(.desc),
  .third-view .content > p:first-of-type:not(.desc),
  .fourth-view .content > p:first-of-type:not(.desc) {
    font-size: 1.75rem; 
  }

  .cta-email {
    font-size: 7.2vw; /* Reduced from 8.5vw so it perfectly fits left-to-right on mobile screens */
    white-space: nowrap;
  }
  
  .footer-copy {
    padding: 0 1.5rem; /* Match mobile padding */
  }
}
