/* ============================================================
   WEBITEE — Web Design Agency
   Color Palette:
     --blue-100: #00a6fb   (bright blue)
     --blue-200: #0582ca   (medium blue)
     --blue-300: #006494   (dark blue)
     --blue-400: #003554   (very dark blue)
     --blue-500: #051923   (near-black)
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-100: #00a6fb;
  --blue-200: #0582ca;
  --blue-300: #006494;
  --blue-400: #003554;
  --blue-500: #051923;

  --white: #ffffff;
  --gray-100: #f0f4f8;
  --gray-200: #d9e2ec;
  --gray-300: #9fb3c8;
  --gray-400: #627d98;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --shadow: 0 4px 30px rgba(5, 25, 35, 0.12);
  --shadow-lg: 0 20px 60px rgba(5, 25, 35, 0.18);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--gray-100);
  background: var(--blue-500);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
}

.highlight {
  color: var(--blue-100);
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue-100);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--blue-100);
  color: var(--blue-500);
  padding: 0.9rem 2.2rem;
}

.btn-primary:hover {
  background: var(--blue-200);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 166, 251, 0.35);
}

.btn-outline {
  border: 2px solid var(--blue-100);
  color: var(--blue-100);
  padding: 0.8rem 2.2rem;
  background: transparent;
}

.btn-outline:hover {
  background: var(--blue-100);
  color: var(--blue-500);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.6rem 1.6rem;
  font-size: 0.85rem;
  background: var(--blue-100);
  color: var(--blue-500);
}

.btn-small:hover {
  background: var(--white);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ---------- NAVIGATION ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(5, 25, 35, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.8rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}

.logo span {
  color: var(--blue-100);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-200);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-100);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--blue-100);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--blue-100);
  color: var(--blue-500) !important;
  padding: 0.55rem 1.5rem;
  border-radius: 50px;
  font-weight: 600 !important;
}

.btn-nav::after {
  display: none !important;
}

.btn-nav:hover {
  background: var(--blue-200) !important;
  color: var(--blue-500) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-500) 0%, var(--blue-400) 50%, var(--blue-300) 100%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Canvas particle network */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Subtle grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 166, 251, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 166, 251, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
}

/* Floating gradient orbs */
.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 166, 251, 0.25), transparent 70%);
  top: -15%;
  right: -5%;
  animation: orbFloat1 8s ease-in-out infinite;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(5, 130, 202, 0.2), transparent 70%);
  bottom: -5%;
  left: -5%;
  animation: orbFloat2 10s ease-in-out infinite;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 166, 251, 0.15), transparent 70%);
  top: 50%;
  left: 45%;
  animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-40px, 30px) scale(1.08); }
  66%      { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -40px) scale(1.1); }
  66%      { transform: translate(-20px, 20px) scale(0.92); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, -30px) scale(1.15); }
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: shapePulse 6s ease-in-out infinite alternate;
}

@keyframes shapePulse {
  0%   { opacity: 0.08; transform: scale(1); }
  100% { opacity: 0.18; transform: scale(1.1); }
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--blue-100);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--blue-200);
  bottom: 10%;
  left: -8%;
  animation-delay: 2s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: var(--blue-100);
  top: 40%;
  left: 50%;
  animation-delay: 4s;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--blue-100);
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-sub {
  max-width: 540px;
  font-size: 1.1rem;
  color: var(--gray-300);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  gap: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-100);
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-100);
}

.stat p {
  font-size: 0.85rem;
  color: var(--gray-300);
  margin-top: 0.15rem;
}

/* ---------- ABOUT ---------- */
.about {
  padding: 7rem 0;
  background: var(--blue-500);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--gray-300);
  margin-bottom: 1.25rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(0, 166, 251, 0.04);
  border: 1px solid rgba(0, 166, 251, 0.08);
  transition: var(--transition);
}

.value-card:hover {
  background: rgba(0, 166, 251, 0.08);
  border-color: rgba(0, 166, 251, 0.15);
  transform: translateX(4px);
}

.value-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 166, 251, 0.1);
  color: var(--blue-100);
}

.value-icon svg {
  width: 22px;
  height: 22px;
}

.value-card h3 {
  margin-bottom: 0.35rem;
  color: var(--white);
  font-size: 1.05rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.6;
}

