/*
Theme Name: Douglas Hunter Portfolio
Theme URI: https://douglashunter.lovable.app
Author: Douglas Hunter
Author URI: https://douglashunter.lovable.app
Description: Modern, futuristic developer portfolio theme with glassmorphism, neon glow effects, and dark navy design.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: dh-portfolio
*/

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

:root {
  --background: hsl(216, 50%, 10%);
  --foreground: hsl(210, 40%, 96%);
  --card: hsl(216, 45%, 14%);
  --card-foreground: hsl(210, 40%, 96%);
  --primary: hsl(221, 90%, 55%);
  --primary-foreground: hsl(210, 40%, 98%);
  --secondary: hsl(216, 40%, 18%);
  --secondary-foreground: hsl(210, 40%, 96%);
  --muted: hsl(216, 30%, 20%);
  --muted-foreground: hsl(215, 20%, 60%);
  --accent: hsl(210, 100%, 60%);
  --border: hsl(216, 30%, 22%);
  --glow: hsl(210, 100%, 65%);
  --glass: hsl(216, 45%, 14%);
  --glass-border: hsl(216, 30%, 28%);
  --gradient-hero: linear-gradient(135deg, hsl(214, 70%, 8%) 0%, hsl(216, 50%, 12%) 50%, hsl(220, 60%, 10%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(221, 90%, 55%) 0%, hsl(210, 100%, 65%) 100%);
  --shadow-glow: 0 0 30px hsla(210, 100%, 65%, 0.15);
  --shadow-card: 0 8px 32px hsla(0, 0%, 0%, 0.3);
  --radius: 0.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== UTILITIES ===== */
.section-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .section-container {
    padding: 0 2rem;
  }
}

.glass-card {
  background: hsla(216, 45%, 14%, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsla(216, 30%, 28%, 0.4);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.glass-card-hover {
  background: hsla(216, 45%, 14%, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsla(216, 30%, 28%, 0.4);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: all 0.5s ease;
}

.glass-card-hover:hover {
  box-shadow: var(--shadow-glow), var(--shadow-card);
  border-color: hsla(210, 100%, 65%, 0.3);
  transform: translateY(-4px);
}

.gradient-accent {
  background: var(--gradient-accent);
}

.glow-text {
  text-shadow: 0 0 40px hsla(210, 100%, 65%, 0.4);
}

.neon-line {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, hsla(210, 100%, 65%, 0.5) 50%, transparent 100%);
}

/* ===== ANIMATIONS ===== */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.animate-fade-in {
  animation: fade-in 0.8s ease forwards;
  opacity: 0;
}

.animate-glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* ===== NAVBAR ===== */
.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.25rem 0;
  transition: all 0.5s ease;
}

.site-navbar.scrolled {
  padding: 0.75rem 0;
  background: hsla(216, 45%, 14%, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid hsla(216, 30%, 28%, 0.4);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.navbar-logo span {
  color: var(--primary);
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

@media (min-width: 768px) {
  .navbar-links {
    display: flex;
  }
}

.navbar-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.3s;
  position: relative;
}

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

.navbar-links a:hover {
  color: var(--foreground);
}

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

.mobile-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  margin: 0.5rem 1rem 0;
  padding: 1rem;
  border-radius: var(--radius);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  color: var(--muted-foreground);
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--foreground);
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: glow-pulse 3s ease-in-out infinite;
}

.hero-orb-1 {
  top: 25%;
  right: 25%;
  width: 24rem;
  height: 24rem;
  background: hsla(221, 90%, 55%, 0.1);
}

.hero-orb-2 {
  bottom: 25%;
  left: 25%;
  width: 18rem;
  height: 18rem;
  background: hsla(210, 100%, 65%, 0.08);
  animation-delay: 1.5s;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-top: 6rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-portrait-wrap {
  display: flex;
  justify-content: center;
  order: 2;
}

@media (min-width: 1024px) {
  .hero-portrait-wrap {
    justify-content: flex-start;
    order: 1;
  }
}

.hero-portrait-container {
  position: relative;
}

.hero-portrait-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  animation: glow-pulse 3s ease-in-out infinite;
}

.hero-portrait {
  position: relative;
  z-index: 10;
  width: 18rem;
  height: 18rem;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 2px solid hsla(216, 30%, 28%, 0.4);
  box-shadow: 0 0 60px hsla(210, 100%, 65%, 0.15);
}

@media (min-width: 768px) {
  .hero-portrait {
    width: 24rem;
    height: 24rem;
  }
}

.hero-text {
  order: 1;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-text {
    order: 2;
    text-align: left;
  }
}

.hero-subtitle {
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-title .highlight {
  color: var(--primary);
  text-shadow: 0 0 40px hsla(210, 100%, 65%, 0.4);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-accent);
  color: var(--primary-foreground);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px hsla(210, 100%, 65%, 0.3);
}

.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to top, var(--background), transparent);
}

/* ===== PROJECTS ===== */
.projects-section {
  padding: 6rem 0;
  position: relative;
}

.projects-header {
  margin-bottom: 3rem;
}

.section-label {
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.projects-carousel {
  position: relative;
}

.projects-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0 1.5rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects-scroll::-webkit-scrollbar {
  display: none;
}

.project-card {
  min-width: 320px;
  scroll-snap-align: start;
  cursor: pointer;
  overflow: hidden;
}

@media (min-width: 768px) {
  .project-card {
    min-width: 380px;
  }
}

.project-card .project-image-wrap {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.project-card img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
  transition: transform 0.7s;
}

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

.project-card .project-info {
  padding: 1.5rem;
}

.project-card h3 {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(216, 45%, 14%, 0.6);
  backdrop-filter: blur(24px);
  border: 1px solid hsla(216, 30%, 28%, 0.4);
  cursor: pointer;
  color: var(--foreground);
  transition: opacity 0.3s;
}

.carousel-arrow.left {
  left: 1rem;
}

.carousel-arrow.right {
  right: 1rem;
}

/* ===== ABOUT ===== */
.about-section {
  padding: 6rem 0;
  position: relative;
}

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-text p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.about-stats .stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.about-stats .stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.skills-card {
  padding: 2rem;
  position: relative;
}

.skills-card .glow-orb {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 6rem;
  height: 6rem;
  background: hsla(221, 90%, 55%, 0.1);
  border-radius: 50%;
  filter: blur(40px);
}

.skill-bar-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.skill-bar-header span:first-child {
  font-size: 0.875rem;
  font-weight: 500;
}

.skill-bar-header span:last-child {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.skill-bar-track {
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--secondary);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--gradient-accent);
  transition: width 1s ease;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
  padding: 6rem 0;
  position: relative;
}

.skills-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-card {
  padding: 2rem;
  text-align: center;
}

.skill-icon-wrap {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.skill-card:hover .skill-icon-wrap {
  transform: scale(1.1);
}

.skill-icon-wrap svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary-foreground);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-card h3 {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.skill-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact-section {
  padding: 6rem 0;
  position: relative;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info p {
  color: var(--muted-foreground);
  line-height: 1.8;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.contact-item .label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-item .value {
  font-weight: 500;
}

.contact-form {
  padding: 2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: hsla(216, 40%, 18%, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted-foreground);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

.contact-form textarea {
  resize: none;
  min-height: 8rem;
}

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
  }
}

.footer-inner p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-socials a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: var(--primary);
}
