/* Custom Properties */
:root {
/*     --kiwi: #a4c95e; */
    --kiwi: #D5B770;
    --kiwi-dark: #5A7D26;
    --kiwi-light: #B4E876;
    --orbit-accent: #DEE2E6;
    --dark-bg: #121212;
    --darker-bg: #0A0A0A;
    --light-bg: #F9FAFB;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gradient-primary: linear-gradient(to right, #BB8E4B, #DDC379, #F6EB9C);
}

/* Global Styles */
body {
    background-color: var(--dark-bg);
    color: white;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--kiwi);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--orbit-accent);
}

/* Navigation */
nav {
    transition: all 0.5s ease;
}

/* Initial transparent navbar */
.navbar-transparent {
    background-color: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.navbar-transparent .nav-links {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.5s ease;
}

/* Scrolled navbar */
.navbar-scrolled {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(164, 201, 94, 0.2);
}

.navbar-scrolled .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover effects only apply to scrolled navbar */
.navbar-scrolled:hover {
    border-color: var(--kiwi);
    box-shadow: 0 4px 12px rgba(164, 201, 94, 0.3);
}

nav.active-glow {
    border-color: var(--kiwi) !important;
    box-shadow: 0 4px 15px rgba(164, 201, 94, 0.4) !important;
}

nav.pulse-border {
    animation: pulse-border 1.5s ease-in-out;
}

@keyframes pulse-border {
    0% {
        border-color: var(--kiwi);
        box-shadow: 0 4px 15px rgba(164, 201, 94, 0.7);
    }
    70% {
        border-color: var(--kiwi);
        box-shadow: 0 4px 25px rgba(164, 201, 94, 0.3);
    }
    100% {
        border-color: rgba(164, 201, 94, 0.2);
        box-shadow: 0 4px 0px rgba(164, 201, 94, 0);
    }
}

/* Initial page load state */
:root {
    --initial-load: false;
}

/* Force transparent navbar on initial load */
:root[style*="--initial-load: true"] #main-navbar {
    background-color: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

:root[style*="--initial-load: true"] .nav-links {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Mobile navbar always visible */
@media (max-width: 768px) {
    .navbar-transparent {
        background-color: rgba(10, 10, 10, 0.8);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(164, 201, 94, 0.2);
    }
}

.nav-link {
    position: relative;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--kiwi);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--kiwi);
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(164, 201, 94, 0);
}

.nav-link:hover::after {
    width: 100%;
    box-shadow: 0 2px 10px 1px rgba(164, 201, 94, 0.7);
}

/* Buttons */
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.5rem;
    min-width: 180px;
    background-color: var(--kiwi);
    color: var(--darker-bg);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.primary-button:hover {
    background-color: var(--kiwi-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(140, 191, 63, 0.3);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.5rem;
    min-width: 180px;
    background-color: transparent;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--orbit-accent);
    cursor: pointer;
    text-align: center;
}

.secondary-button:hover {
    background-color: var(--orbit-accent);
    color: var(--darker-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 221, 198, 0.3);
}

/* Dot Pattern Background */
.dot-pattern {
    background-image: radial-gradient(var(--gray-800) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.text-gradient-primary {
    background: var(--gradient-primary);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: shine 3s linear infinite;
    text-shadow: 0 0 10px rgba(187, 142, 75, 0.3);
    position: relative;
    z-index: 1;
}

@keyframes shine {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--kiwi);
    color: var(--darker-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(140, 191, 63, 0.3);
}

/* Feature Icons */
.feature-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    font-size: 1.25rem;
}

/* Skill Cards */
.skill-card {
    background-color: rgba(18, 18, 18, 0.5);
    border: 1px solid var(--gray-800);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--kiwi);
}

.skill-card-content {
    display: flex;
    flex-direction: column;
}

.skill-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.75rem;
    text-align: center;
}

.skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-icon.feature-icon-container {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    color: var(--gray-300);
    transition: all 0.3s ease;
}

.skill-item:hover {
    color: var(--kiwi);
    transform: translateX(5px);
}

/* Responsive skill cards */
@media (max-width: 991px) {
    .skill-card {
        padding: 1.25rem;
    }

    .skill-card-content {
        flex-direction: row;
        align-items: center;
    }

    .skill-header {
        min-width: 90px;
        margin-right: 1.5rem;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .skill-list {
        flex: 1;
    }

    .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .skill-icon.feature-icon-container {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }
}



/* Project Cards */
.project-card {
    background-color: rgba(18, 18, 18, 0.5);
    border: 1px solid var(--gray-800);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--kiwi);
}

.project-image {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Project overlay styles removed */

.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--kiwi);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: var(--kiwi);
    color: var(--darker-bg);
}

