:root {
  --primary: #00f2ea;
  --secondary: #ff0050;
  --bg-dark: #0a0a0a;
  --bg-card: rgba(22, 22, 22, 0.7);
  --text-main: #ffffff;
  --text-muted: #d0d0d0;
  --nav-height: 80px;
  --font-main: 'Inter', sans-serif;
}

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

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}

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

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s;
}

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

/* Sections */
section {
  min-height: 100vh; /* Full screen sections */
  padding: 120px 5% 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Background overlays */
section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: -1;
}

h1, h2 {
  font-weight: 800;
  margin-bottom: 1.5rem;
  z-index: 1;
}

h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  letter-spacing: -2px;
  background: linear-gradient(120deg, #fff 0%, #b0b0b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 800px;
}

h2 {
  font-size: 3rem;
  color: #fff;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin-top: 10px;
  border-radius: 2px;
}

p {
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 2.5rem;
  font-size: 1.25rem;
  font-weight: 300;
  z-index: 1;
}

/* Hero */
#home {
  align-items: flex-start;
  min-height: 100vh;
}

#home::before {
  background-image: url('../assets/images/hero-bg.png');
  opacity: 0.4;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.hero-cta {
  padding: 1.2rem 2.5rem;
  background: var(--primary);
  color: #000;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: inline-block;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 242, 234, 0.3);
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 242, 234, 0.5);
  background: #fff;
}

/* About */
#about {
  min-height: 80vh; /* Slightly smaller than full height for natural flow */
}

#about::before {
  background-image: url('../assets/images/about-bg.png');
  opacity: 0.15;
}

/* Services */
#services {
  background: linear-gradient(to bottom, #0a0a0a, #0f0f0f);
}

#services::before {
  background-image: url('../assets/images/services-bg.png');
  background-size: 200px; /* Pattern repeat */
  opacity: 0.05;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  width: 100%;
  z-index: 1;
}

.card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 234, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  background: rgba(30, 30, 30, 0.8);
}

.card h3 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.4rem;
}

.card p {
  font-size: 1rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Portfolio */
#portfolio {
  background: #0a0a0a;
}

/* Contact Form */
#contact {
  background: linear-gradient(to top, #060606, #0a0a0a);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 700px;
  width: 100%;
  z-index: 1;
}

@media (min-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
        max-width: 1200px;
        align-items: center;
    }
}

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

label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}

input:focus, textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

button[type="submit"] {
  width: 100%;
  padding: 1.2rem;
  background: var(--primary);
  color: #000;
  border: none;
  font-size: 1.1rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button[type="submit"]:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 242, 234, 0.2);
}

#form-feedback {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  min-height: 24px;
}

/* Footer */
footer {
  padding: 4rem 5%;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  margin: 0 10px;
}

footer a:hover {
  color: var(--primary);
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 120px auto 50px;
    padding: 0 5%;
}

.legal-content h1 {
    font-size: 3rem;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
}

.legal-content p, .legal-content ul {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@media (max-width: 768px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
  section { padding: 100px 5% 60px; }
  .navbar { padding: 0 1.5rem; }
  .nav-links { display: none; } 
  .hero-cta { width: 100%; text-align: center; }
}
