/* ==========================================
   ENHANCED PORTFOLIO STYLES
   Keeping existing color palette: #b88784
   ========================================== */

/* Enhanced Variables */
:root {
  /* Your existing colors preserved */
  --bg-color: #080808;
  --second-bg-color: #101010;
  --text-color: white;
  --main-color: #b88784;
  
  /* Enhanced gradient system */
  --gradient-primary: linear-gradient(135deg, #be9a83 0%, #de98dc 100%);
  --gradient-accent: linear-gradient(270deg, #f6ae81 10%, #f59feb 90%);
  --gradient-subtle: linear-gradient(135deg, rgba(184, 135, 132, 0.1) 0%, rgba(245, 159, 235, 0.1) 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px var(--main-color);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  
  /* Animation easing */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-sharp: cubic-bezier(0.4, 0, 0.6, 1);
}

/* ==========================================
   ENHANCED HERO SECTION
   ========================================== */

.home-enhanced {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 10%;
  background-color: var(--bg-color);
  overflow: hidden;
}

/* Animated Background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184, 135, 132, 0.4) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 159, 235, 0.3) 0%, transparent 70%);
  bottom: -10%;
  right: -10%;
  animation-delay: 10s;
}

@keyframes float-orb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

/* Floating Shapes */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  opacity: 0.05;
  animation: float-shape 15s ease-in-out infinite;
}

.shape-1 {
  width: 150px;
  height: 150px;
  border: 3px solid var(--main-color);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 100px;
  height: 100px;
  border: 2px solid #f59feb;
  border-radius: 50%;
  top: 60%;
  right: 15%;
  animation-delay: 5s;
}

.shape-3 {
  width: 120px;
  height: 120px;
  border: 2px solid var(--main-color);
  transform: rotate(45deg);
  bottom: 15%;
  left: 20%;
  animation-delay: 10s;
}

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

/* Hero Content */
.home-content-enhanced {
  position: relative;
  z-index: 10;
  max-width: 700px;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.8rem;
  background: rgba(184, 135, 132, 0.1);
  border: 1px solid rgba(184, 135, 132, 0.3);
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--main-color);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--main-color);
  border-radius: 50%;
  animation: pulse-ring 2s ease-in-out infinite;
  position: relative;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  animation: pulse-expand 2s ease-in-out infinite;
}

