:root {
  --bg: #0a0a0f;
  --bg-gradient: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  --fg: #ffffff;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --accent-glow: #6366f1;
  --card-bg: rgba(26, 26, 46, 0.8);
  --card-border: rgba(99, 102, 241, 0.2);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 8px 32px 0 rgba(99, 102, 241, 0.15);
  --font: 'Inter', system-ui, sans-serif;
  --gradient-text: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #a5b4fc 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: var(--bg-gradient);
  color: var(--fg);
  line-height: 1.7;
  scroll-behavior: smooth;
  font-size: 1.1rem;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(129, 140, 248, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(165, 180, 252, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

header, section {
  padding: 6rem 2rem 5rem 2rem;
  max-width: 1200px;
  margin: auto;
  position: relative;
}

h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  letter-spacing: -2px;
  line-height: 1.1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100px;
  height: 4px;
  background: var(--gradient-text);
  border-radius: 2px;
}

h2 {
  margin-top: 4rem;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  margin-bottom: 2.2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-text);
  border-radius: 2px;
}

p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
  font-size: 1.2rem;
  line-height: 1.8;
}

.navbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--card-border);
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  position: relative;
}

.navbar-logo::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-text);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.navbar-logo:hover::before {
  opacity: 0.1;
}

.navbar-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar-links a {
  color: var(--fg);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.navbar-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: var(--gradient-text);
  border-radius: 8px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.25s, transform 0.25s;
  z-index: -1;
}

.navbar-links a:hover::before,
.navbar-links a:focus::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.navbar-links a:hover,
.navbar-links a:focus {
  color: #000;
  box-shadow: var(--shadow-glow);
  z-index: 2;
}

.navbar-hamburger {
  display: none;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  cursor: pointer;
  z-index: 2100;
  margin-left: 0.5rem;
  padding: 0;
  font-size: 1.5rem;
  color: var(--fg);
  transition: all 0.3s;
}

.navbar-hamburger:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent);
}

.navbar-hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background: var(--gradient-text);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #818cf8 0%, #a5b4fc 50%, #c7d2fe 100%);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.25);
}

.project, .service-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid var(--card-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project::before, .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-text);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.project:hover, .service-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.project:hover::before, .service-card:hover::before {
  opacity: 0.05;
}

.service-card h3 {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.service-details {
  margin-top: 1rem;
}

.service-details h4 {
  color: var(--accent-light);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem 0;
  letter-spacing: 0.5px;
}

.service-details h4:first-child {
  margin-top: 0;
}

.service-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.service-details li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

.service-details li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.service-details li:last-child {
  margin-bottom: 0;
}

.testimonial {
  font-style: italic;
  opacity: 0.9;
  margin-top: 1.5rem;
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  font-size: 1.1rem;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
}

footer {
  text-align: center;
  padding: 3rem 1rem 2rem 1rem;
  background: rgba(10, 10, 15, 0.95);
  color: #bfc9d1;
  font-size: 1rem;
  border-top: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
}

.footer-social {
  margin-top: 1rem;
}

.footer-social a {
  color: var(--accent);
  margin: 0 0.8rem;
  font-size: 1.8rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  vertical-align: middle;
  display: inline-block;
}

.footer-social a:hover {
  color: var(--accent-light);
  transform: scale(1.2) translateY(-3px);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
  max-width: 600px;
}

.contact-form input,
.contact-form textarea {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  color: var(--fg);
  border: 1px solid var(--card-border);
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  outline: none;
  transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bfc9d1;
  opacity: 0.7;
}

.contact-form button {
  align-self: flex-start;
}

section {
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  header, section {
    padding: 4rem 1.5rem 3rem 1.5rem;
    max-width: 98vw;
  }
  h1 { 
    font-size: 2.8rem; 
    letter-spacing: -1.5px;
  }
  h2 { 
    font-size: 2rem; 
    letter-spacing: -0.5px;
  }
  .services-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 700px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 0;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.3);
    min-height: unset;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .navbar-logo {
    margin-bottom: 0;
    text-align: left;
    width: auto;
    flex: 1;
    font-size: 1.3rem;
  }
  
  .navbar-hamburger {
    display: flex;
  }
  
  .navbar-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 2000;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .navbar-links.open {
    display: flex;
  }
  
  .navbar-links a {
    width: 80%;
    padding: 1.5rem 0;
    text-align: center;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  h1 {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }
  
  h2 {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
  }
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  }
}