
:root {
  --primary: #6a0dad;
  --primary-dark: #4b0082;
  --primary-light: #9b59b6;
  --secondary: #f8f1ff;
  --dark: #2c0a4d;
  --light: #ffffff;
  --gray: #f5f0fa;
  --text: #4a4453;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 5rem 0;
}


nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: var(--light);
  box-shadow: 0 2px 15px rgba(106, 13, 173, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo{
    font-style: italic;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links li a {
  position: relative;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  color: var(--dark);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nav-links li a:hover {
  color: var(--primary);
}

.nav-links li a:hover::after {
  width: 100%;
}

.burger {
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
  color: var(--dark);
  transition: all 0.3s ease;
}


.hero {
  height: 90vh;
  background: linear-gradient(rgba(106, 13, 173, 0.4), rgba(106, 13, 173, 0.4)), 
              url('assets/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--light);
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--light);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}


.gallery {
  background-color: var(--secondary);
  padding: 4rem 1rem;
}

.gallery h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  position: relative;
  color: var(--dark);
}

.gallery h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 1rem auto;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 200px;
  gap: 1.5rem;
  padding: 0 1rem;
}

.masonry-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(106, 13, 173, 0.1);
  transition: all 0.3s ease;
}

.masonry-item.regular {
  grid-row: span 1;
}

.masonry-item.tall {
  grid-row: span 2;
}

.masonry-item.wide {
  grid-column: span 2;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(106, 13, 173, 0.8) 0%, transparent 100%);
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  display: flex;
  align-items: flex-end;
  min-height: 50%;
}

.overlay p {
  margin: 0;
  font-weight: 500;
  font-size: 1.1rem;
}

.masonry-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(106, 13, 173, 0.2);
}

.masonry-item:hover img {
  transform: scale(1.1);
}

.masonry-item:hover .overlay {
  transform: translateY(0);
}

/* ========== ABOUT SECTION ========== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 5%;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  color: var(--dark);
}

.about-content h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 1rem 0;
}

.about-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(106, 13, 173, 0.1);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-img:hover img {
  transform: scale(1.05);
}


.contact {
  background-color: var(--secondary);
  padding: 5rem 5%;
}

.contact h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  position: relative;
  color: var(--dark);
}

.contact h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 1rem auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.contact-info i {
  color: var(--primary);
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--light);
  color: var(--primary);
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(106, 13, 173, 0.1);
}

.social-links a:hover {
  background-color: var(--primary);
  color: var(--light);
  transform: translateY(-5px);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.2);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}


.btn, .btn-outline {
  display: inline-block;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s ease;
  text-align: center;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.btn {
  background-color: var(--primary);
  color: var(--light);
  border: 2px solid var(--primary);
}

.btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(106, 13, 173, 0.15);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--light);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(106, 13, 173, 0.1);
}

/* ========== FOOTER ========== */
footer {
  background-color: var(--dark);
  color: var(--light);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
}
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4 {
  color: #ffffff;
}
.dark-mode .hero {
  background: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('assets/hero-bg1.jpg') center/cover no-repeat;
}

.dark-mode nav {
  background-color: #0d0d0d;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .nav-links li a {
  color: #e0e0e0;
}

.dark-mode .gallery,
.dark-mode .contact {
  background-color: #1e1e1e;
}

.dark-mode .contact-form input,
.dark-mode .contact-form textarea {
  background-color: #2d2d2d;
  border-color: #444;
  color: #e0e0e0;
}

.dark-mode .btn-outline {
  color: var(--primary-light);
  border-color: var(--primary-light);
}

.dark-mode .btn-outline:hover {
  background-color: var(--primary-light);
}

/* Dark Mode Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
  background-color: var(--primary-dark);
}


/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 992px) {
  .about, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-img {
    order: -1;
    max-height: 500px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--light);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: all 0.5s ease;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .burger {
    display: block;
  }
  
  .burger.active {
    transform: rotate(90deg);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .masonry-item.wide {
    grid-column: span 1;
  }
}

@media (max-width: 576px) {
  .masonry-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  
  .masonry-item.tall {
    grid-row: span 1;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .btn, .btn-outline {
    padding: 0.8rem 1.8rem;
  }
  
  .about, .contact {
    padding: 3rem 1rem;
  }
  
  .contact-info p {
    font-size: 1rem;
  }
}