/* Global Styles */
:root {
  /* Core palette */
  --bg: #051819;
  --bg-alt: #000000;

  --state-bar-height: 64px;

  --fg: #f1f3f4;
  --fg-90: rgba(241, 243, 244, 0.9);
  --fg-80: #9fb3ad;
  --fg-70: rgba(159, 179, 173, 0.85);
  --fg-60: rgba(159, 179, 173, 0.6);

  /* Accents */
  --accent: #2cf8ff;
  --accent-2: #18ffb0;
  --accent-30: rgba(44, 248, 255, 0.3);

  /* Cursor glow colors */
  --glow-primary: rgba(44, 248, 255, 0.14);
  --glow-secondary: rgba(24, 255, 176, 0.09);
  --glow-outer: rgba(44, 248, 255, 0.04);

  /* Shadows / surfaces */
  --bg-80: rgba(5, 24, 25, 0.8);
  --bg-60: rgba(5, 24, 25, 0.6);
  --bg-30: rgba(5, 24, 25, 0.3);
  --shadow: rgba(0, 0, 0, 0.5);

  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
.section-title,
.timeline-title {
  font-family: var(--font-display);
}

p {
  letter-spacing: 0.002em;
}

/* -------------------------------------------------------------------------- */
/* Animations (site-wide)                                                     */
/* -------------------------------------------------------------------------- */

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUpScale {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes textGlowPulse {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(44, 248, 255, 0);
  }
  50% {
    text-shadow: 0 0 12px rgba(44, 248, 255, 0.45),
      0 0 22px rgba(44, 248, 255, 0.22);
  }
}

/* Initial load: state bar + hero content */
.state-bar {
  opacity: 0;
  transform: translateY(-10px);
}

body.is-loaded .state-bar {
  animation: fadeDown 680ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-text > * {
  opacity: 0;
  transform: translateY(12px);
}

body.is-loaded .hero-text > * {
  animation: fadeUp 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.is-loaded .hero-text > *:nth-child(1) {
  animation-delay: 140ms;
}

body.is-loaded .hero-text > *:nth-child(2) {
  animation-delay: 260ms;
}

body.is-loaded .hero-text > *:nth-child(3) {
  animation-delay: 380ms;
}

.hero-image img {
  opacity: 0;
  transform: translateY(14px) scale(0.992);
}

body.is-loaded .hero-image img {
  animation: fadeUpScale 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: 220ms;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes revealUpScale {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Scroll reveal: applied via JS by toggling .reveal + .is-revealed.
   Uses keyframes so it can replay on every re-entry. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(2px);
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
  will-change: opacity, transform, filter;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  animation: revealUp 640ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.reveal.reveal--scale.is-revealed {
  animation-name: revealUpScale;
}

@media (prefers-reduced-motion: reduce) {
  body {
    scroll-behavior: auto;
  }

  .state-bar,
  .hero-text > *,
  .hero-image img,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }

  .state-link:hover {
    animation: none !important;
    text-shadow: none !important;
    transform: none !important;
  }
}

/* Background cursor glow (behind content) */
.cursor-glow {
  position: fixed;
  left: var(--cursor-x, -999px);
  top: var(--cursor-y, -999px);
  width: 980px;
  height: 980px;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  filter: blur(96px);

  background: radial-gradient(
      circle at center,
      var(--glow-primary) 0%,
      rgba(44, 248, 255, 0.08) 45%,
      transparent 78%
    ),
    radial-gradient(
      circle at center,
      var(--glow-secondary) 0%,
      var(--glow-outer) 60%,
      transparent 88%
    );
}

.cursor-glow.is-visible {
  opacity: 0.6;
  transform: translate3d(-50%, -50%, 0) scale(1.25);
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

.state-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.state-bar {
  width: 100%;

  height: 64px;
  padding: 12px 24px;
  font-size: 1em;
  border: none;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8), 0 4px 15px rgba(0, 0, 0, 0.6),
    0 0 1px rgba(44, 248, 255, 0.2);
  transition: all 0.3s ease;
  outline: none;
}

/* State bar navigation */
.state-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.state-nav::-webkit-scrollbar {
  display: none;
}

.state-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg-80);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  text-shadow: none;
  will-change: text-shadow, transform;
  transition: color 0.2s ease, text-shadow 0.25s ease, transform 0.25s ease;
}

.state-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
  text-shadow: 0 0 10px rgba(44, 248, 255, 0.28),
    0 0 18px rgba(44, 248, 255, 0.14);
  animation: textGlowPulse 1200ms ease-in-out infinite;
}

.state-link.active {
  color: var(--accent);
}

.state-bar::placeholder {
  color: rgba(241, 243, 244, 0.5);
}

/* Social Icons - Fixed Top Right */
.social-icons {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 0 0 auto;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 24px;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* Scroll-to-top button - Fixed Bottom Right */
.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;

  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(44, 248, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  color: var(--accent);

  font-size: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8), 0 4px 15px rgba(0, 0, 0, 0.6),
    0 0 1px rgba(44, 248, 255, 0.2);

  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 0.3s ease,
    border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

/* Hero actions row (Learn More + WhatsApp) */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Inline variant: same look as scroll button, but not fixed/hidden */
.scroll-top-btn.scroll-top-btn--inline {
  position: static;
  right: auto;
  bottom: auto;

  opacity: 1;
  transform: none;
  pointer-events: auto;

  width: auto;
  min-width: 52px;
  height: 52px;
  padding: 0 18px;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;

  text-decoration: none;
}

.scroll-top-btn.scroll-top-btn--inline i {
  font-size: 22px;
}

.scroll-top-btn.scroll-top-btn--inline .whatsapp-label {
  color: var(--accent);
}

.scroll-top-btn.scroll-top-btn--inline:hover .whatsapp-label {
  color: var(--accent-2);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8), 0 6px 20px rgba(44, 248, 255, 0.4),
    0 0 20px rgba(44, 248, 255, 0.3);
  color: var(--accent-2);
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(44, 248, 255, 0.5);
}

.scroll-top-btn:focus {
  outline: none;
}

/* Hero Section */
.hero {
  background: var(--bg);
  text-align: center;
  padding: 0 20px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: stretch;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 16px;
}

.hero-degree {
  margin-top: -6px;
  color: var(--fg-80);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0.02em;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: 100vh;
  max-width: none;
  max-height: 100vh;
  border-radius: 0;
  border: none;
  box-shadow: none;
  object-fit: cover;
  object-position: center;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  margin-bottom: 16px;
  color: var(--fg);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: none;
}

.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--fg-80);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 30px;
}

