/* 
 * Portfolio Website Styles
 * Minimalistic design with scrolling animations
 */

/* ===== Base Styles ===== */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-text: #f8f9fa;
  --background-color: #ffffff;
  --section-bg: #f8f9fa;
  --timeline-line: #3498db;
  --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;
  font-size: 16px;
}

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

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

section {
  padding: 100px 0;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 20px;
  font-weight: 600;
}

p {
  margin-bottom: 15px;
}

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

a:hover {
  color: var(--accent-color);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
}

/* ===== Navigation ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

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

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

.nav-links {
  display: flex;
  list-style: none;
}

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

.nav-item {
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

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

/* ===== Hero Section ===== */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--background-color);
  position: relative;
}

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

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-color);
}

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

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

.scroll-indicator p {
  font-size: 0.9rem;
  margin-top: 10px;
  opacity: 0.7;
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-arrow span {
  display: block;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--secondary-color);
  border-right: 2px solid var(--secondary-color);
  transform: rotate(45deg);
  margin: -10px;
  animation: scrollArrow 2s infinite;
}

.scroll-arrow span:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-arrow span:nth-child(3) {
  animation-delay: 0.4s;
}

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

@keyframes scrollArrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-20px, -20px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(20px, 20px);
  }
}

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

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text p {
  margin-bottom: 20px;
}

.skills {
  flex: 1;
  min-width: 300px;
}

.skills h3 {
  margin-bottom: 30px;
}

.skill {
  margin-bottom: 25px;
}

.skill-name {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.skill-bar {
  height: 10px;
  background-color: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background-color: var(--secondary-color);
  border-radius: 5px;
  width: 0;
  transition: width 1.5s ease-in-out;
}

/* ===== Timeline Section ===== */
.timeline-section {
  background-color: var(--background-color);
}

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

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--timeline-line);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.timeline-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--background-color);
  border: 4px solid var(--secondary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::after {
  right: -10px;
}

.right::after {
  left: -10px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.timeline-content h3 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.timeline-content h4 {
  margin-bottom: 10px;
  color: var(--secondary-color);
  font-weight: 400;
  font-size: 1rem;
}

.timeline-date {
  font-style: italic;
  color: #6c757d;
  margin-bottom: 15px;
}

/* ===== Projects Section ===== */
.projects-section {
  background-color: var(--section-bg);
}

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

.project-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.project-card.animate {
  opacity: 1;
  transform: translateY(0);
}

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

.project-content {
  padding: 25px;
}

.project-content h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
}

.project-tags span {
  background-color: #e9ecef;
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 10px;
  margin-bottom: 10px;
}

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

.contact-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

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

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 20px;
}

.contact-link {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background-color: white;
  border-radius: 30px;
  box-shadow: var(--shadow);
  color: var(--primary-color);
  transition: var(--transition);
}

.contact-link i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.contact-link:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-5px);
}

/* ===== Page Navigator ===== */
.page-navigator {
  background-color: var(--section-bg);
  padding-bottom: 150px;
}

.navigator-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.navigator-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 80%;
  max-width: 800px;
  height: 100px;
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.navigator-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  height: 4px;
  background-color: #e9ecef;
  transform: translateY(-50%);
  z-index: 1;
}

.navigator-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  cursor: pointer;
  transition: var(--transition);
}

.navigator-dot {
  width: 20px;
  height: 20px;
  background-color: white;
  border: 3px solid #e9ecef;
  border-radius: 50%;
  margin-bottom: 10px;
  transition: var(--transition);
}

.navigator-section.active .navigator-dot,
.navigator-section:hover .navigator-dot {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: scale(1.2);
}

.navigator-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
  transition: var(--transition);
}

.navigator-section.active .navigator-label,
.navigator-section:hover .navigator-label {
  color: var(--secondary-color);
  transform: scale(1.1);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--primary-color);
  color: var(--light-text);
  text-align: center;
  padding: 30px 0;
}

/* ===== Animation Classes ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 21px;
  }
  
  .left::after, .right::after {
    left: 21px;
  }
  
  .right {
    left: 0;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  .nav-links {
    width: 100%;
    justify-content: space-around;
  }
  
  .nav-links li {
    margin: 0;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .navigator-track {
    width: 95%;
    padding: 15px 10px;
  }
  
  .navigator-track::before {
    left: 20px;
    right: 20px;
  }
  
  .navigator-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 576px) {
  .nav-links {
    flex-wrap: wrap;
  }
  
  .nav-links li {
    margin: 5px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .navigator-dot {
    width: 15px;
    height: 15px;
  }
  
  .navigator-label {
    display: none;
  }
}
