:root {
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --accent: #34D399;
  --accent-glow: rgba(52, 211, 153, 0.3);
  --dark-bg: #0A0E17;
  --dark-surface: #111827;
  --dark-card: rgba(255, 255, 255, 0.04);
  --dark-border: rgba(255, 255, 255, 0.08);
  --light-bg: #F8FAFC;
  --light-surface: #FFFFFF;
  --light-card: rgba(0, 0, 0, 0.02);
  --light-border: rgba(0, 0, 0, 0.08);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-dark: #1E293B;
  --text-dark-secondary: #64748B;
  --gradient-primary: linear-gradient(135deg, #6366F1 0%, #34D399 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

html::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  padding-left: 28rem;
  line-height: 1.7;
  transition: var(--transition);
}

/* Light Theme */
body.light {
  background-color: var(--light-bg);
  color: var(--text-dark);
  --dark-card: rgba(0, 0, 0, 0.02);
  --dark-border: rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.light header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--light-border);
}

body.light .user .name {
  color: var(--primary);
}

body.light .user .post {
  color: var(--text-dark-secondary);
}

body.light .menu-links {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.02);
}

body.light .menu-links:hover,
body.light .active-link {
  background: var(--gradient-primary);
  color: #fff;
}

body.light .social-links a {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

body.light .section-heading {
  color: var(--text-dark);
}

body.light .section-heading span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light .sub-heading {
  color: var(--primary);
}

body.light .info-title {
  color: var(--primary);
}

body.light .info-value,
body.light .social-item .details a,
body.light .social-item .details span {
  color: var(--text-dark);
}

body.light .social-item .icon {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
}

body.light .timeline-item {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
}

body.light .timeline-icon {
  box-shadow: 0 0 0 4px var(--light-bg), 0 0 0 6px var(--primary);
}

body.light .timeline-content .date {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
  color: var(--primary);
}

body.light .timeline-content h3 {
  color: var(--text-dark);
}

body.light .timeline-content p,
body.light .responsibilities ul li {
  color: var(--text-dark-secondary);
}

body.light .domain-tag {
  background: rgba(52, 211, 153, 0.08);
  color: #059669;
}

body.light .company {
  color: var(--text-dark-secondary);
}

body.light .project-card {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
}

body.light .project-content h3 {
  color: var(--text-dark);
}

body.light .project-content p {
  color: var(--text-dark-secondary);
}

body.light .project-tech span {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.15);
  color: var(--primary);
}

body.light .skills-category h3 {
  color: var(--text-dark);
}

body.light .skill-item {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
}

body.light .skill-item p {
  color: var(--text-dark);
}

body.light .skill-icon-placeholder {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
}

body.light .certification-card {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
}

body.light .certification-content h3 {
  color: var(--text-dark);
}

body.light .issuer {
  color: var(--text-dark-secondary);
}

body.light .contact-info {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
}

body.light .contact-info h3 {
  color: var(--text-dark);
}

body.light .contact-info p {
  color: var(--text-dark-secondary);
}

body.light .contact-item .details h4 {
  color: var(--text-dark);
}

body.light .contact-item .details a,
body.light .contact-item .details span {
  color: var(--text-dark-secondary);
}

body.light .contact-item .icon {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
}

body.light .social-media a {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
}

body.light footer {
  background: var(--light-surface);
  border-top: 1px solid var(--light-border);
}

body.light .footer-links a {
  color: var(--text-dark-secondary);
}

body.light .footer-social a {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

body.light .footer-bottom {
  border-top-color: var(--light-border);
}

body.light .footer-bottom p {
  color: var(--text-dark-secondary);
}

body.light .btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}

body.light .mouse {
  border-color: var(--text-dark-secondary);
}

body.light .mouse span,
body.light .arrow span {
  border-color: var(--text-dark-secondary);
  background: var(--text-dark-secondary);
}

body.light .arrow span {
  background: transparent;
}

body.light .greeting {
  color: var(--text-dark-secondary);
}

