/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */
:root {
  --bg:           #09090e;
  --bg-surface:   #111118;
  --bg-card:      #16161f;
  --border:       #1e1e2c;
  --border-hover: #2e2e42;
  --text-primary: #f0f0f5;
  --text-secondary:#8b8fa8;
  --text-muted:   #52546a;
  --accent:       #00b4d8;
  --accent-hover: #00cff7;
  --accent-dim:   rgba(0,180,216,.10);
  --accent-glow:  rgba(0,180,216,.25);
  --blue:         #4361ee;
  --blue-dim:     rgba(67,97,238,.15);
  --radius:       8px;
  --radius-lg:    16px;
  --nav-h:        72px;
  --max-w:        1200px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a  { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }
ul  { list-style:none; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 48px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  font-family: var(--font);
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(9,9,14,.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav.scrolled { background: rgba(9,9,14,.97); }

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-icon { color: var(--accent); font-size: 20px; line-height:1; }
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .2s;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 28px 16px;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,216,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%; height: 100%;
  background: radial-gradient(ellipse at 70% 50%, rgba(0,180,216,.07) 0%, transparent 65%);
}
.hero .container {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero-content { max-width: 560px; }
.hero-title {
  font-size: clamp(2.6rem,5.5vw,4.6rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.04em;
  margin-bottom: 24px;
}
.accent-text { color: var(--accent); }
.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 460px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-tags span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-surface);
}

/* Hero image */
.hero-image { position: relative; }
.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.image-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: brightness(.75) saturate(.85);
  display: block;
  transition: transform .6s ease;
}
.image-frame:hover img { transform: scale(1.03); }
.image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 52px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 32px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--text-primary);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 100px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--bg-card);
  padding: 40px;
  transition: background .2s;
}
.service-card:hover { background: #1c1c28; }
.service-icon {
  width: 44px; height: 44px;
  color: var(--accent);
  margin-bottom: 20px;
}
.service-icon svg { width:100%; height:100%; }
.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ============================================================
   IMAGE SHOWCASE
   ============================================================ */
.showcase { padding: 0 0 100px; }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}
.showcase-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.showcase-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: brightness(.72) saturate(.8);
  display: block;
  transition: transform .5s ease, filter .4s ease;
}
.showcase-item.large { grid-column: span 2; }
.showcase-item.large img { height: 310px; }
.showcase-item:hover img {
  transform: scale(1.05);
  filter: brightness(.88) saturate(1);
}
.showcase-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(9,9,14,.95) 0%, transparent 100%);
}
.showcase-caption h4 {
  font-size: 15px; font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 3px;
}
.showcase-caption p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.cta-content {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}
.cta-content h2 {
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.cta-content p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 48px 0 32px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}
.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,180,216,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(2.4rem,5vw,4rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.page-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-section { padding: 80px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.about-image-main img {
  width: 100%; height: 420px;
  object-fit: cover;
  filter: brightness(.82) saturate(.9);
}
.about-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-image-sm {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-image-sm img {
  width: 100%; height: 170px;
  object-fit: cover;
  filter: brightness(.78) saturate(.8);
}
.about-content .label { margin-bottom: 12px; }
.about-content h2 {
  font-size: clamp(1.8rem,3vw,2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.about-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.about-tags span {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  padding: 5px 12px;
  border: 1px solid rgba(0,180,216,.25);
  border-radius: 100px;
  background: var(--accent-dim);
}

/* Skills */
.skills-section { padding: 0 0 80px; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
}
.skill-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.skill-header span:first-child {
  font-size: 14px;
  font-weight: 600;
}
.skill-pct {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.skill-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent), var(--blue));
  border-radius: 2px;
  width: 0%;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* Certifications */
.certs-section {
  border-top: 1px solid var(--border);
  padding: 80px 0;
}
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.cert-icon { font-size: 30px; margin-bottom: 12px; }
.cert-card h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.cert-card p {
  font-size: 11px;
  color: var(--text-muted);
}

/* Timeline */
.timeline-section { padding: 0 0 100px; }
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(0,180,216,.15);
}
.timeline-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.timeline-item h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.timeline-item h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.timeline-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { padding: 80px 0 100px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
}
.contact-info h2 {
  font-size: clamp(1.8rem,3vw,2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.contact-info > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.contact-method:hover { border-color: var(--accent); }
.contact-method-icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-method-icon svg { width:20px; height:20px; }
.contact-method-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-method-value {
  font-size: 14px;
  font-weight: 600;
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.contact-form h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8fa8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}
.form-group select option { background: var(--bg-card); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group textarea {
  min-height: 130px;
  resize: vertical;
}
.form-submit { width:100%; padding:15px; font-size:15px; font-weight:700; }

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.form-success.show { display: block; }
.success-icon {
  width: 60px; height: 60px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
  font-size: 26px;
}
.form-success h4 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.form-success p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 60px;
  }
  .hero-image { display: none; }

  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: repeat(2,1fr); }

  .showcase-grid { grid-template-columns: repeat(2,1fr); }
  .showcase-item.large { grid-column: span 2; }
  .showcase-item.large img { height: 240px; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .certs-grid { grid-template-columns: repeat(2,1fr); }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width:600px) {
  .services-grid { grid-template-columns: 1fr; }

  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-item.large { grid-column: span 1; }
  .showcase-item.large img { height: 220px; }

  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 24px; }

  .skills-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2,1fr); }

  .form-row { grid-template-columns: 1fr; }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .contact-form { padding: 28px 20px; }
}
