@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap");

/* ============================================
   CSS VARIABLES & THEME CONFIGURATION
   ============================================ */

/* CSS Variables for Theme */
:root {
  --bg-color: black;
  --secondary-bg: #0f0f0f;
  --tertiary-bg: #1a1a1a;
  --card-bg: linear-gradient(145deg, #1e1e1e, #2a2a2a);
  --text-color: white;
  --text-secondary: #ccc;
  --text-muted: #666;
  --accent-color: #b74b4b;
  --accent-light: #ff6b6b;
  --border-color: #333;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --accent-shadow: rgba(183, 75, 75, 0.3);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-color: #f8f9fa;
  --secondary-bg: #ffffff;
  --tertiary-bg: #f1f3f4;
  --card-bg: linear-gradient(145deg, #ffffff, #f8f9fa);
  --text-color: #333333;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent-color: #b74b4b;
  --accent-light: #d63384;
  --border-color: #e9ecef;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --accent-shadow: rgba(183, 75, 75, 0.2);
}

/* ============================================
   GLOBAL STYLES & BASE CONFIGURATION
   ============================================ */

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

html {
  font-size: 62.5%;
}

body {
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 9%;
  background-color: var(--bg-color);
  filter: drop-shadow(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 3rem;
  color: var(--accent-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.5s ease;
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.1);
}

/* Navigation Styles */
nav {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex: 1;
  justify-content: center;
}

nav a {
  font-size: 1.8rem;
  color: var(--text-color);
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: var(--accent-color);
  border-bottom: 3px solid var(--accent-color);
}

/* Header Controls - Theme Toggle & Hamburger */
.header-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--card-bg);
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--accent-color);
  font-size: 1.8rem;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--accent-shadow);
  background: var(--accent-color);
  color: var(--bg-color);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 2.5rem;
  color: var(--text-color);
}

@media (max-width: 995px) {
  .hamburger {
    display: block;
  }

  nav {
    position: absolute;
    display: none;
    top: 5rem;
    right: 0;
    width: 40%;
    border-left: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    border-bottom-left-radius: 2rem;
    padding: 2rem;
    background-color: var(--secondary-bg);
    border-top: 0.1rem solid var(--border-color);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    align-items: flex-start;
  }

  nav.active {
    display: flex;
  }

  nav a {
    display: block;
    font-size: 2rem;
    margin: 1.5rem 0;
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
  }

  nav a:hover,
  nav a.active {
    background-color: transparent;
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    transform: none;
  }

  .header-controls {
    gap: 1rem;
  }

  .theme-toggle {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.6rem;
  }
}

/* Medium screens - adjust navigation */
@media (max-width: 1200px) {
  nav {
    gap: 2.5rem;
  }

  nav a {
    font-size: 1.6rem;
  }

  .logo {
    font-size: 2.5rem;
  }
}

/* Small desktop screens */
@media (max-width: 1100px) {
  nav {
    gap: 2rem;
  }

  nav a {
    font-size: 1.5rem;
  }
}
/* ============================================
   HERO SECTION (HOME)
   ============================================ */

section {
  min-height: 100vh;
  padding: 4rem 9% 4rem;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6rem;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
}

[data-theme="dark"] .home::before {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.home > * {
  position: relative;
  z-index: 2;
}

.home-content {
  flex: 1;
  max-width: 50rem;
}

.home .home-content h1 {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-color);
  margin-bottom: 12px;
}

span {
  color: var(--accent-color);
}

.home-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.typing-text {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-color);
  display: block;
  white-space: normal;
  overflow: hidden;
}

.typing-text span {
  color: var(--accent-light);
  border-right: 3px solid var(--accent-light);
  padding-right: 0.5rem;
  margin-left: 0.3rem;
  animation: blink 0.7s infinite;
  display: inline-block;
}

.tagline {
  font-size: 1.4rem;
  color: var(--accent-light);
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 1.6;
}

.tech-stack {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 400;
  letter-spacing: 0.05rem;
}

.proof-stat {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 400;
}

@keyframes blink {
  0%,
  49% {
    border-right-color: var(--accent-light);
  }
  50%,
  100% {
    border-right-color: transparent;
  }
}

