/* CSS Reset & Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Darker color palette with less vibrant colors */
  --beige: #2a2a2a;
  --beige-light: #3a3a3a;
  --navy: #0f1419;
  --teal: #4a5f6a;
  --sky-blue: #5a6f7a;
  --white: #e8e8e8;
  --text-light: #b8b8b8;

  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", sans-serif;

  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--white);
  background-color: var(--beige);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--navy);
  z-index: 1000;
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo image styling */
.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-decoration: none;
  display: block;
  transition: var(--transition);
}

.logo:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.logo-image {
  height: 60px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* Added hamburger menu button styles */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  transition: var(--transition);
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

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

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--teal);
  transition: var(--transition);
}

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1f1f1f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(74, 95, 106, 0.1);
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 15%;
  animation-delay: 3s;
  animation-duration: 20s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 20%;
  animation-delay: 6s;
  animation-duration: 22s;
}

.shape-4 {
  width: 250px;
  height: 250px;
  top: 30%;
  right: 25%;
  animation-delay: 2s;
  animation-duration: 28s;
}

.shape-5 {
  width: 180px;
  height: 180px;
  bottom: 30%;
  right: 10%;
  animation-delay: 5s;
  animation-duration: 24s;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero-logo-wrapper {
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease;
}

.hero-logo-text {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 3px;
  display: inline-block;
  position: relative;
}

.hero-logo-text::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: glow 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease forwards;
}

.title-line:nth-child(1) {
  animation-delay: 0.3s;
}

.title-line:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeIn 1s ease 0.8s forwards;
}

.btn-primary {
  background-color: var(--teal);
  color: var(--white);
  border: none;
  padding: 1.2rem 3rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
  opacity: 0;
  animation: fadeInUp 1s ease 1s forwards;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  background-color: var(--sky-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(74, 95, 106, 0.4);
}

/* About Section */
.about {
  background-color: var(--beige-light);
  padding: 6rem 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-image {
  flex-shrink: 0;
}

.about-image img {
  width: 200px;
  height: 200px;
}

.about-text {
  flex: 1;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

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

/* Projects Section */
.projects {
  background-color: var(--beige);
  padding: 6rem 0;
}

.projects .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 20, 25, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.project-overlay p {
  color: var(--text-light);
  text-align: center;
}

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

.contact .section-title {
  color: var(--white);
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-message {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3rem;
  background-color: var(--teal);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 500;
  transition: var(--transition);
}

.instagram-link:hover {
  background-color: var(--sky-blue);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(74, 95, 106, 0.4);
}

.instagram-link svg {
  flex-shrink: 0;
}

/* Footer */
.footer {
  background-color: #0a0d11;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.footer-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--white);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(15, 20, 25, 0.95);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  animation: zoom 0.3s;
}

.modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: var(--white);
  padding: 1rem 0;
  font-size: 1.2rem;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: var(--white);
  font-size: 40px;
  font-weight: bold;
  transition: var(--transition);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--teal);
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoom {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .logo-image {
    height: 45px;
  }

  .hero-logo-text {
    font-size: 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .floating-shape {
    opacity: 0.5;
  }

  .shape-1 {
    width: 150px;
    height: 150px;
  }

  .shape-2 {
    width: 100px;
    height: 100px;
  }

  .shape-3 {
    width: 80px;
    height: 80px;
  }

  .shape-4 {
    width: 120px;
    height: 120px;
  }

  .shape-5 {
    width: 90px;
    height: 90px;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

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

  .instagram-link {
    padding: 1.2rem 2rem;
    font-size: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Mobile menu styles - hide desktop nav and show hamburger */
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, #1a1f26 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.3rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  }

  .nav.active .nav-link {
    opacity: 1;
    transform: translateX(0);
  }

  .nav.active .nav-link:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav.active .nav-link:nth-child(2) {
    transition-delay: 0.2s;
  }

  .nav.active .nav-link:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav.active .nav-link:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav-link::after {
    display: none;
  }
}