body.light .home p.summary-text {
  color: var(--text-dark-secondary);
}

body.light .cert-icon-placeholder {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
}

/* Sections */
section {
  min-height: 100vh;
  padding: 10rem 4rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 2.8rem;
  background: var(--gradient-primary);
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 500;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn i {
  margin-left: 0.6rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(99, 102, 241, 0.5);
  color: var(--text-primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-sm {
  padding: 0.8rem 1.6rem;
  font-size: 1.3rem;
}

/* Section Headings */
.section-heading {
  text-align: center;
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 6rem;
  position: relative;
  padding-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-heading span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub-heading {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  color: var(--accent);
  position: relative;
  padding-left: 1.5rem;
}

.sub-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 4.5rem;
  height: 4.5rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--gradient-primary);
  border-color: transparent;
}

.theme-toggle i {
  font-size: 1.8rem;
  color: var(--text-primary);
}

.theme-toggle:hover i {
  color: #fff;
}

/* Header / Sidebar */
header {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 28rem;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1.5rem;
  z-index: 1000;
  border-right: 1px solid var(--dark-border);
  transition: var(--transition);
}

.user {
  text-align: center;
  margin-top: 2rem;
}

.profile-img {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 3px solid transparent;
  background-image: var(--gradient-primary);
  background-origin: border-box;
  background-clip: content-box, border-box;
  position: relative;
  padding: 3px;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user .name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.user .post {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.navbar {
  width: 100%;
  margin: 2rem 0;
}

.navbar ul {
  list-style: none;
  width: 100%;
}

.navbar ul li {
  margin-bottom: 0.4rem;
}

.menu-links {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  background: transparent;
}

.menu-links i {
  margin-right: 1rem;
  font-size: 1.5rem;
  width: 2rem;
  text-align: center;
}

.menu-links:hover,
.active-link {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateX(4px);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-links a {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--text-secondary);
  font-size: 1.6rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

#menu {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 2.2rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  z-index: 1001;
  display: none;
  transition: var(--transition);
}

#menu:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

/* Home Section */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 100vh;
}

.home-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
  max-width: 110rem;
  margin: 0 auto;
}

.text-content {
  flex: 1;
}

.greeting {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: block;
}

.home h1 {
  font-size: 5.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.home .role {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.home p.summary-text {
  font-size: 1.6rem;
  margin-bottom: 3.5rem;
  max-width: 55rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
}

.home-img {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shape {
  width: 30rem;
  height: 30rem;
  background: var(--gradient-primary);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 8s ease-in-out infinite;
  opacity: 0.15;
  filter: blur(40px);
}

@keyframes morph {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.scroll-down {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mouse {
  width: 2.5rem;
  height: 4rem;
  border: 2px solid var(--text-secondary);
  border-radius: 2rem;
  position: relative;
  opacity: 0.5;
}

.mouse span {
  position: absolute;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { opacity: 1; top: 0.6rem; }
  100% { opacity: 0; top: 2.2rem; }
}

.arrow {
  margin-top: 0.8rem;
}

.arrow span {
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  border-bottom: 2px solid var(--text-secondary);
  border-right: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  margin: -0.4rem;
  animation: arrow 2s infinite;
  opacity: 0.5;
}

@keyframes arrow {
  0% { opacity: 0; transform: rotate(45deg) translate(-0.8rem, -0.8rem); }
  50% { opacity: 0.5; }
  100% { opacity: 0; transform: rotate(45deg) translate(0.8rem, 0.8rem); }
}

/* About Section */
.github-stats {
  max-width: 110rem;
  margin: 0 auto 4rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.github-stats img {
  max-width: 35rem;
  width: 100%;
  height: auto;
}

.about .row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
  max-width: 110rem;
  margin: 0 auto;
}

.info-item {
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
}

.info-title {
  font-size: 1.5rem;
  font-weight: 600;
  width: 14rem;
  color: var(--accent);
  flex-shrink: 0;
}

.info-value {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  color: var(--text-primary);
}

.country-flag {
  width: 2.2rem;
  height: 1.4rem;
  margin-left: 0.8rem;
  border-radius: 2px;
}

.social-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.social-item .icon {
  width: 4.5rem;
  height: 4.5rem;
  background: var(--dark-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  font-size: 1.8rem;
  color: var(--accent);
  border: 1px solid var(--dark-border);
  flex-shrink: 0;
}

.social-item .details h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.social-item .details a,
.social-item .details span {
  font-size: 1.4rem;
  color: var(--text-secondary);
}

.social-item .details a:hover {
  color: var(--accent);
}

/* Timeline (Education & Experience) */
.timeline {
  position: relative;
  max-width: 110rem;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 2px;
  background: var(--dark-border);
  top: 0;
  bottom: 0;
  left: 6rem;
}

.timeline-item {
  position: relative;
  background: var(--dark-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  margin-left: 10rem;
  border: 1px solid var(--dark-border);
  transition: var(--transition);
}

.timeline-item:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

.timeline-icon {
  position: absolute;
  width: 4.5rem;
  height: 4.5rem;
  left: -6.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 0 0 4px var(--dark-bg), 0 0 0 6px var(--primary);
}

.timeline-content .date {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-xl);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--primary);
}

.timeline-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.timeline-content p {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.institution-link,
.company-link {
  display: inline-block;
  font-size: 1.3rem;
  color: var(--primary);
  margin-top: 1rem;
  font-weight: 500;
  transition: var(--transition);
}

.institution-link:hover,
.company-link:hover {
  color: var(--accent);
}

.responsibilities {
  margin-top: 1.5rem;
}

.responsibilities h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.domain-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(52, 211, 153, 0.1);
  border-radius: var(--radius-xl);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
}

.responsibilities ul {
  padding-left: 2rem;
}

.responsibilities ul li {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.company {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Projects Section */
.projects-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 110rem;
  margin: 0 auto;
}

.project-card {
  background: var(--dark-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--dark-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.1);
}

.project-img {
  width: 100%;
  height: 12rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  position: relative;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
}

.project-card:hover .project-img img {
  transform: scale(1.08);
}

.project-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-content p {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.project-tech span {
  padding: 0.3rem 0.8rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-xl);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary);
  transition: var(--transition);
}

.project-tech span:hover {
  background: rgba(99, 102, 241, 0.15);
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.featured-project {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 3fr;
}

.featured-project .project-img {
  height: 100%;
  min-height: 16rem;
}

.project-icon-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
}

.project-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-xl);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

body.light .project-badge {
  background: rgba(52, 211, 153, 0.08);
  color: #059669;
}

body.light .project-icon-placeholder {
  background: rgba(99, 102, 241, 0.06);
  color: var(--primary);
}

/* Certifications Section */
.certifications-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(35rem, 1fr));
  gap: 2.5rem;
  max-width: 110rem;
  margin: 0 auto;
}

.certification-card {
  display: flex;
  background: var(--dark-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--dark-border);
  padding: 2.5rem;
  transition: var(--transition);
  align-items: center;
}

.certification-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.08);
}

.certification-logo {
  width: 7rem;
  height: 7rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-right: 2rem;
  flex-shrink: 0;
}

.certification-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cert-icon-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-subtle);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
}