@keyframes pulse-expand {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Hero Title with Stagger */
.hero-title-wrapper {
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.title-line {
  display: block;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.word {
  display: inline-block;
  margin-right: 0.3em;
  opacity: 0;
  transform: translateY(100%);
  animation: word-reveal 0.8s var(--ease-smooth) forwards;
}

@keyframes word-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.name-highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Role Container */
.role-container {
  margin-bottom: 2rem;
}

.hero-role {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.role-separator {
  color: var(--main-color);
  font-weight: 400;
}

.role-specialty {
  color: var(--main-color);
  font-weight: 700;
  position: relative;
}

.role-specialty::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  animation: underline-expand 1s ease-out 0.5s backwards;
}

@keyframes underline-expand {
  from {
    width: 0;
  }
}

/* Hero Tagline */
.hero-tagline {
  font-size: 1.8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  max-width: 650px;
}

.highlight-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Enhanced Social Icons */
.social-icons-enhanced {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.social-link {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  border-radius: 50%;
  transition: all 0.3s var(--ease-smooth);
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.6s var(--ease-smooth) forwards;
}

.social-link[data-stagger="1"] { animation-delay: 0.1s; }
.social-link[data-stagger="2"] { animation-delay: 0.2s; }
.social-link[data-stagger="3"] { animation-delay: 0.3s; }

.social-link:hover {
  background: var(--main-color);
  color: white;
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.social-tooltip {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.2rem;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s var(--ease-smooth);
  pointer-events: none;
}

.social-link:hover .social-tooltip {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

/* Enhanced CTAs with Magnetic Effect */
.cta-group-enhanced {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 3rem;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.cta-primary {
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.cta-primary:hover::before {
  transform: translateX(100%);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(184, 135, 132, 0.5);
}

.cta-secondary {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--main-color);
}

.cta-secondary:hover {
  background: var(--main-color);
  transform: translateY(-3px);
}

.btn-icon {
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.cta-btn:hover .btn-icon {
  transform: translateX(5px);
}

/* Scroll Indicator */
.scroll-indicator-enhanced {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.scroll-text {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--main-color);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
  }
}

/* ==========================================
   ENHANCED HOME IMAGE
   ========================================== */

.home-img-enhanced {
  position: relative;
  z-index: 10;
  width: 400px;
  height: 400px;
}

/* Decorative Rings */
.img-decorative-ring {
  position: absolute;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: ring-pulse 3s ease-in-out infinite;
}

.ring-1 {
  inset: -10px;
  animation-delay: 0s;
}

.ring-2 {
  inset: -20px;
  animation-delay: 1.5s;
}

@keyframes ring-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.6;
  }
}

/* Image Container */
.img-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(184, 135, 132, 0.4);
  transition: all 0.5s var(--ease-smooth);
}

.img-container:hover {
  box-shadow: 0 0 80px rgba(184, 135, 132, 0.6);
  transform: scale(1.05);
}

.parallax-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.img-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(184, 135, 132, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

/* Tech Orbit Icons */
.tech-orbit {
  position: absolute;
  inset: -60px;
}

.tech-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(16, 16, 16, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid var(--main-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--main-color);
  animation: orbit-rotate 20s linear infinite;
  transition: all 0.3s ease;
}

.tech-icon:hover {
  background: var(--main-color);
  color: white;
  transform: scale(1.2);
  z-index: 10;
}

.tech-icon-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.tech-icon-2 {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  animation-delay: 5s;
}

.tech-icon-3 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 10s;
}

.tech-icon-4 {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  animation-delay: 15s;
}

@keyframes orbit-rotate {
  from {
    transform: rotate(0deg) translateX(220px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(220px) rotate(-360deg);
  }
}

/* ==========================================
   ENHANCED ABOUT SECTION
   ========================================== */

.about-enhanced {
  padding: var(--space-xl) 10%;
  background: var(--second-bg-color);
  position: relative;
}

.about-container-enhanced {
  max-width: 1400px;
  margin: 0 auto;
}

/* Section Header */
.section-header-enhanced {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 5rem;
}

.section-number {
  font-family: 'Courier New', monospace;
  font-size: 5rem;
  font-weight: 700;
  color: var(--main-color);
  opacity: 0.3;
  line-height: 1;
}

.section-title-group {
  flex: 1;
}

.section-title {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.title-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

/* About Grid */
.about-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem;
}

/* Story Cards */
.story-card {
  background: linear-gradient(135deg, rgba(184, 135, 132, 0.05) 0%, rgba(16, 16, 16, 0.9) 100%);
  border: 1px solid rgba(184, 135, 132, 0.2);
  border-radius: 20px;
  padding: 3rem;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-smooth);
}

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

.story-card:hover {
  transform: translateY(-8px);
  border-color: rgba(184, 135, 132, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-large {
  grid-column: span 7;
}

.card-process {
  grid-column: span 5;
}

.card-tech {
  grid-column: span 12;
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(184, 135, 132, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--main-color);
}

.card-header h3 {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--text-color);
}

/* Card Body */
.card-body p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.card-body p:last-child {
  margin-bottom: 0;
}

.highlight-text {
  color: var(--main-color);
  font-weight: 600;
  font-style: normal;
}

/* Process Steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.process-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border-left: 3px solid var(--main-color);
  transition: all 0.3s ease;
}

.process-step:hover {
  background: rgba(184, 135, 132, 0.1);
  transform: translateX(10px);
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}

.step-content h4 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* About Image Card */
.about-image-card {
  grid-column: span 5;
  position: relative;
}

.image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(184, 135, 132, 0.3);
}

.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-frame:hover .about-portrait {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.image-frame:hover .image-overlay {
  transform: translateY(0);
}

.overlay-stats {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-size: 2rem;
  color: var(--main-color);
}

.stat-label {
  display: block;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

/* Tech Stack Grid */
.tech-intro {
  font-size: 1.6rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem;
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.tech-category {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(184, 135, 132, 0.2);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.tech-category:hover {
  background: rgba(184, 135, 132, 0.1);
  border-color: rgba(184, 135, 132, 0.4);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--main-color);
}

.category-header i {
  font-size: 2.4rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-tag {
  padding: 0.6rem 1.4rem;
  background: rgba(184, 135, 132, 0.15);
  border: 1px solid rgba(184, 135, 132, 0.3);
  border-radius: 20px;
  font-size: 1.3rem;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.tech-tag:hover {
  background: rgba(184, 135, 132, 0.3);
  transform: translateY(-3px);
  border-color: var(--main-color);
}

/* Tech CTA */
.tech-cta {
  text-align: center;
  margin-top: 2rem;
}

.btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2.5rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50px;
  color: var(--main-color);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-inline:hover {
  background: var(--main-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(184, 135, 132, 0.3);
}

.btn-inline i {
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.btn-inline:hover i {
  transform: translateX(5px);
}

/* ==========================================
   ANIMATION UTILITIES
   ========================================== */

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-scale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Data Attribute Animations */
[data-animate] {
  opacity: 0;
}

[data-animate].animated {
  animation-fill-mode: forwards;
  animation-timing-function: var(--ease-smooth);
}

[data-animate="fade-in-up"].animated {
  animation-name: fade-in-up;
  animation-duration: 0.8s;
}

[data-animate="fade-in-scale"].animated {
  animation-name: fade-in-scale;
  animation-duration: 0.8s;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
  .home-enhanced {
    flex-direction: column-reverse;
    gap: 4rem;
    text-align: center;
  }

  .home-content-enhanced {
    max-width: 100%;
  }

  .home-img-enhanced {
    width: 350px;
    height: 350px;
    margin: 0 auto;
  }

  .cta-group-enhanced {
    justify-content: center;
  }

  .social-icons-enhanced {
    justify-content: center;
  }

  .about-grid-enhanced {
    grid-template-columns: 1fr;
  }

  .card-large,
  .card-process,
  .card-tech,
  .about-image-card {
    grid-column: span 1;
  }

  .section-header-enhanced {
    flex-direction: column;
    gap: 1rem;
  }

  .section-number {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .home-enhanced {
    padding: 6rem 5%;
  }

  .home-img-enhanced {
    width: 280px;
    height: 280px;
  }

  .tech-orbit {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .hero-role {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cta-group-enhanced {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }

  .tech-stack-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    flex-direction: column;
  }
}

/* ==========================================
   PERFORMANCE OPTIMIZATIONS
   ========================================== */

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

/* GPU acceleration for smooth animations */
.parallax-image,
.img-container,
.tech-icon,
.story-card {
  will-change: transform;
}
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Poppins";
}
/* Root theme variables */
:root {
  --bg-color: #080808;
  --second-bg-color: #101010;
  --text-color: white;
  --main-color: #b88784;
}
/**Prompt*/

  #welcomeScreen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(135deg, #be9a83, #de98dc);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  animation: fadeOut 1s ease-in-out 1s forwards;
  pointer-events: none; 
}

    #welcomeText {
      font-size: 2.5rem;
      letter-spacing: 2px;
      animation: slideIn 1s ease-out;
    }

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

/* Global styles */
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}




/* Base html & body */
html {
  font-size:60%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 4rem 15%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}


/* Menu icon */
#menu-icon {
  font-size: 3.5rem;
  color: var(--main-color);
  display: none;
}

/* Logo */
.logo {
  font-size: 3rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
.logo:hover {
  transform: scale(1.1);
}

/* Gradient span */
span {
  background: linear-gradient(270deg, #f6ae81 10%, #f59feb 10%);
  background-clip: text;
  color: transparent;
}

/* Navbar */
.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease-in-out;
  border-bottom: 3px solid transparent;
}
.navbar a:hover {
  color: #f59feb;
  border-bottom: 3px solid #f59feb;
}

/* Sections */
section {
  min-height: 100vh;
  padding: 10rem 15%;
}

/* Home */
.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 10%;
  background-color: #0f0f0f;
  color: white;
  flex-wrap: wrap;
}

.home-content h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.home-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.home-content p {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #ccc;
  margin-top: 1rem;
  max-width: 600px;
  margin-bottom: 10px;
}

/* Highlight Text */
.highlight {
  background: linear-gradient(to right, #d98dfd, #f7aa7c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}
.text-animation{
  font-size: 34px;
  font-weight: 600;
  min-width: 280px;

}
.text-animation span{
  position: relative;
}
.text-animation span::before{
  content: "Web Developer";
  color: var(--main-color);
  animation: words 20s infinite;
}
.text-animation span::after{
  content: "";
  background-color: var(--bg-color);
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid var(--bg-color);
  right: -8px;
  animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}
@keyframes cursor{
  to{
    border-left: 2px solid var(--main-color);
  }
}
@keyframes words {
  0%, 20% {
    content: "Frontend Developer";
  }
  21%, 40% {
    content: "Backend Developer";
  }
  41%, 60% {
    content: "Software Developer";
  }
}

@keyframes typing{
  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95%{
    width: 0;
  }
  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85%{
    width: calc(100% + 8px);
  }
}
.home-img {
  border-radius: 50%;
  width: 350px;
  height: 350px;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 0 25px var(--main-color);
  background-color: #080808; 
}
/* Home Image 
.home-img {
  border-radius: 50%;
  width: 350px;
  height: 350px;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 0 25px var(--main-color);
}*/

.home-img:hover {
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color),
              0 0 100px var(--main-color);
}

.home-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* Social Icons */
.social-icons a {
  font-size: 3rem;
  margin-right: 1rem;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  padding: 1rem;
  border-radius: 50%;
  transition: 0.3s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icons a:hover {
  color: white;
  background-color: var(--main-color);
  box-shadow: 0 0 15px var(--main-color);
  transform: scale(1.1);
}

/* Buttons Group */
.btn-group {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.btn {/*
  padding: 1rem 2.5rem;
  font-size: 1.6rem;
  border-radius: 3rem;
  background-color: var(--main-color);
  color: white;
  transition: 0.3s;
  border: none;*/
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--main-color);
  box-shadow: 0 0 25px  var(--main-color);
  font-size: 1.8rem;
  border-radius: 3rem;
  color: black;
  border: 2px solid transparent;
  font-weight: 600;
  transition: 0.3s ease-in-out;/*
  position: relative;
  overflow: hidden;*/
}
/*
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: all 0.5s ease;
}

.btn:hover::after {
  left: 100%;
}*/

.btn:hover {
  /*
  background-color: #f59feb;
  transform: scale(1.05);*/
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color);
}

.btn-group a:nth-of-type(2){
  background-color: black;
  color:  var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}
.btn-group a:nth-of-type(2):hover{
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
  color: #080808;
}
/*
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
}
*/

/* about */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
  padding: 5rem 10%;
  background: var(--second-bg-color);
  
}
.about-img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 25px var(--main-color);
  transition: box-shadow 0.3s ease-in-out;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-img:hover {
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color),
              0 0 100px var(--main-color);
}

.about-content h2 {
  font-size: 4rem;
  text-align: left;
  color: #f59feb;
}

.about-content span {
  color: var(--main-color);
}
/*
.about-content p {
  font-size: 1.8rem;
  max-width: 600px;
  line-height: 1.6;
}
*/
.about-content p {
  font-size: 1.6rem;
  line-height: 1.6;
    max-width: 600px;
  color: #ddd;
}
.about-content .btn {
  margin: 3rem 0;
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--main-color);
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
}

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

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}

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

/*Education*/
.education {
  padding: 100px 15px;
  background: var(--second-bg-color);
}

.education h2 {
  margin-bottom: 5rem;
  text-align: center;
  font-size: 36px;
}

.timeline-items {
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.timeline-items::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 100%;
  background-color: var(--main-color);
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 100%;
  margin-bottom: 60px;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  height: 20px;
  width: 20px;
  background-color: var(--main-color);
  box-shadow: 0 0 15px var(--main-color), 0 0 30px var(--main-color);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.timeline-date {
  font-size: 22px;
  color: var(--main-color);
  font-weight: 600;
  margin-bottom: 15px;
  margin-left: 10px;
}




.timeline-content {
  background-color: var(--bg-color);
  border: 2px solid var(--main-color);
   padding: 40px 30px 25px;
  width: 45%;
  box-shadow: 0 0 10px var(--main-color);
  transition: transform 0.3s ease-in-out;
  position: relative;
}

.timeline-content:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px var(--main-color);
}

.timeline-content h3 {
  font-size: 20px;
  color: white;
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 16px;
  color: white;
  line-height: 1.5;
}

/* Alternate content left & right */
.timeline-item:nth-child(odd) .timeline-content {
  align-self: flex-start;
  margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  align-self: flex-end;
  margin-right: 55%;
}

/* Scrollbar styling (optional) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .timeline-items::before {
    left: 8px;
  }

  .timeline-dot {
    left: 8px;
    transform: none;
  }

  .timeline-date {
    left: 20px;
    transform: none;
    top: -15px;
  }

  .timeline-content {
    width: 100%;
    margin-left: 30px !important;
    margin-right: 0 !important;
    padding: 40px 20px 25px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    align-self: flex-start;
  }
}
/* Skills */
.skills {
  background-color: var(--bg-color);
  padding: 5rem 10%;
  color: var(--text-color);
}

.heading {
  text-align: center;
  font-size: 6rem;
  margin-bottom: 4rem; 
  color: #f59feb;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.skills-box {
  background-color: var(--main-color);
  border-radius: 3rem;
  padding: 3rem;
  height: 100%;
  text-align: center;
  color: #fff;
  transition: all 0.4s ease-in-out;
  border: 5px solid transparent;
}

.skills-box:hover {
  background-color: var(--second-bg-color);
  color: var(--main-color);
  border: 5px solid var(--main-color);
  transform: scale(1.05);
}

.skills-info i {
  font-size: 7rem;
  margin-bottom: 1.5rem;
}

.skills-info h4 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.skills-info p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.8;
  color: #f0f0f0;
}
/* Projects Section */
.projects {
  background-color: var(--bg-color);
  padding: 5rem 2rem;
  color: var(--text-color);
}


.projects .heading {
  text-align: center;
  font-size: 6rem;
  margin-bottom: 4rem;
}

.projects-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.project-card {
  background-color: var(--main-color);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background 0.3s;
  padding: 1.5rem;
  text-align: center;
}

.project-card:hover {
  transform: scale(1.03);
  background-color: var(--second-bg-color);
}

.project-card img {
  width: 100%;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.project-card h3 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.project-card p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.project-card .btn {
  display: inline-block;
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.project-card .btn:hover {
  background-color: var(--main-color);
  color: var(--text-color);
}
.github-link {
  margin-top: 1rem;
  text-align: center;
  margin:0px;
}
.github-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}
.github-link a img {
  width: 24px;
  height: 24px;
}
.github-link a:hover {
  color: var(--main-color);
}
/*Contact*/
.contact{
  background-color: var(--bg-color);
}
.contact h2{
  margin-bottom: 3rem;
  color: var(--main-color);

}
.contact form{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 5rem 0;
  text-align: center;
}
.contact form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact form .input-box input,
.contact form textarea{
  width: 100%;
  padding: 2.5rem;
  font-size: 1.8rem;
  color: var(--text-color);
  background-color: var(--bg-color);
  border-radius: 2rem;
  border: 2px solid var(--main-color);
  margin: 1.5rem 0 ;
  resize: none;

}
/*footer*/
.footer{
  background-color: var(--second-bg-color);
  padding: 50px 0;
}
.footer .social-icons{
  text-align: center;
}
.footer ul{
  text-align: center;
  font-size: 1.8rem;
}
.footer ul li{
  display: inline-block;
  margin-left: 20px;
}
.footer ul li a{
  color: white;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}
.footer ul li a:hover{
  border-bottom: 3px solid var(--main-color);
}
.footer .copyright{
  text-align: center;
  margin-top: 40px;
  font-size: 16px;
}









@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-content h1, .home-content h3 {
  animation: fadeInUp 1s ease forwards;
}
/* Footer CSS */
.footer {
  background-color: var(--second-bg-color);
  padding: 3rem 1rem;
  color: var(--text-color);
}

.footer .social-icons {
  text-align: center;
  margin-bottom: 2rem;
}

.footer .social-icons a {
  margin: 0 0.5rem;
  font-size: 2.4rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.footer .social-icons a:hover {
  color: var(--main-color);
}

.footer .list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.footer .list li a {
  color: var(--text-color);
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s ease-in-out;
  font-size: 1.6rem;
}

.footer .list li a:hover {
  border-bottom-color: var(--main-color);
}

.footer .copyright {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.6rem;
  color: #aaa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer .social-icons a {
    font-size: 2rem;
  }
  .footer .list {
    gap: 1.5rem;
  }
  .footer .list li a {
    font-size: 1.4rem;
  }
  .footer .copyright {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .footer .social-icons a {
    font-size: 1.8rem;
  }
  .footer .list {
    flex-direction: column;
    gap: 1rem;
  }
  .footer .list li a {
    font-size: 1.2rem;
  }
  .footer .copyright {
    font-size: 1.2rem;
  }
}

/* Responsive Design */

@media (max-width: 1285px) {
  html {
    font-size: 55%;
  }

  .header {
    padding: 2rem 5%;
  }

  #menu-icon {
    display: block;
  }

.navbar {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 3rem;
  background: rgba(0, 0, 0, 0.8);
  border-bottom-left-radius: 2rem;
  border-left: 2px solid var(--main-color);
  border-bottom: 2px solid var(--main-color);
  display: none;
  z-index: 100;
}
  .navbar {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 3rem;
    background: rgba(0, 0, 0, 0.85);
    border-bottom-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: none;
    z-index: 100;
    width: 90%;
    max-width: 400px;
  }

  .navbar a {
    margin: 2rem 0;
    font-size: 2rem;
    display: block;
    color: var(--text-color);
    text-align: center;
  }

  .navbar.active {
    display: block;
  }

  .home {
    flex-direction: column-reverse;
    margin: 5rem 0;
    gap: 4rem;
    text-align: center;
  }

  .home-img img,
.about-img img {
  max-width: 100%;
  height: auto;
}

  .about {
    flex-direction: column-reverse;
    text-align: center;
    /*
    padding: 4rem 5%;
    gap: 3rem;*/
  }
  .about h2{
    text-align: center;
    margin: 2rem 0;
  }

  


  .home-img,
  .about-img {
    width: 250px;
    height: 250px;
    margin: 0 auto;
  }

  .home-img img,
  .about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .home-content,
  .about-content {
    align-items: center;
    text-align: center;
  }

  .about {
    flex-direction: column-reverse;
    gap: 3rem;
  }


  .skills-container,
  .projects-box {
    grid-template-columns: 1fr;
  }

  .contact form {
    flex-direction: column;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer ul {
    font-size: 1.4rem;
    text-align: center;
  }

  .heading {
    font-size: 3.5rem;
  }

  .about-content h2,
  .home-content h1 {
    font-size: 3rem;
  }

  .home-content h3 {
    font-size: 2rem;
  }
    
  
}
/* Form Message Styles */
#formMessage {
  display: none;
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 8px;
  font-size: 1.6rem;
  font-weight: 500;
  text-align: center;
  animation: slideInUp 0.5s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Submit button loading state */
.contactForm input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* Additional styles for enhanced portfolio with case studies */

/* Project Filter Buttons */
.project-filter {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 1rem 2.5rem;
  border: 2px solid var(--main-color);
  background: transparent;
  color: var(--text-color);
  font-size: 1.4rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
  background: var(--main-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(184, 135, 132, 0.3);
}

.filter-btn.active {
  background: var(--main-color);
  color: white;
}

/* Enhanced Projects Container */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  padding: 2rem 0;
}

/* Project Item Card */
.project-item {
  background: var(--second-bg-color);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.project-item:hover {
  transform: translateY(-10px);
  border-color: var(--main-color);
  box-shadow: 0 15px 40px rgba(184, 135, 132, 0.2);
}

/* Project Preview with Overlay */
.project-preview {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-item:hover .project-preview img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.btn-view-case {
  padding: 1.2rem 3rem;
  background: var(--main-color);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-view-case:hover {
  background: white;
  color: var(--main-color);
  transform: scale(1.05);
}

/* Project Summary */
.project-summary {
  padding: 2.5rem;
}

.project-summary h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--main-color);
}

/* Tech Badges */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tech-badge {
  padding: 0.6rem 1.5rem;
  background: rgba(184, 135, 132, 0.2);
  border: 1px solid var(--main-color);
  border-radius: 20px;
  font-size: 1.2rem;
  color: var(--main-color);
  font-weight: 500;
}

.project-summary > p {
  font-size: 1.5rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

/* Project Links */
.project-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid var(--main-color);
  color: var(--main-color);
  font-size: 1.4rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.github-link:hover {
  background: var(--main-color);
  color: white;
}

.github-link i {
  font-size: 2rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.show {
  display: block;
}

.modal-content {
  background: var(--second-bg-color);
  margin: 3% auto;
  padding: 0;
  width: 90%;
  max-width: 1100px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: slideDown 0.4s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
  width: 10px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--bg-color);
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 5px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 4rem;
  font-weight: bold;
  line-height: 1;
  padding: 2rem 3rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close:hover,
.close:focus {
  color: var(--main-color);
  transform: scale(1.2);
}

/* Case Study Sections */
.case-study {
  padding: 3rem 4rem 5rem;
}

.case-study-header {
  text-align: center;
  margin-bottom: 4rem;
}

.case-study-hero {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.case-study-header h2 {
  font-size: 3.5rem;
  color: var(--main-color);
  margin-bottom: 2rem;
}

.case-study-section {
  margin-bottom: 4rem;
}

.case-study-section h3 {
  font-size: 2.5rem;
  color: var(--main-color);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(184, 135, 132, 0.3);
}

.case-study-section p {
  font-size: 1.6rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.case-study-section ul {
  list-style: none;
  padding: 0;
}

.case-study-section ul li {
  font-size: 1.5rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  padding-left: 3rem;
  position: relative;
}

.case-study-section ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--main-color);
  font-size: 2rem;
  font-weight: bold;
}

.case-study-section ul li strong {
  color: var(--main-color);
  font-weight: 600;
}

/* Links Section in Case Study */
.case-study-section .btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.case-study-section .btn i {
  font-size: 2rem;
}

/* Responsive Design for Case Studies */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .case-study {
    padding: 2rem;
  }

  .case-study-header h2 {
    font-size: 2.5rem;
  }

  .case-study-section h3 {
    font-size: 2rem;
  }

  .case-study-section p,
  .case-study-section ul li {
    font-size: 1.4rem;
  }

  .close {
    font-size: 3rem;
    padding: 1.5rem 2rem;
  }

  .projects-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-filter {
    gap: 1rem;
  }

  .filter-btn {
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
  }
}

/* Project Item Hidden State (for filtering) */
.project-item.hidden {
  display: none;
}

/* Smooth Transitions */
.project-item,
.filter-btn,
.btn-view-case,
.github-link,
.tech-badge {
  transition: all 0.3s ease;
}

/* Accessibility Improvements */
.btn-view-case:focus,
.filter-btn:focus,
.close:focus {
  outline: 3px solid var(--main-color);
  outline-offset: 3px;
}

/* Print Styles */
@media print {
  .modal {
    display: none !important;
  }
}

/* Enhanced Button Styles */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Loading Animation (optional) */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading {
  animation: spin 1s linear infinite;
}
/* ========================================
   NETWORK JOURNEY SECTION STYLES
   ======================================== */

.journey-section {
  min-height: 100vh;
  padding: 10rem 5%;
  background: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.journey-header {
  text-align: center;
  margin-bottom: 5rem;
}

.journey-subtitle {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
}

/* Network Navigation Tabs */
.network-navigation {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.network-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 3rem;
  background: rgba(184, 135, 132, 0.1);
  border: 2px solid var(--main-color);
  border-radius: 20px;
  color: var(--text-color);
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.network-nav-btn i {
  font-size: 3rem;
  transition: transform 0.4s ease;
}

.network-nav-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--main-color) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  border-radius: 50%;
  z-index: -1;
}

.network-nav-btn:hover::before,
.network-nav-btn.active::before {
  width: 300px;
  height: 300px;
}

.network-nav-btn:hover,
.network-nav-btn.active {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(184, 135, 132, 0.3);
  background: var(--main-color);
  color: white;
}

.network-nav-btn:hover i {
  transform: rotateY(360deg);
}

/* Canvas Background for Network Lines */
.network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.3;
}

/* Network Container Wrapper */
.network-wrapper {
  position: relative;
  min-height: 600px;
}

.network-container {
  display: none;
  animation: fadeInNetwork 0.8s ease;
}

.network-container.active {
  display: block;
}

@keyframes fadeInNetwork {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ========================================
   SKILLS NETWORK STYLES
   ======================================== */

.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
  padding: 3rem;
  position: relative;
}

.network-node {
  background: linear-gradient(135deg, rgba(184, 135, 132, 0.1) 0%, rgba(16, 16, 16, 0.8) 100%);
  border: 2px solid var(--main-color);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: nodeFloat 6s ease-in-out infinite;
}

.network-node:nth-child(1) {
  animation-delay: 0s;
}

.network-node:nth-child(2) {
  animation-delay: 2s;
}

.network-node:nth-child(3) {
  animation-delay: 4s;
}

@keyframes nodeFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.network-node:hover {
  transform: translateY(-20px) scale(1.05);
  box-shadow: 0 20px 60px rgba(184, 135, 132, 0.4);
  border-color: #f59feb;
}

.node-icon {
  width: 80px;
  height: 80px;
  background: var(--main-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 4rem;
  color: white;
  box-shadow: 0 0 30px rgba(184, 135, 132, 0.5);
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(184, 135, 132, 0.5);
  }
  50% {
    box-shadow: 0 0 50px rgba(184, 135, 132, 0.8);
  }
}

.network-node h3 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--main-color);
}

.node-content {
  margin-top: 2rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill-tag {
  padding: 0.8rem 1.5rem;
  background: rgba(184, 135, 132, 0.2);
  border: 1px solid var(--main-color);
  border-radius: 20px;
  font-size: 1.3rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  background: var(--main-color);
  color: white;
  transform: translateY(-3px);
}

/* Node Connections (visual connection lines) */
.node-connections {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.connection-line {
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, var(--main-color), transparent);
  opacity: 0.3;
  animation: lineGlow 2s ease-in-out infinite;
}

@keyframes lineGlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* ========================================
   EDUCATION TIMELINE NETWORK STYLES
   ======================================== */

.network-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6rem;
  padding: 3rem;
  position: relative;
}

.network-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    var(--main-color) 10%, 
    var(--main-color) 90%, 
    transparent 100%);
  transform: translateX(-50%);
  animation: lineGlow 3s ease-in-out infinite;
}

.timeline-node {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: 100%;
  max-width: 900px;
  animation: slideInTimeline 0.8s ease backwards;
}

.timeline-node:nth-child(odd) {
  flex-direction: row;
  animation-delay: 0.2s;
}

.timeline-node:nth-child(even) {
  flex-direction: row-reverse;
  animation-delay: 0.4s;
}

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

.timeline-dot {
  width: 60px;
  height: 60px;
  background: var(--main-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 30px rgba(184, 135, 132, 0.6);
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid var(--main-color);
  border-radius: 50%;
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.timeline-card {
  flex: 1;
  background: linear-gradient(135deg, rgba(184, 135, 132, 0.15) 0%, rgba(16, 16, 16, 0.9) 100%);
  border: 2px solid var(--main-color);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  transition: all 0.4s ease;
}

.timeline-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(184, 135, 132, 0.3);
  border-color: #f59feb;
}

.timeline-year {
  display: inline-block;
  background: var(--main-color);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.timeline-card h3 {
  font-size: 2.2rem;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.timeline-card h4 {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.timeline-card p {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.location {
  color: rgba(245, 159, 235, 0.8);
  font-style: italic;
}

/* ========================================
   CERTIFICATES GRID NETWORK STYLES
   ======================================== */

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  padding: 3rem;
}

.cert-node {
  background: linear-gradient(135deg, rgba(184, 135, 132, 0.1) 0%, rgba(16, 16, 16, 0.8) 100%);
  border: 2px solid var(--main-color);
  border-radius: 15px;
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  animation: certFloat 5s ease-in-out infinite;
}

.cert-node:nth-child(1) { animation-delay: 0s; }
.cert-node:nth-child(2) { animation-delay: 0.8s; }
.cert-node:nth-child(3) { animation-delay: 1.6s; }
.cert-node:nth-child(4) { animation-delay: 2.4s; }
.cert-node:nth-child(5) { animation-delay: 3.2s; }
.cert-node:nth-child(6) { animation-delay: 4s; }

@keyframes certFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(1deg);
  }
  75% {
    transform: translateY(-5px) rotate(-1deg);
  }
}

.cert-node::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 135, 132, 0.2), transparent);
  transition: left 0.7s ease;
}

.cert-node:hover::before {
  left: 100%;
}

.cert-node:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 40px rgba(184, 135, 132, 0.3);
  border-color: #f59feb;
}

.cert-badge {
  width: 60px;
  height: 60px;
  background: var(--main-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(184, 135, 132, 0.4);
  transition: transform 0.4s ease;
}

.cert-node:hover .cert-badge {
  transform: rotate(360deg) scale(1.1);
}

.cert-content {
  flex: 1;
}

.cert-year {
  display: inline-block;
  background: rgba(184, 135, 132, 0.3);
  color: var(--main-color);
  padding: 0.3rem 1rem;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.cert-content h4 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.cert-content p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
  .network-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .network-timeline::before {
    left: 30px;
  }

  .timeline-node {
    flex-direction: row !important;
    padding-left: 80px;
  }

  .timeline-dot {
    position: absolute;
    left: 0;
  }
}

@media (max-width: 768px) {
  .journey-section {
    padding: 8rem 3%;
  }

  .network-navigation {
    gap: 1rem;
  }

  .network-nav-btn {
    padding: 1.5rem 2rem;
    font-size: 1.4rem;
  }

  .network-nav-btn i {
    font-size: 2.5rem;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-card {
    padding: 2rem;
  }

  .network-node {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .network-nav-btn {
    flex-direction: row;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
  }

  .network-nav-btn i {
    font-size: 2rem;
  }

  .journey-subtitle {
    font-size: 1.4rem;
  }
}

/* ========================================
   PARTICLE EFFECTS (Optional Enhancement)
   ======================================== */

.network-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--main-color);
  border-radius: 50%;
  opacity: 0.6;
  animation: particleFloat 10s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}