.home-content p {
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.home-highlights {
  list-style: none;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.home-highlights li {
  font-size: 1.6rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.home-highlights .check {
  color: var(--accent-color);
  font-size: 1.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.home-open {
  font-size: 1.5rem !important;
  color: var(--accent-light) !important;
  font-weight: 500;
  border-left: 3px solid var(--accent-color);
  padding-left: 1rem;
  margin-bottom: 2.5rem !important;
}

.home-img {
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-img img {
  position: relative;
  width: 24vw;
  min-width: 250px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(183, 75, 75, 0.6);
  cursor: pointer;
  transition: 0.2s linear;
}

.home-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(183, 75, 75, 0.8);
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid var(--accent-color);
  font-size: 2rem;
  border-radius: 50%;
  margin: 1.5rem 1.5rem 2.5rem 0;
  transition: 0.3s ease;
  color: var(--accent-color);
}

.social-icons a:hover {
  color: var(--bg-color);
  transform: scale(1.3) translateY(-5px);
  background-color: var(--accent-color);
  box-shadow: 0 0 25px var(--accent-color);
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: var(--bg-color);
  border-radius: 4rem;
  font-size: 1.4rem;
  color: var(--accent-color);
  letter-spacing: 0.2rem;
  font-weight: 600;
  border: 2px solid var(--accent-color);
  transition: 0.3s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  transform: scale(1.05);
  background-color: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 0 20px var(--accent-light);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  box-shadow: 0 0 20px var(--accent-color);
  transform: scale(1.05);
}

.btn-tertiary {
  background-color: transparent;
  border-color: var(--text-muted);
  color: var(--text-muted);
  font-size: 1.2rem;
}

.btn-tertiary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  box-shadow: 0 0 20px var(--accent-color);
  transform: scale(1.05);
}

.btn:hover {
  transform: scale(1.05);
}

.action-buttons {
  display: flex;
  gap: 1.2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.btn-secondary i,
.btn-tertiary i {
  margin-right: 0.4rem;
}

.resume-btn:hover i {
  transform: translateY(-2px);
}

@media (max-width: 1000px) {
  .home {
    gap: 4rem;
  }
}

@media (max-width: 995px) {
  .home {
    flex-direction: column;
    margin: 5rem 4rem;
    overflow-x: hidden;
  }

  .home .home-content h3 {
    font-size: 2.5rem;
  }

  .home-content h1 {
    font-size: 5rem;
  }

  .home-img img {
    width: 70vw;
    margin-top: 4rem;
  }

  .action-buttons {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .action-buttons .btn {
    width: 100%;
    max-width: 30rem;
    text-align: center;
    justify-content: center;
  }
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects {
  background: linear-gradient(
    135deg,
    var(--secondary-bg) 0%,
    var(--tertiary-bg) 100%
  );
  padding: 6rem 9% 4rem;
}

.heading {
  font-size: 5rem;
  text-align: center;
  margin-bottom: 5rem;
  color: var(--text-color);
}

.heading span {
  color: var(--accent-color);
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
  gap: 3rem;
  margin-top: 4rem;
  align-items: stretch;
}

.project-card {
  background: var(--card-bg);
  border-radius: 2rem;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px var(--shadow-color);
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border: 2px solid var(--accent-color);
  transform: translateY(-10px);
  box-shadow: 0 15px 35px var(--accent-shadow);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 25rem;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(183, 75, 75, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

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

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.project-link:hover {
  background: white;
  color: var(--accent-color);
  transform: scale(1.1);
}

.project-info {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  font-weight: 600;
}

.project-info p {
  font-size: 1.5rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex: 1;
}

.project-buttons {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  flex-wrap: wrap;
}

.proj-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.6rem;
  border-radius: 3rem;
  font-size: 1.3rem;
  font-weight: 600;
  background: linear-gradient(45deg, var(--accent-color), var(--accent-light));
  color: white;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.proj-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--accent-shadow);
}

.proj-btn-ghost {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

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

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tech-tag {
  background: linear-gradient(45deg, var(--accent-color), var(--accent-light));
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.tech-tag:hover {
  transform: scale(1.05);
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills {
  background: linear-gradient(
    135deg,
    var(--tertiary-bg) 0%,
    var(--secondary-bg) 100%
  );
  padding: 6rem 9% 4rem;
}

.skills-container {
  max-width: 100rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.skill-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--accent-shadow);
}

.skill-icon {
  font-size: 4rem;
  color: var(--accent-color);
  margin-bottom: 1.2rem;
  transition: color 0.3s ease;
}

.skill-card:hover .skill-icon {
  color: var(--accent-light);
}

.skill-card h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.6rem;
}

.skill-card p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.skill-level {
  display: inline-block;
  padding: 0.3rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: auto;
}

.skill-level.proficient {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.skill-level.intermediate {
  background: rgba(255, 152, 0, 0.15);
  color: #ff9800;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.skill-level.working {
  background: rgba(33, 150, 243, 0.15);
  color: #2196f3;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.skill-level.Beginner {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.additional-skills {
  max-width: 100rem;
  margin: 4rem auto 0;
}

.additional-skills-heading {
  font-size: 2.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 500;
  text-align: center;
}

.additional-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  max-width: 100%;
  margin: 0;
}

.skill-circle-wrapper {
  display: none;
}

.skill-ring {
  display: none;
}

.skill-ring-inner {
  display: none;
}

.skill-percent {
  display: none;
}

@media (max-width: 900px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 500px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .additional-skills-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
}

/* ============================================
   EDUCATION SECTION
   ============================================ */

.education {
  background: linear-gradient(
    135deg,
    var(--secondary-bg) 0%,
    var(--tertiary-bg) 100%
  );
  padding: 6rem 9% 4rem;
}

.education-container {
  max-width: 120rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(45rem, 1fr));
  gap: 3rem;
  align-items: stretch;
}

.education-item {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 2rem;
  position: relative;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 8px 25px var(--shadow-color);
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.education-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-color), var(--accent-light));
}

.education-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--accent-shadow);
}

.education-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  background: linear-gradient(45deg, var(--accent-color), var(--accent-light));
  border-radius: 50%;
  color: white;
  font-size: 2.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(183, 75, 75, 0.3);
}

.education-content {
  flex: 1;
}

.education-content h3 {
  font-size: 2.4rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.education-content h4 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 500;
}

.education-duration {
  display: inline-block;
  background: rgba(183, 75, 75, 0.1);
  color: var(--accent-color);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(183, 75, 75, 0.2);
}

.education-description {
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */

.experience {
  background: linear-gradient(
    135deg,
    var(--tertiary-bg) 0%,
    var(--secondary-bg) 100%
  );
  padding: 6rem 9% 4rem;
}

.experience-container {
  max-width: 100rem;
  margin: 0 auto;
  position: relative;
}

.experience-container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-color), var(--accent-light));
  transform: translateX(-50%);
}

