/* CSS Variables for Theme Support */
:root {
  --bg-primary: #0d1826;
  --bg-secondary: #16273f;
  --bg-tertiary: #f3f7fd;
  --text-primary: #ffffff;
  --text-secondary: #c8d2de;
  --text-dark: #1a2c4a;
  --accent-color: #4a8fd1;
  --accent-dark: #3a72a8;
  --border-light: rgba(74, 143, 209, 0.12);
  --border-hover: rgba(74, 143, 209, 0.3);
  --shadow-color: rgba(74, 143, 209, 0.18);
  --transparent-bg: rgba(255, 255, 255, 0.05);
  --card-bg: rgba(255, 255, 255, 0.03);
}

body.light-mode {
  --bg-primary: #f5f7fa;
  --bg-secondary: #e8eef7;
  --bg-tertiary: #ffffff;
  --text-primary: #1a2c4a;
  --text-secondary: #444444;
  --text-dark: #1a2c4a;
  --accent-color: #0088cc;
  --accent-dark: #0066aa;
  --border-light: rgba(0, 136, 204, 0.1);
  --border-hover: rgba(0, 136, 204, 0.3);
  --shadow-color: rgba(0, 136, 204, 0.15);
  --transparent-bg: rgba(0, 136, 204, 0.05);
  --card-bg: rgba(0, 136, 204, 0.03);
}

