:root {
  --primary: #2A5C82;
  --primary-dark: #1d4765;
  --secondary: #3A86FF;
  --accent: #171255;
  --light: #F8F9FA;
  --dark: #2B2D42;
  --gray: #64748b;
  --card-bg: rgba(255, 255, 255, 0.85);
  --section-bg: #f5f6fa;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

section {
  padding: 10rem 9% 5rem;
  min-height: auto;
}

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

.heading {
  font-size: 4.5rem;
  text-align: center;
  margin-bottom: 7rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

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

.heading::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 1.5rem 9%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.logo i {
  color: var(--accent);
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--dark);
  display: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.navbar {
  display: flex;
  gap: 3.5rem;
}

.navbar a {
  font-size: 1.7rem;
  color: var(--dark);
  font-weight: 600;
  transition: 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.navbar a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: 0.3s ease;
  border-radius: 10px;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a:hover,
.navbar a.active {
  color: var(--primary);
}

/* Hero Section */
.home {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(42, 92, 130, 0.1) 0%, rgba(58, 134, 255, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.home::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(35, 155, 86, 0.1) 0%, rgba(58, 134, 255, 0.1) 100%);
  top: -250px;
  right: -100px;
  z-index: -1;
}

.home::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(35, 155, 86, 0.1) 0%, rgba(58, 134, 255, 0.1) 100%);
  bottom: -150px;
  left: -100px;
  z-index: -1;
}

.home-content {
  max-width: 700px;
}

.home-content h1 {
  font-size: 6.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.home-content h3 {
  font-size: 3.8rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 3rem;
}

.home-content p {
  font-size: 1.8rem;
  margin-bottom: 4rem;
  color: var(--gray);
  max-width: 600px;
}

.home-btns {
  display: flex;
  gap: 2rem;
}

.btn {
  display: inline-block;
  padding: 1.5rem 3rem;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: 1.7rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(42, 92, 130, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
}

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

/* About Section */
.about {
  background-color: var(--section-bg);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  height: 450px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1542831371-29b0f74f9713?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80') center/cover;
  opacity: 0.7;
}

.about-content {
  padding: 3rem;
}

.about-content h3 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.about-content p {
  font-size: 1.7rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--dark);
}

.education {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-top: 3rem;
}

.education i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.education h4 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.education p {
  font-size: 1.6rem;
  color: var(--gray);
}

/* Skills Section */
.skill {
  background-color: white;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.skill-card {
  background: var(--card-bg);
  padding: 3.5rem 3rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  border: 1px solid rgba(42, 92, 130, 0.1);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(35, 155, 86, 0.2);
}

.skill-card i {
  font-size: 5rem;
  color: var(--accent);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

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

.skill-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.skill-card p {
  font-size: 1.6rem;
  color: var(--gray);
}

/* Experience Section */
.experience {
  background-color: var(--section-bg);
}

.experience-container {
  max-width: 800px;
  margin: 0 auto;
}

.experience-card {
  background: var(--card-bg);
  padding: 4rem;
  border-radius: 15px;
  margin-bottom: 4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--accent);
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(35, 155, 86, 0.02) 0%, rgba(58, 134, 255, 0.02) 100%);
  z-index: -1;
}

.experience-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.experience-header i {
  font-size: 3.5rem;
  color: var(--accent);
  background: rgba(35, 155, 86, 0.1);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.experience-header-content {
  flex: 1;
}

.experience-header h3 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.experience-header .date {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
}

.experience-card h4 {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  padding-left: 8.5rem;
}

.experience-card ul {
  list-style: none;
  padding-left: 8.5rem;
}

.experience-card ul li {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  padding-left: 2.5rem;
  position: relative;
  color: var(--dark);
}

.experience-card ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.8rem;
}

/* Projects Section */
.projects {
  background-color: white;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  border: 1px solid rgba(42, 92, 130, 0.1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-img {
  height: 220px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 6rem;
}

.project-content {
  padding: 3rem;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.project-header i {
  font-size: 3.5rem;
  color: var(--accent);
}

.project-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.project-card p {
  font-size: 1.6rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tech-stack span {
  background: rgba(35, 155, 86, 0.1);
  color: var(--accent);
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: 600;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--primary);
  font-size: 1.7rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--accent);
  gap: 1.2rem;
}

/* Contact Section */
.contact {
  background-color: var(--section-bg);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  background: white;
  padding: 5rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

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

.contact-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.contact-icon {
  background: rgba(35, 155, 86, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 2.5rem;
  color: var(--accent);
}

.contact-text h4 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.contact-text p {
  font-size: 1.7rem;
  color: var(--dark);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 2.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-5px);
}


/* Footer */
.footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 3rem;
  font-size: 1.6rem;
}

/* Responsive Design */
@media (max-width: 992px) {

  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .about-img {
    height: 350px;
  }

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

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

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

  section {
    padding: 8rem 5% 4rem;
  }

  .heading {
    font-size: 4rem;
    margin-bottom: 5rem;
  }

  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: center;
    transition: 0.3s ease;
    gap: 2rem;
  }

  .navbar.active {
    left: 0;
  }

  .home-content {
    text-align: center;
  }

  .home-btns {
    justify-content: center;
  }

  .experience-card h4,
  .experience-card ul {
    padding-left: 0;
  }

  .contact-container {
    padding: 3rem;
  }
}

@media (max-width: 576px) {
  .home-content h1 {
    font-size: 4.5rem;
  }

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

  .home-btns {
    flex-direction: column;
    gap: 1.5rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

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

  .contact-form {
    padding: 3rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
  animation: slideInRight 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

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