.experience-item {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 2rem;
  margin: 3rem 0;
  position: relative;
  width: 45%;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px var(--shadow-color);
}

.experience-item:nth-child(odd) {
  margin-left: 0;
}

.experience-item:nth-child(even) {
  margin-left: 55%;
}

.experience-item::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  border: 3px solid var(--bg-color);
  transform: translateY(-50%);
}

.experience-item:nth-child(odd)::before {
  right: -41px;
}

.experience-item:nth-child(even)::before {
  left: -41px;
}

.experience-item:hover {
  border-color: var(--accent-color);
  transform: scale(1.02);
  box-shadow: 0 15px 30px var(--accent-shadow);
}

.experience-item h3 {
  font-size: 2.2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.experience-item p:first-of-type {
  color: var(--accent-light);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.exp-date {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(183, 75, 75, 0.12);
  color: var(--accent-color) !important;
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.3rem !important;
  margin-bottom: 1.5rem !important;
  border: 1px solid rgba(183, 75, 75, 0.25);
}

.experience-item p:last-of-type {
  color: var(--text-secondary);
  font-size: 1.6rem;
  line-height: 1.6;
}

.experience-item h4 {
  color: var(--text-color);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.experience-item ul {
  color: var(--text-secondary);
  font-size: 1.6rem;
  line-height: 1.6;
  padding-left: 2rem;
}

.experience-item li {
  margin-bottom: 0.8rem;
}

.experience-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
  background: linear-gradient(
    135deg,
    var(--secondary-bg) 0%,
    var(--tertiary-bg) 100%
  );
  padding: 6rem 9% 4rem;
}

.contact-container {
  max-width: 120rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  min-height: 60vh;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.contact-info h2 {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

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

.contact-details {
  margin-bottom: 4rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 1rem;
  border-left: 4px solid var(--accent-color);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.contact-item:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px var(--accent-shadow);
}

.contact-item i {
  font-size: 2.2rem;
  color: var(--accent-color);
  min-width: 3rem;
  text-align: center;
}

.contact-text {
  flex: 1;
}

.contact-text h3 {
  font-size: 1.6rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-text p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background: var(--card-bg);
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  color: var(--accent-color);
  font-size: 2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent-color);
  color: var(--bg-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--accent-shadow);
}

.contact-form-container {
  background: var(--card-bg);
  padding: 4rem;
  border-radius: 2rem;
  border: 2px solid var(--border-color);
  box-shadow: 0 15px 35px var(--shadow-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--bg-color);
  border-radius: 1rem;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  resize: none;
  font-family: "Poppins", sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-shadow);
  outline: none;
  transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form textarea {
  height: 15rem;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.8rem;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.contact-form .btn:hover {
  transform: translateY(-2px);
}

.direct-contact {
  text-align: center;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(76, 175, 80, 0.12);
  color: #4caf50 !important;
  border: 1px solid rgba(76, 175, 80, 0.3);
  padding: 0.4rem 1.4rem;
  border-radius: 2rem;
  font-size: 1.4rem !important;
  font-weight: 600;
  margin-bottom: 1.5rem !important;
}

.availability-badge i {
  font-size: 0.8rem;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.direct-contact h2 {
  font-size: 2.8rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.direct-contact p {
  font-size: 1.6rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.5;
  max-width: 35rem;
}

.direct-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-size: 1.8rem;
  padding: 1.8rem 3.5rem;
  background: linear-gradient(45deg, var(--accent-color), var(--accent-light));
  color: white;
  text-decoration: none;
  border-radius: 5rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(183, 75, 75, 0.3);
  font-weight: 600;
  min-width: 25rem;
}

.direct-email-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(183, 75, 75, 0.5);
  background: linear-gradient(45deg, var(--accent-light), var(--accent-color));
}

.direct-email-btn i {
  font-size: 2rem;
}

.form-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.4rem;
  color: var(--text-secondary);
}

.direct-email-link {
  color: var(--accent-color);
  text-decoration: underline;
  font-weight: 600;
  transition: all 0.3s ease;
}

.direct-email-link:hover {
  color: var(--accent-light);
  text-decoration: none;
}

/* Responsive Contact Section */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
    min-height: auto;
  }

  .contact-info {
    text-align: center;
  }

  .contact-info h2 {
    font-size: 2.5rem;
  }

  .contact-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    text-align: left;
  }

  .contact-item i {
    font-size: 2rem;
    min-width: 2.5rem;
  }

  .contact-text h3 {
    font-size: 1.5rem;
  }

  .contact-text p {
    font-size: 1.3rem;
  }

  .contact-form-container {
    padding: 3rem 2rem;
    height: auto;
  }

  .direct-contact {
    padding: 3rem 1rem;
    height: auto;
  }

  .direct-contact h2 {
    font-size: 2.2rem;
  }

  .direct-contact p {
    font-size: 1.4rem;
    max-width: none;
  }

  .direct-email-btn {
    font-size: 1.6rem;
    padding: 1.5rem 2.5rem;
    min-width: auto;
    width: 100%;
    max-width: 30rem;
  }

  .social-links {
    justify-content: center;
    gap: 1.5rem;
  }

  .social-link {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.8rem;
  }

  /* Additional responsive styles */
  .projects-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .education-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .education-item {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .education-icon {
    width: 5rem;
    height: 5rem;
    font-size: 2rem;
    align-self: center;
  }

  .education-content h3 {
    font-size: 2rem;
  }

  .education-content h4 {
    font-size: 1.6rem;
  }

  .education-description {
    font-size: 1.4rem;
  }

  .experience-container::before {
    left: 20px;
  }

  .experience-item {
    width: calc(100% - 40px);
    margin-left: 40px !important;
  }

  .experience-item::before {
    left: -30px !important;
  }

  .heading {
    font-size: 4rem;
  }

  .project-image {
    height: 20rem;
  }

  .project-info {
    padding: 2rem;
  }

  .project-info h3 {
    font-size: 2rem;
  }

  .project-info p {
    font-size: 1.4rem;
  }

  .project-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .proj-btn {
    font-size: 1.2rem;
    padding: 0.6rem 1.2rem;
  }

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

  .exp-date {
    font-size: 1.2rem !important;
  }
}

/* ============================================
   CERTIFICATES SECTION
   ============================================ */

/* Certificate Divider */
.certificate-divider {
  padding: 4rem 9%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
  position: relative;
}

.certificate-divider::before,
.certificate-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-color),
    transparent
  );
}