.certification-content {
  flex: 1;
}

.certification-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.issuer {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.issue-date {
  font-size: 1.2rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-bottom: 1rem;
}

.view-certificate {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-xl);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary);
  transition: var(--transition);
}

.view-certificate:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Skills Section */
.skills-container {
  max-width: 110rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.skills-category {
  margin-bottom: 0;
}

.skills-category h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  position: relative;
  padding-left: 1.5rem;
}

.skills-category h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1.5rem;
}

.skill-item {
  background: var(--dark-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--dark-border);
  transition: var(--transition);
}

.skill-item:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.08);
}

.skill-item img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
}

.skill-item p {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.skill-icon-placeholder {
  width: 4.5rem;
  height: 4.5rem;
  background: var(--gradient-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: var(--primary);
}

/* Contact Section */
.contact-container {
  max-width: 110rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  background: var(--dark-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 4rem;
  border: 1px solid var(--dark-border);
}

.contact-info h3 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-info > p {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  color: var(--text-secondary);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.contact-item .icon {
  width: 4.5rem;
  height: 4.5rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  font-size: 1.8rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item .details h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.contact-item .details a,
.contact-item .details span {
  font-size: 1.4rem;
  color: var(--text-secondary);
}

.contact-item .details a:hover {
  color: var(--accent);
}

.social-media {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
}

.social-media a {
  width: 4.5rem;
  height: 4.5rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  transition: var(--transition);
}

.social-media a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
  background: var(--dark-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 4rem;
  border: 1px solid var(--dark-border);
}

.contact-form h3 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem 1.6rem;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.4rem;
  font-family: "Inter", sans-serif;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 12rem;
}

body.light .contact-form {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
}

body.light .form-group input,
body.light .form-group textarea {
  background: var(--light-bg);
  border-color: var(--light-border);
  color: var(--text-dark);
}

body.light .form-group input::placeholder,
body.light .form-group textarea::placeholder {
  color: var(--text-dark-secondary);
}

/* Footer */
footer {
  background: var(--dark-surface);
  padding: 4rem 3rem 2rem;
  border-top: 1px solid var(--dark-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 110rem;
  margin: 0 auto 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 1.4rem;
  color: var(--text-secondary);
  transition: var(--transition);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-border);
  max-width: 110rem;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 1.3rem;
  color: var(--text-secondary);
}

/* Scroll Top Button */
.scroll-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 4.5rem;
  height: 4.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }

  .projects-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-project {
    grid-template-columns: 1fr 2fr;
  }

  .featured-project .project-img {
    min-height: 14rem;
  }

  .skills-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 991px) {
  .home-content {
    flex-direction: column;
    text-align: center;
  }

  .text-content {
    order: 2;
  }

  .home-img {
    order: 1;
    margin-bottom: 2rem;
  }

  .home p.summary-text {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-buttons {
    justify-content: center;
  }

  .about .row {
    grid-template-columns: 1fr;
  }

  .contact-container {
    max-width: 100%;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #menu {
    display: block;
  }

  header {
    left: -28rem;
    box-shadow: none;
  }

  body {
    padding-left: 0;
  }

  header.active {
    left: 0;
    box-shadow: var(--shadow-lg);
  }

  section {
    padding: 8rem 2rem;
  }

  .section-heading {
    font-size: 3rem;
  }

  .theme-toggle {
    top: 1.5rem;
    right: 1.5rem;
  }

  .projects-container {
    grid-template-columns: 1fr;
  }

  .featured-project {
    grid-template-columns: 1fr;
  }

  .certifications-container {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-links,
  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 50%;
  }

  section {
    padding: 6rem 1.5rem;
  }

  .home h1 {
    font-size: 4rem;
  }

  .home .role {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }

  .timeline-item {
    margin-left: 8rem;
    padding: 2rem;
  }

  .timeline::before {
    left: 5rem;
  }

  .timeline-icon {
    left: -5.5rem;
    width: 4rem;
    height: 4rem;
    font-size: 1.4rem;
  }

  .certification-card {
    flex-direction: column;
    text-align: center;
  }

  .certification-logo {
    margin: 0 auto 1.5rem;
  }

  .contact-info {
    padding: 2.5rem;
  }

  .social-media {
    justify-content: center;
  }

  .scroll-top {
    bottom: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {
  .section-heading {
    font-size: 2.6rem;
    margin-bottom: 4rem;
  }

  .timeline-item {
    margin-left: 7rem;
    padding: 1.5rem;
  }

  .timeline::before {
    left: 4.5rem;
  }

  .timeline-icon {
    left: -4.5rem;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.2rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}
