/* common styles  */

:root {
  --first-color: #333;
  --second-color: #007BFF;
  --hover-color: #614fd0;
  --normal-font-size: 1rem;
  --background-color: #f4f4f4;
  --text-color: #333;
  --accent-color: #007BFF;
  --light-gray: #f8f9fa;
  --border-color: #e9ecef;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 40px;
  text-align: center;
}

.title h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.title h1 {
  margin: 0;
  font-size: 2.5rem;
  color: #007BFF;
}

/* header styles  */

header {
  z-index: 99999;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  backdrop-filter: blur(20px);
  transition: .6s ease;
}

header.sticky {
  background: rgba(35, 34, 34, 0.1);
  box-shadow: var(--box-shadow);
}

.nav-bar {
  position: relative;
  height: calc(4rem + 1rem);
  max-width: 1250px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  transition: .6s ease;
}

header.sticky .nav-bar {
  height: calc(2.5rem + 1rem);
}

.nav-bar .logo {
  color: var(--first-color);
  font-size: 1.3em;
  font-weight: 600;
  text-decoration: none;
}

.nav-items {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.nav-items li {
  margin: 0 20px;
}

.nav-items a {
  color: var(--first-color);
  font-size: var(--normal-font-size);
  font-weight: 500;
  text-decoration: none;
}

.nav-items a.active,
.nav-items a:hover {
  color: var(--second-color);
}

.nav-menu-btn {
  display: none;
  font-size: 1.5em;
  color: var(--first-color);
  cursor: pointer;
  transition: var(--transition);
}

.nav-menu-btn:hover {
  color: var(--second-color);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .nav-menu-btn {
    display: block;
  }

  .navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    transition: var(--transition);
    z-index: 9999;
  }

  .navigation.active {
    left: 0;
  }

  .nav-items {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 30px;
  }

  .nav-items li a {
    font-size: 1.5em;
    font-weight: 600;
  }
}

/* home page styles */

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: var(--background-color);
  text-align: left;
}

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

.home-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.home-img img {
  width: 380px;
  border-radius: 100%;
  border: 2px solid var(--second-color);
}

.info {
  flex: 2;
  padding-right: 70px;
}

.info h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.info h2 {
  font-size: 2.0rem;
  margin-bottom: 20px;
  color: #666;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 30px 10px;
  font-size: 1.3rem;
  color: #fff;
  background: var(--second-color);
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn i {
  margin-left: 5px;
}

.btn:hover {
  background: #0606a1;
}

.media-icons {
  flex-direction: row;
  margin-top: 20px;
  padding-left: 10%;
}

.media-icons a {
  color: var(--second-color);
  font-size: 2rem;
  margin-right: 30px;
}

.media-icons a:hover {
  color: #0606a1;
}

.info .btn {
  margin-right: 30px;
  margin-left: 15px;
}

/* scroll button styles */

.scroll-down {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  color: var(--first-color);
  font-size: var(--normal-font-size);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.scroll-down i {
  margin-left: 5px;
  font-size: 1.2em;
  animation: arrow-down 2s infinite;
}

.scroll-down:hover i {
  color: var(--second-color);
}

@keyframes arrow-down {

  0%,
  20% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Media Queries for Mobile first page */

@media (max-width: 768px) {

  header,
  .scroll-down {
    display: none;
  }

  .home {
    padding-top: 130px;
  }

  .home-container {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .home-img {
    order: -1;
    margin-bottom: 20px;
  }

  .home-img img {
    width: 250px;
  }

  .info {
    padding-right: 0;
  }

  .info h1 {
    font-size: 2.5rem;
  }

  .info h2 {
    font-size: 1.5rem;
  }

  .btn {
    font-size: 1rem;
    padding: 8px 16px;
    width: auto;
    max-width: 90px;
    display: block;
    margin: 20px auto;
    text-align: center;
  }

  .media-icons {
    padding-left: 0;
    justify-content: center;
    padding-bottom: 80px;
  }
}

/* Skills Section Styles */

.skills-section {
  background-color: var(--background-color);
}

.skills .content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills .columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  justify-content: center;
}

.skills .skills-column {
  flex: 1 1 30%;
  min-width: 350px;
}

.skills .skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills .skills-list .item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--second-color);
  border-radius: 6px;
  transition: transform 0.3s ease;
  margin-bottom: 15px;
}

.skills .skills-list .item i {
  color: var(--second-color);
  margin-right: 15px;
  font-size: 1.5rem;
}

.skills .skills-list .item span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--first-color);
}

.skills .skills-list .item:hover {
  transform: scale(1.05);
  border-bottom: 3px solid var(--hover-color);
}

