/* Base Styles */
:root {
  --primary-color: #c41e1e;
  --primary-dark: #a51818;
  --primary-light: #e63939;
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --footer-bg: var(--gray-100);
  --footer-text: var(--gray-700);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--white);
  background-color: var(--primary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--white);
  color: var(--primary-color);
  font-weight: 700;
}

.btn-primary:hover {
  background-color: var(--gray-200);
}

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

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

.btn-full {
  width: 100%;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  cursor: pointer;
  transition: all 0.3s ease;
}

.icon-btn:hover {
  background-color: var(--gray-100);
}

.cart-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
}

.cart-btn:hover {
  background-color: var(--primary-dark);
}

/* Navigation */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--white);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.logo-box {
  width: 3rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.nav-link {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--gray-200);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--primary-color);
  z-index: 200;
  padding: 2rem;
  transition: right 0.3s ease;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-close {
  text-align: right;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  cursor: pointer;
  color: var(--white);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--gray-200);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero-content {
  text-align: center;
  color: var(--white);
  z-index: 10;
}

.hero-logo {
  margin-bottom: 1.5rem;
}
.hero-logo img {
    max-width: 300px;
}

.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.floating-notebook {
  position: absolute;
  background-color: var(--primary-dark);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  color: var(--white);
  font-weight: 700;
}
.floating-notebook img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
}

.notebook-1 {
  top: 5rem;
  left: 2.5rem;
  width: 8rem;
  height: 11rem;
  animation: float1 6s infinite ease-in-out;
}

.notebook-2 {
  top: 10rem;
  right: 5rem;
  width: 6rem;
  height: 8rem;
  animation: float2 8s infinite ease-in-out;
}

.notebook-3 {
  bottom: 10rem;
  left: 5rem;
  width: 6rem;
  height: 8rem;
  animation: float3 7s infinite ease-in-out;
}

@keyframes float1 { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(5deg); } }
@keyframes float2 { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(15px) rotate(-8deg); } }
@keyframes float3 { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-20px) rotate(-10deg); } }

/* --- NEW GALLERY CAROUSEL STYLES --- */
.gallery-carousel {
    background-color: var(--primary-dark);
    padding: 5rem 0;
    color: var(--white);
    overflow: hidden;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-track-container {
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    width: 250px;
    height: 320px;
    cursor: pointer;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, filter 0.5s ease-in-out;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    -webkit-box-reflect: below 1px linear-gradient(transparent, transparent, #0004);
}
.carousel-item .notebook-details {
    display: none; /* Hide old details */
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}
.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}
.carousel-nav.prev { left: 10%; }
.carousel-nav.next { right: 10%; }

.carousel-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 0 1rem;
    font-weight: 500;
}
.carousel-info-price, .carousel-info-pages {
    font-size: 1.2rem;
}
.carousel-info-details h2 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.carousel-info-details p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* --- NEW PRODUCT MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.product-modal-content {
    position: relative;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}
.modal-overlay.active .product-modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.modal-close-btn:hover {
    opacity: 1;
}

.modal-left {
    text-align: left;
}
.modal-left #modal-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.modal-left #modal-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.modal-quote {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.9;
    border-left: 2px solid var(--primary-light);
    padding-left: 1rem;
    margin-bottom: 2rem;
}
.modal-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.modal-add-to-cart {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 20px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    flex-grow: 1;
}
.modal-add-to-cart i { margin-right: 0.5rem; }
.modal-add-to-cart:hover { background-color: var(--gray-200); }
.modal-wishlist {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: var(--white);
}
.modal-wishlist:hover { background: rgba(255, 255, 255, 0.1); }

.modal-center {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-notebook-bg {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-image: radial-gradient(rgba(0,0,0,0.2) 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    position: absolute;
}
.modal-notebook-image {
    width: 220px;
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.2));
}

.modal-notebook-details {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--white);
    text-align: left;
    width: 150px;
}
.modal-notebook-details p {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.modal-notebook-details hr {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0.3rem 0;
}

.modal-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: flex-start;
    padding-top: 2rem;
}
.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.8rem;
}
.detail-item span { font-weight: 500; }
.detail-item i {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.detail-item i:hover { opacity: 1; }
.modal-footer-text {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}


/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--white);
  opacity: 0.9;
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--primary-color);
}

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

.about-story h3 {
  color: var(--white);
}

.about-quote {
  background-color: var(--primary-dark);
  color: var(--gray-100);
  padding: 2rem;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-logo {
  margin-bottom: 1rem;
}
.quote-logo img {
    max-width: 200px;
}

.about-philosophy {
  background-color: var(--gray-100);
  color: var(--gray-800);
  padding: 3rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.about-philosophy h3 {
  color: var(--primary-color);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: var(--primary-color);
}

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

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--gray-200);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--primary-light);
  background-color: var(--primary-dark);
  color: var(--white);
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
  opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.contact-form .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-weight: 700;
}
.contact-form .btn-primary:hover {
    background-color: var(--primary-dark);
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-item i {
  color: var(--white);
}

.social-media {
  margin-bottom: 2rem;
}

.contact-info .social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}
.contact-info .social-icons a img {
    height: 2rem;
    opacity: 0.80;
    transition: opacity 0.3s ease;
}
.contact-info .social-icons a:hover img {
    opacity: 1;
}


.studio-info {
  background-color: var(--primary-dark);
  padding: 2rem;
  border-radius: 0.5rem;
}

.map-placeholder {
  height: 8rem;
  background-color: var(--primary-dark);
  border: 1px solid var(--primary-light);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  margin-top: 1rem;
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: var(--gray-100);
  text-decoration-color: var(--gray-100);
  padding: 3rem 0 1.5rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--gray-100);
}

.logo-mini {
  width: 2rem;
  height: 2rem;
  background-color: var(--primary-color);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mini img {
    width: 80%;
}

.footer-brand p {
  color: var(--gray-100);
  font-size: 0.875rem;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--gray-50);
}

.footer ul {
  list-style: none;
}

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

.footer ul li a {
  color: var(--gray-100);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  color: var(--gray-700);
  transition: all 0.3s ease;
}

.footer-social-icon img {
    width: 90%;
    opacity: 0.90;
    transition: opacity 0.3s ease;
}
.footer-social-icon:hover img {
    opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--gray-300);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-100);
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .product-modal-content {
        grid-template-columns: 1fr;
        max-width: 450px;
        max-height: 90vh;
        overflow-y: auto;
        padding: 2rem 1.5rem;
    }
    .modal-left, .modal-right {
        grid-row: auto;
        text-align: center;
    }
    .modal-actions {
        justify-content: center;
    }
    .modal-quote {
        text-align: left;
    }
    .modal-center {
        order: -1;
    }
}


@media (max-width: 992px) {
  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-nav.prev { left: 5%; }
  .carousel-nav.next { right: 5%; }
}

@media (max-width: 768px) {
  .nav-links, .navbar .btn-outline {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-logo img {
    max-width: 220px;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .floating-notebook {
    transform: scale(0.8);
  }

  .notebook-1 { top: 2rem; left: 1rem; }
  .notebook-2 { top: 5rem; right: 1rem; }
  .notebook-3 { display: none; }
  
  .carousel-info { flex-direction: column; gap: 1rem; }
  .carousel-info-price, .carousel-info-pages { order: 2; }
  .carousel-info-details { order: 1; }
  .carousel-info-details h2 { font-size: 1.8rem; }
  
  .carousel-nav {
      bottom: -60px;
      top: auto;
      transform: translateY(0);
  }
}

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