/* Direction: dark modern developer portfolio — deep black, electric cyan accents, clean sans-serif */
:root {
  --color-bg: #060608;
  --color-surface: #0e0e12;
  --color-surface-alt: #16161a;
  --color-text: #f0f0f5;
  --color-text-secondary: #c8c8d4;
  --color-muted: #9ca3af;
  --color-border: #1f1f2a;
  --color-primary: #00e5ff;
  --color-primary-dim: rgba(0,229,255,0.12);
  --color-accent: #a78bfa;
  --color-accent-dim: rgba(167,139,250,0.12);
  --color-success: #34d399;
  --color-danger: #f87171;
  --color-warning: #fbbf24;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 30px rgba(0,229,255,0.15);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; }
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-dim);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}
.section-desc {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.7;
}

/* Navigation */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,6,8,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}
nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
nav .logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--color-text); }
nav .logo span { color: var(--color-primary); }
nav .nav-links { display: flex; gap: 32px; list-style: none; }
nav .nav-links a { color: var(--color-text-secondary); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
nav .nav-links a:hover, nav .nav-links a.active { color: var(--color-primary); text-decoration: none; }
nav .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
nav .hamburger span { width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; transition: 0.2s; }

/* Hero */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin-bottom: 8px;
}
.hero-text h1 .highlight { color: var(--color-primary); }
.hero-text .tagline {
  font-size: 1.15rem; color: var(--color-text-secondary); margin-bottom: 32px; max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { display: flex; justify-content: center; align-items: center; }
.photo-placeholder {
  width: 340px; height: 340px; border-radius: var(--radius-lg);
  border: 2px solid var(--color-border); object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s;
  font-family: var(--font-body);
}
.btn-primary { background: var(--color-primary); color: #060608; }
.btn-primary:hover { background: #33ecff; box-shadow: var(--shadow-glow); text-decoration: none; }
.btn-secondary {
  background: transparent; color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-top: 40px; }
.skill-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 28px 20px;
  text-align: center; transition: all 0.25s; cursor: default;
}
.skill-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-glow); transform: translateY(-3px); }
.skill-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: var(--color-primary-dim);
  color: var(--color-primary);
}
.skill-icon.purple { background: var(--color-accent-dim); color: var(--color-accent); }
.skill-name { font-size: 0.95rem; font-weight: 600; }

/* Projects */
.filter-bar { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 20px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--color-border); background: transparent;
  color: var(--color-text-secondary); transition: all 0.2s;
  font-family: var(--font-body);
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-btn.active { background: var(--color-primary); color: #060608; border-color: var(--color-primary); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; margin-top: 36px; }
.project-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s;
}
.project-card:hover { border-color: rgba(0,229,255,0.3); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.project-card.hidden { display: none; }
.project-card .card-image {
  height: 180px; background: var(--color-surface-alt);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.project-card .card-image img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.project-card .card-body { padding: 24px; }
.project-card .card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.project-card .card-body p { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 16px; line-height: 1.6; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
}
.tag-react { background: rgba(97,218,251,0.2); color: #e0f7ff; }
.tag-node { background: rgba(68,170,85,0.2); color: #c6f0d5; }
.tag-php { background: rgba(117,139,181,0.3); color: #e2e6ed; }

/* Experience */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 20px 0; }
.timeline::before {
  content: ''; position: absolute; left: 24px; top: 0; bottom: 0;
  width: 2px; background: var(--color-border);
}
.timeline-item {
  position: relative; padding-left: 64px; margin-bottom: 40px;
}
.timeline-item::before {
  content: ''; position: absolute; left: 17px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-primary); border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 3px var(--color-primary-dim);
}
.timeline-item .tl-date {
  font-size: 0.85rem; color: var(--color-primary); font-weight: 600; margin-bottom: 4px;
}
.timeline-item .tl-role { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.timeline-item .tl-company { color: var(--color-text-secondary); font-size: 0.95rem; margin-bottom: 8px; }
.timeline-item .tl-desc { color: var(--color-muted); font-size: 0.9rem; line-height: 1.6; }

/* Contact */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 16px; }
.contact-info p { color: var(--color-muted); margin-bottom: 24px; line-height: 1.7; }
.contact-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--color-text-secondary); }
.contact-detail .cd-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--color-primary-dim); color: var(--color-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-form { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--color-text-secondary); }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--color-bg); border: 1px solid var(--color-border);
  color: var(--color-text); font-size: 0.95rem; font-family: var(--font-body);
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-primary); }
.form-group input.error, .form-group textarea.error { border-color: var(--color-danger); }
.form-group .error-msg { color: var(--color-danger); font-size: 0.8rem; margin-top: 4px; display: none; }
.form-group .error-msg.show { display: block; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-success {
  display: none; background: var(--color-primary-dim); color: var(--color-primary);
  padding: 16px 20px; border-radius: var(--radius-md); text-align: center; font-weight: 600; margin-top: 16px;
}
.form-success.show { display: block; }

/* Footer */
footer {
  border-top: 1px solid var(--color-border); padding: 32px 0;
  text-align: center; color: var(--color-muted); font-size: 0.85rem;
}
footer a { color: var(--color-primary); }

/* Mobile */
@media (max-width: 768px) {
  nav .nav-links { display: none; }
  nav .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text .tagline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-placeholder { width: 240px; height: 240px; margin: 0 auto; }
  section { padding: 60px 0; }
}
@media (max-width: 375px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
