/* Base Styles */
:root {
  --primary-color: #0077b6;
  --secondary-color: #00b4d8;
  --bg-dark: #1e1e1e;
  --bg-card: #2d2d2d;
  --text-primary: #f5f5f5;
  --text-secondary: #b0b0b0;
  --text-accent: #90e0ef;
  --border-color: #3d3d3d;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica,
    Arial, sans-serif;
  --font-mono: 'Roboto Mono', monospace;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-dark);
}

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

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

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

section {
  padding: 5rem 0;
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
}

.btn.secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

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

.btn.secondary:hover {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Header & Navigation */
header {
  background-color: rgba(30, 30, 30, 0.95);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

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

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: width 0.3s ease;
}

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

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(
    -45deg,
    var(--bg-dark),
    #22272b,
    var(--bg-dark),
    #1a2e38
  );
  background-size: 400% 400%;
  animation: gradientBG 20s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.intro-text {
  color: var(--secondary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.name {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.name .typed-cursor {
  font-size: 4rem;
  color: var(--secondary-color);
  opacity: 1;
  animation: typedjsBlink 0.7s infinite;
}
@keyframes typedjsBlink {
  50% {
    opacity: 0;
  }
}

.title {
  font-size: 2.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

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

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-text {
  flex: 2;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.filter-btn {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: rgba(0, 119, 182, 0.2);
  border-color: var(--primary-color);
}

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

.project-card {
  position: relative;
  background-color: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease,
    opacity 0.4s ease-out;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 148, 216, 0.3);
  border-color: var(--secondary-color);
}

.project-card.filtered-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.project-card.is-hidden {
  display: none;
}

.project-card-link {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
}

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

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

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

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.project-tech span {
  background-color: rgba(0, 119, 182, 0.15);
  color: var(--text-accent);
  padding: 0.35rem 0.85rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-mono);
  border: 1px solid rgba(0, 119, 182, 0.3);
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.skills-category {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-category:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.skills-category h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--text-accent);
  text-align: center;
}

.skills-list {
  list-style: none;
}

.skills-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.skills-list li span {
  background-color: rgba(0, 83, 199, 0.1);
  color: var(--text-secondary);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
  font-family: var(--font-mono);
  border: 1px solid transparent;
}

.skills-list li span:hover {
  background-color: rgba(0, 119, 182, 0.2);
  color: var(--text-accent);
  transform: translateX(3px);
  border-color: rgba(0, 119, 182, 0.4);
}

/* Footer */
footer {
  background-color: rgb(20, 20, 20);
  padding: 3rem 0;
  text-align: center;
}

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

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  font-size: 1.8rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--secondary-color);
  transform: translateY(-4px) scale(1.1);
}

.email-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}
.email-container:hover {
  color: var(--secondary-color);
}

.email-container i {
  font-size: 1.5rem;
}

.email-text {
  font-size: 1rem;
}

.copyright {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 768px) {
  /* Navigation */
  .menu-toggle {
    display: block;
    z-index: 1001;
    position: relative;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
    transform: translateY(-100%);
    opacity: 0;
    padding: 2rem 0;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links li {
    margin: 1.5rem 0;
  }
  .nav-links a {
    font-size: 1.2rem;
  }

  /* Typography */
  .name {
    font-size: 2.8rem;
  }
  .name .typed-cursor {
    font-size: 2.8rem;
  }

  .title {
    font-size: 1.6rem;
  }

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

  /* Layout */
  .about-content {
    flex-direction: column;
    gap: 2rem;
  }

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

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

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
    text-align: center;
  }
  .cta-buttons .btn:last-child {
    margin-bottom: 0;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .name {
    font-size: 2.2rem;
  }
  .name .typed-cursor {
    font-size: 2.2rem;
  }
  .title {
    font-size: 1.3rem;
  }
  .project-content h3 {
    font-size: 1.3rem;
  }
}

.freepik-credit {
  font-size: 0.75em;
  color: #888888;
  text-align: center;
  margin-top: 10px;
}
.freepik-credit a {
  color: #888888;
  text-decoration: none;
  transition: color 0.3s ease;
}
.freepik-credit a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
}
