/* ===== CSS Variables & Root Styles ===== */
:root {
  --primary: #1a1a1a;
  --secondary: #fafafa;
  --accent: #8b6f47;
  --text: #2d2d2d;
  --light-text: #666666;
  --border: #e0e0e0;
  --background: #f5f3f0;
  --card-bg: #ffffff;
  --spacing: 1rem;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
    "Droid Sans", "Helvetica Neue", sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Container Fluid ===== */
.container-fluid {
  width: 100%;
  padding: 0 2rem;
  margin: 0 auto;
  max-width: 1400px;
}

@media (max-width: 768px) {
  .container-fluid {
    padding: 0 1rem;
  }
}

/* ===== Navigation Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-text {
  background: linear-gradient(135deg, #1a1a1a 0%, #8b6f47 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-badges {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
}

.badge-logo {
  height: 18px;
  filter: grayscale(1) contrast(1) opacity(0.7);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

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

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

.subscribe-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.subscribe-btn:hover {
  background: #7a5e3a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Mobile Navigation ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 1rem;
    gap: 0;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }

  .subscribe-btn {
    display: none;
  }
}

/* ===== Hero Section ===== */
.hero {
  padding: 120px 0 80px;
  margin-top: 60px;
  background: linear-gradient(135deg, #f5f3f0 0%, #fafafa 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: #7a5e3a;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--light-text);
}

.hero-image {
  position: relative;
  height: 500px;
}

/* Hero Background Decorations */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(139, 111, 71, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
}

.bg-circle {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
}

.bg-circle-1 {
  background: #8b6f47;
  top: -120px;
  left: -120px;
}

.bg-circle-2 {
  background: #c7b297;
  bottom: -160px;
  right: -120px;
}

.bg-circle-3 {
  background: #bfa37c;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-content, .hero .container-fluid {
  position: relative;
  z-index: 1;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-image {
    height: 350px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ===== Featured Works Section ===== */
.featured-works {
  padding: 80px 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.45)), /* overlay */
    url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?q=80&w=2400&auto=format&fit=crop') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

/* Professional section background decorations */
.featured-works::before {
  content: "";
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 70%;
  z-index: 0;
  background:
    radial-gradient(600px 400px at -5% 10%, rgba(139,111,71,0.10) 0%, rgba(139,111,71,0) 60%),
    radial-gradient(500px 360px at 105% 0%, rgba(191,163,124,0.10) 0%, rgba(191,163,124,0) 60%),
    linear-gradient(180deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.03) 100%);
  pointer-events: none;
}

.featured-works::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.25;
  pointer-events: none;
}

/* Removed floating inner surface to expose creative backgrounds */

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--light-text);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Improve readability of titles/subtitles over background images */
.featured-works .section-title,
.about .section-title,
.testimonials .section-title,
.contact .section-title {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.featured-works .section-subtitle,
.about .section-subtitle,
.testimonials .section-subtitle,
.contact .section-subtitle {
  color: rgba(255,255,255,0.88);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Make about text readable on background while preserving card text */
.about .about-description {
  color: rgba(255,255,255,0.90);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.book-card {
  background: linear-gradient(180deg, #ffffff, #fafafa);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  transition: var(--transition);
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.18);
}

.book-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.book-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.book-card:hover .book-image img {
  transform: scale(1.05);
}

.book-info {
  padding: 1.5rem;
}

.book-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.book-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.stars {
  color: var(--accent);
}

.rating-count {
  color: var(--light-text);
}

.book-description {
  color: var(--light-text);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.book-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.book-link:hover {
  color: #7a5e3a;
  transform: translateX(5px);
  display: inline-block;
}

@media (max-width: 1024px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .featured-works {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== About Section ===== */
.about {
  padding: 80px 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.30), rgba(0,0,0,0.40)),
    url('https://images.unsplash.com/photo-1519681393784-d120267933ba?q=80&w=2400&auto=format&fit=crop') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(70px);
  background: rgba(139,111,71,0.18);
  opacity: 0.7;
  pointer-events: none;
}

.about::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -120px;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  filter: blur(70px);
  background: rgba(199,178,151,0.16);
  opacity: 0.7;
  pointer-events: none;
}

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

.about-description {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1rem;
}

.about-achievements {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.achievement {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.achievement-icon {
  font-size: 2rem;
  min-width: 50px;
}

.achievement h4 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.achievement p {
  color: var(--light-text);
  font-size: 0.9rem;
}

.about-image {
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about {
    padding: 60px 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    height: 300px;
  }
}

/* ===== Testimonials Section ===== */
.testimonials {
  padding: 80px 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.45)),
    url('https://images.unsplash.com/photo-1497493292307-31c376b6e479?q=80&w=2400&auto=format&fit=crop') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(245,243,240,0.75) 0%, rgba(250,250,250,0.75) 30%, rgba(255,255,255,0.75) 100%),
    repeating-linear-gradient(115deg, rgba(139,111,71,0.10) 0 2px, rgba(139,111,71,0.0) 2px 10px);
  opacity: 0.7;
  pointer-events: none;
}

.testimonials::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(191,163,124,0.22), rgba(191,163,124,0) 60%);
  filter: blur(20px);
  pointer-events: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: linear-gradient(180deg, #ffffff, #f6f6f6);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.18);
}

.stars-rating {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  color: var(--light-text);
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .testimonials {
    padding: 60px 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Contact Section ===== */
.contact {
  padding: 80px 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.30), rgba(0,0,0,0.40)),
    url('https://images.unsplash.com/photo-1495446815901-a7297e633e8d?q=80&w=2400&auto=format&fit=crop') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(139,111,71,0.16), rgba(139,111,71,0));
  filter: blur(40px);
  pointer-events: none;
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(139,111,71,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.3;
  pointer-events: none;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form,
.newsletter-box,
.contact-tabs,
.contact-card {
  background: linear-gradient(180deg, #ffffff, #fafafa);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.newsletter-box h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.newsletter-box p {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Contact Tabs */
.contact-tabs .tabs-header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-tabs .tab-btn {
  background: linear-gradient(180deg, #fff, #f6f6f6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.contact-tabs .tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact-tabs .tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.contact-tabs .tab-pane { display: none; }
.contact-tabs .tab-pane.active { display: block; }

.info-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(139, 111, 71, 0.1);
  color: var(--accent);
  font-size: 1.2rem;
}

.info-title { color: var(--primary); margin-bottom: 0.25rem; }
.info-text { color: var(--text); font-weight: 600; }
.info-hint { color: var(--light-text); font-size: 0.85rem; margin-top: 0.25rem; }

.copy-btn {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover { background: var(--accent); color: #fff; }

.map-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.map-placeholder {
  height: 220px;
  background: linear-gradient(135deg, #eae7e2, #f7f5f2);
}

.map-info { padding: 1rem; }

.btn.small { padding: 0.6rem 1rem; font-size: 0.9rem; }

/* Simple contact card + follow block */
.info-row.large { padding: 1.25rem; }
.info-link { color: var(--accent); text-decoration: none; font-weight: 700; }
.info-link:hover { color: #7a5e3a; }

/* Make only the simple email contact card text white (title, email, link) */
.contact .contact-card .info-title,
.contact .contact-card .info-text,
.contact .contact-card .info-link {
  color: #ffffff;
}
.contact .contact-card .info-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Remove outer white box for simple contact card */
.contact-card {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.follow-block { margin-top: 1.5rem; }
.follow-title { color: var(--primary); margin-bottom: 0.75rem; }
.follow-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.social-pill {
  display: flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(180deg, #ffffff, #f7f7f7); border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1rem;
  color: var(--primary); text-decoration: none; font-weight: 600; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.social-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pill-icon { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(139,111,71,0.1); color: var(--accent); font-weight: 800; }

@media (max-width: 768px) {
  .follow-grid { grid-template-columns: 1fr; }
}

/* Make the "Follow My Journey" heading white only inside the contact section */
.contact .follow-title { color: #ffffff; }

@media (max-width: 768px) {
  .contact {
    padding: 60px 0;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Enable parallax-like feel on large screens */
@media (min-width: 1025px) {
  .featured-works,
  .about,
  .testimonials,
  .contact {
    background-attachment: fixed;
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  margin-bottom: 0.5rem;
}

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

.footer .social-links {
  align-items: center;
}

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

.social-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  transition: var(--transition);
  line-height: 0;
}

.social-icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 22px;
  height: 22px;
}

.social-icon:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 111, 71, 0.35);
}

.social-icon::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 2px 6px;
  font-size: 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.social-icon:hover::after { opacity: 1; bottom: -24px; }

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

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7a5e3a;
}

/* ===== Portfolio Section ===== */
.portfolio {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(245,243,240,0.6));
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-card {
  position: relative;
  display: block;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  will-change: transform;
}

.portfolio-media {
  height: 260px;
}

.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-media img {
  transform: scale(1.05);
}

.portfolio-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
  color: #fff;
}

.portfolio-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.portfolio-info span {
  font-size: 0.9rem;
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio {
    padding: 60px 0;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .badge-logo { height: 16px; }
}
