/* RESET & VARIABLES - UPDATED COLOR SCHEME */
:root {
  --primary: #ff9933; /* Saffron */
  --primary-dark: #e68a00; /* Darker Saffron */
  --secondary: #000000; /* Black */
  --accent: #ffffff; /* White */
  --dark-1: #0a0a0a; /* Near Black */
  --dark-2: #1a1a1a; /* Dark Gray */
  --dark-3: #2a2a2a; /* Medium Gray */
  --light-1: #ffffff; /* White */
  --light-2: #f0f0f0; /* Light Gray */
  --light-3: #d0d0d0; /* Medium Light Gray */
  --gradient: linear-gradient(135deg, #ff9933, #000000, #ffffff);
  --saffron-gradient: linear-gradient(135deg, #ff9933, #ffb366);
  --glass: rgba(26, 26, 26, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--dark-1);
  color: var(--light-1);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(255, 153, 51, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.2) 0%, transparent 40%),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 60%
    );
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--dark-2);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 4rem;
  background: var(--saffron-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  color: var(--light-1);
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--light-1);
}

h4 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

p {
  color: var(--light-3);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.highlight {
  color: var(--primary);
  font-weight: 600;
}

.code-font {
  font-family: "JetBrains Mono", monospace;
}

/* LAYOUT */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
}

section {
  padding: 120px 0;
  position: relative;
}

/* NAVIGATION */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid var(--glass-border);
}

.navbar.scrolled {
  padding: 15px 0;
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--saffron-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  color: var(--light-2);
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
}

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

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light-1);
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-subtitle::before {
  content: ">";
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.btn-primary {
  background: var(--saffron-gradient);
  color: var(--secondary);
  box-shadow: 0 10px 30px -10px rgba(255, 153, 51, 0.5);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px -10px rgba(255, 153, 51, 0.7);
}

.btn-secondary {
  background: transparent;
  color: var(--light-1);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: rgba(255, 153, 51, 0.1);
  color: var(--primary);
  transform: translateY(-5px);
}

.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  z-index: 1;
  opacity: 0.7;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: var(--saffron-gradient);
  filter: blur(40px);
  opacity: 0.2;
  animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 60%;
  left: 70%;
  animation-delay: 2s;
}

.shape:nth-child(3) {
  width: 100px;
  height: 100px;
  top: 30%;
  left: 80%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* STATS SECTION */
.stats {
  padding: 80px 0;
  background: rgba(26, 26, 26, 0.5);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background: var(--glass);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--saffron-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  color: var(--light-3);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* SKILLS SLIDER SECTION */
.skills-section {
  position: relative;
  overflow: hidden;
}

.skills-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.slider-nav {
  display: flex;
  gap: 15px;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--light-1);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-3px);
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slider-btn:disabled:hover {
  background: var(--glass);
  color: var(--light-1);
  transform: none;
}

.skills-slider-container {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

.skills-slider {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.skill-slide {
  flex: 0 0 calc(25% - 15px);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 30px 25px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.skill-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 153, 51, 0.2),
    transparent
  );
  transition: left 0.7s;
}

.skill-slide:hover::before {
  left: 100%;
}

.skill-slide:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.skill-slide-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.skill-slide-name {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--light-1);
}

.skill-slide-description {
  color: var(--light-3);
  font-size: 0.95rem;
  margin-bottom: 20px;
  min-height: 60px;
}

.skill-slide-level {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.skill-level-bar-container {
  flex-grow: 1;
  height: 6px;
  background: var(--dark-3);
  border-radius: 3px;
  overflow: hidden;
  margin-right: 15px;
}

.skill-level-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  width: 0;
  transition: width 1.5s ease-out;
}

.skill-level-percent {
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dark-3);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* PROJECTS SLIDER SECTION */
.projects-section {
  position: relative;
  overflow: hidden;
}

.projects-slider-container {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

.projects-slider {
  display: flex;
  transition: transform 0.5s ease;
  gap: 40px;
}

.project-slide {
  flex: 0 0 calc(50% - 20px);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 550px;
}

@media (max-width: 992px) {
  .project-slide {
    flex: 0 0 calc(100% - 20px);
  }
}

.project-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--saffron-gradient);
  transform: scaleY(0);
  transition: transform 0.5s ease;
  transform-origin: top;
}

.project-slide:hover::before {
  transform: scaleY(1);
}

.project-slide:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.project-slide-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.project-slide-icon {
  font-size: 2.2rem;
  color: var(--primary);
}

.project-slide-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.project-tech-tag {
  background: rgba(255, 153, 51, 0.2);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 153, 51, 0.3);
  transition: var(--transition);
}

.project-tech-tag:hover {
  background: rgba(255, 153, 51, 0.4);
  transform: translateY(-2px);
}

.project-slide-features {
  margin: 20px 0;
  flex-grow: 1;
}

.project-slide-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--light-3);
}

.project-slide-feature i {
  color: var(--primary);
}

.project-slide-links {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.project-slide-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.project-slide-link:hover {
  color: var(--light-1);
  transform: translateX(5px);
}

/* ABOUT SECTION */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-bottom: 25px;
  font-size: 1.125rem;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-terminal {
  background: var(--dark-2);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  font-family: "JetBrains Mono", monospace;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--dark-3);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red {
  background: #ff5f56;
}
.terminal-dot.yellow {
  background: #ffbd2e;
}
.terminal-dot.green {
  background: #27c93f;
}

.terminal-line {
  margin-bottom: 15px;
  color: var(--light-2);
}

.terminal-line .prompt {
  color: var(--primary);
}

.terminal-line .command {
  color: var(--light-1);
}

.terminal-line .output {
  color: var(--light-3);
}

.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 20px;
  background-color: var(--primary);
  margin-left: 5px;
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* CONTACT SECTION */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 153, 51, 0.1),
    transparent
  );
  transition: left 0.7s;
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 153, 51, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.contact-card:hover .contact-icon {
  background: var(--primary);
  color: var(--secondary);
  transform: scale(1.1);
}

.contact-card-content {
  flex: 1;
}

.contact-action {
  color: var(--primary);
  font-size: 0.9rem;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.contact-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  color: var(--light-2);
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--light-1);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* FOOTER */
footer {
  padding: 60px 0 30px;
  background: rgba(10, 10, 10, 0.9);
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--dark-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-1);
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
  color: var(--light-3);
  font-size: 0.9rem;
}

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

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

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}
.delay-5 {
  transition-delay: 0.5s;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  h1 {
    font-size: 3.5rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  .hero-visual {
    display: none;
  }
  .skill-slide {
    flex: 0 0 calc(33.333% - 14px);
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.2rem;
  }
  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
  }
  .skill-slide {
    flex: 0 0 calc(50% - 10px);
  }
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  .container {
    padding: 0 20px;
  }
  section {
    padding: 80px 0;
  }
  .hero-btns {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .skill-slide {
    flex: 0 0 calc(100% - 0px);
  }
  .project-slide {
    padding: 30px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .project-slide {
    padding: 25px;
  }
}
