/* Base Styles */
:root {
  /* Light Mode Colors */
  --primary-color: #4a6cf7;
  --secondary-color: #6c757d;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --text-color: #333;
  --bg-color: #fff;
  --border-color: #e9ecef;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --card-bg: #fff;
  --transition: all 0.3s ease;
  --border-radius: 5px;
  --section-padding: 100px 0;
}

/* Dark Mode Colors */
.dark {
  --primary-color: #6d8bff;
  --secondary-color: #a0a9b1;
  --dark-color: #e9ecef;
  --light-color: #1e2125;
  --text-color: #e9ecef;
  --bg-color: #121212;
  --border-color: #2c2c2c;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --card-bg: #1e1e1e;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}
a {
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.underline {
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

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

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

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

.small-btn {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.highlight {
  color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  margin-left: 20px;
  cursor: pointer;
  border: none;
  background: none;
}

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

.theme-toggle:hover i {
  color: var(--primary-color);
}

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

header.sticky {
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px var(--shadow-color);
  padding: 15px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  font-weight: 500;
  position: relative;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;x
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 100px;
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(74, 108, 247, 0.1);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(74, 108, 247, 0.1);
  z-index: 0;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  padding-right: 30px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

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

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-color);
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: white;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  position: relative;
  width: 350px;
  height: 350px;
}

.image-container::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: 100%;
  height: 100%;
  border: 5px solid var(--primary-color);
  border-radius: 50%;
  z-index: -1;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid var(--card-bg);
  box-shadow: 0 10px 30px var(--shadow-color);
}

/* About Section */
.about {
  padding: var(--section-padding);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.about-text {
  flex: 1;
}

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

.about-text p {
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.about-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.detail {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.detail i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.detail h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.detail p {
  margin: 0;
  color: var(--secondary-color);
}

/* Skills Section */
.skills {
  padding: var(--section-padding);
  background-color: var(--light-color);
}

.skills-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.skills-category {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px var(--shadow-color);
}

.skills-category h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.skills-category h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 50px;
  background-color: var(--light-color);
  transition: var(--transition);
  cursor: default;
  box-shadow: 0 3px 10px var(--shadow-color);
}

.skill-tag i {
  margin-right: 8px;
}

.skill-tag:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px var(--shadow-color);
}

.skill-tag.large {
  font-size: 1.1rem;
  font-weight: 600;
  background-color: rgba(74, 108, 247, 0.15);
  color: var(--primary-color);
  padding: 12px 24px;
}

.dark .skill-tag.large {
  background-color: rgba(109, 139, 255, 0.15);
}

.skill-tag.medium {
  font-size: 1rem;
  font-weight: 500;
  background-color: rgba(74, 108, 247, 0.1);
  color: var(--dark-color);
}

.dark .skill-tag.medium {
  background-color: rgba(109, 139, 255, 0.1);
}

.skill-tag.small {
  font-size: 0.9rem;
  font-weight: 400;
  background-color: var(--light-color);
  color: var(--secondary-color);
}

/* Projects Section */
.projects {
  padding: var(--section-padding);
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background-color: var(--light-color);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  color: var(--text-color);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: var(--transition);
  display: flex;
}

/* .project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
} */

/* ProjectCard new layout styles */
.project-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 20px 24px 20px 24px;
}

@media (max-width: 700px) {
  .project-card-row {
    flex-direction: column;
    gap: 8px;
  }
}
.project-card-left {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: baseline;
}
.project-card-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.accordion-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.accordion-toggle .chevron {
  transition: transform 0.3s;
  color: var(--text-color);
}
.project-card.open .accordion-toggle .chevron {
  transform: rotate(180deg);
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.project-info p {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.project-tech span {
  padding: 5px 10px;
  background-color: var(--light-color);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-color);
}

.project-links {
  display: flex;
  gap: 10px;
}

.view-more {
  text-align: center;
  margin-top: 20px;
}

/* Projects Page Specific Styles */
.projects-banner {
  background-color: var(--primary-color);
  color: white;
  padding: 120px 0 60px;
  text-align: center;
}

.projects-banner h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.projects-banner p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.projects-page {
  padding: 60px 0 100px;
}

/* Blog Section */
.blog {
  padding: var(--section-padding);
  background-color: var(--light-color);
}

.blog-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.blog-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.blog-info h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.blog-info h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.blog-info p {
  color: var(--secondary-color);
  margin-bottom: 25px;
  flex-grow: 1;
}

.blog-links {
  margin-top: auto;
}

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

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

.contact-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.contact-info p {
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.contact-item p {
  margin: 0;
  color: var(--secondary-color);
}

.contact-form form {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--dark-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--bg-color);
  color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  height: 150px;
  resize: none;
}

/* Form Message Styles */
.form-message {
  padding: 10px 0;
  margin-bottom: 15px;
  font-weight: 500;
  text-align: center;
  border-radius: var(--border-radius);
}

.form-message.success {
  color: var(--success-color);
  background-color: rgba(40, 167, 69, 0.1);
  padding: 10px;
}

.form-message.error {
  color: var(--danger-color);
  background-color: rgba(220, 53, 69, 0.1);
  padding: 10px;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 20px;
}

.dark footer {
  background-color: #0a0a0a;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.footer-logo p {
  color: var(--secondary-color);
  margin-top: 5px;
}

.footer-links ul {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: white;
}

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

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
}

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

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

.footer-bottom p {
  color: var(--secondary-color);
}

/* Accordion styles for project cards */
.project-card {
  flex-direction: column;
  cursor: pointer;
  transition:
    box-shadow 0.3s,
    border-radius 0.3s;
}
.project-card .project-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 0 20px;
}
.project-card.open .project-accordion {
  /* max-height: 500px; */
  padding: 20px;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.3s;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .image-container {
    width: 300px;
    height: 300px;
  }
}

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

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: var(--transition);
    box-shadow: 0 5px 10px var(--shadow-color);
  }

  .nav-links.active {
    left: 0;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 50px;
  }

  .cta-buttons,
  .social-icons {
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
  }

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

  .skills-cloud {
    justify-content: center;
  }

  .projects-banner h1 {
    font-size: 2.5rem;
  }

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

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

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

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

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

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links ul {
    justify-content: center;
  }

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

  .skill-tag {
    width: 100%;
    justify-content: center;
  }

  .projects-banner h1 {
    font-size: 2rem;
  }

  .projects-banner p {
    font-size: 1rem;
  }
}