/* ---------- SERVICES ---------- */
.services {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--blue-500) 0%, var(--blue-400) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.service-card {
  position: relative;
  padding: 2.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-100), var(--blue-200));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  background: rgba(0, 166, 251, 0.06);
  border-color: rgba(0, 166, 251, 0.12);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-100);
  background: rgba(0, 166, 251, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--gray-300);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- WORK / PORTFOLIO ---------- */
.work {
  padding: 7rem 0 5rem;
  background: var(--blue-500);
  overflow: hidden;
}

.section-desc {
  color: var(--gray-300);
  font-size: 1rem;
  margin-top: 1rem;
}

/* Showcase Card — shared */
.showcase-card {
  position: relative;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem;
  transition: var(--transition);
  margin-bottom: 2.5rem;
}

.showcase-card:hover {
  border-color: rgba(0, 166, 251, 0.18);
  box-shadow: 0 0 60px rgba(0, 166, 251, 0.08);
}

/* Featured card — project 1 */
.showcase-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
}

/* Duo cards — projects 2 & 3 */
.showcase-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.showcase-duo .showcase-card {
  margin-bottom: 0;
}

/* Browser mockup */
.showcase-browser {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--blue-400);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99),
    box-shadow 0.4s ease;
  will-change: transform;
}

.showcase-browser:hover {
  box-shadow: 0 20px 60px rgba(0, 166, 251, 0.15),
    0 8px 30px rgba(0, 0, 0, 0.3);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.browser-dot:first-child { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #ffbd2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-url {
  margin-left: 10px;
  font-size: 0.72rem;
  color: var(--gray-300);
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 12px;
  border-radius: 6px;
}

.browser-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.browser-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  border: none;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
  transition: pointer-events 0.3s;
}

.showcase-browser:hover .browser-viewport iframe {
  pointer-events: auto;
}

/* Glow underneath browser */
.showcase-glow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(0, 166, 251, 0.2) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.showcase-browser:hover .showcase-glow {
  opacity: 1;
}

/* Details */
.showcase-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.showcase-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(0, 166, 251, 0.1);
  line-height: 1;
  letter-spacing: -0.04em;
}

.showcase-tags {
  display: flex;
  gap: 0.5rem;
}

.showcase-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-100);
  background: rgba(0, 166, 251, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
}

.showcase-details h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-top: 0.15rem;
}

.showcase-featured .showcase-details h3 {
  font-size: 1.8rem;
}

.showcase-details p {
  color: var(--gray-300);
  font-size: 0.95rem;
  line-height: 1.7;
}

.showcase-details .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  width: fit-content;
}

.showcase-details .btn svg {
  transition: transform 0.3s ease;
}

.showcase-details .btn:hover svg {
  transform: translate(3px, -3px);
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--blue-500) 0%, var(--blue-400) 100%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1.25rem;
}

.contact-info > p {
  color: var(--gray-300);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-200);
  font-size: 0.95rem;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--blue-100);
  flex-shrink: 0;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: var(--transition);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-100);
  background: rgba(0, 166, 251, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 166, 251, 0.1);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  font-size: 0.95rem;
  color: var(--gray-400);
  pointer-events: none;
  transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -0.6rem;
  left: 0.9rem;
  font-size: 0.75rem;
  color: var(--blue-100);
  background: var(--blue-400);
  padding: 0 0.35rem;
  border-radius: 4px;
}

.form-success {
  display: none;
  text-align: center;
  color: var(--blue-100);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem;
  background: rgba(0, 166, 251, 0.08);
  border-radius: var(--radius);
}

.form-success.visible {
  display: block;
  animation: fadeUp 0.5s ease forwards;
}

/* ---------- FOOTER ---------- */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--blue-500);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer p {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray-200);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--blue-100);
  color: var(--blue-500);
  transform: translateY(-2px);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .showcase-featured {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .showcase-duo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(5, 25, 35, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 1.75rem;
    transition: var(--transition);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .showcase-featured {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .showcase-duo {
    grid-template-columns: 1fr;
  }

  .showcase-card {
    padding: 1.25rem;
  }

  .showcase-number {
    font-size: 2.5rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.25rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    text-align: center;
  }

  .stat-number {
    font-size: 1.8rem;
  }
}