/* Call to Action Button */
.cta-button {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(44, 248, 255, 0.2);
  color: var(--accent);
  height: 52px;
  padding: 0 38px;
  font-size: 1.15em;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8), 0 4px 15px rgba(0, 0, 0, 0.6),
    0 0 1px rgba(44, 248, 255, 0.2);
  transition: all 0.3s ease;
  outline: none;
}

.cta-button:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8), 0 6px 20px rgba(44, 248, 255, 0.4),
    0 0 20px rgba(44, 248, 255, 0.3);
  color: var(--accent-2);
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(44, 248, 255, 0.5);
  transform: translateY(-2px);
}

/* Section Styles */
.section {
  padding: 24px 20px 76px;
  min-height: 100vh;
  background: var(--bg);
}

/* Prevent fixed state bar from covering headings when using anchor navigation */
.hero,
.section {
  scroll-margin-top: var(--state-bar-height);
}

.section-dark {
  background: var(--bg);
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 30px;
  color: var(--accent);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* About Section */
#about {
  background: var(--bg);
}

#about p {
  font-size: 1.2em;
  line-height: 1.8;
  text-align: center;
  color: var(--fg-80);
  max-width: 800px;
  margin: 0 auto;
}

/* Section lead text */
.section-lead {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
  color: var(--fg-80);
  font-size: 1.1em;
}

/* Skills */
.skills {
  margin-top: 34px;
  display: grid;
  gap: 35px;
}

.skills-row {
  position: relative;
}

.skills-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 54px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 54px;
  scroll-padding-right: 54px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.skills-track::-webkit-scrollbar {
  display: none;
}

