@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/Manrope/Manrope-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-bg: #0a0a0c;
  --secondary-bg: #141418;
  --text-main: #f0f0f5;
  --text-muted: #a0a0ab;
  --accent-color: #6366f1;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  
  --border-radius: 16px;
}

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

body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
}

/* Header Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

header.scrolled {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo img {
  height: 64px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

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

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

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  mix-blend-mode: screen;
  filter: hue-rotate(240deg) saturate(2) brightness(1.2);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 12, 0.6);
  z-index: -1;
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
  padding: 0 var(--spacing-md);
}

.hero-title {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-muted);
  font-weight: 300;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

/* Services Section */
.services {
  padding: var(--spacing-xl) 0;
  background: var(--secondary-bg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.service-card {
  padding: 1.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-20deg);
  z-index: 1;
}

.service-card:hover::after {
  left: 200%;
  transition: left 0.7s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.4);
  border-color: rgba(168, 85, 247, 0.8);
}

.service-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: calc(var(--border-radius) - 4px);
  object-fit: cover;
  margin-bottom: 1.5rem;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image {
  transform: scale(1.03);
}

.service-image-container {
  overflow: hidden;
  border-radius: calc(var(--border-radius) - 4px);
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.service-desc {
  color: var(--text-muted);
  flex-grow: 1;
}

/* Contact Section */
.contact {
  padding: var(--spacing-xl) 0;
  background: var(--primary-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  text-align: center;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}

.contact-item {
  padding: 2rem;
}

.contact-item h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.contact-item p {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  padding: var(--spacing-lg) 0;
  background: #050505;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 600;
}

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

.footer-copy {
  color: #666;
  font-size: 0.9rem;
}

/* Page Content (Privacy / Terms) */
.page-content {
  padding: calc(var(--spacing-xl) + 2rem) 0 var(--spacing-xl);
  background: var(--primary-bg);
  min-height: 100vh;
}

.page-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.document-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  background: var(--secondary-bg);
}

.document-content h1 { font-size: 2rem; margin-bottom: 1.5rem; margin-top: 2rem; color: var(--accent-color); }
.document-content h2 { font-size: 1.8rem; margin-bottom: 1.2rem; margin-top: 2rem; }
.document-content h3 { font-size: 1.5rem; margin-bottom: 1rem; margin-top: 1.5rem; }
.document-content h4 { font-size: 1.2rem; margin-bottom: 0.8rem; margin-top: 1.2rem; }
.document-content p { margin-bottom: 1rem; color: var(--text-muted); }
.document-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--text-muted); }
.document-content li { margin-bottom: 0.5rem; }
.document-content a { color: var(--accent-color); text-decoration: underline; }

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(20, 20, 24, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid var(--glass-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    overflow: hidden;
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 1.5rem 0;
    max-height: 400px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader img {
  width: 120px;
  animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
  0% { transform: scale(1); opacity: 0.8; filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4)); }
  50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.8)); }
  100% { transform: scale(1); opacity: 0.8; filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4)); }
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--accent-gradient);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  mix-blend-mode: screen;
}

.custom-cursor.cursor-hover {
  width: 40px;
  height: 40px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.8);
}

@media (max-width: 768px) {
  .custom-cursor {
    display: none;
  }
}

@media (min-width: 769px) {
  body, a, button, input, textarea, select, .service-card, .portfolio-item {
    cursor: none !important;
  }
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* About Section */
.about {
  padding: var(--spacing-xl) 0;
  background: var(--primary-bg);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-form-container {
  padding: 2.5rem;
}

.contact-form-container h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(168, 85, 247, 0.4);
}

#form-message {
  margin-top: 1rem;
  font-weight: 600;
}

/* Footer layout updates */
.footer-content {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

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

.footer-column h4 {
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.footer-links {
  flex-direction: column;
  gap: 0.8rem;
}
