/* Base Styles */
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --gray-color: #64748b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

a {
  text-decoration: none;
  color: var(--dark-color);
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

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

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

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

.primary-btn:hover {
  background-color: var(--secondary-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;
}

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

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

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

section {
  padding: 100px 0;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

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

.logo h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
}

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

.nav-links {
  display: flex;
}

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

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

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

.nav-links a.active {
  color: var(--primary-color);
}

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

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

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--dark-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 100px;
  background-color: #f0f9ff;
}

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

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

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

.hero-content h2 {
  font-size: 1.8rem;
  color: var(--gray-color);
  margin-bottom: 20px;
}

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

.cta-buttons {
  margin-bottom: 30px;
}

.cta-buttons .btn {
  margin-right: 15px;
}

.social-icons a {
  display: inline-block;
  margin-right: 15px;
  font-size: 1.5rem;
  color: var(--gray-color);
}

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

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

.profile-placeholder {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: #dbeafe;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--box-shadow);
}

.profile-placeholder i {
  font-size: 100px;
  color: var(--primary-color);
}

/* About Section */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  justify-content: center;
}

.about-text {
  max-width: 800px;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.personal-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.info-item {
  display: flex;
  align-items: center;
}

.info-title {
  font-weight: 600;
  margin-right: 10px;
  color: var(--gray-color);
}

.info-value {
  color: var(--dark-color);
}

/* Skills Section */
.skills {
  background-color: #f8fafc;
}

.skill-category {
  margin-bottom: 40px;
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

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

.skill-item {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.skill-item:hover {
  transform: translateY(-5px);
}

.skill-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.skill-item h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.skill-bar {
  height: 10px;
  background-color: #e2e8f0;
  border-radius: 5px;
  margin-bottom: 5px;
}

.skill-progress {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 5px;
}

.skill-percentage {
  font-size: 0.9rem;
  color: var(--gray-color);
}

/* Experience Section */
.experience {
  background-color: white;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: #e2e8f0;
}

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

.timeline-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  z-index: 1;
}

.timeline-content {
  position: relative;
  width: calc(50% - 40px);
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
  left: calc(50% + 40px);
}

.timeline-item:nth-child(even) .timeline-content {
  left: 0;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.timeline-content h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-bottom: 15px;
}

.timeline-content p {
  margin-bottom: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  padding: 5px 10px;
  background-color: #e2e8f0;
  border-radius: 5px;
  font-size: 0.8rem;
  color: var(--dark-color);
}

/* Projects Section */
.projects:nth-child(even) {
  background-color: #f8fafc;
}
.projects:nth-child(odd) {
  background-color: #f0f9ff;
}

.projects-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  margin: 0 10px 10px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 5px;
}

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

/* Updated Project Card Styles */
.project-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.project-info p {
  color: var(--gray-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tags span {
  padding: 5px 12px;
  background-color: #f0f9ff;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 500;
}

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

.project-links a {
  display: inline-flex;
  align-items: center;
  color: var(--dark-color);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.project-links a i {
  margin-right: 5px;
}

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

/* Add responsive adjustments */
@media screen and (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media screen and (max-width: 576px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-img {
    height: 180px;
  }
}

.project-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.project-item:hover {
  transform: translateY(-10px);
}

.project-img {
  position: relative;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

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

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

.project-info {
  text-align: center;
  padding: 20px;
  color: white;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-info p {
  margin-bottom: 20px;
}

.project-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  margin: 0 5px;
  transition: var(--transition);
}

.project-link:hover {
  background-color: var(--secondary-color);
}

/* Contact Section */
.contact {
  background-color: white;
}

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

/* Contact Section */
.contact {
  background-color: white;
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://via.placeholder.com/1920x1080");
  background-size: cover;
  background-position: center;
  opacity: 0.03;
  z-index: 0;
}

.contact .container {
  position: relative;
  z-index: 1;
}

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

/* Updated Contact Info Styles */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.contact-info:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.icon {
  width: 50px;
  height: 50px;
  background-color: #f0f9ff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  color: var(--primary-color);
  font-size: 1.3rem;
  transition: var(--transition);
}

.contact-item:hover .icon {
  background-color: var(--primary-color);
  color: white;
}

.details h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.details p {
  color: var(--gray-color);
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  justify-content: center;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #f0f9ff;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

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

.contact-form {
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.contact-form:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background-color: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background-color: white;
}

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

/* Responsive adjustments for contact section */
@media screen and (max-width: 992px) {
  .contact-content {
    gap: 40px;
  }
}

@media screen and (max-width: 768px) {
  .contact-info {
    padding: 25px;
  }

  .contact-form {
    padding: 30px;
  }

  .icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 576px) {
  .contact-item {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
  }

  .icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .social-links {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .form-group input,
  .form-group textarea {
    padding: 12px 15px;
  }
}

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

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

.footer-logo h2 {
  font-size: 2rem;
  font-weight: 700;
}

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

.footer-social {
  display: flex;
}

.footer-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  margin-left: 15px;
  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);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

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

  .hero-content p {
    margin: 0 auto 30px;
  }

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

  .timeline::before {
    left: 30px;
  }

  .timeline-dot {
    left: 30px;
  }

  .timeline-content {
    width: calc(100% - 80px);
    left: 80px !important;
  }

  .contact-content {
    gap: 30px;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }

  .nav-links.active {
    top: 70px;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

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

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

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

  .projects-filter {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    margin-bottom: 10px;
  }

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

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

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

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

  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .cta-buttons .btn {
    margin-right: 0;
  }

  .profile-placeholder {
    width: 250px;
    height: 250px;
  }

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