/* ===== VARIABLES ===== */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3a0ca3;
  --text-color: #333;
  --text-color-light: #666;
  --bg-color: #fff;
  --bg-color-alt: #f8f9fa;
  --border-color: #e9ecef;
  --success-color: #4bb543;
  --font-family: 'Poppins', sans-serif;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Dark theme variables */
.dark-theme {
  --primary-color: #4cc9f0;
  --secondary-color: #4895ef;
  --text-color: #f8f9fa;
  --text-color-light: #e9ecef;
  --bg-color: #121212;
  --bg-color-alt: #1e1e1e;
  --border-color: #333;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

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

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

.subtitle {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 10px;
  position: relative;
}

.subtitle::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

h2 span {
  color: var(--primary-color);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-color);
  box-shadow: var(--box-shadow);
  padding: 15px 0;
  transition: var(--transition);
}

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

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
}

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

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

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

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

.theme-toggle {
  cursor: pointer;
  font-size: 20px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding: 150px 0 100px;
  background-color: var(--bg-color-alt);
}

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

.hero-content {
  flex: 1;
}

.hero-section__title {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-section__desc {
  font-size: 18px;
  color: var(--text-color-light);
  margin-bottom: 30px;
  max-width: 600px;
}

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

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

.social-icons a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-img {
  flex: 1;
  text-align: center;
}

.hero-img img {
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  max-width: 400px;
  margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 100px 0;
  background-color: var(--bg-color);
}

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

.about-img {
  flex: 1;
}

.about-img img {
  border-radius: 20px;
  box-shadow: var(--box-shadow);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.skills {
  margin-bottom: 30px;
}

.skill-item {
  margin-bottom: 15px;
}

.skill-item h4 {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 500;
}

.progress-bar {
  height: 8px;
  background-color: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

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

/* ===== PROJECTS SECTION ===== */
.projects-section {
  padding: 100px 0;
  background-color: var(--bg-color-alt);
}

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

.filter-btn {
  padding: 8px 20px;
  border-radius: 30px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

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

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

.projects-card-box {
  background-color: var(--bg-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.projects-card-box:hover {
  transform: translateY(-10px);
}

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

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

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

.projects-card-content {
  padding: 25px;
}

.projects-card-box__icons {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.projects-card-box__desc h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.projects-card-box__desc p {
  color: var(--text-color-light);
  margin-bottom: 20px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.contact-container {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-item .icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 15px;
}

.contact-item .text h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.contact-item .text p {
  color: var(--text-color-light);
}

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

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

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

.contact-form {
  flex: 1;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color-alt);
  font-family: var(--font-family);
  font-size: 16px;
  transition: var(--transition);
}

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

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--bg-color-alt);
  padding: 60px 0 20px;
}

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

.footer-logo h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.footer-logo p {
  color: var(--text-color-light);
  max-width: 300px;
}

.footer-links h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-color-light);
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-color-light);
  font-size: 14px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .hero-section .container,
  .about-content,
  .contact-container {
    flex-direction: column;
  }
  
  .hero-img {
    margin-top: 50px;
  }
  
  .about-img {
    margin-bottom: 50px;
  }
  
  .projects-cards {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
  }
  
  .nav-links {
    margin-top: 20px;
  }
  
  .hero-section__title {
    font-size: 36px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .projects-filter {
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
  }
  
  .projects-cards {
    grid-template-columns: 1fr;
  }
}
