:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card-bg: #111827;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2937;
  --danger: #ef4444;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
  --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.85);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease-out;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text-main);
  font-family: var(--font-main);
  scroll-behavior: smooth;
}

/* Layout helpers */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #000 100%);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

/* Hero */

.hero {
  padding: 5.5rem 0 3.5rem;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  letter-spacing: 0.03em;
  margin: 0 0 0.75rem;
}

.accent {
  color: var(--accent);
}

.subtitle {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.tagline {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  border-radius: 18px;
  padding: 1.75rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.hero-card li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent) 0, transparent 70%);
}

.location {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.profile-photo {
  width: 260px;              /* Bigger size */
  height: 260px;
  object-fit: cover;
  border-radius: 20px;       /* Softer shape (not fully round) */
  border: 3px solid #eaeaea; /* Light border to blend with your theme */
  box-shadow: 0 10px 25px rgba(0,0,0,0.18); /* Smooth shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle hover effect (optional but looks professional) */
.profile-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 35px rgba(0,0,0,0.22);
}

.hero-photo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Navbar */

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.9));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 60%);
  color: var(--accent);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

/* Buttons */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0b1120;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(8, 47, 73, 0.7);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(8, 47, 73, 0.9);
  filter: brightness(1.05);
}

/* Sections */

h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.section p {
  color: var(--text-muted);
  max-width: 46rem;
}

/* About */

.about-highlight {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-card);
}

.about-highlight h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.about-highlight ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-highlight li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* Skills */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* Experience */

.timeline-item {
  border-left: 2px solid rgba(56, 189, 248, 0.5);
  padding-left: 1.25rem;
  margin-top: 1.75rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: radial-gradient(circle, #38bdf8 0, #0f172a 70%);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.timeline-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  margin-bottom: 0.6rem;
}

.timeline-meta span {
  color: var(--accent);
}

.timeline-item ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

/* Projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact */

.contact-section {
  background: radial-gradient(circle at top, #020617 0, #000 80%);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-form {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 0.75rem;
}

.contact-form label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #020617;
  color: var(--text-main);
  padding: 0.55rem 0.7rem;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
  background: #020617;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.5rem 0 2rem;
  background: #020617;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-note {
  opacity: 0.9;
}