:root {
  /* Color Palette */
  --color-background-light: #f5f5f5;
  --color-text-dark: #1b2231;
  --color-accent-green: #16874c;
  --color-white: #fff;
  --color-text-medium: #535965;
  --color-text-light: #999;
  --color-border-light: #ddd;

  /* Shadow Effects */
  --shadow-subtle: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-hover: rgba(0, 0, 0, 0.25);
  --shadow-card-depth: rgba(0, 0, 0, 0.2);

  /* Typography */
  --font-primary: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--color-background-light);
  color: var(--color-text-dark);
  background-image: url("assets/textures/subtle-texture.png");
  background-repeat: repeat;
  background-size: auto;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  margin-bottom: 0.5em;
}

p {
  font-family: var(--font-body);
  color: var(--color-text-medium);
  margin-bottom: 1em;
}

a {
  text-decoration: none;
  color: inherit;
  /* Inherit color to avoid specificity issues */
}

/* Header/Navbar */
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1em 2em;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0px 8px 24px var(--shadow-medium);
  border-radius: 0 0 10px 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 28px;
  vertical-align: middle;
}

.navbar-links {
  display: flex;
  list-style: none;
}

.navbar-links li {
  margin-left: 2em;
}

.navbar-links a {
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-links a:hover {
  color: var(--color-accent-green);
}

/* Sections */
.glassmorphic-section {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(50px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  box-shadow: 0px 8px 24px var(--shadow-medium);
  margin: 20px auto;
  max-width: 1200px;
  padding: 20px;
  transition: box-shadow 0.3s ease-in-out;
}

.glassmorphic-section:hover {
  box-shadow: 0px 12px 30px var(--shadow-hover);
}

/* Statement Section */
#statement {
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(22, 135, 76, 0.2));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

#statement h2 {
  font-family: var(--font-heading);
  font-size: 3.5em;
  font-weight: 700;
  color: var(--color-accent-green);
  animation: fadeInScale 1.5s ease-out;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

#statement p {
  font-family: var(--font-body);
  font-size: 1.4em;
  color: var(--color-text-medium);
  animation: fadeIn 2s ease-out 0.5s backwards;
  position: relative;
  z-index: 1;
}

#statement::before,
#statement::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background-color: rgba(22, 135, 76, 0.1);
  z-index: 0;
}

#statement::before {
  width: 150px;
  height: 150px;
  top: 20%;
  left: 10%;
  animation: float 6s ease-in-out infinite alternate;
}

#statement::after {
  width: 200px;
  height: 200px;
  bottom: 15%;
  right: 10%;
  animation: float 7s ease-in-out infinite alternate reverse;
}

/* Animations */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-15px);
  }
}

/* Gallery Grid */
#styles {
  text-align: center;
}

#styles h2 {
  font-family: var(--font-heading);
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* Responsive columns */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.style-card {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 4px 12px var(--shadow-card-depth);
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  transition: box-shadow 0.3s ease-in-out, opacity 0.6s ease-out, transform 0.6s ease-out;
  cursor: pointer;
  border: 1px solid var(--color-border-light);
}

.style-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.style-card:hover {
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
}

.style-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.style-card:hover img {
  transform: scale(1.05);
}

/* Contact Section */
#contact {
  text-align: center;
}

#contact h2 {
  font-family: var(--font-heading);
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-white);
  color: var(--color-text-dark);
  border: 1px solid var(--color-border-light);
  border-radius: 5px;
  padding: 10px 15px;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 2px 5px var(--shadow-subtle);
}

.cta-link:hover {
  background-color: var(--color-accent-green);
  color: var(--color-white);
  box-shadow: 0px 4px 10px var(--shadow-medium);
}

.cta-link i {
  margin-right: 8px;
  font-size: 1.2em;
}

#contact h3 {
  font-family: var(--font-heading);
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.8em;
}

#contact .bio {
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.email-link {
  margin-top: 20px;
}

/* Footer */
.site-footer {
  background-color: var(--color-text-dark);
  color: var(--color-white);
  text-align: center;
  padding: 1.5em 0;
  position: relative;
  z-index: 10;
}

#footer-text {
  font-size: 0.9em;
}

/* Scroll to Top Button */
#scroll-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-accent-green);
  color: var(--color-white);
  border: none;
  border-radius: 5px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 1.2em;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, background-color 0.3s ease;
  z-index: 100;
}

#scroll-to-top.show {
  display: block;
  opacity: 0.8;
}

#scroll-to-top:hover {
  opacity: 1;
  background-color: #116338;
}

#scroll-to-top i {
  vertical-align: middle;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .navbar-container {
    padding: 1em;
  }

  .navbar-links {
    margin-left: auto;
    /* Push links to the right */
  }

  .navbar-links li {
    margin-left: 1.5em;
  }

  #statement h2 {
    font-size: 2.5em;
  }

  #statement p {
    font-size: 1.2em;
    padding: 0 1em;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 0 1em;
  }

  .glassmorphic-section {
    margin: 15px;
    padding: 15px;
  }

  .social-links {
    gap: 10px;
    margin-bottom: 20px;
  }

  .cta-link {
    padding: 8px 12px;
    font-size: 0.9em;
  }

  .cta-link i {
    font-size: 1em;
    margin-right: 5px;
  }

  #contact h3 {
    font-size: 1.6em;
  }

  #contact .bio {
    padding: 0 1em;
  }
}

@media (max-width: 576px) {
  .navbar-links {
    display: none;
    /* Hide navigation links on smaller screens */
  }

  .navbar-header {
    width: 100%;
    display: flex;
    justify-content: center;
    /* Center the logo */
  }

  .logo img {
    height: 24px;
  }

  #statement h2 {
    font-size: 2em;
  }

  #statement p {
    font-size: 1em;
  }
}