:root {
  --accent: #2563eb;
  --accent-light: #60a5fa;
  --text: #0f172a;
  --text-dim: #475569;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Playfair Display', serif;

  /* Lite Theme Vars */
  --bg-base: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-blur: blur(30px);
  --header-bg: rgba(255, 255, 255, 0.6);
  --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
  --mesh-opacity: 0.25;
}

[data-theme="dark"] {
  --accent: #60a5fa;
  --accent-light: #93c5fd;
  --text: #f1f5f9;
  --text-dim: #94a3b8;

  /* Dark Theme Vars */
  --bg-base: #020617;
  --glass-bg: rgba(15, 23, 42, 0.75);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(30px);
  --header-bg: rgba(2, 6, 23, 0.8);
  --card-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
  --mesh-opacity: 0.25;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: clamp(14px, 1vw, 16px);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-base);
  background:
    radial-gradient(at 0% 0%, rgba(37, 99, 235, var(--mesh-opacity)) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, var(--mesh-opacity)) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, var(--mesh-opacity)) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(244, 63, 94, var(--mesh-opacity)) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.05) 0px, transparent 100%),
    var(--bg-base);
  background-attachment: fixed;
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Layout */
.layout {
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  /* Space for fixed header */
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  transition: height 0.4s ease, border-bottom 0.4s ease;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  transition: all 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

.header.scrolled {
  border-bottom: 1px solid var(--glass-border);
  height: 70px;
}

.header.scrolled::before {
  background: var(--header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.header-container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #0e996c, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.navmenu ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.navmenu a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: 0.3s;
  opacity: 0.7;
  position: relative;
}

.navmenu a:hover {
  opacity: 1;
  color: var(--accent-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-icon {
  display: none;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text);
  box-shadow: var(--card-shadow);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(12deg);
  border-color: var(--accent);
}

.theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

.navmenu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}

.navmenu a:hover::after {
  width: 100%;
}

/* Main Content */
.main {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Styles */
.section {
  padding: 30px 0;
  margin: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease, border 0.5s ease, box-shadow 0.5s ease;
}

[data-theme="dark"] .glass-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.7));
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  font-style: normal;
  line-height: 1.8;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: calc(70vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  overflow: hidden;
  text-align: left;
  padding: 3rem 8%;
  border-radius: 24px;
}

.hero-section img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 1;
  /* Slightly more visible */
  filter: none;
}

.hero-content {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  animation: fadeInLeft 1s ease-out;
  max-width: 650px;
}

.hero-section h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  /* Reduced for better visibility of BG */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.accent-text {
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hero-section p {
  font-size: 1.25rem;
  color: rgb(22, 22, 22);
  margin: 0;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Summary Section */
.summary-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 900px;
  margin: 0 auto;
}

/* Education Section */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.edu-item {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, background 0.3s ease;
}

.edu-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-light);
}

.edu-item h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.edu-item p {
  margin-bottom: 0.25rem;
}

.edu-item p strong {
  color: var(--text);
}

/* Details Section */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.info-list p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.info-list p strong {
  color: var(--accent);
  margin-right: 0.5rem;
}

.info-list a {
  color: var(--accent-light);
  text-decoration: none;
}

.info-list a:hover {
  text-decoration: underline;
}

.qual-item h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.qual-item p {
  font-size: 1.2rem;
}


/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.skill-item label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.skill-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.1, 0, 0.1, 1);
}

/* Company Header for Experience */
.company-header {
  text-align: center;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.company-header h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.company-header h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 1.2rem;
}

.company-header p {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.company-header strong {
  color: var(--accent-light);
}

/* Resume Section */
.resume-grid {
  display: grid;
  gap: 3rem;
  position: relative;
}

.resume-item {
  position: relative;
  padding-left: 3rem;
  border-left: 2px solid rgba(0, 0, 0, 0.05);
}

.resume-item::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 4px solid var(--glass-bg);
  border-radius: 50%;
  position: absolute;
  left: -9px;
  top: 0;
  box-shadow: 0 0 10px var(--accent);
}

.resume-item h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.resume-item span {
  font-size: 0.85rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

.resume-item p {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.resume-item ul {
  margin-top: 1rem;
  list-style: none;
}

.resume-item ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dim);
}

.resume-item ul li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}


/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-light);
}

.contact-item p {
  color: var(--text-dim);
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

/* Footer */
.footer {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text);
}

/* 🎯 Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-section h1 {
    font-size: 3.5rem;
  }

  .education-grid,
  .skills-grid,
  .details-grid {
    gap: 1.5rem;
  }

  .menu-toggle {
    display: none;
  }

  .navmenu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: var(--header-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: none;
    display: block;
    z-index: 1000;
  }

  .navmenu ul {
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
    align-items: center;
  }

  .navmenu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.6;
  }

  .navmenu a.active,
  .navmenu a:hover {
    opacity: 1;
    color: var(--accent);
  }

  .navmenu a::after {
    display: none;
  }

  .nav-icon {
    display: block;
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 768px) {

  .header-container,
  .main {
    width: 92%;
  }

  .section-title h2 {
    font-size: 2.5rem;
  }

  .contact-grid,
  .skills-grid,
  .education-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .hero-section {
    align-items: center;
    padding: 5% 5%;
  }

  .hero-content {
    max-width: 100%;
    padding: 2rem;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .company-header h3 {
    font-size: 1.6rem;
  }

  .company-header h4 {
    font-size: 0.8rem;
  }

  .company-header p {
    font-size: 0.95rem;
  }
}