/* ================================
   ROOT VARIABLES
================================ */
:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --accent: #7c3aed;
  --accent-light: #ede9fe;
  --muted: #6b7280;
  --text: #111;
  --radius: 12px;
  --shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* ================================
   GLOBAL
================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 18px;
}

.section {
  padding: 50px 0;
}

h2 {
  margin-bottom: 15px;
  font-size: 26px;
  font-weight: 700;
}

/* ================================
   NAVBAR
================================ */
.navbar {
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo {
  font-weight: 700;
  font-size: 18px;
}

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

.navlinks a {
  padding: 6px 12px;
  font-weight: 600;
  border-radius: 8px;
  color: var(--muted);
}

.navlinks a.btn {
  color: white !important;
  background: var(--accent);
}



.navlinks a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.btn {
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 8px;
  color: white !important;
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
}


.btn:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 2px solid var(--accent);
  padding: 8px 14px;
  color: var(--accent);
  font-weight: 600;
  border-radius: 8px;
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

/* Mobile menu button */
.hamburger {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
}

/* ================================
   HERO SECTION
================================ */
.hero {
  padding: 60px 0 40px;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 38px;
}

.title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 18px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  max-width: 550px;
  margin-bottom: 20px;
}

.hero-btns {
  display: flex;
  gap: 12px;
}

.hero-image img {
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ================================
   PROJECTS
================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--card);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.25s;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.project-card p {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.btn-sm-outline,
.btn-sm {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  margin-right: 8px;
}

.btn-sm-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-sm-outline:hover {
  background: var(--accent);
  color: white;
}

.btn-sm {
  background: var(--accent);
  color: white;
}

.btn-sm:hover {
  opacity: 0.9;
}

/* ================================
   TECHNICAL SKILLS
================================ */
.tech-skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 15px;
}

.tech-group {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tech-group h4 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 18px;
}

.tech-group ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
  color: #444;
}

.tech-group li::marker {
  color: var(--accent);
  font-weight: bold;
}

/* ================================
   CERTIFICATES & EDUCATION
================================ */
.cert-grid,
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.cert-card,
.edu-card {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cert-card h4,
.edu-card h3 {
  margin-bottom: 10px;
}

/* ================================
   SOFT SKILLS
================================ */
.soft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.soft-card {
  background: white;
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.soft-card h4 {
  margin: 0 0 10px;
  color: var(--accent);
}

/* ================================
   CONTACT
================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
}

.contact-card {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card label {
  font-weight: 600;
  display: block;
  margin-top: 14px;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.success-box {
  background: #e8ffe9;
  color: #0e8d42;
  padding: 12px;
  margin-top: 14px;
  border-radius: 8px;
  display: none;
}

/* ================================
   FOOTER
================================ */
.footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  color: #666;
}

/* ================================
   RESPONSIVE DESIGN
================================ */
@media (max-width: 820px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-image img {
    margin-top: 20px;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .hamburger {
    display: block;
  }
  .navlinks {
    display: none;
    flex-direction: column;
    background: white;
    padding: 20px;
    position: absolute;
    top: 60px;
    right: 10px;
    border-radius: 10px;
    box-shadow: var(--shadow);
  }
}
