/* OnlyColonoscopyPics.com - Main Stylesheet */

:root {
  --primary: #c0392b;
  --primary-dark: #922b21;
  --secondary: #2c3e50;
  --accent: #e74c3c;
  --light: #f8f9fa;
  --dark: #1a1a1a;
  --text: #333;
  --muted: #666;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 12px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Header / Nav */
header {
  background: var(--secondary);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
}

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

/* Hero */
.hero {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Carousel */
.carousel-container {
  max-width: 900px;
  margin: -60px auto 3rem;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  background: #000;
}

.carousel {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  object-fit: cover;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: var(--white);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

.prev { left: 15px; }
.next { right: 15px; }

/* Sections */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  text-align: center;
}

.intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--muted);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3/2;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: translateY(-6px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Footer */
footer {
  background: var(--secondary);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .carousel { height: 300px; }
  .about-content { grid-template-columns: 1fr; }
  nav ul { gap: 1rem; font-size: 0.9rem; }
  .carousel-container { margin-top: -40px; }
}