.skills-track:focus {
  outline: none;
}

@keyframes skillHoverLift {
  0% {
    transform: translateY(0) scale(1);
  }
  60% {
    transform: translateY(-6px) scale(1.03);
  }
  100% {
    transform: translateY(-4px) scale(1.02);
  }
}

.skill-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;

  border: none;
  background: var(--bg-60);
  border-radius: 18px;
  padding: 16px 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  transition: box-shadow 220ms ease;

  width: 100%;
  min-height: 150px;
  scroll-snap-align: start;
}

.skill-card:hover {
  animation: skillHoverLift 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.48), 0 0 26px rgba(44, 248, 255, 0.18);
}

.skill-icon {
  color: var(--accent);
  line-height: 1;
}

.skill-icon i {
  font-size: 26px;
}

.skill-title {
  color: var(--fg);
  font-size: 1em;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

@media (max-width: 980px) {
  .skills-track {
    padding: 4px 50px;
    scroll-padding-left: 50px;
    scroll-padding-right: 50px;
  }
}

@media (max-width: 768px) {
  .skills-track {
    padding: 4px 44px;
    scroll-padding-left: 44px;
    scroll-padding-right: 44px;
  }
}

/* Timeline (Experience/Education) */
.timeline {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.timeline-item {
  border: 1px solid var(--accent-30);
  background: var(--bg-60);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.timeline-meta {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
  text-align: center;
}

.timeline-title {
  color: var(--accent);
  font-size: 1.35em;
  font-weight: 800;
}

.timeline-subtitle {
  color: var(--fg);
  font-weight: 650;
}

.timeline-dates {
  color: var(--fg-60);
  font-size: 0.95em;
}

.timeline-desc {
  color: var(--fg-80);
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

/* Certifications */
.certs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.cert-card {
  border: 1px solid var(--accent-30);
  background: var(--bg-60);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  text-align: center;
}

.cert-title {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2em;
  margin-bottom: 6px;
}

.cert-subtitle {
  color: var(--fg);
  font-weight: 650;
  margin-bottom: 2px;
}

.cert-dates {
  color: var(--fg-60);
  font-size: 0.95em;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portfolio-item {
  background: var(--bg-alt);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 20px var(--shadow);
  transition: all 0.25s ease;
  border: 1.5px solid var(--accent-30);
  text-decoration: none;
  color: inherit;
}

.portfolio-item h3 {
  color: var(--fg);
  font-size: 1.8em;
  margin-bottom: 15px;
}

.portfolio-item p {
  color: var(--fg-80);
  font-size: 1.1em;
  line-height: 1.6;
}

#portfolioIntro {
  text-align: center;
  font-size: 1.2em;
  color: var(--fg-80);
  margin-bottom: 20px;
}

/* Projects Carousel (3 per screen + scroll like photo gallery) */
.projects {
  margin-top: 40px;
}

.projects-carousel {
  position: relative;
}

.projects-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 54px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 54px;
  scroll-padding-right: 54px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects-track::-webkit-scrollbar {
  display: none;
}

.projects-track:focus {
  outline: none;
}

/* Keep project cards consistently sized and "fixed" within viewport */
.project-card {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 280px;
  max-width: 420px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 360px;
}

/* Blogs carousel: 2 cards per screen */
.projects--blogs .project-card {
  flex-basis: calc((100% - 18px) / 2);
}

/* Project hover: match CTA button hover */
.portfolio-item.project-card:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8), 0 6px 20px rgba(44, 248, 255, 0.4),
    0 0 20px rgba(44, 248, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(44, 248, 255, 0.5);
  transform: translateY(-2px);
}

.portfolio-item.project-card:hover .project-thumb {
  border-color: rgba(44, 248, 255, 0.5);
}

.project-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1.5px solid var(--accent-30);
  background: rgba(0, 0, 0, 0.15);
}

@media (max-width: 980px) {
  .project-card {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 768px) {
  .projects-track {
    padding: 4px 44px;
    scroll-padding-left: 44px;
    scroll-padding-right: 44px;
  }

  .project-card {
    flex-basis: 85%;
    min-height: 340px;
  }

  .project-thumb {
    height: 150px;
  }
}

/* Photo Gallery */
#gallery.section .container {
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}

.photo-gallery {
  margin-top: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.photo-gallery-title {
  text-align: center;
  font-size: 1.6em;
  color: var(--fg);
  margin-bottom: 18px;
}

.photo-gallery-carousel {
  position: relative;
}

.photo-gallery-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 54px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 54px;
  scroll-padding-right: 54px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;

  /* Hide scrollbar (keep scrolling) */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.photo-gallery-track:focus {
  outline: none;
}

.photo-gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;

  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(44, 248, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  color: var(--accent);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8), 0 4px 15px rgba(0, 0, 0, 0.6),
    0 0 1px rgba(44, 248, 255, 0.2);

  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease,
    color 0.3s ease, opacity 0.2s ease;
}

.gallery-arrow--left {
  left: 6px;
}

.gallery-arrow--right {
  right: 6px;
}

.gallery-arrow:hover {
  color: var(--accent-2);
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(44, 248, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8), 0 6px 20px rgba(44, 248, 255, 0.35),
    0 0 18px rgba(44, 248, 255, 0.25);
}

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.photo-card {
  display: block;
  text-decoration: none;
  border-radius: 15px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1.5px solid var(--accent-30);
  box-shadow: 0 8px 20px var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;

  flex: 0 0 auto;
  width: clamp(240px, 70vw, 420px);
  scroll-snap-align: start;
}

.photo-card img {
  width: 100%;
  height: 240px;
  display: block;
  object-fit: cover;
}

.photo-card:hover {
  transform: translateY(-8px);
  border-color: rgba(44, 248, 255, 0.5);
  box-shadow: 0 12px 30px var(--shadow);
}

.photo-gallery-dots {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.photo-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: var(--fg-60);
  padding: 0;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  opacity: 0.75;
}

.photo-dot.is-active {
  background: var(--accent);
  opacity: 1;
}

.photo-dot:hover {
  opacity: 1;
}

.photo-dot:focus {
  outline: none;
}

/* Contact Section */
#contact {
  background: var(--bg);
}

.contact-actions {
  max-width: 920px;
  margin: 0 auto 22px;
  display: flex;
  justify-content: flex-end;
}

.contact-info {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-alt);
  padding: 44px 48px;
  border-radius: 15px;
  box-shadow: 0 8px 20px var(--shadow);
  border: 1.5px solid var(--accent-30);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  align-items: start;
}