.certificate-divider::before {
  margin-right: 2rem;
}

.certificate-divider::after {
  margin-left: 2rem;
}

.certificate-icon-btn {
  background: linear-gradient(145deg, var(--accent-color), var(--accent-light));
  border: none;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0.5rem 1.5rem var(--accent-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 10;
}

.certificate-icon-btn:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 1rem 2.5rem var(--accent-shadow);
}

.certificate-icon-btn:active {
  transform: scale(0.95);
}

/* Certificate Modal */
.certificate-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.certificate-modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 2rem;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideInUp 0.4s ease;
  box-shadow: 0 2rem 4rem var(--accent-shadow);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--tertiary-bg);
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.8rem;
  color: var(--accent-color);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-close:hover {
  background-color: var(--accent-color);
  color: white;
  transform: rotate(90deg);
}

.carousel-container {
  position: relative;
  margin-bottom: 2rem;
}

.carousel-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.certificate-card {
  background: var(--tertiary-bg);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  overflow: hidden;
}

.certificate-card-header {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  padding: 2rem;
  color: white;
}

.certificate-card-header h3 {
  font-size: 2rem;
  margin: 0;
}

.certificate-card-body {
  padding: 2rem;
}

.certificate-card-body h4 {
  font-size: 1.6rem;
  color: var(--accent-color);
  margin: 0 0 0.5rem 0;
}

