:root {
  --primary-color: #ffc107;
  --primary-dark: #fd7e14;
  --secondary-color: #10b981;
  --accent-color: #ffc107;
  --text-color: #f8fafc;
  --text-light: #cbd5e1;
  --bg-color: #000000;
  --bg-light: #000000;
  --bg-dark: #000000;
  --glass-bg: rgba(30, 30, 31, 0.3);
  --glass-border: rgba(99, 102, 241, 0.2);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: rgb(0, 0, 0);
  box-shadow: 0 4px 15px #ffc107;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px #fd7e14;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  color: var(--text-color);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 2px;
}

.hero-description u {
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.hero-description u::after {
  content: '';
  position: absolute;
  left: 10%;
  bottom: 0;
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--primary-color) 20%, 
    var(--primary-color) 80%, 
    transparent 100%);
  border-radius: 50%;
}

.about-text u{
    text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.about-text u::after {
  content: '';
  position: absolute;
  left: 10%;
  bottom: 0;
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--primary-color) 20%, 
    var(--primary-color) 80%, 
    transparent 100%);
  border-radius: 50%;
}


.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: #000000;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 15px 0;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-color);
}

.nav-logo:hover {
  color: var(--primary-color);
}

/* .nav-logo i {
  font-size: 1.5rem;
  margin-right: 10px;
  color: var(--primary-color);
} */

.nav-logo img {
  width: 13rem;
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-link {
  margin-left: 30px;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  color: var(--text-light);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle,
.nav-close {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* Hero Section - Updated Layout */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 50px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--bg-dark) 0%,
    var(--bg-color) 50%,
    var(--bg-dark) 100%
  );
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 70% 50%,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 50%
  );
  z-index: -1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* Move text to left and image to right */
.hero-text {
  animation: fadeInLeft 1s ease;
  /* Text comes first */
}

.hero-image {
  position: relative;
  animation: fadeInRight 1s ease;

  /* Image comes second */
}

.hero-greeting {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.waving-hand {
  display: inline-block;
  animation: wave 2.5s infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Alternative simpler wave animation */
@keyframes simple-wave {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(15deg);
  }
  75% {
    transform: rotate(-15deg);
  }
}

/* Option 2: Bounce animation */
@keyframes bounce-wave {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  40% {
    transform: translateY(-5px) rotate(10deg);
  }
  60% {
    transform: translateY(-2px) rotate(-5deg);
  }
}

/* Option 3: Continuous subtle wave */
@keyframes continuous-wave {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
  line-height: 1.1;
}

.highlight {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 25px;
  font-weight: 500;
}

.hero-description {
  margin-bottom: 30px;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.image-container {
  position: relative;
  display: flex;
  justify-content: flex-end; /* Align image to right */
}

.profile-img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  border: 3px solid #f5ce5b42;
  background: transparent;
  box-shadow: 0 0 30px rgba(245, 206, 91, 0.4);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
}

.scroll-indicator a {
  color: var(--text-light);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

/* About Section */
.about {
  padding: 100px 0;
  background: var(--bg-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-card {
  background: var(--bg-light);
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.info-icon {
  width: 80px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(0, 0, 0);
  font-size: 1.2rem;
}

.info-content h3 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--text-light);
}

.info-content p {
  font-weight: 500;
  color: var(--text-color);
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.7;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
}

.stat-item h4 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Resume Section */
.resume {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05) 0%,
    rgba(139, 92, 246, 0.05) 100%
  );
}

.resume-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.resume-column-title {
  font-size: 1.5rem;
  margin-bottom: 40px;
  position: relative;
  padding-left: 20px;
  color: var(--text-color);
}

.resume-column-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 25px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 2px;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(99, 102, 241, 0.2);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 50px;
}

.timeline-date {
  position: absolute;
  left: 0;
  top: -2rem;
  background: var(--primary-color);
  color: rgb(66, 63, 63);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.timeline-content {
  background: var(--bg-light);
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.timeline-content h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--text-color);
}

.timeline-content h5 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 500;
}

.timeline-content ul {
  padding-left: 20px;
}

.timeline-content li {
  list-style-type: disc;
  margin-bottom: 8px;
  color: var(--text-light);
}
/* Projects Slider Styles */
.projects-section {
  margin-bottom: 50px;
  position: relative;
}

