/* Reset & Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary: #0d6b6e;
  --secondary: #c9a96e;
  --dark: #1a1a1a;
  --light: #f8f5f0;
  --glass: rgba(255, 255, 255, 0.15);
  --shadow: 0 8px 32px rgba(0,0,0,0.1);
  --transition: 0.3s ease;
}
body {
  font-family: 'Cairo', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
a { text-decoration: none; color: inherit; }

/* Header */
header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  font-weight: 600;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--secondary); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  transition: var(--transition);
}

/* Hero 3D */
.hero-3d {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80vh;
  padding: 50px 0;
  background: linear-gradient(135deg, #e6f7f8 0%, #f8f5f0 100%);
  position: relative;
  overflow: hidden;
}
.hero-content {
  flex: 1;
  padding-left: 5%;
  z-index: 2;
}
.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--dark);
}
.hero-content h1 span { color: var(--primary); }
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #555;
}
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: #094c4f; transform: translateY(-3px); }

#tooth-container {
  flex: 1;
  height: 500px;
  min-width: 300px;
}

/* About Preview */
.about-preview {
  padding: 80px 0;
  text-align: center;
}
.about-preview h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.about-preview p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Gallery Grid */
.gallery-grid, .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 0;
}
.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.gallery-item:hover { transform: translateY(-5px); }
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.video-item iframe {
  width: 100%;
  height: 250px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}
.close-lightbox {
  position: absolute;
  top: 20px; right: 40px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
}

/* Contact */
.contact-section {
  padding: 60px 0;
  text-align: center;
}

/* Footer */
footer {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-3d {
    flex-direction: column;
    text-align: center;
    padding: 30px 0;
  }
  .hero-content { padding-left: 0; }
  #tooth-container { height: 300px; width: 100%; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
}