/* Project Filter removed */

/* Form Styling */
.contact-form-container {
    transition: all 0.3s ease;
}

.contact-form-container:hover {
    border-color: var(--kiwi);
    box-shadow: 0 0 15px rgba(164, 201, 94, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gray-700);
    border-radius: 6px;
    color: white;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-input:hover {
    border-color: var(--gray-600);
}

.form-input:focus {
    outline: none;
    border-color: var(--kiwi);
    box-shadow: 0 0 10px rgba(140, 191, 63, 0.2);
}

.form-input::placeholder {
    color: var(--gray-500);
}

/* Contact Links */
.contact-link {
    display: inline-flex;
    align-items: center;
    color: white;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--kiwi);
    transform: translateY(-3px);
}

/* Background Image Layer */
#bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;

    background-image: url('./assets/images/wall3.jpg');
}

/* Particle Canvas Animation */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Media Queries */
@media (max-width: 768px) {
    .contact-link {
        flex-direction: column;
        margin-bottom: 1rem;
    }

    .contact-link i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .skill-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Project filter styles removed */

    .primary-button, .secondary-button {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

/* Orbital Navigation Styles */
.orbital-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.orbital-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 80%;
  max-width: 800px;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(164, 201, 94, 0.3);
  border-radius: 50%;
  pointer-events: none;
  box-sizing: border-box;
}

.orbit-1 {
  width: 500px;
  height: 500px;
}

.orbit-2 {
  width: 700px;
  height: 700px;
}

.orbit-3 {
  width: 900px;
  height: 900px;
}

.orbit-4 {
  width: 1100px;
  height: 1100px;
}


.orbital-nav-item {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: rgba(10, 10, 10, 0.8);
  border: 2px solid var(--kiwi);
  border-radius: 50%;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 20;
  box-shadow: 0 0 15px rgba(164, 201, 94, 0.3);
  cursor: pointer;
  pointer-events: auto;
  transform-origin: center center;
}

.orbital-nav-item:hover, .orbital-nav-item:focus {
  background-color: var(--kiwi);
  color: var(--darker-bg);
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(164, 201, 94, 0.6);
}

.orbital-nav-item .nav-icon {
  font-size: 1.5rem;
}

.orbital-nav-item .nav-text {
  position: absolute;
  background-color: rgba(10, 10, 10, 0.9);
  color: var(--kiwi);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.orbital-nav-item:hover .nav-text {
  opacity: 1;
}

/* Position each nav item on its orbit */
.nav-about {
  /* Start at 45 degrees (top-right) */
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -30px; /* Half of the nav item height */
  margin-left: -30px; /* Half of the nav item width */
  transform: rotate(45deg) translateX(250px) rotate(-45deg);
  animation: orbit-1 60s linear infinite;
}

.nav-skills {
  /* Start at 135 degrees (bottom-right) */
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -30px;
  margin-left: -30px;
  transform: rotate(135deg) translateX(350px) rotate(-135deg);
  animation: orbit-2 80s linear infinite;
}

.nav-projects {
  /* Start at 225 degrees (bottom-left) */
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -30px;
  margin-left: -30px;
  transform: rotate(225deg) translateX(450px) rotate(-225deg);
  animation: orbit-3 100s linear infinite;
}

.nav-contact {
  /* Start at 315 degrees (top-left) */
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -30px;
  margin-left: -30px;
  transform: rotate(315deg) translateX(550px) rotate(-315deg);
  animation: orbit-4 120s linear infinite;
}

@keyframes orbit-1 {
  from {
    transform: rotate(-45deg) translateX(250px) rotate(45deg);
  }
  to {
    transform: rotate(-405deg) translateX(250px) rotate(405deg);
  }
}

@keyframes orbit-2 {
  from {
    transform: rotate(-135deg) translateX(350px) rotate(135deg);
  }
  to {
    transform: rotate(-495deg) translateX(350px) rotate(495deg);
  }
}

@keyframes orbit-3 {
  from {
    transform: rotate(-225deg) translateX(450px) rotate(225deg);
  }
  to {
    transform: rotate(-585deg) translateX(450px) rotate(585deg);
  }
}

@keyframes orbit-4 {
  from {
    transform: rotate(315deg) translateX(550px) rotate(-315deg);
  }
  to {
    transform: rotate(675deg) translateX(550px) rotate(-675deg);
  }
}

/* Responsive adjustments for orbital navigation */
@media (max-width: 1200px) {
  .orbit-1 {
    width: 400px;
    height: 400px;
  }

  .orbit-2 {
    width: 600px;
    height: 600px;
  }

  .orbit-3 {
    width: 800px;
    height: 800px;
  }

  .orbit-4 {
    width: 1000px;
    height: 1000px;
  }

  .nav-about {
    transform: rotate(45deg) translateX(200px) rotate(-45deg);
  }

  .nav-skills {
    transform: rotate(135deg) translateX(300px) rotate(-135deg);
  }

  .nav-projects {
    transform: rotate(225deg) translateX(400px) rotate(-225deg);
  }

  .nav-contact {
    transform: rotate(315deg) translateX(500px) rotate(-315deg);
  }

  @keyframes orbit-1 {
    from {
      transform: rotate(45deg) translateX(200px) rotate(-45deg);
    }
    to {
      transform: rotate(405deg) translateX(200px) rotate(-405deg);
    }
  }

  @keyframes orbit-2 {
    from {
      transform: rotate(135deg) translateX(300px) rotate(-135deg);
    }
    to {
      transform: rotate(495deg) translateX(300px) rotate(-495deg);
    }
  }

  @keyframes orbit-3 {
    from {
      transform: rotate(225deg) translateX(400px) rotate(-225deg);
    }
    to {
      transform: rotate(585deg) translateX(400px) rotate(-585deg);
    }
  }

  @keyframes orbit-4 {
    from {
      transform: rotate(315deg) translateX(500px) rotate(-315deg);
    }
    to {
      transform: rotate(675deg) translateX(500px) rotate(-675deg);
    }
  }
}

@media (max-width: 768px) {
  .orbit, .orbital-nav-item {
    display: none;
  }

  .orbital-center {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
  }

  .orbital-container {
    height: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Shifting gradient background for mobile */
  #hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(125deg,
      rgba(43, 51, 71, 0.15),
      rgba(10, 10, 10, 0.1) 25%,
      rgba(79, 105, 131, 0.15) 50%,
      rgba(187, 109, 75, 0.15) 75%,
      rgba(99, 119, 62, 0.15) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
    opacity: 0.7;
  }

  @keyframes gradientShift {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
}

/* Small stars in the background */
.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  opacity: 0.5;
  animation: twinkle 4s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.7;
    transform: scale(1);
  }
}

/* Shooting star animation */
.shooting-star {
  position: absolute;
  width: 1px;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255, 255, 255, 0.627) 50%, rgba(255,255,255,0) 100%);
  animation: shooting 10s infinite ease-out;
  opacity: 0;
}

