/* GTA V Los Santos Style CSS Variables */
:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1c1c1c;
  --bg-card: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #d4d4d4;
  --text-muted: #9ca3af;

  /* GTA V Los Santos Colors - Urban/Realistic */
  --gta-gold: #f4c430;
  --gta-blue: #4a9eff;
  --gta-green: #7cb342;
  --gta-orange: #ff6b35;
  --gta-red: #e53e3e;
  --gta-dark: #2d3748;

  /* Primary accent is GTA gold */
  --accent-primary: var(--gta-gold);
  --accent-secondary: var(--gta-blue);
  --accent-gradient: linear-gradient(135deg, #f4c430 0%, #ff6b35 50%, #4a9eff 100%);

  /* Subtle borders and shadows */
  --border-subtle: rgba(244, 196, 48, 0.3);
  --shadow-glow: 0 0 20px rgba(244, 196, 48, 0.2);
  --shadow-blue: 0 0 15px rgba(74, 158, 255, 0.2);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: 'Roboto', 'Arial', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.claude-link {
  color: var(--gta-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.claude-link:hover {
  color: var(--gta-orange);
  text-decoration: none;
}

/* Animated Background - Urban Style */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
}

.bg-animation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(244, 196, 48, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(74, 158, 255, 0.04) 0%, transparent 50%),
    linear-gradient(45deg, transparent 48%, rgba(255, 107, 53, 0.02) 50%, transparent 52%);
  animation: urbanShift 25s ease-in-out infinite;
}

@keyframes urbanShift {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

/* Navigation - GTA V HUD Style - Reduced height */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.5rem 2rem; /* Further reduced */
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 15, 15, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 1.4rem; /* Slightly smaller */
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem; /* Reduced gap */
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem; /* Slightly smaller */
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

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

/* Hero Section - Reduced top padding and spacing */
.hero {
  min-height: 75vh; /* Further reduced */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem 2rem; /* Further reduced top padding */
  position: relative;
}

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

.hero-avatar {
  width: 100px; /* Smaller */
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem; /* Further reduced margin */
  background: var(--accent-gradient);
  padding: 4px;
  box-shadow: var(--shadow-card);
  animation: subtleFloat 6s ease-in-out infinite;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem); /* Slightly smaller max size */
  font-weight: 900;
  margin-bottom: 1rem; /* Reduced from 1.5rem */
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 1s ease-out;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem); /* Slightly smaller */
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1.5rem; /* Reduced from 2rem */
  animation: slideUp 1s ease-out 0.2s both;
}

.typing-text {
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem; /* Slightly smaller */
  color: var(--gta-green);
  margin-bottom: 2rem; /* Reduced from 3rem */
  min-height: 2.5rem; /* Reduced height */
  animation: slideUp 1s ease-out 0.4s both;
  font-weight: 400;
}

.typing-cursor {
  animation: blink 1.2s infinite;
  color: var(--accent-primary);
}

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

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

/* Social Links - Reduced spacing */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem; /* Slightly reduced */
  margin-bottom: 2rem; /* Reduced from 3rem */
  animation: slideUp 1s ease-out 0.6s both;
}

.social-link {
  width: 50px; /* Slightly smaller */
  height: 50px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: 1.2rem; /* Slightly smaller */
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(244, 196, 48, 0.1);
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem; /* Moved up slightly */
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2.5s infinite;
  font-size: 1.1rem; /* Slightly smaller */
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Projects Section - Reduced padding */
.section {
  padding: 6rem 2rem; /* Reduced from 8rem */
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Slightly smaller */
  text-align: center;
  margin-bottom: 3rem; /* Reduced from 4rem */
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem; /* Reduced from 5rem */
  justify-items: center;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem; /* Slightly reduced */
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  max-width: 400px;
  width: 100%;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: left 0.5s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(244, 196, 48, 0.1);
  border-color: var(--accent-primary);
}

.project-card:hover::before {
  left: 0;
}

.project-image {
  width: 100%;
  height: 180px; /* Slightly reduced */
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1.25rem; /* Reduced spacing */
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.project-card:hover .project-image {
  border-color: var(--accent-primary);
}

.project-title {
  font-size: 1.4rem; /* Slightly smaller */
  font-weight: 700;
  margin-bottom: 0.75rem; /* Reduced spacing */
  color: var(--text-primary);
}

.project-title a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-title a:hover {
  color: var(--accent-primary);
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.6; /* Slightly tighter */
  margin-bottom: 1.5rem; /* Reduced spacing */
  font-size: 0.95rem; /* Slightly smaller */
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem; /* Slightly reduced */
}

.tech-tag {
  padding: 0.35rem 0.85rem; /* Slightly smaller */
  background: rgba(244, 196, 48, 0.1);
  border: 1px solid rgba(244, 196, 48, 0.3);
  border-radius: 20px;
  font-size: 0.8rem; /* Slightly smaller */
  color: var(--accent-primary);
  font-family: 'Roboto Mono', monospace;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(74, 158, 255, 0.1);
  border-color: var(--gta-blue);
  color: var(--gta-blue);
}

/* GitHub Link */
.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1.5rem; /* Reduced spacing */
  transition: all 0.3s ease;
  font-size: 0.95rem; /* Slightly smaller */
}

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

/* Footer */
footer {
  text-align: center;
  padding: 2.5rem; /* Slightly reduced */
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  font-size: 0.9rem; /* Slightly smaller */
}

/* Skip Button - Adjusted position */
.skip-button {
  position: fixed;
  top: 70px; /* Moved up due to smaller nav */
  right: 2rem;
  z-index: 50;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 0.9rem; /* Smaller for mobile compatibility */
  border-radius: 6px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem; /* Smaller text */
  font-weight: 500;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.skip-button:hover {
  background: rgba(244, 196, 48, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: scale(1.05);
}

.skip-button.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  nav {
    padding: 0.6rem 1rem; /* Further reduced on mobile */
  }

  .hero {
    padding: 2rem 1rem 1rem; /* Further reduced mobile padding */
    min-height: 70vh; /* Further reduced mobile height */
  }

  .section {
    padding: 4rem 1rem; /* Reduced mobile padding */
  }

  .projects-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem; /* Reduced mobile spacing */
  }

  .social-links {
    gap: 1rem; /* Reduced mobile gap */
  }

  .skip-button {
    right: 1rem;
    top: 20px; /* Much higher on mobile - right after nav */
    padding: 0.3rem 0.6rem; /* Very compact */
    font-size: 0.65rem;
    opacity: 0.7; /* More subtle */
  }

  .hero-avatar {
    width: 100px; /* Smaller on mobile */
    height: 100px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .mobile-view #skipButton {
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .mobile-view #skipButton:active {
    transform: scale(0.95);
  }
}

@media (max-width: 480px) {
  .hero-avatar {
    width: 90px; /* Even smaller on small screens */
    height: 90px;
  }

  .social-link {
    width: 45px; /* Smaller social links */
    height: 45px;
    font-size: 1rem;
  }

  .project-card {
    padding: 1.5rem; /* Reduced mobile padding */
  }

  .hero-title {
    font-size: 2.2rem; /* Smaller mobile title */
  }

  .hero {
    padding: 2rem 1rem 1rem; /* Even tighter mobile spacing */
  }
}