.certificate-card-date {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
}

.certificate-card-body h5 {
  font-size: 1.5rem;
  color: var(--accent-light);
  margin: 1.5rem 0 1rem 0;
}

.certificate-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.certificate-card-body li {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  padding-left: 2rem;
  position: relative;
  line-height: 1.6;
}

.certificate-card-body li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-weight: bold;
  font-size: 1.4rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.carousel-btn {
  background: var(--tertiary-bg);
  border: 2px solid var(--accent-color);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--accent-color);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--accent-color);
  color: white;
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-indicators {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator:hover {
  background-color: var(--accent-color);
}

.indicator.active {
  background-color: var(--accent-color);
  width: 1.5rem;
  border-radius: 0.5rem;
}

/* ============================================
   RESPONSIVE DESIGN & MEDIA QUERIES
   ============================================ */

/* Responsive */
@media (max-width: 768px) {
  .certificate-modal-content {
    width: 95%;
    max-height: 90vh;
    padding: 1.5rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .certificate-card-header {
    padding: 1.5rem;
  }

  .certificate-card-header h3 {
    font-size: 1.5rem;
  }

  .certificate-card-body {
    padding: 1.5rem;
  }

  .carousel-btn {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.2rem;
  }

  .certificate-divider {
    padding: 2rem 9%;
  }

  .certificate-icon-btn {
    width: 5rem;
    height: 5rem;
    font-size: 2.5rem;
  }
}
/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--secondary-bg);
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.4rem;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition:
    opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-60px);
}

.reveal-right {
  transform: translateX(60px);
}

.reveal-scale {
  transform: scale(0.82) translateY(20px);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Heading underline accent animation */
.heading.visible span {
  animation: accentPop 0.5s 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes accentPop {
  from {
    opacity: 0;
    letter-spacing: 0.5rem;
  }
  to {
    opacity: 1;
    letter-spacing: normal;
  }
}

/* Hero image float */
.home-img.visible img {
  animation: floatImg 4s ease-in-out infinite;
}

@keyframes floatImg {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Skill card icon spin on entry */
.skill-card.visible .skill-icon {
  animation: iconSpin 0.5s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes iconSpin {
  from {
    transform: rotate(-20deg) scale(0.7);
    opacity: 0;
  }
  to {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

/* Project card shimmer on entry */
.project-card.visible::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 60%
  );
  animation: shimmer 0.8s ease forwards;
  pointer-events: none;
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

/* Contact item slide-in */
.contact-item.visible {
  border-left-width: 4px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
