





/* Modern Portfolio CSS with Complete Animations */

/* CSS Variables */
:root {
  --primary-color: #8b5cf6;
  --secondary-color: #3b82f6;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Loading Screen */
#loadingScreen {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: opacity 0.5s ease-out;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Background */
.hero-background {
  background-image: url("https://hebbkx1anhila5yf.public.blob.vercel-storage.com/ChatGPT%20Image%20Jul%209%2C%202025%2C%2011_27_23%20PM-cfa85CFTYwUbqi2QZ4xMub9Q7CLa7Y.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Navigation Styles */
#leftNav {
  opacity: 1 
  visibility: visible 
  display: block 
  transition: var(--transition);
}

.nav-container-home {
  background: rgba(120, 53, 15, 0.15) !important;
  border-color: rgba(180, 83, 9, 0.2) !important;
  backdrop-filter: blur(12px);
}

.nav-container-other {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(229, 231, 235, 0.5) !important;
  box-shadow: var(--shadow-xl) !important;
  backdrop-filter: blur(12px);
}

.nav-item {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item.active.home-section {
 
  color: white !important;
  box-shadow: var(--shadow-md) !important;
  transform: scale(1.05) !important;
}

.nav-item.active.other-section {
  background: var(--text-dark) !important;
  color: white !important;
  box-shadow: var(--shadow-md) !important;
  transform: scale(1.05) !important;
}

.nav-item:not(.active) {
  color: rgba(251, 191, 36, 0.9);
}

.nav-item:not(.active):hover {
  color: white;
  background: rgba(180, 83, 9, 0.2);
  transform: translateX(-2px);
}

.nav-container-other .nav-item:not(.active) {
  color: var(--text-light);
}

.nav-container-other .nav-item:not(.active):hover {
  color: var(--text-dark);
  background: rgba(243, 244, 246, 1);
}

/* Mobile Navigation */
#mobileNav.show {
  transform: translateY(0) !important;
}

.mobile-nav-item {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

/* Stat Cards */
.stat-card {
  background: rgba(120, 53, 15, 0.15);
  backdrop-filter: blur(8px);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(180, 83, 9, 0.2);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card.clickable {
  cursor: pointer;
}

.stat-card.clickable:hover {
  background: rgba(180, 83, 9, 0.25);
  transform: translateX(-5px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

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

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

/* Project Cards */
.project-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

/* Contact Cards */
.contact-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.contact-card.clickable {
  cursor: pointer;
}

.contact-card.clickable:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.contact-card:not(.clickable) {
  opacity: 0.75;
  cursor: default;
}

/* Form Styles */
#contactForm {
  transition: var(--transition);
}

#contactForm input,
#contactForm textarea {
  transition: var(--transition);
}

#contactForm input:focus,
#contactForm textarea:focus {
  outline: none;
  ring: 2px solid var(--primary-color);
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Gradient Text */
.bg-gradient-to-r {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
button {
  transition: var(--transition);
  cursor: pointer;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

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

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

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Utility Classes */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

.pulse {
  animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  #leftNav {
    display: none !important;
  }

  .stat-card {
    margin: 0 auto;
    max-width: 200px;
  }

  .project-card,
  .contact-card {
    padding: 24px;
  }

  .hero-background {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .text-4xl {
    font-size: 2rem;
  }

  .text-5xl {
    font-size: 2.5rem;
  }

  .px-5 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dark);
}

/* Print Styles */
@media print {
  #leftNav,
  #mobileNav,
  .stat-card,
  footer {
    display: none !important;
  }

  body {
    background: white !important;
  }

  .hero-background {
    background: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000;
    --secondary-color: #000;
    --text-light: #000;
    --border-color: #000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