.contact-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--accent-30);
  background: var(--bg-30);
  backdrop-filter: blur(10px);
}

.contact-item i {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  margin-top: 3px;
}

.contact-label {
  display: block;
  color: var(--fg-60);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.contact-content a,
.contact-content span {
  color: var(--fg-80);
  font-size: 1.05rem;
  line-height: 1.45;
  word-break: break-word;
}

.contact-info strong {
  color: var(--fg);
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-info a:hover {
  color: var(--accent-2);
}

@media (max-width: 768px) {
  .contact-info {
    padding: 26px 18px;
  }

  .contact-actions {
    justify-content: center;
    margin-bottom: 18px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  background: var(--bg);
  color: var(--fg-80);
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--accent-30);
}

footer p {
  font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .state-bar {
    padding: 10px 14px;
  }

  .section {
    padding-top: 20px;
    padding-bottom: 64px;
  }

  .state-nav {
    gap: 8px;
  }

  .state-link {
    padding: 7px 10px;
    font-size: 0.95em;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-text {
    align-items: center;
    text-align: center;
  }

  .hero-image img {
    width: 100%;
    height: 65vh;
    max-width: none;
  }

  .social-icons {
    top: 16px;
    right: 16px;
    gap: 12px;
  }

  .search-bar-container {
    top: 16px;
    left: 16px;
    gap: 6px;
  }

  .search-bar {
    width: 150px;
    padding: 10px 12px;
    font-size: 0.95em;
  }

  .search-btn {
    width: 36px;
    height: 36px;
    font-size: 1em;
  }

  .social-icon {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1.2em;
  }

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

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