@keyframes shooting {
  0% {
    transform: translateX(0) translateY(0) rotate(45deg);
    width: 0;
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  5% {
    width: 100px;
  }
  10% {
    transform: translateX(300px) translateY(300px) rotate(45deg);
    width: 0;
    opacity: 0;
  }
  100% {
    transform: translateX(300px) translateY(300px) rotate(45deg);
    width: 0;
    opacity: 0;
  }
}

/* Pulse animation for nav items when clicked */
.orbital-nav-item.pulse {
  animation: pulse-animation 0.5s ease-out;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(164, 201, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(164, 201, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(164, 201, 94, 0);
  }
}

/* Hero Content Animations */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  60% {
    opacity: 0.5;
    transform: translateY(-20px);
  }
  80% {
    transform: translateY(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}



.hero-title {
  opacity: 0;
  animation: fadeUp 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; /* quad easing */
}

.hero-subtitle {
  opacity: 0;
  animation: fadeUp 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards; /* quad easing */
}

.hero-buttons {
  opacity: 0;
  animation: fadeUp 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s forwards; /* quad easing */
}

/* Delayed fade-in for orbital lines */
.orbit {
  opacity: 0;
  animation: fadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 5s forwards; /* 5s delay */
}

/* Canvas animation commented out since element is commented out
#particleCanvas {
  opacity: 0;
  animation: fadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 6s forwards;
}
*/

/* Project Modal Styles */
.modal-open {
  overflow: hidden;
}

#project-modal {
  transition: visibility 0.3s ease;
}

#project-modal.active {
  visibility: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#project-modal.active .modal-overlay {
  opacity: 1;
}

.modal-container {
  max-height: 90vh;
  overflow-y: auto;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
}

#project-modal.active .modal-container {
  opacity: 1;
  transform: scale(1);
  border-color: var(--kiwi);
  box-shadow: 0 0 25px rgba(164, 201, 94, 0.2), 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-image-container {
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal-image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  transition: transform 0.5s ease;
  transform-origin: center;
  /* Make image twice as large as in the card */
  max-width: 200%;
}

.modal-image-container:hover #modal-image {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Hide modal on mobile */
@media (max-width: 768px) {
  .project-item {
    cursor: default;
  }

  #project-modal {
    display: none !important;
  }
}