.projects-slider-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.projects-slider {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.project-slide {
  flex: 0 0 calc(33.333% - 20px);
  background: var(--bg-light);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.1);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-slide:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.project-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(0, 0, 0);
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.project-slide h4 {
  margin-bottom: 15px;
  color: var(--text-color);
  font-size: 1.2rem;
}

.project-slide p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Slider Navigation */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: rgb(0, 0, 0);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.slider-nav:hover {
  background: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
  top: 18.5rem;
  left: 2px;
  height: 2.2rem;
  width: 2.2rem;
  border-radius: 50%;
}

.slider-nav.next {
  top: 18.5rem;
  right: 0px;
  height: 2.2rem;
  width: 2.2rem;
  border-radius: 50%;
}

.slider-nav i {
  font-size: 1.2rem;
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 992px) {
  .project-slide {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .project-slide {
    flex: 0 0 calc(100% - 20px);
  }

  .slider-nav {
    width: 40px;
    height: 40px;
  }

  .slider-nav.prev {
    left: 5px;
  }

  .slider-nav.next {
    right: 5px;
  }
}

.resume-button {
  text-align: center;
}

/* Skills Section */
.skills {
  padding: 100px 0;
  background: var(--bg-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.skill-card {
  background: var(--bg-light);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.skill-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(0, 0, 0);
  font-size: 2rem;
  margin: 0 auto 20px;
}

.skill-card h3 {
  margin-bottom: 15px;
  color: var(--text-color);
}

.skill-bar {
  height: 8px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease;
}

/* Skills Categories */
.skills-category {
  margin-bottom: 60px;
}

.skills-category-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

.skills-category-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 20px;
}

/* Skill Card Updates for better spacing */
.skill-card {
  background: var(--bg-light);
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.skill-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(0, 0, 0);
  font-size: 1.8rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.skill-card:hover .skill-icon {
  transform: scale(1.1);
}

.skill-card h3 {
  margin-bottom: 15px;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-bar {
  height: 8px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-top: auto;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease;
}

/* Responsive adjustments for skills */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .skills-category-title {
    font-size: 1.5rem;
  }

  .skill-card {
    padding: 20px;
  }

  .skill-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card h3 {
    font-size: 1rem;
  }
}

/* Skills Tabs */

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 50px;
  color: var(--text-light);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.tab-button:hover {
  background: rgba(99, 102, 241, 0.2);
  color: var(--text-color);
  transform: translateY(-2px);
}

.tab-button.active {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: rgb(0, 0, 0);
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px #fd7e14;
}

.tab-button i {
  font-size: 1rem;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.skill-card {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.skill-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(0, 0, 0);
  font-size: 1.5rem;
  margin: 0 auto 15px;
  transition: var(--transition);
}

.skill-card:hover .skill-icon {
  transform: scale(1.1);
}

.skill-card h3 {
  margin-bottom: 15px;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-bar {
  height: 6px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-top: auto;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 3px;
  width: 0;
  transition: width 1.5s ease;
}

/* Responsive Design for Tabs */
@media (max-width: 768px) {
  .skills-tabs {
    padding: 20px;
  }

  .tab-buttons {
    gap: 8px;
    margin-bottom: 30px;
  }

  .tab-button {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .tab-button i {
    font-size: 0.9rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .skill-card {
    padding: 20px;
  }

  .skill-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .tab-buttons {
    flex-direction: column;
    align-items: center;
  }

  .tab-button {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05) 0%,
    rgba(139, 92, 246, 0.05) 100%
  );
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: var(--bg-light);
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(0, 0, 0);
  font-size: 1.2rem;
}

.contact-details h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-color);
}

.contact-details p,
.contact-details a {
  color: var(--text-light);
}

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

.contact-form-container {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  margin-bottom: 0;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid rgba(244, 200, 96, 0.2);
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-color);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: rgba(0, 0, 0, 0.8);
}

.form-control::placeholder {
  color: var(--text-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 70px 0 20px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: var(--text-color);
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.footer-section p {
  margin-bottom: 20px;
  color: #94a3b8;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  color: var(--text-color);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  color: rgb(0, 0, 0);
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.contact-info-footer p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #94a3b8;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
}

/* Popups */
.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.popup-container.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.popup-container.active .popup-content {
  transform: translateY(0);
}

.popup-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.popup-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 2px solid #10b981;
}

.popup-icon.failure {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 2px solid #ef4444;
}

.popup-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 2px solid #f59e0b;
}

.popup-content h2 {
  margin-bottom: 15px;
  color: var(--text-color);
}

.popup-content p {
  margin-bottom: 25px;
  color: var(--text-light);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(99, 102, 241, 0.2);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content,
  .about-content,
  .resume-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  /* Change order of hero text and image for better mobile layout  if you keep text as order 1 the text will be on top  in mobile view */
  .hero-text {
    order: 2;
  }

  .hero-image {
    order: 1;
    margin-bottom: 30px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(99, 102, 241, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    margin: 15px 0;
    font-size: 1.2rem;
  }

  .nav-toggle,
  .nav-close {
    display: block;
  }

  .nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

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

  .stats {
    flex-direction: column;
    gap: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .floating-element {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .contact-form-container {
    padding: 25px;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}