/* Global Styles */
body,
html {
  padding: 0;
  margin: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Inter";
  font-size: 1.2em;
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3 {
  font-family: "K2D";
  color: var(--text-primary);
}

h1 {
  font-size: 3.5em;
}

h2 {
  font-size: 2.5em;
}

.applyCyanColor {
  color: var(--accent-color);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes timelineSlide {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.scroll-revealed {
  animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.project-animate-in {
  animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Navbar */
.navbar {
  font-family: "Inter";
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 0;
  left: 0;
  right: 0;
  position: fixed;
  padding: 12px 20px;
  background-color: var(--bg-secondary);
  min-height: 96px;
  height: auto;
  box-sizing: border-box;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s ease, opacity 0.35s ease;
  border-bottom: 1px solid var(--border-light);
}

.navbar.navbar-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-110%);
}

.navbar::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  position: absolute;
  top: 100%;
  left: 0;
}

.logo {
  height: 8vh;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover {
  cursor: pointer;
  transform: scale(1.15) rotate(5deg);
}

.navbar nav {
  display: flex;
  gap: 2vw;
  margin-right: 2vw;
}

.navbar nav a {
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
}

.navbar nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar nav a:hover {
  color: var(--accent-color);
}

.navbar nav a:hover::after {
  width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--accent-color);
  border: 2px solid var(--accent-color);
  color: var(--bg-primary);
  padding: 8px 12px;
  border-radius: 50%;
  font-size: 1.2em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  box-sizing: border-box;
  flex: 0 0 auto;
  margin-right: 10px;
  box-shadow: 0 2px 10px var(--shadow-color);
}

.theme-toggle:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 4px 15px var(--shadow-color);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 200px 0 50px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  height: 100vh;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 50%;
  position: relative;
  top: -25vh;
  z-index: 1;
  animation: fadeInLeft 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero h1 {
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: bold;
  letter-spacing: -1px;
}

.hero p {
  margin-bottom: 30px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.cta-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-family: "K2D";
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.btn:hover::after {
  width: 400px;
  height: 400px;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-primary);
  border: 2px solid var(--accent-color);
  font-weight: bold;
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--bg-primary);
  border-color: var(--accent-color);
}

.hero-image {
  flex: 1;
  text-align: right;
  position: relative;
  top: -20vh;
  z-index: 1;
  animation: fadeInRight 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-image img {
  max-width: 300px;
  border-radius: 50%;
  border: 5px solid var(--text-primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 30px 80px var(--shadow-color);
}

/* About Section */
.about {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  color: var(--text-primary);
  padding: 100px 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.about-text {
  flex: 1;
  animation: fadeInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about h1 {
  margin-bottom: 20px;
  position: relative;
  font-weight: bold;
}

.about h1::after {
  content: "";
  display: block;
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  position: absolute;
  bottom: -10px;
  left: 0;
}

.about p {
  margin-bottom: 30px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about .btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-primary);
  border: none;
}

.about .btn-primary:hover {
  background-color: var(--accent-dark);
  box-shadow: 0 8px 25px var(--shadow-color);
}

/* Experience Timeline Section */
.experience {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  color: var(--text-primary);
  padding: 80px 20px;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.experience::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 100%, rgba(0, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.experience h2 {
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 60px;
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-color), var(--accent-dark), transparent);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  margin-bottom: 50px;
  opacity: 0;
  animation: timelineSlide 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }

.timeline-item:nth-child(odd) {
  margin-left: 0;
  margin-right: 52%;
  text-align: right;
  padding-right: 30px;
}

.timeline-item:nth-child(even) {
  margin-left: 52%;
  margin-right: 0;
  text-align: left;
  padding-left: 30px;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
  box-shadow: 0 0 15px var(--shadow-color);
}

.timeline-item:hover .timeline-marker {
  width: 28px;
  height: 28px;
  box-shadow: 0 0 25px var(--accent-color);
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 25px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.timeline-item:hover .timeline-content {
  border-color: var(--border-hover);
  box-shadow: 0 10px 30px var(--shadow-color);
  transform: translateY(-5px);
}

.timeline-content h3 {
  margin: 0 0 8px 0;
  color: var(--accent-color);
  font-size: 1.4em;
}

.timeline-content .company {
  font-weight: 600;
  color: var(--text-secondary);
  margin: 5px 0;
}

.timeline-content .date {
  font-size: 0.9em;
  color: var(--accent-color);
  font-weight: 500;
  margin: 8px 0 15px 0;
}

.timeline-content .description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 15px;
}

.skills-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.skills-tag span {
  background: var(--accent-color);
  color: var(--bg-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.skills-tag span:hover {
  background: var(--accent-dark);
  transform: scale(1.05);
}

/* Education & Certifications Section */
.education {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  padding: 80px 20px;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.education::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.education h2 {
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 50px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.education-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 25px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: left;
}

.education-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 10px 30px var(--shadow-color);
  transform: translateY(-5px);
}

.education-card h3 {
  margin: 0 0 8px 0;
  color: var(--accent-color);
  font-size: 1.2em;
}

.education-card .company {
  font-weight: 600;
  color: var(--text-secondary);
  margin: 5px 0;
}

.education-card .date {
  font-size: 0.85em;
  color: var(--accent-color);
  font-weight: 500;
  margin: 5px 0 12px 0;
}

.education-card .description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95em;
}

/* Services Section */
.services {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  color: var(--text-primary);
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 60% 0%, rgba(0, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.services h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.services-intro {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto 50px auto;
  color: var(--text-secondary);
  line-height: 1.7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.scaleweb-logo {
  height: 24px;
  vertical-align: middle;
  border-radius: 4px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto 40px auto;
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 15px;
  padding: 30px 25px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 40px var(--shadow-color);
  background: var(--transparent-bg);
}

.service-card h3 {
  color: var(--accent-color);
  font-size: 1.2em;
  margin: 0 0 12px 0;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95em;
}

.services-cta {
  position: relative;
  z-index: 1;
  display: inline-block;
}

@media (max-width: 768px) {
  .services {
    padding: 60px 20px;
  }

  .services-intro {
    margin-bottom: 35px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .services {
    padding: 40px 15px;
  }

  .services h2 {
    font-size: 1.5em;
  }

  .service-card {
    padding: 22px 18px;
  }
}

/* Skills Section */
.skills {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  color: var(--text-primary);
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.skills::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 40% 0%, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.skills h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 50px;
}

.skills-category {
  max-width: 1100px;
  margin: 0 auto 50px auto;
  position: relative;
  z-index: 1;
  text-align: left;
}

.skills-category:last-child {
  margin-bottom: 0;
}

.skills-category h3 {
  color: var(--accent-color);
  font-size: 1.15em;
  margin: 0 0 20px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 15px;
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px var(--shadow-color);
  background: var(--transparent-bg);
}

.skill-card span {
  font-size: 1em;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.skill-card .skill-icon {
  width: 50px;
  height: 50px;
  margin: 0;
  border-radius: 12px;
  border: 2px solid var(--accent-color);
  background-color: var(--accent-color);
  padding: 6px;
  transition: all 0.3s ease;
  object-fit: contain;
}

.skill-card:hover .skill-icon {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: scale(1.15) rotate(5deg);
}

/* Projects Section */
.projects {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  text-align: center;
  margin: 0;
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
}

.projects::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 50%, rgba(0, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.projects h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 50px;
}

.projects-container {
  padding: 0 20px;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.project {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
}

.project:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px var(--shadow-color);
}

.project-content {
  flex: 1;
  padding: 30px;
  text-align: left;
}

.projectHeader {
  font-family: "K2D";
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--accent-color);
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
  text-decoration: none;
}

.projectHeader:hover {
  cursor: pointer;
  transform: translateX(5px);
  color: var(--accent-dark);
}

.project-content p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-image {
  flex: 1;
  max-width: 50%;
  max-height: 100%;
  margin: 5px;
  overflow: hidden;
}

.project-image img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project:hover .project-image img {
  transform: scale(1.05);
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 96px;
}

/* Sliding Footer Banner */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.2);
  padding: 12px 20px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-footer.visible {
  transform: translateY(0);
}

.site-footer p {
  margin: 2px 0;
  color: var(--text-secondary);
  font-size: 0.7em;
  line-height: 1.3;
}

.site-footer .contact-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
}

.site-footer .contact-icons img {
  width: 24px;
  height: 24px;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(0, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px 220px 100px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-header {
  width: 80px;
  position: absolute;
  left: -20px;
  top: 100px;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-header::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 80px;
  background: linear-gradient(180deg, var(--accent-color), transparent);
  transform: translateX(-50%);
}

.contact-header h2 {
  font-family: "Inter";
  font-size: 0.75em;
  color: var(--text-primary);
  writing-mode: vertical-rl;
  white-space: nowrap;
  margin-top: 100px;
  font-weight: bold;
  letter-spacing: 2px;
}

.contact-icons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icons img {
  width: 32px;
  height: 32px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: brightness(1);
}

.contact-icons img:hover {
  cursor: pointer;
  transform: scale(1.3) rotate(5deg);
  filter: brightness(1.2) drop-shadow(0 0 8px var(--shadow-color));
}

.contact-intro {
  max-width: 760px;
  margin-bottom: 45px;
}

.contact-eyebrow {
  color: var(--accent-color);
  font-family: "K2D";
  font-weight: bold;
  margin: 0 0 8px;
}

.contact-intro h2 {
  margin: 0 0 15px;
  font-size: 2.4em;
  line-height: 1.15;
}

.contact-intro > p:last-child,
.contact-details > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 55px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.contact-form::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: var(--accent-color);
  filter: blur(30px);
  opacity: 0.1;
  border-radius: 20px;
  z-index: 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.contact-form button {
  position: relative;
  z-index: 1;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  box-sizing: border-box;
  width: 100%;
  background: rgba(66, 64, 71, 0.6);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  padding: 14px 15px;
  color: var(--text-primary);
  font-family: "Inter";
  font-size: 0.78em;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--border-hover);
  box-shadow: 0 0 15px var(--shadow-color);
  background: rgba(66, 64, 71, 0.8);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form h3,
.contact-details h3 {
  margin: 0;
  font-size: 1.25em;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  color: var(--text-secondary);
  font-size: 0.72em;
  font-weight: 600;
}

.form-field label span {
  color: var(--accent-color);
}

.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-color) 50%), linear-gradient(135deg, var(--accent-color) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.contact-form select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form button {
  font-family: "Inter";
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  color: var(--bg-primary);
  border: none;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  text-transform: uppercase;
  align-self: center;
  width: 200px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  font-size: 0.85em;
  font-weight: bold;
  letter-spacing: 1px;
}

.contact-form button:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
  transform: translateY(-4px);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-primary);
  font-size: 0.72em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.contact-method {
  transition: color 0.3s ease, transform 0.3s ease;
}

a.contact-method:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.contact-method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  background: var(--transparent-bg);
  color: var(--accent-color);
  font-family: "K2D";
  font-size: 1.15em;
  font-weight: bold;
}

.contact-method small {
  display: block;
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 0.9em;
}

.response-card {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  padding: 22px;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent-color);
  border-radius: 8px;
  background: var(--card-bg);
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 12px var(--accent-color);
}

.response-card h4 {
  margin: 0 0 6px;
  font-family: "K2D";
  font-size: 0.85em;
}

.response-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.68em;
  line-height: 1.6;
}

@media (min-width: 769px) and (max-width: 900px) {
  .contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-header {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    margin-bottom: 25px;
  }

  .contact-header::before {
    left: 50%;
    top: auto;
    bottom: -12px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transform: translateX(-50%);
  }

  .contact-header h2 {
    writing-mode: horizontal-tb;
    margin: 0;
    text-align: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-details {
    width: min(680px, 100%);
  }
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  color: var(--text-primary);
  font-size: 1.8em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 15px;
    height: auto;
  }

  .navbar nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    gap: 5px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideInDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .navbar.nav-visible nav {
    display: flex;
  }

  .navbar nav a {
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
  }

  .navbar nav a:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
  }

  .menu-toggle {
    display: flex;
    order: -1;
  }

  .logo {
    height: 6vh;
    flex: 1;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 1em;
  }

  .hero {
    flex-direction: column;
    padding: 50px 20px 0 20px;
    text-align: center;
    height: auto;
    min-height: 80vh;
  }

  .hero-content {
    max-width: 100%;
    top: 0;
    animation: fadeInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .hero-image {
    top: 0;
    text-align: center;
    animation: fadeInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
  }

  .hero-image img {
    max-width: 200px;
    border-radius: 50%;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .about {
    padding: 60px 20px;
  }

  .about-content {
    flex-direction: column;
    gap: 30px;
  }

  .about h1 {
    font-size: 2em;
  }

  .about h1::after {
    width: 100%;
  }

  .experience {
    padding: 60px 20px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    margin-left: 60px;
    margin-right: 0;
    text-align: left;
    padding-left: 20px;
    padding-right: 0;
  }

  .timeline-marker {
    left: 14px;
  }

  .education {
    padding: 60px 20px;
  }

  .education-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .skills {
    padding: 60px 20px;
  }

  .skills h2 {
    font-size: 1.8em;
  }

  .skills-category {
    margin-bottom: 35px;
  }

  .skills-category h3 {
    font-size: 1em;
  }

  .skills-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .skill-card {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 12px 5px;
    background: none;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
  }

  .skill-card:hover {
    transform: none;
    box-shadow: none;
    background: var(--transparent-bg);
  }

  .skill-card::before {
    content: "\25b9";
    color: var(--accent-color);
    font-size: 1.1em;
  }

  .skill-card .skill-icon {
    display: none;
  }

  .skill-card span {
    font-size: 0.95em;
    font-weight: 500;
  }

  .projects {
    padding: 60px 20px;
  }

  .projects h2 {
    font-size: 1.8em;
  }

  .project {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .project-image {
    max-width: 100%;
  }

  .project-content {
    padding: 20px;
  }

  .projects-container {
    padding: 0;
  }

  .contact {
    padding: 60px 20px;
  }

  .contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px 200px;
  }

  .contact-intro {
    margin-bottom: 30px;
    text-align: center;
  }

  .contact-intro h2 {
    font-size: 2em;
  }

  .contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
  }

  .contact-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    margin: 0 0 25px 0;
  }

  .contact-header::before {
    left: 50%;
    top: auto;
    bottom: -12px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transform: translateX(-50%);
  }

  .contact-header h2 {
    writing-mode: horizontal-tb;
    margin-top: 0;
    font-size: 0.9em;
    letter-spacing: 2px;
    text-align: center;
    width: 100%;
  }

  .contact-form {
    width: 100%;
    box-sizing: border-box;
  }

  .contact-details {
    width: 100%;
  }

  footer {
    padding: 30px 20px;
    font-size: 0.8em;
  }

  .site-footer p {
    margin: 5px 0;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .navbar {
    padding: 12px;
  }

  .logo {
    height: 5vh;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 0.9em;
    margin-right: 5px;
  }

  .hero {
    padding: 40px 15px 0;
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 0.9em;
    margin-bottom: 20px;
  }

  .hero-image img {
    max-width: 150px;
  }

  .cta-buttons {
    gap: 10px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.85em;
  }

  .about {
    padding: 40px 15px;
  }

  .about-text h1 {
    font-size: 1.5em;
  }

  .about p {
    font-size: 0.9em;
    line-height: 1.6;
  }

  .experience {
    padding: 40px 15px;
  }

  .experience h2 {
    font-size: 1.5em;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    margin-left: 50px;
    padding-left: 15px;
  }

  .timeline-marker {
    left: 10px;
  }

  .timeline-content {
    padding: 15px;
  }

  .timeline-content h3 {
    font-size: 1.1em;
  }

  .education {
    padding: 40px 15px;
  }

  .education h2 {
    font-size: 1.5em;
  }

  .education-card {
    padding: 18px;
  }

  .skills {
    padding: 40px 15px;
  }

  .skills h2 {
    font-size: 1.5em;
  }

  .skills-category h3 {
    font-size: 0.9em;
  }

  .skill-card span {
    font-size: 0.9em;
  }

  .projects {
    padding: 40px 15px;
  }

  .projects h2 {
    font-size: 1.5em;
  }

  .project-content {
    padding: 15px;
  }

  .projectHeader {
    font-size: 1.2em;
  }

  .project-content p {
    font-size: 0.85em;
  }

  .contact {
    padding: 40px 15px;
  }

  .contact-header h2 {
    font-size: 0.8em;
  }

  .contact-form {
    gap: 12px;
    padding: 20px 15px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: 12px;
    font-size: 0.85em;
  }

  .contact-form button {
    width: 100%;
    padding: 12px;
    font-size: 0.8em;
  }

  .site-footer {
    padding: 15px;
    font-size: 0.75em;
  }

  .site-footer p {
    margin: 4px 0;
  }
}


/* CV Viewer Modal */
.cv-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.cv-modal-overlay.visible {
  display: flex;
}

.cv-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.cv-modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1em;
}

.cv-modal-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cv-download-btn {
  padding: 8px 18px;
  font-size: 0.85em;
}

.cv-modal-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.8em;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.cv-modal-close:hover {
  color: var(--accent-color);
}

.cv-modal-body {
  flex: 1;
  background: #525659;
}

.cv-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .cv-modal {
    height: 85vh;
  }

  .cv-modal-header h3 {
    font-size: 0.95em;
  }

  .cv-download-btn {
    padding: 6px 14px;
    font-size: 0.8em;
  }
}
