/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg-light: #111111;
  --bg-card: #161616;
  --purple: #c9a96e;
  --cyan: #e8d5b0;
  --white: #f5f5f5;
  --gray: #a0a0a0;
  --gray-dark: #333333;
  --glow-purple: rgba(201, 169, 110, 0.4);
  --glow-cyan: rgba(232, 213, 176, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.ambient-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.highlight {
  color: var(--purple);
  text-shadow: 0 0 20px var(--glow-purple);
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), #d4bc82);
  color: #0a0a0a;
  border: none;
  box-shadow: 0 4px 20px var(--glow-purple);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b08d4a, var(--purple));
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--glow-purple), 0 0 60px rgba(201, 169, 110, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gray-dark);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px var(--glow-cyan), inset 0 0 20px rgba(232, 213, 176, 0.05);
}

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

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  z-index: 1001;
  box-shadow: 0 0 8px var(--glow-purple);
  transition: width 0.05s linear;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 3px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-tk {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px var(--glow-purple));
  border: 2px solid var(--purple);
  border-radius: 8px;
  padding: 4px 8px;
  box-shadow: 0 0 12px var(--glow-purple);
}

.logo-digital {
  font-family: 'Raleway', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* ===== Intro Splash ===== */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.intro-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.intro-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.intro-tk-wrapper {
  perspective: 600px;
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.intro-border rect {
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: drawBorder 1s ease-out 0.2s forwards;
  filter: drop-shadow(0 0 8px var(--glow-purple));
}

@keyframes drawBorder {
  to {
    stroke-dashoffset: 0;
  }
}

.intro-tk {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px var(--glow-purple));
  position: relative;
  z-index: 1;
  animation: spin3d 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes spin3d {
  0% {
    transform: rotateY(0deg) scale(0.5);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: rotateY(720deg) scale(1);
    opacity: 1;
  }
}

.intro-digital {
  font-family: 'Raleway', sans-serif;
  font-size: 3.5rem;
  font-weight: 200;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--white);
  overflow: hidden;
  border-right: 3px solid var(--purple);
  white-space: nowrap;
  animation: blink-caret 0.6s step-end infinite;
}

@keyframes blink-caret {
  0%, 100% { border-color: var(--purple); }
  50% { border-color: transparent; }
}

.intro-digital.done {
  border-color: transparent;
  animation: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--white);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.nav-cta {
  background: linear-gradient(135deg, var(--purple), #d4bc82);
  color: #0a0a0a;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px var(--glow-purple);
}

.nav-cta:hover {
  background: linear-gradient(135deg, #b08d4a, var(--purple));
  transform: translateY(-1px);
  box-shadow: 0 4px 25px var(--glow-purple);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title {
  background: linear-gradient(135deg, var(--white) 0%, var(--cyan) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .highlight {
  -webkit-text-fill-color: var(--purple);
  text-shadow: none;
  filter: drop-shadow(0 0 20px var(--glow-purple));
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.2), rgba(232, 213, 176, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* ===== Services ===== */
.services {
  padding: 100px 0;
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  display: block;
  background: linear-gradient(145deg, #1a1a1a, #131313);
  border: 1px solid var(--gray-dark);
  border-radius: 12px;
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  border-color: rgba(201, 169, 110, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(201, 169, 110, 0.15), 0 0 60px rgba(201, 169, 110, 0.05);
}

.service-icon {
  color: var(--cyan);
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px var(--glow-cyan));
}

.service-icon svg {
  display: block;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* ===== How It Works ===== */
.process {
  padding: 100px 0;
}

.process-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.process-step {
  text-align: center;
  flex: 1;
  max-width: 220px;
  padding: 0 16px;
}

.step-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--purple);
  text-shadow: 0 0 20px var(--glow-purple);
  margin-bottom: 16px;
}

.process-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.process-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  margin-top: 28px;
  flex-shrink: 0;
  opacity: 0.5;
  box-shadow: 0 0 10px var(--glow-purple);
}

/* ===== About ===== */
.about {
  padding: 100px 0;
  background: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text .section-title {
  text-align: left;
}

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

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-list li {
  font-size: 1rem;
  color: var(--gray);
}

.check {
  color: var(--cyan);
  font-weight: 700;
  margin-right: 10px;
  text-shadow: 0 0 10px var(--glow-cyan);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px;
  background: linear-gradient(145deg, #1a1a1a, #131313);
  border: 1px solid transparent;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.about-stats::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--purple), transparent 40%, transparent 60%, var(--cyan));
  border-radius: 18px;
  z-index: -1;
  animation: statsGlow 3s ease-in-out infinite alternate;
}

.about-stats::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #1a1a1a, #131313);
  border-radius: 16px;
  z-index: -1;
}

@keyframes statsGlow {
  0% {
    opacity: 0.5;
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    filter: blur(2px);
  }
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--purple);
  text-shadow: 0 0 25px var(--glow-purple);
}

.stat-label {
  display: block;
  color: var(--gray);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ===== Portfolio ===== */
.portfolio {
  padding: 100px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.portfolio-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-dark);
  background: linear-gradient(145deg, #1a1a1a, #131313);
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  border-color: rgba(201, 169, 110, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(201, 169, 110, 0.15), 0 0 60px rgba(201, 169, 110, 0.05);
}

.portfolio-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  position: relative;
}

.portfolio-img.img-1 {
  background: url('portfolio-world.png') center top / cover no-repeat;
}

.portfolio-img.img-2 {
  background: url('portfolio-jokers.png') center center / cover no-repeat;
}

.portfolio-img.img-3 {
  background: url('tkdigitalwebpagess.png') center top / cover no-repeat;
}

.portfolio-info {
  padding: 24px;
}

.portfolio-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.portfolio-info p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ===== CTA Banner ===== */
.cta-banner {
  padding: 80px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--gray-dark);
  border-bottom: 1px solid var(--gray-dark);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
}

.cal-embed {
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--gray-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== Contact Form ===== */
.contact-divider {
  text-align: center;
  margin: 48px auto 40px;
  max-width: 700px;
  position: relative;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 100px);
  height: 1px;
  background: var(--gray-dark);
}

.contact-divider::before { left: 0; }
.contact-divider::after { right: 0; }

.contact-divider span {
  color: var(--gray);
  font-size: 0.95rem;
  padding: 0 16px;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
}

.form-group input,
.form-group textarea {
  background: #131313;
  border: 1px solid var(--gray-dark);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--white);
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #555;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 12px var(--glow-purple);
}

/* Submit button states */
.btn-loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}

.btn-success {
  background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
  box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4) !important;
  color: #fff !important;
}

.btn-error {
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4) !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Footer ===== */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--gray-dark);
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--gray);
  font-size: 0.9rem;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-nav a,
.footer-contact a {
  color: var(--gray);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--gray);
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  border-color: var(--purple);
  color: var(--purple);
  box-shadow: 0 0 12px var(--glow-purple);
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--gray-dark);
  padding-top: 24px;
  margin-top: 16px;
}

.footer-bottom p {
  color: var(--gray);
  font-size: 0.8rem;
  text-align: center;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-stats {
    flex-direction: row;
    justify-content: space-around;
  }

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

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-dark);
  }

  .process-grid {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .process-connector {
    width: 2px;
    height: 30px;
    margin-top: 0;
  }

  .process-step {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .cta-content h2 {
    font-size: 1.6rem;
  }
}
