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

/* ===== VARIABLES ===== */
:root {
  --bg:          #0f172a;
  --surface:     #1c3052;
  --surface-2:   #263148;
  --text:        #f8fafc;
  --text-muted:  #94a3b8;
  --accent:      #3b82f6;
  --accent-dark: #2563eb;
  --cyan:        #06b6d4;
  --pink:        #ec4899;
  --green:       #10b981;
  --orange:      #fb923c;
  --border:      #334155;
  --r:           8px;
  --t:           0.3s ease;
  --w:           900px;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4 { line-height: 1.2; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t);
}
a:hover { color: var(--cyan); }

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

section { 
  padding: 5rem 0; 
  /* background: linear-gradient(0deg, #447eb8 40%, #115879); */
}

/* ===== NAVIGATION ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.nav-logo:hover { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--t);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.35rem 0.9rem;
  border-radius: var(--r);
  transition: background var(--t) !important;
}
.nav-cta:hover {
  background: var(--accent-dark) !important;
  color: #fff !important;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 70%, rgba(59, 130, 246, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 70% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
    linear-gradient(rgba(15, 23, 42, 1.00), rgba(15, 23, 42, 0.75)),
    url('pictures/desktop.jpg') center/cover no-repeat;
}

.hero-content { max-width: 640px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.22);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

#hero h1 {
  font-size: clamp(2.75rem, 9vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
  background: linear-gradient(140deg, #f8fafc 40%, #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--t);
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}
.btn-secondary {
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  color: var(--text-muted);
  animation: float 2.5s ease-in-out infinite;
}
.scroll-indicator:hover { color: var(--accent); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.25rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: -1.4rem;
  margin-bottom: 2rem;
}

/* ===== ABOUT ===== */
#about { background: var(--surface); }

.about-content p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 72ch;
}
.about-content p + p { margin-top: 1rem; }

/* ===== ACCORDION ===== */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background var(--t);
}
.accordion-trigger:hover { background: var(--surface-2); }

.accordion-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--t), color var(--t);
}
.accordion-trigger:hover .chevron { color: var(--text); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}

.accordion-body-inner {
  padding: 0.25rem 1.25rem 1.25rem;
}

/* ===== SKILL TAGS ===== */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.18);
  padding: 0.22rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}
.tag-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  border-color: rgba(6, 182, 212, 0.2);
}

/* ===== PROJECTS ===== */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.project-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.project-description {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.project-trigger {
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.project-trigger:hover,
.project-trigger[aria-expanded="true"] { color: var(--text); }

.project-details p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.75;
}
.project-details p + p { margin-top: 0.75rem; }

.project-details code {
  background: rgba(255, 255, 255, 0.07);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.87em;
  font-family: ui-monospace, 'Cascadia Code', 'Courier New', monospace;
}
.project-details .skill-tags { margin-top: 1.25rem; }

/* ===== CLIENTS ===== */
#clients { background: var(--surface); }

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.client-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color var(--t), box-shadow var(--t);
}
.client-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.client-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  color: var(--text);
  width: 100%;
}
.client-link:hover { color: var(--text); }

.client-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform var(--t), box-shadow var(--t);
}
.client-link:hover .client-logo {
  transform: scale(1.06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.logo-pink  { background: rgba(236, 72, 153, 0.12); color: var(--pink);  border: 1px solid rgba(236, 72, 153, 0.25); }
.logo-green { background: rgba(16, 185, 129, 0.12); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.25); }
.logo-blue  { background: rgba(59, 130, 246, 0.12); color: #93c5fd;      border: 1px solid rgba(59, 130, 246, 0.25); }

.client-name {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.client-trigger {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 0.78rem;
  padding: 0.4rem 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
}
.client-trigger:hover,
.client-trigger[aria-expanded="true"] { color: var(--text); }

.client-body .accordion-body-inner {
  padding: 0.75rem 0 0;
}
.client-body p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  text-align: center;
}

/* ===== EDUCATION ===== */
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
}

.edu-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.edu-icon {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: var(--r);
  background: rgba(251, 146, 60, 0.12);
  color: var(--orange);
  border: 1px solid rgba(251, 146, 60, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
}

.edu-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.edu-school {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.edu-programme {
  color: var(--text-muted);
  font-size: 0.83rem;
  margin-bottom: 0.15rem;
}
.edu-year {
  color: var(--text-muted);
  font-size: 0.83rem;
}

.edu-thesis {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.thesis-label {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.edu-thesis p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===== CERTIFICATIONS ===== */
#certifications { background: var(--surface); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.cert-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color var(--t);
}
.cert-card:hover { border-color: rgba(59, 130, 246, 0.4); }

.cert-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.cert-cisco {
  background: rgba(28, 108, 174, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(28, 108, 174, 0.3);
}
.cert-aws {
  background: rgba(255, 153, 0, 0.15);
  color: #ff9900;
  border: 1px solid rgba(255, 153, 0, 0.28);
}

.cert-text h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.cert-issuer {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ===== FOOTER ===== */
footer#contact {
  background: #080d1a;
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.footer-role {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}
.footer-link {
  color: var(--text-muted);
  font-size: 0.87rem;
}
.footer-link:hover { color: var(--accent); }

.footer-copy {
  max-width: var(--w);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
}
.footer-copy-link {
  color: var(--text-muted);
}
.footer-copy-link:hover { color: var(--accent); }

/* ===== PROJECT LIST ===== */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Company logo in project card header */
.project-header-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.company-logo {
  height: 30px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 0px 0px;
}

/* Store links row inside project card */
.project-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.project-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}
.project-link:hover { color: var(--cyan); }

.tag-muted {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border-color: rgba(148, 163, 184, 0.2);
}

/* ===== IMAGE-BASED CLIENT LOGOS ===== */
.client-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.client-logo-img img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}
.client-link:hover .client-logo-img {
  transform: scale(1.06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* ===== IMAGE-BASED EDU / CERT ICONS ===== */
.edu-icon {
  background: #fff;
  color: unset;
  border-color: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.edu-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cert-icon {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.cert-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  section { padding: 3.5rem 0; }

  .nav-links { gap: 0.85rem; }
  .nav-links li:not(:last-child) { display: none; }

  .client-grid,
  .cert-grid { grid-template-columns: 1fr; }

  .project-header { flex-direction: column; }

  .footer-inner { flex-direction: column; }
  .footer-links { text-align: left; }
}
