:root {
  --bg: #0f172a;
  --card: #1e293b;
  --muted: rgba(255, 255, 255, 0.75);
  --accent1: #00e5ff;
  --accent2: #ff007a;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --max-width: 1200px;
  --nav-height: 72px;
  --ease-smooth: cubic-bezier(0.16, 0.84, 0.3, 1);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--nav-height);
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}
img,
video {
  display: block;
  max-width: 100%;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  opacity: 0;
  filter: brightness(0.28) saturate(1.05) contrast(1.02);
  transform: scale(1.02);
  animation: videoFade 1.2s var(--ease-smooth) forwards;
  pointer-events: none;
}

.bg-video-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.66));
  mix-blend-mode: multiply;
  opacity: 0.98;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 36px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px) saturate(1.05);
  position: fixed;
  width: 100%;
  top: 0;
  height: var(--nav-height);
  z-index: 999;
  transition: all 360ms var(--ease-smooth);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.navbar:hover {
  background: rgba(10, 16, 30, 0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 22px;
  letter-spacing: 0.6px;
}

.brand-text h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.brand-text p {
  margin: 0;
  font-size: 12px;
  opacity: 0.75;
}

/* Nav list */
nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding: 8px 6px;
  transition: color 200ms var(--ease-smooth), transform 200ms var(--ease-smooth);
  display: inline-block;
}
nav a:hover {
  color: var(--accent1);
  transform: translateY(-3px);
}

/* CTA in navbar */
.cta {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  padding: 8px 18px;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-weight: 800;
  transition: transform 250ms var(--ease-smooth),
    box-shadow 250ms var(--ease-smooth);
  margin-left: 18px;
}
.cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.45);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: visible;
}

.video-bg {
  display: none !important;
}

.hero-content {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
  padding: 60px;
  z-index: 2;
  transform: translateY(8px);
  animation: heroEntrance 900ms var(--ease-smooth) both;
  perspective: 1200px;
}

.hero-left {
  flex: 1 1 560px;
  min-width: 260px;
}
.hero-right {
  flex: 0 0 420px;
  max-width: 420px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent1);
  letter-spacing: 2px;
  display: inline-block;
  opacity: 0.98;
}

.animated-title {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  margin: 10px 0 6px;
  line-height: 1.02;
  background: linear-gradient(90deg, #fff, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 400% 100%;
  animation: shimmer 6s linear infinite;
  transform-origin: left;
  letter-spacing: -0.5px;
  will-change: transform, opacity;
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.lead {
  margin-top: 12px;
  line-height: 1.7;
  max-width: 560px;
  opacity: 0.95;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
}

.buttons {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 320ms var(--ease-smooth),
    box-shadow 320ms var(--ease-smooth), filter 320ms;
  display: inline-block;
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.08);
  transform-origin: center;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  animation: btnIn 600ms var(--ease-smooth) forwards;
  animation-delay: 0.85s;
}

.btn.secondary {
  background: transparent;
  border: 2px solid rgba(0, 229, 255, 0.14);
  color: var(--accent1);
  box-shadow: none;
}

/* hover effects */
.btn:hover {
  transform: translateY(-6px) scale(1.02);
  filter: brightness(1.06);
  box-shadow: 0 16px 48px rgba(0, 229, 255, 0.09);
}

@keyframes btnIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.font-preview {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(8px) saturate(1.05);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: transform 360ms var(--ease-smooth), box-shadow 360ms;
  transform-origin: center;
}

.font-preview:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
}

.preview-text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.font-preview video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 12px;
}

.services {
  padding: 80px 20px;
  background: #111827;
  color: white;
  text-align: center;
}

.services h2 {
  font-family: "Playfair Display";
  font-size: 32px;
  margin: 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 30px;
  align-items: stretch;
}

.card {
  background: var(--card);
  padding: 24px;
  border-radius: 14px;
  transition: transform 350ms var(--ease-smooth), box-shadow 350ms;
  min-height: 160px;
  will-change: transform;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.portfolio {
  padding: 80px 20px;
  background: var(--bg);
  text-align: center;
}

.portfolio h2 {
  margin: 0;
  font-size: 32px;
  font-family: "Playfair Display";
}
.portfolio p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.85);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  min-height: 180px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent);
}

.portfolio-item img,
.portfolio-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 520ms var(--ease-smooth);
}

.portfolio-item:hover img,
.portfolio-item:hover video {
  transform: scale(1.06);
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 12px;
  opacity: 0;
  transition: opacity 280ms var(--ease-smooth),
    transform 280ms var(--ease-smooth);
  transform: translateY(8px);
}

.portfolio-item:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.contact {
  padding: 80px 16px;
  background: var(--bg);
  color: white;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  width: 100%;
}

.contact-form {
  background: var(--glass);
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transform: translateY(6px);
  transition: transform 420ms var(--ease-smooth);
}

