/* ============================================
   Imaginov Cyber Tech – Dark Agency Style
   Inspired by Unniq dark digital creative agency
   ============================================ */

:root {
  --bg-dark: #08080c;
  --bg-card: #0f0f14;
  --bg-elevated: #16161e;
  --text: #f0f0f5;
  --text-muted: #8888a0;
  --accent: #00d9b0;
  --accent-hover: #00efc4;
  --accent-dim: rgba(0, 217, 176, 0.12);
  --accent-glow: rgba(0, 217, 176, 0.25);
  --border: rgba(255, 255, 255, 0.07);
  --radius: 14px;
  --radius-lg: 24px;
  --font-head: 'Outfit', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --header-h: 80px;
  --container: min(1240px, 92vw);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

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

ul {
  list-style: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(8, 8, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header.is-scrolled {
  background: rgba(8, 8, 12, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  color: var(--text);
}
.logo-text::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 1em;
  background: var(--border);
  margin-left: 12px;
  margin-right: 10px;
  vertical-align: middle;
}
.logo-accent {
  color: var(--accent);
  font-weight: 600;
}

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

.nav-list a {
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-list a:hover {
  color: var(--text);
}

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

.btn-header {
  padding: 12px 24px;
}

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

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  min-height: calc(100vh - var(--header-h));
  background-color: var(--bg-dark);
  background-image: none;
  padding: 48px 24px;
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--border);
}

.mobile-menu.is-open {
  background-color: var(--bg-dark);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1.5rem;
  font-weight: 600;
}

.mobile-nav-list a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .nav,
  .btn-header { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu.is-open { display: block; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 35%, var(--bg-dark) 82%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 0 120px;
}

.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.9rem, 6.2vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 800px;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 44px;
  line-height: 1.75;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  gap: 0;
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 40px;
  border-right: 1px solid var(--border);
}

.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; padding-right: 0; }

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.scroll-line {
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 2px;
  opacity: 0.8;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 640px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }
  .stat {
    padding: 0;
    border-right: none;
  }
  .hero-label::before {
    width: 20px;
  }
}

/* Section common */
.section-head {
  margin-bottom: 56px;
  max-width: 600px;
}

.section-head.light .section-label,
.section-head.light .section-title { color: var(--text); }

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 2.85rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-title .accent {
  color: var(--accent);
  font-weight: 800;
}

/* Services */
.services {
  padding: 120px 0;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.service-card:hover {
  border-color: rgba(0, 217, 176, 0.4);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 217, 176, 0.1);
}

.service-icon {
  width: 100%;
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--bg-elevated);
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-icon img {
  transform: scale(1.05);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.service-link {
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link:hover {
  color: var(--accent-hover);
}

.service-link span {
  transition: transform var(--transition);
}

.service-card:hover .service-link span {
  transform: translateX(4px);
}

/* About */
.about {
  padding: 120px 0;
  background: var(--bg-card);
}

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

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-content .section-title {
  margin-bottom: 20px;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.75;
}

.about-list {
  margin-bottom: 32px;
}

.about-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-visual { order: 0; }
  .about-content { order: 1; }
}

/* Work */
.work {
  padding: 120px 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover img {
  transform: scale(1.06);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 12, 0.96) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: background var(--transition), border-color var(--transition);
}

.work-card:hover {
  border-color: rgba(0, 217, 176, 0.25);
}

.work-card:hover .work-overlay {
  background: linear-gradient(to top, rgba(8, 8, 12, 0.92) 0%, transparent 50%);
}

.work-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.work-overlay h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}

@media (max-width: 1100px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.testimonials {
  padding: 120px 0;
  background: var(--bg-card);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.testimonial-card:hover {
  border-color: rgba(0, 217, 176, 0.35);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 217, 176, 0.08);
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.testimonial-text::before { content: '"'; }
.testimonial-text::after { content: '"'; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  border: none;
  padding: 0;
  margin: 0;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
}

.testimonial-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  font-style: normal;
  color: var(--text);
  display: block;
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* Tech / Languages */
.tech {
  padding: 120px 0;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 30px;
  transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
}

.tech-card:hover {
  border-color: rgba(0, 217, 176, 0.5);
  color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 4px 20px rgba(0, 217, 176, 0.08);
}

.tech-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

/* Contact */
.contact {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

.contact-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 217, 176, 0.08), transparent);
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.contact-item:hover {
  border-color: rgba(0, 217, 176, 0.35);
  background: var(--bg-elevated);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-value {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-muted);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

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

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-social-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-social-links {
  display: flex;
  gap: 16px;
}

.footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.footer-social-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links,
  .footer-contact,
  .footer-social {
    align-items: center;
  }
  .footer-social-links {
    justify-content: center;
  }
}

/* AOS-style fade (optional, we'll use JS) */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}
