/* ===================================
   VARIABLES & RESET
=================================== */
:root {
  --bg: #050B18;
  --bg-2: #0A1528;
  --card: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.07);
  --accent: #00E5CC;
  --accent-dim: rgba(0, 229, 204, 0.1);
  --accent-2: #818CF8;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --dim: #475569;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --nav-h: 72px;
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-2);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 17px;
}

/* ===================================
   BUTTONS
=================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent);
  color: #050B18;
}
.btn-primary:hover {
  background: #00c9b4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 229, 204, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===================================
   NAVBAR
=================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

#navbar.scrolled {
  background: rgba(5, 11, 24, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.accent-dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-linkedin {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.2s;
}
.nav-linkedin:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  background: rgba(5, 11, 24, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--card-border);
  padding: 16px 24px;
}
.nav-mobile.open {
  display: block;
}
.nav-mobile a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--card-border);
  transition: color 0.2s;
}
.nav-mobile li:last-child a {
  border: none;
}
.nav-mobile a: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-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 204, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 204, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 204, 0.2);
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-desc {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  align-items: center;
}

.stat { text-align: center; }

.stat-top {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--card-border);
  flex-shrink: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-wrapper {
  position: relative;
  width: min(380px, 100%);
  height: 460px;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}

.photo-decoration {
  position: absolute;
  inset: -10px -10px -10px 10px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  z-index: 0;
  opacity: 0.12;
}

/* ===================================
   ABOUT
=================================== */
.about-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 80px;
  align-items: start;
}

.about-grid > .section-label {
  padding-top: 8px;
  font-size: 13px;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-content p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 17px;
}

.about-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
}
.info-item i {
  color: var(--accent);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* ===================================
   SKILLS
=================================== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.skill-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.3s;
}
.skill-item:hover {
  border-color: rgba(0, 229, 204, 0.2);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.skill-name {
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-name i { color: var(--accent); }

.skill-pct {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
}

.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   SERVICES
=================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover {
  border-color: rgba(0, 229, 204, 0.3);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 204, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.service-tags span {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 100px;
  border: 1px solid rgba(0, 229, 204, 0.15);
}

/* ===================================
   PROJECTS
=================================== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.project-card:hover {
  border-color: rgba(0, 229, 204, 0.3);
  transform: translateY(-4px);
}

.project-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: rgba(255, 255, 255, 0.12);
}
.pv-1 { background: linear-gradient(135deg, #061A2A, #0D2B4A); }
.pv-2 { background: linear-gradient(135deg, #1A0A30, #0D1B3E); }
.pv-3 { background: linear-gradient(135deg, #051A10, #0A2820); }
.pv-4 { background: linear-gradient(135deg, #1A1005, #2A1E0A); }

.project-info {
  padding: 24px;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.project-tags span {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 100px;
}

.project-info h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-info p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ===================================
   TIMELINE
=================================== */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--card-border);
}

.timeline-item {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

.timeline-dot-edu {
  background: rgba(129, 140, 248, 0.1);
  border-color: var(--accent-2);
}

.timeline-card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.timeline-card-edu {
  border-color: rgba(129, 140, 248, 0.12);
}

.timeline-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.timeline-card-edu .timeline-date {
  color: var(--accent-2);
}

.timeline-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}

.timeline-card-edu .timeline-company {
  margin-bottom: 0;
}

.timeline-card p {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.65;
}

/* ===================================
   TESTIMONIALS
=================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.testimonial-card:hover {
  border-color: rgba(0, 229, 204, 0.2);
  transform: translateY(-4px);
}

.testimonial-quote {
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.testimonial-card > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #050B18;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 13px;
  color: var(--muted);
}

/* ===================================
   CONTACT
=================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-title {
  text-align: left;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s;
}
.contact-item:hover { color: var(--accent); }
.contact-item i {
  color: var(--accent);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--dim);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-group select option {
  background: #0A1528;
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(0, 229, 204, 0.03);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* ===================================
   FOOTER
=================================== */
footer {
  border-top: 1px solid var(--card-border);
  padding: 48px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-content > p {
  color: var(--muted);
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 13px;
  color: var(--dim) !important;
  margin-top: 8px;
}

/* ===================================
   SCROLL ANIMATIONS
=================================== */
.card-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-animate:nth-child(2) { transition-delay: 0.1s; }
.card-animate:nth-child(3) { transition-delay: 0.2s; }
.card-animate:nth-child(4) { transition-delay: 0.3s; }

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width: 1024px) {
  .hero-grid { gap: 48px; }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions { display: none; }
  .nav-toggle { display: flex; }

  .section { padding: 72px 0; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding-top: 48px;
  }
  .hero-visual { order: -1; }
  .photo-wrapper {
    width: 260px;
    height: 320px;
    margin: 0 auto;
  }
  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; gap: 24px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-info { grid-template-columns: 1fr; }

  .skills-grid { grid-template-columns: 1fr; }

  .services-grid,
  .testimonials-grid { grid-template-columns: 1fr; }

  .projects-grid { grid-template-columns: 1fr; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-row { grid-template-columns: 1fr; }

  .footer-links { gap: 20px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 40px; height: 1px; }
}
