:root {
  --primary: #020617; /* Darker background to match logo image */
  --secondary: #2DAFFF;
  --text-main: #CCD6F6;
  --text-muted: #8892B0;
  --bg-gradient: linear-gradient(135deg, #020617, #0A192F);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

h1, h2, h3, h4 {
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--secondary);
}

ul {
  list-style: none;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: rgba(100, 255, 218, 0.1);
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.2);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--secondary);
  color: #020C1B;
}

.btn-primary:hover {
  background: #52e0c4;
  color: #020C1B;
}

/* Navbar */
nav {
  position: absolute;
  top: -70px; /* Shifted up further as requested */
  width: 100%;
  padding: 0 5%;
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
}

nav.scrolled {
  padding: 0 5%;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.6) 70%, transparent 100%);
  border-bottom: none;
}

/* Nav for inner pages (about, contact) — scrolls away like home page */
nav.nav-fixed {
  position: absolute;
  top: -70px;
  align-items: center;
}

.hero-watermark {
  font-size: 12rem;
  right: 0;
}

.accent-word {
  color: #2DAFFF;
  -webkit-text-fill-color: #2DAFFF;
}

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

.logo-horizontal {
  height: 300px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.logo-horizontal:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 18px rgba(0,180,255,0.4));
}

/* Restore full 300px logo on inner pages — background is now transparent/blended */
nav.scrolled .logo-horizontal {
  height: 300px;
}

.logo-img {
  height: 75px; /* Increased height to make the logo prominent */
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  mix-blend-mode: screen;
}

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

.nav-links li a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--secondary);
}

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

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
}

/* Hero Section */
.hero {
  min-height: 70vh; /* Reduced from 100vh to pull the next section up */
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(2, 12, 27, 0.9), rgba(10, 25, 47, 0.5));
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  animation: fadeUp 1s ease-out;
  padding-top: 160px; /* Just enough space below the 300px logo */
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

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

/* Sections */
section {
  padding: 6rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin: 0 auto 3rem auto;
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: var(--secondary);
  bottom: -10px;
  left: 25%;
  border-radius: 2px;
}

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

.service-card {
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(100, 255, 218, 0.3);
}

.service-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.image-wrapper img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.image-wrapper img:hover {
  transform: scale(1.02);
}

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

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--secondary);
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-main);
  transition: var(--transition);
}

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

.contact-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--secondary);
}

.info-item p {
  font-size: 1.1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 5%;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

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

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

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

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

/* Responsive */
@media (max-width: 900px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: var(--primary);
    flex-direction: column;
    padding-top: 6rem;
    padding-left: 2rem;
    transition: var(--transition);
    border-left: 1px solid var(--glass-border);
  }
  
  .nav-links.nav-active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }

  .hero-buttons {
    flex-direction: column;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: var(--transition);
  aspect-ratio: 1 / 1;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

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

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent);
  color: #fff;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

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

/* Admin Panel Styles */
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
}

.error-msg {
  color: var(--accent);
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.admin-gallery-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.admin-gallery-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

.admin-gallery-item .info {
  flex: 1;
  margin: 0 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

