* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.2s ease, border-color 0.2s;
}

body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
}

/* Light Theme (Default) */
:root {
  --bg-primary: #f4f7f2;
  --bg-secondary: #ffffff;
  --card-bg: #ffffff;
  --text-primary: #1a2e1f;
  --text-secondary: #2c4b2f;
  --accent: #1f4f2b;
  --accent-light: #3a7b44;
  --border: #cfe3cf;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --graph-grid: #d0e2cf;
  --contact-bg: #e8f0e6;
}

body.dark {
  --bg-primary: #0f1f12;
  --bg-secondary: #1a2a1c;
  --card-bg: #1e2f20;
  --text-primary: #e2f0df;
  --text-secondary: #c8e0c3;
  --accent: #68b86e;
  --accent-light: #469c4b;
  --border: #2c4a2a;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  --graph-grid: #2b4a2a;
  --contact-bg: #162818;
}

body {
  background: var(--bg-primary);
}

/* container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* header & navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-primary);
  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--accent-light);
}

/* Connect Me Button Style */
.connect-nav-btn, .download-certificates-btn {
  background: var(--accent);
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  transition: 0.2s;
}

.connect-nav-btn:hover {
  background: var(--accent-light);
  transform: scale(1.02);
}

/* Theme & Color Controls */
.theme-controls {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.color-palette {
  display: flex;
  gap: 8px;
  background: var(--card-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 40px;
  border: 1px solid var(--border);
}

.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.color-dot:hover {
  transform: scale(1.1);
}

.color-dot.active-color {
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent);
}

/* buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

/* hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 0 3rem;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 380px;
  border-radius: 32px;
  box-shadow: var(--shadow);
  object-fit: cover;
  background: var(--card-bg);
  border: 2px solid var(--border);
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--accent-light);
}

/* sections */
section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
  /* display: inline-block; */
  text-align: center;
}

.about-grid {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-text {
  flex: 2;
}

.about-img {
  flex: 1;
  text-align: center;
}

.about-img img {
  width: 100%;
  max-width: 280px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* portfolio submenu */
.portfolio-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.8rem;
}

.tab-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: 40px;
}

.tab-btn.active {
  background: var(--accent);
  color: white;
}

.tab-content {
  display: none;
  animation: fade 0.3s ease;
}

.tab-content.active-tab {
  display: block;
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* model cards */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin: 1rem 0;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.excel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  background: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  color: var(--accent-light);
  font-weight: 600;
}

/* skills */
.skills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-badge {
  background: var(--accent);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

/* modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s;
}

.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.modal-card {
  background: var(--card-bg);
  max-width: 500px;
  width: 90%;
  border-radius: 32px;
  padding: 2rem;
  position: relative;
  color: var(--text-primary);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.8rem;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

/* Enhanced Contact Section - Aesthetic */
.contact-enhanced {
  background: var(--contact-bg);
  border-radius: 48px;
  padding: 2.5rem;
  margin-top: 1rem;
  backdrop-filter: blur(2px);
}

.contact-flex-enhanced {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.contact-card-modern {
  flex: 1;
  background: var(--card-bg);
  border-radius: 32px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  border: 1px solid var(--border);
}

.contact-card-modern:hover {
  transform: translateY(-5px);
}

#quickConnectBtn{
  margin: 1.5rem 0rem !important;
}

.contact-icon-circle {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
  color: white;
}

.contact-detail-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}

.contact-detail-row i {
  width: 28px;
  font-size: 1.3rem;
  color: var(--accent-light);
}

.social-links-enhanced {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  background: var(--bg-primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  color: var(--accent);
  font-size: 1.3rem;
  text-decoration: none;
  border: 1px solid var(--border);
}

.social-icon:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.05);
}

.availability-badge {
  display: inline-block;
  background: var(--accent);
  padding: 0.3rem 1rem;
  border-radius: 60px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .container {
    padding: 0 1.2rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  .contact-flex-enhanced {
    flex-direction: column;
  }
}

hr {
  border-color: var(--border);
}

.dashboard-preview {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}