/* Dark mode variables */
:root[data-theme="dark"] {
    --bg-gradient-start: #0f172a;
    --bg-gradient-mid: #1e1b4b;
    --bg-gradient-end: #0f172a;
    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --form-bg: rgba(15, 23, 42, 0.8);
  }

  /* Light mode variables */
  :root[data-theme="light"] {
    --bg-gradient-start: #f8fafc;
    --bg-gradient-mid: #e2e8f0;
    --bg-gradient-end: #f8fafc;
    --text-primary: rgba(15, 23, 42, 0.92);
    --text-secondary: rgba(15, 23, 42, 0.7);
    --glass-bg: rgba(15, 23, 42, 0.05);
    --glass-border: rgba(15, 23, 42, 0.1);
    --form-bg: rgba(255, 255, 255, 0.8);
  }

  /* Theme toggle styles */
  .theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .theme-toggle:hover {
    background: var(--glass-border);
  }

  /* Modified navbar styles */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--bg-gradient-start);
      padding: 1rem;
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }

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

    .menu-toggle {
      display: block;
      background: none;
      border: none;
      color: var(--text-primary);
      cursor: pointer;
      padding: 0.5rem;
    }
  }

  @media (min-width: 769px) {
    .menu-toggle {
      display: none;
    }
  }

  /* Form styles */
  #contact .container {
    background: var(--form-bg);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    max-width: 500px;
    margin: 0 auto;
  }

  input,
  textarea {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
  }

  input:focus,
  textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
  }

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden; /* Ensures the pseudo-element doesn't overflow */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1483817101829-339b08e8d83f?q=80&w=1104&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    filter: blur(5px); /* Adjust blur strength as needed */
    z-index: -1; /* Puts the blurred background behind the content */
    transform: scale(1.05); /* Counteracts blur shrinking effect */
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative; /* Ensure content is above pseudo-element */
    z-index: 1; /* Ensure content is above pseudo-element */
}

.profile-image-container {
    flex-shrink: 0;
    margin-right: 2rem;
}

.profile-image {
    width: 300px; /* Increased size */
    height: 300px; /* Increased size */
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.hero-text {
    text-align: left;
}

/* GitHub Projects Metadata */
.project-meta {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.project-language,
.project-stars {
    color: #666;
}

/* Project Buttons */
.project-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.project-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

/* Hero Carousel */
.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    padding: 0 2rem;
}

.carousel-container {
    left: 3px;
    position: relative;
    flex: 1;
    max-width: 300px;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
}

.carousel-images {
    left: 5px;
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 0.5rem;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.carousel-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-image.active {
    opacity: 1;
}

.hero-text {
    flex: 4;
    text-align: left;
    min-width: 0;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .carousel-container {
        max-width: 200px;
        width: 200px;
        height: 200px;
    }

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

/* Section scroll indicators */
.scroll-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot:hover {
    background: var(--accent-green);
    transform: scale(1.2);
}

.scroll-dot.active {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

@media (max-width: 768px) {
    .scroll-indicator {
        right: 1rem;
    }
}
