/* GTA Rockstar Portfolio — Custom CSS */
/* Loaded alongside Tailwind CDN */

/* =========================================================
   FONTS
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* =========================================================
   GLOBAL RESETS & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #f97316 #111111;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111111; }
::-webkit-scrollbar-thumb { background: #f97316; border-radius: 3px; }

body {
  background-color: #0a0a0a;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
/* Base Typography */
.font-display { font-family: 'Bebas Neue', sans-serif; }

.portfolio-heading {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
}

.portfolio-text-shadow {
  /* Simplified text shadow, removed heavy glow */
  text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
}

.portfolio-subtitle-shadow {
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
}

/* =========================================================
   GLOW EFFECTS
   ========================================================= */
.portfolio-glow {
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4),
              0 0 40px rgba(249, 115, 22, 0.2),
              0 0 80px rgba(249, 115, 22, 0.1);
}

.portfolio-glow-text {
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.8),
               0 0 40px rgba(249, 115, 22, 0.4);
}

.portfolio-border-glow {
  border: 1px solid rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.2),
              inset 0 0 15px rgba(249, 115, 22, 0.05);
}

/* =========================================================
   LOADING SCREEN
   ========================================================= */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.6s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

#loading-screen.no-transition {
  transition: none !important;
}

#loading-progress {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  color: #f97316;
  letter-spacing: 0.15em;
  text-shadow: 0 0 40px rgba(249, 115, 22, 0.8);
  animation: loadingPulse 1s ease-in-out infinite;
}

.loading-bar-track {
  width: 300px;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  margin-top: 2rem;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #facc15);
  border-radius: 2px;
  animation: loadingBar 2s ease forwards;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes loadingBar {
  0% { width: 0%; }
  60% { width: 80%; }
  100% { width: 100%; }
}

/* =========================================================
   SCROLL PROGRESS
   ========================================================= */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #facc15);
  z-index: 9998;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
}

/* =========================================================
   NAVBAR
   ========================================================= */
#navbar {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 1.5rem 0;
}

#navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(249, 115, 22, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #f97316;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px #f97316;
}

.nav-link:hover,
.nav-link.active {
  color: #f97316;
}

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

/* =========================================================
   HERO SECTION
   ========================================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 8rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/static/images/hero-bg.png');
  background-size: cover;
  background-position: center top;
  transform: scale(1.05);
  transition: transform 0.1s linear;
  filter: brightness(0.7);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.7) 30%,
    rgba(249, 115, 22, 0.1) 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.hero-side-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8) 0%,
    transparent 60%
  );
}

.hero-content { position: relative; z-index: 2; }

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 2px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 1.5rem;
}

.hero-tagline::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #f97316;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px #f97316;
}

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

/* Buttons - Sleek & Flat */
.btn-portfolio-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f97316; /* portfolio-orange */
  color: #000;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-portfolio-primary:hover {
  background-color: #facc15; /* portfolio-gold */
  transform: translateY(-2px);
}

.btn-portfolio-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-portfolio-secondary:hover {
  border-color: #f97316;
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
  transform: translateY(-2px);
}

/* =========================================================
   SECTION STYLES
   ========================================================= */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: #f97316;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about-card {
  background: #111111;
  border-left: 3px solid #f97316;
  padding: 2rem;
  position: relative;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, #f97316, transparent);
}

.stat-box {
  border: 1px solid rgba(249, 115, 22, 0.3);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(249, 115, 22, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.stat-box:hover {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.08);
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.25);
  transform: scale(1.05);
}

/* =========================================================
   SKILLS SECTION
   ========================================================= */
.skill-bar-wrapper {
  margin-bottom: 1.25rem;
}

.skill-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #facc15);
  border-radius: 3px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #facc15;
  border-radius: 50%;
  box-shadow: 0 0 8px #facc15;
}

.skill-category-header {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: #f97316;
  border-bottom: 1px solid rgba(249, 115, 22, 0.3);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

/* =========================================================
   PROJECT CARDS
   ========================================================= */
.project-card {
  background: #111111;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
  cursor: pointer;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.project-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #facc15);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.project-card:hover {
  border-color: rgba(249, 115, 22, 0.5);
  /* Removed heavy box-shadow glow */
  transform: translateY(-6px);
}

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

.project-card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.project-card:hover .project-card-image img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(10px);
  will-change: transform, opacity;
}

.project-card:hover .project-overlay { 
  opacity: 1; 
  transform: translateY(0);
}

.project-overlay a {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.project-overlay a:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.tech-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #f97316;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.tech-badge:hover {
  background: rgba(249, 115, 22, 0.25);
  border-color: #f97316;
}

.project-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 3rem;
  background: linear-gradient(135deg, #1a0a00 0%, #0a0500 100%);
}

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.9rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
  border-radius: 0;
}

.contact-input:focus {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.05);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15),
              0 0 20px rgba(249, 115, 22, 0.1);
}

.contact-input::placeholder { color: rgba(255,255,255,0.3); }

.contact-input-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: #050505;
  border-top: 1px solid rgba(249, 115, 22, 0.2);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  border-color: #f97316;
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
  transform: translateY(-3px);
}

/* =========================================================
   ANIMATIONS & SCROLL REVEAL
   ========================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* Animations - Simplified */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.from-left {
  transform: translateX(0);
}
.reveal.from-right {
  transform: translateX(0);
}
.reveal.from-left.visible, .reveal.from-right.visible {
  transform: translateX(0);
}

/* Hero animations */
.hero-animate-1 { animation: fadeInLeft 1s ease 0.3s both; }
.hero-animate-2 { animation: fadeInLeft 1s ease 0.5s both; }
.hero-animate-3 { animation: fadeInLeft 1s ease 0.7s both; }
.hero-animate-4 { animation: fadeInLeft 1s ease 0.9s both; }
.hero-animate-5 { animation: fadeInLeft 1s ease 1.1s both; }

/* =========================================================
   MOBILE MENU
   ========================================================= */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.3s ease;
}

#mobile-menu.open { display: flex; }

.mobile-nav-link {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.mobile-nav-link:hover { color: #f97316; }

/* =========================================================
   MESSAGES / ALERTS
   ========================================================= */
.msg-success {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #f97316;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
}

.msg-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
}

/* =========================================================
   UTILITIES
   ========================================================= */
.orange-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #facc15);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.section-divider {
  border-color: rgba(249, 115, 22, 0.15);
}

/* Category filter buttons */
.filter-btn {
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}

.filter-btn:hover, .filter-btn.active {
  border-color: #f97316;
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
}

/* Portfolio checkered decoration */
.portfolio-deco {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: repeating-conic-gradient(#f97316 0% 25%, transparent 0% 50%) 0 0 / 6px 6px;
  opacity: 0.5;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .hero-bg { background-position: 70% center; }
  .btn-portfolio-primary, .btn-portfolio-secondary {
    clip-path: none;
    padding: 0.75rem 1.75rem;
  }
}
