/* 
  PROFESSIONAL 3D PORTFOLIO STYLESHEET 
  Modern Dark Theme | Glassmorphism | Custom Transitions
*/

:root {
  /* Colors - REBRANDED */
  --bg-dark: #050505;
  --bg-card: #0c0c0e;
  --accent: #00f0ff; /* Electric Cyan */
  --accent-rgb: 0, 240, 255;
  --pop: #caff00; /* Cyber Lime */
  --pop-rgb: 202, 255, 0;
  --text-main: #ffffff;
  --text-dim: #a1a1aa;
  
  /* Hard Edged Glassmorphism */
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(12px);
  
  /* Spacing & Transitions */
  --section-padding: 120px 0;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --transition-slow: all 0.5s var(--ease);
  --transition-fast: all 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { 
  background: var(--glass-border); 
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Gallery & Project Detail Commons */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0;
}
.gallery-item {
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #000;
  cursor: pointer;
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
  filter: grayscale(0.2); 
  transition: 0.8s var(--ease); 
}
.gallery-item:hover img { filter: grayscale(0); transform: scale(1.05); }

.clickable-img { cursor: pointer; }
.clickable-img img { transition: 0.8s var(--ease); }
.clickable-img:hover img { transform: scale(1.02); }

/* Lightbox Styles */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  display: none;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid var(--glass-border); }

/* Typography */
h1, h2, h3 { 
  font-weight: 700; 
  letter-spacing: -0.04em; 
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
}
p { color: var(--text-dim); }

/* Global Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: var(--transition-slow);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Buttons - SHARP & BOLD */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border-radius: 0; /* Sharp edges */
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--pop);
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 rgba(var(--pop-rgb), 0.3);
}
.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover { 
  background: var(--accent);
  color: #000;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}
header.scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: var(--glass-blur);
  height: 70px;
  border-bottom: 1px solid var(--glass-border);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo { 
  font-size: 1.4rem; 
  font-weight: 700; 
  color: white; 
  text-decoration: none;
  letter-spacing: 0.05em;
}
.logo:hover, .logo:active {
  text-decoration: none;
  color: white;
}
.nav-links { display: flex; gap: 15px; list-style: none; align-items: center; }
.nav-link { 
  font-size: 0.85rem; 
  font-weight: 700; 
  color: var(--text-dim); 
  transition: var(--transition-fast);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 0;
  border: 1px solid transparent;
  display: block;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-link:hover { 
  color: white; 
  background: var(--glass);
  border-color: var(--glass-border);
}
.nav-link.active { 
  color: white; 
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.3);
}

/* Mobile Menu */
.menu-toggle { display: none; cursor: pointer; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: radial-gradient(circle at 70% 30%, rgba(var(--accent-rgb), 0.15) 0%, transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 60px; align-items: center; }
.hero h1 { font-size: 5rem; line-height: 0.95; margin-bottom: 24px; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; max-width: 450px; }
.hero-btns { display: flex; gap: 20px; }

/* Hero Slider */
.hero-visual {
  position: relative;
  height: 450px;
  width: 100%;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  border-radius: 30px;
}

.hero-img.active {
  opacity: 1;
}

.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--accent);
  width: 0;
  z-index: 10;
}

.glass-box {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Technical Workstation Entry */
#tech-loader {
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--accent);
  font-family: monospace;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  transition: opacity 0.4s ease;
}
.loader-text {
  height: 1.2em;
  overflow: hidden;
  text-transform: uppercase;
}

/* Card Spec Badges */
.card-specs {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
  pointer-events: none;
}
.spec-badge {
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  font-family: monospace;
  font-size: 0.6rem;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  transition: var(--transition-fast);
}
.card:hover .spec-badge {
  opacity: 1;
  color: var(--accent);
  border-color: var(--accent);
}

/* Footer */
footer {
  padding: 100px 0 50px;
  background: var(--bg-card);
  border-top: 1px solid var(--glass-border);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-logo { 
  font-size: 1.5rem; 
  font-weight: 700; 
  margin-bottom: 20px; 
  display: block; 
  color: white; 
  text-decoration: none;
  letter-spacing: 0.05em;
}
.footer-logo:hover, .footer-logo:active {
  text-decoration: none;
  color: white;
}
.footer-links h4 { margin-bottom: 24px; font-size: 1.1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }

.bottom-bar {
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(14, 14, 14, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: var(--transition-slow);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
    display: flex !important;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .menu-toggle {
    display: block !important;
    position: relative;
    z-index: 1001;
    color: white;
  }

  .nav-wrap {
    justify-content: space-between;
    padding: 0 20px;
  }

  .nav-links li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links li:nth-child(4) { transition-delay: 0.4s; }

  .container { padding: 0 24px; }
  
  /* Grid Adjustments */
  .hero-grid, .footer-grid, .portfolio-grid, .about-grid, .contact-grid, .service-grid, .work-showcase, .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .work-item { height: 350px !important; }
  .work-overlay { padding: 25px !important; }
  .work-overlay h3 { font-size: 1.1rem !important; }

  /* New Components Mobile Fixes */
  .mocap-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  .mocap-item { height: 200px !important; }
  
  .resume-profile-img {
    height: 250px !important;
    margin-bottom: 30px !important;
  }

  .hero h1 { font-size: 3rem; margin-bottom: 15px; }
  .hero p { font-size: 1.1rem; margin-bottom: 30px; }
  .hero { min-height: auto; padding: 120px 0 60px; text-align: center; }
  .hero-btns { justify-content: center; flex-direction: column; gap: 10px; }
  .btn { width: 100%; justify-content: center; }
  .hero-visual { height: 300px; margin-top: 40px; }
  .hero-img { border-radius: 15px; }
  .glass-box { border-radius: 15px; }

  .footer-grid { text-align: center; gap: 40px; }
  .bottom-bar { flex-direction: column; gap: 15px; text-align: center; }

  /* Section Padding */
  :root { --section-padding: 80px 0; }
  
  .portfolio-page, .about-page, .contact-page, .project-detail { padding-top: 100px; }
  
  /* Stats Grid */
  .stats-grid { gap: 20px !important; }
  .stat-item h2 { font-size: 2.5rem; }
  
  /* Card Adjustments */
  .card { height: 450px; }
  .card-overlay { padding: 30px; }
  .card-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.5rem; }
  .container { padding: 0 20px; }
  .hero-visual { height: 250px; }
  .card { height: 400px; }
  .modal-info { padding: 20px; }
  .modal-title { font-size: 1.8rem; }
  .resume-header h1 { font-size: 2.5rem !important; }
  .project-title h1 { font-size: 2.5rem !important; }
}

/* Animations for Mobile Menu Links */
.nav-links li:nth-child(1) { transition-delay: 0.1s; }
