/* ═══════════════════════════════════════════
   VARIABLES
═══════════════════════════════════════════ */
:root {
  --teal: #2ABBCC;
  --teal-dark: #1a9aaa;
  --navy: #0D1B3E;
  --white: #FFFFFF;
  --gray-text: #555555;
  --light-bg: #F7F8FA;
  --font: 'Inter', sans-serif;
  --nav-h: 80px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ═══════════════════════════════════════════
   RESET
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-text);
  background: var(--white);
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ═══════════════════════════════════════════
   PROGRESS BAR
═══════════════════════════════════════════ */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--teal);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════════════════ */
#cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, opacity 0.25s;
  opacity: 0.7;
}
#cursor-ring.expand {
  width: 56px; height: 56px;
  opacity: 0.4;
}

/* ═══════════════════════════════════════════
   SECTION WRAPPER
═══════════════════════════════════════════ */
.section-wrapper {
  position: relative;
  padding: 100px 8vw;
}
.section-num {
  position: absolute;
  top: 60px; left: 2vw;
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 900;
  color: var(--teal);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-text);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  z-index: 1000;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(13, 27, 62, 0.08);
}
.nav-logo {
  height: 38px;
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 38px;
  width: auto;
}
.logo-white  { display: block; }
.logo-normal { display: none; }
#navbar.scrolled .logo-white  { display: none; }
#navbar.scrolled .logo-normal { display: block; }

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
#navbar.scrolled .nav-links a { color: var(--navy); }

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover {
  background: var(--teal-dark) !important;
  transform: translateY(-2px);
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
#navbar.scrolled .hamburger span { background: var(--navy); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 27, 62, 0.78) 0%, rgba(13, 27, 62, 0.48) 100%);
  z-index: 1;
}
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.particle {
  position: absolute;
  background: var(--teal);
  border-radius: 50%;
  opacity: 0.4;
  animation: float var(--dur, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.4; }
  33%       { transform: translateY(-22px) translateX(12px); opacity: 0.7; }
  66%       { transform: translateY(10px) translateX(-10px); opacity: 0.25; }
}
.hero-center {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.4rem;
}
.hero-logo {
  width: clamp(220px, 35vw, 520px);
  height: auto;
  filter: drop-shadow(0 4px 32px rgba(42, 187, 204, 0.25));
}
.hero-tagline {
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.scroll-indicator span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  position: relative;
}
.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--teal);
  border-radius: 2px;
  animation: scrollBob 1.9s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80%       { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about { background: var(--light-bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.about-hello {
  font-size: 1.1rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.about-name {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.4rem;
  line-height: 1.1;
}
.about-bio {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--gray-text);
}

/* Geometric shapes */
.shape-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
}
.shape {
  position: absolute;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
}
.shape-1 {
  width: 65%; height: 65%;
  top: 10%; left: 15%;
  background: var(--teal);
  opacity: 0.85;
  animation: morphShape 8s ease-in-out infinite;
}
.shape-2 {
  width: 50%; height: 50%;
  bottom: 8%; right: 8%;
  background: var(--navy);
  opacity: 0.75;
  animation: morphShape 10s ease-in-out infinite reverse;
}
.shape-3 {
  width: 35%; height: 35%;
  top: 8%; right: 18%;
  background: rgba(42, 187, 204, 0.35);
  animation: morphShape 6s ease-in-out infinite;
}
@keyframes morphShape {
  0%,  100% { border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%; }
  25%        { border-radius: 55% 45% 40% 60% / 60% 55% 45% 40%; }
  50%        { border-radius: 45% 55% 60% 40% / 55% 60% 40% 45%; }
  75%        { border-radius: 60% 40% 45% 55% / 40% 45% 55% 60%; }
}

/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 3rem auto 0;
}
.service-card {
  padding: 2.5rem 2rem;
  border: 1.5px solid rgba(42, 187, 204, 0.15);
  border-left: 4px solid transparent;
  border-radius: 16px;
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition), border-left-color var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(42, 187, 204, 0.15);
  border-left-color: var(--teal);
}
.service-icon {
  width: 48px; height: 48px;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--gray-text);
}

/* ═══════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════ */
.projects { background: var(--light-bg); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: none;
}
.project-img {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img { transform: scale(1.05); }
.project-placeholder-text {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 0.1em;
  -webkit-user-select: none;
  user-select: none;
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 62, 0.93) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transform: translateY(20%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}
.project-card:hover .project-overlay {
  transform: translateY(0);
  opacity: 1;
}
.project-category {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  background: var(--teal);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  width: fit-content;
}
.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.project-year {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════
   CLIENTS
═══════════════════════════════════════════ */
.clients { background: var(--white); }
.clients-title { min-height: 3rem; }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 3rem auto 0;
}
.client-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  border: 1.5px solid rgba(42, 187, 204, 0.15);
  border-radius: 12px;
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.client-logo:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 24px rgba(42, 187, 204, 0.12);
  transform: translateY(-4px);
}
.client-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.06em;
}
.client-sub {
  font-size: 0.72rem;
  color: var(--gray-text);
  margin-top: 0.3rem;
  opacity: 0.65;
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact {
  background: var(--navy);
  color: var(--white);
}
.contact .section-title { color: var(--white); }
.contact-sub {
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 1.05rem;
  margin-bottom: 4rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.contact-icon {
  width: 36px; height: 36px;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.contact-item h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.contact-item a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--teal); }

/* Email ripple */
.email-btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background var(--transition);
}
.email-btn:hover { background: rgba(42, 187, 204, 0.1); }
.ripple-container { position: absolute; inset: 0; pointer-events: none; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(42, 187, 204, 0.28);
  transform: scale(0);
  animation: rippleAnim 0.65s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* Social */
.social-links { display: flex; gap: 1rem; }
.social-link {
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.social-link:hover {
  border-color: var(--teal);
  background: rgba(42, 187, 204, 0.1);
  transform: translateY(-3px);
}
.social-link svg { width: 18px; height: 18px; color: var(--white); }

/* Footer */
.footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.28);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
  .section-wrapper { padding: 70px 6vw; }

  /* Navbar */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75vw; height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right var(--transition);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--white) !important; font-size: 1.15rem; }
  .nav-cta { background: var(--teal) !important; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .shape-container { max-width: 240px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }
  .project-overlay { transform: translateY(0) !important; opacity: 1 !important; }

  /* Clients */
  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 3rem; }
  .services-grid { gap: 1.5rem; }
}