.contact-form h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.input-group {
  opacity: 0;
  transform: translateY(28px);
  transition: all 700ms var(--ease-smooth);
  margin-bottom: 14px;
}

.input-group.visible {
  opacity: 1;
  transform: translateY(0);
}
.from-left {
  transform: translateX(-60px);
}
.from-left.visible {
  transform: translateX(0);
}
.from-right {
  transform: translateX(60px);
}
.from-right.visible {
  transform: translateX(0);
}
.fade-in {
  transform: scale(0.96);
}
.fade-in.visible {
  transform: scale(1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  font-size: 15px;
  outline: none;
  transition: border-color 180ms var(--ease-smooth), box-shadow 180ms;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent1);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.04);
}

.contact-form textarea {
  resize: none;
  min-height: 120px;
}

#submit-btn {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  border: none;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  width: 100%;
  transition: transform 250ms var(--ease-smooth), box-shadow 250ms;
  box-shadow: 0 10px 34px rgba(0, 229, 255, 0.08);
  transform-origin: center;
  will-change: transform;
}
#submit-btn:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 60px rgba(0, 229, 255, 0.09);
}

.contact-info {
  background: var(--glass);
  padding: 28px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 34px rgba(0, 229, 255, 0.04);
}
.contact-info h3 {
  font-size: 22px;
  margin-top: 0;
  color: var(--accent1);
}
.contact-info p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.footer {
  align-items: center;
  text-align: center;
  font-size: 15px;
  padding: 18px 28px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
}

@keyframes videoFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes heroEntrance {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.997);
  }
  60% {
    opacity: 1;
    transform: translateY(6px) scale(0.999);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-left .animated-title {
  animation: titleIn 950ms var(--ease-smooth) both;
  animation-delay: 0.25s;
  transform-origin: left;
}
.hero-left .lead {
  animation: paraIn 850ms var(--ease-smooth) both;
  animation-delay: 0.5s;
}
.hero-left .buttons {
  animation: btnWrapIn 850ms var(--ease-smooth) both;
  animation-delay: 0.78s;
}

@keyframes titleIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes paraIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes btnWrapIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-slide-up {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  animation: fadeSlideUp 720ms var(--ease-smooth) forwards;
}
@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.float-slow {
  animation: floatSlow 6.6s ease-in-out infinite;
}
@keyframes floatSlow {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (min-width: 1300px) {
  .hero-content {
    padding: 80px 20px;
    gap: 48px;
  }
  .animated-title {
    font-size: 58px;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: 60px 28px;
  }
  .hero-right {
    max-width: 560px;
    width: 100%;
    margin-top: 18px;
  }
  .animated-title {
    font-size: 40px;
  }
  nav ul {
    gap: 12px;
  }
  .cta {
    margin-left: 8px;
    padding: 8px 14px;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 16px;
    height: 64px;
  }
  .brand-text h1 {
    font-size: 14px;
  }
  .brand-text p {
    font-size: 11px;
  }
  nav ul {
    position: absolute;
    top: calc(var(--nav-height) - 6px);
    right: 12px;
    background: rgba(15, 23, 42, 0.95);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 1001;
  }
  nav a {
    padding: 8px 12px;
    white-space: nowrap;
  }
  .cta {
    display: none;
  }
  .animated-title {
    font-size: 34px;
  }
  .lead {
    font-size: 15px;
    max-width: 100%;
  }
  .services {
    padding: 60px 16px;
  }
  .portfolio {
    padding: 60px 16px;
  }
  .contact {
    padding: 60px 12px;
  }
  .contact-form,
  .contact-info {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 8px 12px;
    height: 64px;
  }
  .logo {
    font-size: 20px;
  }
  .brand-text h1 {
    font-size: 13px;
  }
  .brand-text p {
    font-size: 10px;
  }
  nav ul {
    top: calc(var(--nav-height));
    right: 8px;
    left: 8px;
    padding: 12px;
    border-radius: 10px;
    gap: 10px;
  }
  .hero {
    padding-top: 18px;
    padding-bottom: 40px;
  }
  .hero-content {
    padding: 28px 14px;
  }
  .animated-title {
    font-size: 24px;
  }
  .lead {
    font-size: 14px;
    line-height: 1.6;
  }
  .buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn,
  .btn.secondary {
    width: 100%;
    text-align: center;
  }
  .font-preview {
    padding: 12px;
  }
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card {
    padding: 18px;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .contact-form h2 {
    font-size: 22px;
  }
  .contact-info h3 {
    font-size: 18px;
  }
  .footer {
    font-size: 13px;
    padding: 16px;
  }
}

@media (max-width: 360px) {
  .animated-title {
    font-size: 20px;
  }
  .hero-right {
    display: block;
  }
  .logo {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.hidden {
  display: none !important;
}
.center {
  display: flex;
  align-items: center;
  justify-content: center;
}