.button-label {
  display: inline-block;
  margin-bottom: 20px;
  background: var(--second-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: var(--normal-font-size);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.button-label:hover {
  background: #0606a1;
  transform: scale(1.05);
}

/* Experience Section Styles */

.experience-section {
  background-color: var(--background-color);
  padding: 80px 0;
}

.experience .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.experience-timeline {
  position: relative;
  width: 100%;
  margin-top: 40px;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--second-color), var(--hover-color));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin: 40px 0;
  width: 100%;
  animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: 50%;
  padding-right: 40px;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 50%;
  margin-right: 0;
  padding-left: 40px;
  text-align: left;
}


/* Ensure left-side timeline content aligns cleanly with vertical center line */
.timeline-item:nth-child(odd) .timeline-content { text-align: left; padding-right: 40px; }
.timeline-item:nth-child(odd) .timeline-content .timeline-header,
.timeline-item:nth-child(odd) .timeline-content .timeline-description { text-align: left; }

/* Add consistent max-width and auto layout to avoid awkward wrapping */
.timeline-content { max-width: 440px; }

/* Nudge odd/even blocks symmetrically */
.timeline-item:nth-child(odd) .timeline-content { margin-left: 0; margin-right: calc(50% + 20px); }
.timeline-item:nth-child(even) .timeline-content { margin-left: calc(50% + 20px); margin-right: 0; }

/* On smaller desktops/tablets, reduce the offset to keep text readable */
@media (max-width: 1100px) {
  .timeline-content { max-width: 420px; }
  .timeline-item:nth-child(odd) .timeline-content { margin-right: calc(50% + 10px); }
  .timeline-item:nth-child(even) .timeline-content { margin-left: calc(50% + 10px); }
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 20px;
  height: 20px;
  background: var(--second-color);
  border: 4px solid white;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  transition: var(--transition);
}

.timeline-marker.current {
  background: var(--second-color);
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
  animation: pulse 2s infinite;
}

.timeline-content {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--second-color);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-header h3 {
  color: var(--second-color);
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 5px;
}

.timeline-header h4 {
  color: var(--first-color);
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-date {
  background: var(--light-gray);
  color: var(--second-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 5px;
}

.timeline-location {
  color: #666;
  font-size: 0.9em;
  font-style: italic;
  display: block;
  margin-bottom: 15px;
}

.timeline-description {
  list-style: none;
  padding: 0;
}

.timeline-description li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #555;
  line-height: 1.6;
}

.timeline-description li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--second-color);
  font-weight: bold;
}


/* Projects section styles */

.projects-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
}

.projects .container .content {
  width: 100%;
  max-width: 1200px;
}

.projects-title-container {
  text-align: center;
  margin-bottom: 60px;
}

.projects-title-container h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: bold;
  color: var(--first-color);
  position: relative;
}

.projects-title-container h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--second-color), var(--hover-color));
  border-radius: 2px;
}

/* Projects Carousel */
.projects-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.projects-container {
  width: 100%;
  max-width: calc(350px * 3 + 30px * 2 + 40px); /* 3 cards + 2 gaps + track padding */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 15px;
}

