@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;800&display=swap');

:root {
  --bg-color: #0b0c10;
  --surface-color: #1f2833;
  --surface-color-glass: rgba(31, 40, 51, 0.7);
  --text-primary: #f8f9fa;
  --text-secondary: #c5c6c7;
  --accent: #66fcf1;
  --accent-secondary: #45a29e;
  
  --font-main: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius: 12px;
  --glow-shadow: 0 0 20px rgba(102, 252, 241, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent) 0%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  background: var(--surface-color-glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

header.scrolled {
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  z-index: 1001; /* Ensure above mobile menu */
}

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

.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--accent);
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 0.25rem;
}

nav a:hover, nav a.active {
  color: var(--accent);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
  box-shadow: var(--glow-shadow);
}

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

.mobile-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-color);
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.4);
}

.btn-primary:hover {
  background-color: #fff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
}

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

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--bg-color);
  box-shadow: var(--glow-shadow);
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(102, 252, 241, 0.15) 0%, transparent 60%);
  z-index: -1;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(102, 252, 241, 0.2);
  transform: perspective(1000px) rotateY(-5deg);
  transition: var(--transition);
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(0deg) translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(102, 252, 241, 0.4);
}

.decorative-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  opacity: 0.5;
}

.blob-1 {
  top: 10%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: var(--accent);
}

.blob-2 {
  bottom: 0%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: #2a0845; /* Deep purple */
}

/* Features/Services Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--surface-color);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 15px rgba(102, 252, 241, 0.1);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(102, 252, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 12, 16, 0.9) 0%, rgba(11, 12, 16, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonial Section */
.testimonials {
  background: var(--surface-color);
  position: relative;
  overflow: hidden;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #ffb400;
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimony {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info h4 {
  color: var(--accent);
}

/* Page Header (for inner pages) */
.page-header {
  padding: 150px 0 80px;
  background: linear-gradient(to bottom, rgba(31, 40, 51, 0.8), var(--bg-color));
  text-align: center;
  position: relative;
}

/* Contact Page specific */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-card {
  background: var(--surface-color);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-info-card .icon {
  width: 50px;
  height: 50px;
  background: rgba(102, 252, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--surface-color);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1.5rem;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--surface-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    z-index: 1000;
  }
  
  nav ul.active {
    right: 0;
  }
  
  nav ul li {
    margin: 1.5rem 0;
  }
  
  nav ul li a {
    font-size: 1.5rem;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links a:hover {
    padding-left: 0;
  }
}
