/* Base Styles */
:root {
  --primary-color: #6c5ce7;
  --secondary-color: #00cec9;
  --accent-color: #fd79a8;
  --background-color: #0f0f13;
  --card-background: #1a1a23;
  --card-hover: #22222e;
  --light-gray: #2d2d3a;
  --border-color: #2d2d3a;
  --text-color: #f5f5f7;
  --text-secondary: #a0a0a7;
  --border-radius: 12px;
  --small-radius: 8px;
  --transition: all 0.3s ease;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  --header-height: 80px;
}

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

body {
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-weight: 600;
  border-radius: var(--small-radius);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
  background: var(--light-gray);
  color: var(--text-color);
}

.btn-secondary:hover {
  background: var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon i {
  font-size: 1.1rem;
}

/* Header Styles */
header {
  background-color: rgba(15, 15, 19, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
}

.logo span {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

nav ul {
  display: flex;
  gap: 30px;
}

nav ul li a {
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

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

.hero h1 span {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Gallery Section */
.gallery {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

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

.gallery-item {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background-color: var(--card-hover);
}

.gallery-item-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.gallery-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-item-image img {
  transform: scale(1.05);
}

.gallery-item-content {
  padding: 20px;
}

.gallery-item-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.gallery-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.gallery-item-category {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background-color: var(--light-gray);
  padding: 5px 10px;
  border-radius: 20px;
}

.gallery-item-year {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow-y: auto;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--card-background);
  margin: 80px auto;
  width: 90%;
  max-width: 1100px;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.close-button:hover {
  background-color: var(--accent-color);
  transform: rotate(90deg);
}

.close-button span {
  font-size: 1.5rem;
  color: white;
}

.project-details {
  display: flex;
  flex-direction: column;
}

.project-gallery {
  width: 100%;
  position: relative;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 500px;
}

.gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.gallery-slide.active {
  display: block;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-dot.active {
  background-color: white;
  transform: scale(1.2);
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
}

.gallery-prev:hover,
.gallery-next:hover {
  background-color: var(--primary-color);
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

.project-info {
  padding: 40px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.project-title h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.project-title p {
  color: var(--text-secondary);
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.social-icon i {
  font-size: 1.2rem;
  color: var(--text-color);
}

.project-description {
  margin-bottom: 30px;
}

.project-description p {
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  background-color: var(--light-gray);
  padding: 25px;
  border-radius: var(--small-radius);
}

.meta-item h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
  font-weight: 500;
}

.meta-item p {
  font-size: 1rem;
  font-weight: 500;
}

/* About Page Styles */
.about {
  padding: 160px 0 100px;
}

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

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--border-radius);
  width: 100%;
}

.about-image::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  z-index: -1;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.about-text h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-text h3 {
  font-size: 1.5rem;
  margin: 40px 0 20px;
  color: var(--text-color);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.skill-tag {
  background-color: var(--light-gray);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.experience-item {
  margin-bottom: 25px;
  padding-left: 20px;
  border-left: 2px solid var(--border-color);
  position: relative;
}

.experience-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

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

.experience-item p {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.experience-item .date {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.about-social {
  display: flex;
  gap: 15px;
  margin-top: 40px;
}

/* Footer Styles */
footer {
  background-color: var(--card-background);
  padding: 60px 0 30px;
  margin-top: 80px;
  border-top: 1px solid var(--border-color);
}

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

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.footer-info p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 400px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

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

.footer-links ul li a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

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

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }

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

  .footer-info {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 130px 0 80px;
  }

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

  nav ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 100;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li a {
    font-size: 1.5rem;
  }

  .hamburger {
    display: flex;
  }

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

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

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

  .project-header {
    flex-direction: column;
    gap: 20px;
  }

  .project-social {
    align-self: flex-start;
  }

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

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

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

  .gallery-container {
    height: 350px;
  }

  .project-info {
    padding: 25px;
  }

  .project-meta-grid {
    grid-template-columns: 1fr;
  }
}
