:root {
  --bg-color: #050505;
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --accent: #ccff00;
  --accent-glow: rgba(204, 255, 0, 0.1);
  --purple: #6d28d9;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.05);
  --glass-bg: rgba(5, 5, 5, 0.9);
  
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --container-width: 1280px;
  --header-height: 80px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.font-mono { font-family: monospace; }
.uppercase { text-transform: uppercase; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
}

.btn-primary {
  background-color: var(--bg-color);
  color: #fff;
  border: 1px solid var(--border-color);
}
.btn-primary:hover {
  border-color: var(--text-main);
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.btn-icon:hover { color: var(--text-main); }

/* Layout Grid System Helper */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color); 
}
::-webkit-scrollbar-thumb {
  background: #333; 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent); 
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  cursor: pointer;
}
.nav-links {
  display: none;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}
.mobile-menu-btn {
  display: block;
}
.mobile-menu {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
}
.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  border-radius: 0.375rem;
}
.mobile-menu a.active {
  color: var(--accent);
  background: rgba(255,255,255,0.05);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
}

/* Footer */
.footer {
  background-color: #000;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: auto;
  text-align: center;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.social-links a:hover {
  color: var(--accent);
}

/* Logo Slider */
.logo-slider-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logo-track {
  display: inline-flex;
  animation: scroll 30s linear infinite;
}
.logo-item {
  margin: 0 2rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #555;
  transition: color 0.3s;
}
.logo-item:hover { color: #fff; }

/* Home Page */
.hero-section {
  padding-top: calc(var(--header-height) + 4rem);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4rem;
}
.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .hero-title { font-size: 4.5rem; }
}

.reel-container {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 30px var(--accent-glow);
  margin-bottom: 5rem;
}

.clients-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--card-bg);
  margin-bottom: 5rem;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
}

.cta-section {
  text-align: center;
  padding: 4rem 0;
  max-width: 700px;
  margin: 0 auto;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-top: 2rem;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s;
}
.cta-button:hover {
  border-color: var(--accent);
}
.cta-text {
  padding: 1rem 1.5rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cta-arrow {
  padding: 1rem;
  background: transparent;
  color: var(--accent);
  border-left: 1px solid rgba(255,255,255,0.1);
}

/* About Page */
.about-grid {
  display: grid;
  gap: 4rem;
  padding-top: var(--header-height);
  align-items: center;
}
@media (min-width: 992px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-image {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 3/4;
  position: relative;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 0.5rem;
}

/* Projects Page */
.projects-header {
  padding-top: calc(var(--header-height) + 2rem);
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media(min-width: 768px) {
  .projects-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}
.filter-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.875rem;
}
.filter-btn:hover { border-color: #fff; color: #fff; }
.filter-btn.active {
  background: var(--accent);
  color: var(--bg-color);
  border-color: var(--accent);
  font-weight: 600;
}
.project-card {
  cursor: pointer;
  position: relative;
}
.project-image-wrapper {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  position: relative;
}
.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.project-card:hover img { transform: scale(1.05); opacity: 0.7; }
.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-overlay { opacity: 1; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-content {
  background: #111;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}
@media (min-width: 768px) {
  .modal-content { flex-direction: row; }
}
.modal-img-col { flex: 1; }
.modal-img-col img { width: 100%; height: 100%; object-fit: cover; }
.modal-info-col { flex: 1; padding: 2rem; }

/* Utilities Page */
.utility-card {
  background: #111;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}
.utility-card:hover { border-color: var(--accent); }
.dev-banner {
  margin-top: 4rem;
  padding: 2rem;
  background: linear-gradient(to right, #111, #000);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  text-align: center;
}

/* Background Gradients */
.bg-gradient-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
}
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--purple); }
.blob-2 { bottom: -10%; right: -10%; width: 40vw; height: 40vw; background: var(--accent); }
.blob-3 { top: 40%; left: 20%; width: 30vw; height: 30vw; background: #1e3a8a; opacity: 0.1; }

.select-custom {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  outline: none;
}