.projects-track {
  display: flex;
  transition: transform 0.45s ease;
  gap: 30px;
  padding: 20px;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.project-card {
  flex: 0 0 350px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  cursor: pointer;
  opacity: 0.35;
  transform: scale(0.9);
  filter: blur(1px);
}

.project-card.featured {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  box-shadow: 0 15px 40px rgba(0, 123, 255, 0.25);
  border: 2px solid var(--second-color);
}

.project-card:hover {
  transform: scale(0.9) translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

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

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

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

.project-info {
  padding: 25px;
}

.project-info h3 {
  color: var(--first-color);
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-tech {
  color: var(--second-color);
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.project-description {
  color: #666;
  line-height: 1.6;
  font-size: 0.95em;
}

/* Carousel Navigation */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--second-color);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2em;
  transition: var(--transition);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.carousel-btn:hover {
  background: var(--hover-color);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Modal styles */

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background-color: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h1 {
  margin: 0;
  font-size: 24px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--second-color)
}

.modal-image img {
  width: 100%;
  height: auto;
  max-width: 150%;
  max-height: 450px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 20px;
}

.modal-description {
  margin-bottom: 20px;
  font-size: 16px;
  color: #555;
  text-align: center;
}

.modal-footer {
  text-align: center;
}

.view-code {
  background-color: var(--second-color);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.view-code:hover {
  background-color: var(--hover-color)
}

body.modal-open {
  overflow: hidden;
}

/* more github project styles  */

.get-in-touch {
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f4f4f4;
  min-height: 30vh;
}

.contact-card {
  text-align: center;
  max-width: 600px;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
}

.contact-btn h4 {
  margin-right: 10px;
  font-size: 1.2rem;
  color: #333;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  font-size: 1rem;
  color: #fff;
  background: #007BFF;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn i {
  margin-right: 8px;
}

.btn:hover {
  background: #0056b3;
}

/* Education section styles */

.education {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.education .container {
  max-width: 1000px;
}

.education-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.education-item {
  display: flex;
  align-items: flex-start;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border-left: 5px solid var(--second-color);
  animation: fadeInUp 0.6s ease forwards;
}

.education-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.education-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--second-color), var(--hover-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
  color: white;
  font-size: 1.5em;
}

.education-content {
  flex: 1;
}

.education-header h3 {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--first-color);
  margin-bottom: 8px;
  line-height: 1.3;
}

.education-institution {
  font-size: 1.1em;
  color: var(--second-color);
  font-weight: 600;
  margin-bottom: 5px;
}

.education-location {
  font-size: 0.9em;
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
}

.education-details {
  margin-top: 15px;
}

.education-duration {
  background: var(--light-gray);
  color: var(--second-color);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 15px;
}

.gpa-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.gpa-label {
  font-weight: 600;
  color: var(--first-color);
}

.gpa-visual {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gpa-bar {
  width: 100px;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.gpa-fill {
  height: 100%;
  background: linear-gradient(to right, var(--second-color), var(--hover-color));
  border-radius: 4px;
  transition: width 1s ease;
}

.gpa-value {
  font-weight: 700;
  color: var(--second-color);
  font-size: 1.1em;
}

.education-courses {
  color: #666;
  line-height: 1.6;
  font-size: 0.95em;
  margin: 0;
}

/* Contact Section Styling */

.contact {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--second-color) 0%, var(--hover-color) 100%);
  color: white;
}

.contact .container {
  flex-direction: column;
  max-width: 1200px;
}

.contact-subtitle {
  font-size: 1.2em;
  margin-bottom: 50px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

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

.contact-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 1.5em;
}

.contact-details h4 {
  margin: 0 0 8px 0;
  font-size: 1.1em;
  font-weight: 600;
}

.contact-details span,
.contact-details a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--transition);
}

.contact-details a:hover {
  color: white;
  text-decoration: underline;
}

.contact-form-container {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-form-container h3 {
  color: var(--first-color);
  margin-bottom: 30px;
  font-size: 1.5em;
  text-align: center;
}

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

.form-row {
  display: flex;
  gap: 20px;
}

.form-row input,
.form-row textarea {
  flex: 1;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  background: #f8f9fa;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--second-color);
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-btn {
  background: linear-gradient(135deg, var(--second-color), var(--hover-color));
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: center;
  min-width: 200px;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

/* Footer section styles */

footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 60px 0 20px 0;
}

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

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

.footer-section h2 {
  color: white;
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-section h3 {
  color: white;
  font-size: 1.2em;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-section.about p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 25px;
}

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

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

.social-links a:hover {
  background: var(--second-color);
  transform: translateY(-3px);
}

.footer-section.links ul {
  list-style: none;
  padding: 0;
}

.footer-section.links li {
  margin-bottom: 12px;
}

.footer-section.links a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95em;
}

.footer-section.links a:hover {
  color: var(--second-color);
  padding-left: 5px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #ccc;
}

.contact-item i {
  width: 20px;
  margin-right: 12px;
  color: var(--second-color);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 25px;
  text-align: center;
}

.footer-bottom p {
  margin: 5px 0;
  color: #999;
  font-size: 0.9em;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

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

  .contact-item {


    justify-content: center;
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

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

  /* Home section mobile */
  .home-container {
    flex-direction: column-reverse;
    text-align: center;
    padding: 20px;
  }

  .info {
    padding-right: 0;
    margin-top: 30px;
  }

  .info h1 {
    font-size: 2.5rem;
  }

  .info h2 {
    font-size: 1.5rem;
  }

  .home-img img {
    width: 280px;
  }

  /* Skills section mobile */
  .columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Experience timeline mobile */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 0;
    padding-left: 40px;
    padding-right: 20px;
    text-align: left;
  }

  .experience-timeline::before {
    left: 20px;
  }

  .timeline-marker {
    left: 20px;
  }

  /* Projects carousel mobile */
  .carousel-btn {
    display: none;
  }

  .projects-container {
    max-width: 350px; /* show only one card width */
  }

  .projects-track {
    flex-direction: row;
    align-items: center;
  }

  .project-card {
    flex: 0 0 350px;
    width: 350px;
    max-width: 350px;
  }

  /* Education mobile */
  .education-item {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .info h1 {
    font-size: 2rem;
  }

  .info h2 {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .home-img img {
    width: 220px;
  }

  .timeline-content {
    padding: 20px;
  }

  .project-card {
    max-width: 300px;
  }
}

/* Snackbar styles */
.snackbar {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: #1f2937;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.3;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
  z-index: 10000;
  backdrop-filter: blur(6px);
}
.snackbar.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.snackbar.success { background: linear-gradient(135deg, #16a34a, #22c55e); }
.snackbar.error { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.snackbar i { margin-right: 8px; }
