/* ==========================================
   RESET & GLOBAL STYLES
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 0;
  border-bottom: 1px solid #1a1a1a;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #888888;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 10rem 0 4rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-greeting {
  font-size: 1rem;
  color: #888888;
  margin-bottom: 0.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-name {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.hero-title {
  font-size: 1.75rem;
  color: #cccccc;
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1rem;
  color: #888888;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #ffffff;
  color: #0a0a0a;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid #ffffff;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #0a0a0a;
  transform: translateY(-2px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo {
  width: 400px;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  filter: grayscale(70%) contrast(1.15) brightness(1.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: none;
  transition: all 0.3s ease;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at center, black 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 85% at center, black 60%, transparent 100%);
}

.hero-photo:hover {
  filter: grayscale(0%) contrast(1.1) brightness(1.05);
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(255, 255, 255, 0.15);
}

/* ==========================================
   SECTIONS
   ========================================== */

section {
  padding: 5rem 0;
  scroll-margin-top: 100px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3rem;
  text-align: center;
  letter-spacing: 0.1em;
}

.tech-subtitle {
  text-align: center;
  color: #888888;
  font-size: 1rem;
  margin-bottom: 3rem;
  margin-top: -1.5rem;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about {
  background: #0a0a0a;
}

.about-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-image {
  display: flex;
  justify-content: center;
}

.profile-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  filter: grayscale(70%) contrast(1.15) brightness(1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
  mask-image: radial-gradient(circle, black 60%, transparent 100%);
}

.profile-photo:hover {
  filter: grayscale(0%) contrast(1.1) brightness(1.05);
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.15);
}

.about-text {
  color: #cccccc;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-text strong {
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================
   PROJECTS SHOWCASE
   ========================================== */

.projects {
  background: #0f0f0f;
}

.projects-showcase {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.project-showcase-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid #222222;
  transition: all 0.3s ease;
  align-items: center;
}

.project-showcase-card:hover {
  border-color: #444444;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.05);
}

.project-reverse {
  grid-template-columns: 1fr 1fr;
}

.project-reverse .project-showcase-image {
  order: 2;
}

.project-reverse .project-showcase-content {
  order: 1;
}

.project-showcase-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.showcase-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.project-showcase-card:hover .showcase-img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.project-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0a;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.project-showcase-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.project-description {
  color: #cccccc;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  background: #0f0f0f;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #333333;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */

.skills {
  background: #0a0a0a;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-item {
  text-align: center;
}

.skill-circle {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #1a1a1a;
  border: 3px solid #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s ease;
}

.skill-item:hover .skill-circle {
  border-color: #ffffff;
  transform: scale(1.1);
}

.skill-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.skill-item p {
  color: #888888;
  font-size: 0.95rem;
}

/* ==========================================
   SOFTWARE/TECHNOLOGIES SECTION
   ========================================== */

.software {
  background: #0f0f0f;
  padding: 6rem 0;
}

.software-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tech-category {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid #222222;
  transition: all 0.3s ease;
}

.tech-category:hover {
  border-color: #444444;
  transform: translateY(-5px);
}

.tech-category h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #333333;
}

.software-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.software-item {
  background: #0f0f0f;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  color: #ffffff;
  border: 1px solid #333333;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.software-item:hover {
  border-color: #ffffff;
  transform: translateY(-2px);
  background: #1a1a1a;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact {
  background: #0a0a0a;
  padding: 5rem 0 4rem;
}

.contact-subtitle {
  text-align: center;
  color: #888888;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact-item:hover {
  border-color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.contact-item svg {
  width: 24px;
  height: 24px;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  padding: 2.5rem 0;
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  text-align: center;
}

.footer p {
  color: #666666;
  font-size: 0.95rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-photo {
    width: 300px;
    height: 400px;
  }

  .hero-cta {
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .project-showcase-card,
  .project-reverse {
    grid-template-columns: 1fr;
  }

  .project-reverse .project-showcase-image,
  .project-reverse .project-showcase-content {
    order: unset;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .software-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 8rem 0 3rem;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .software-categories {
    grid-template-columns: 1fr;
  }

  .showcase-img {
    height: 250px;
  }

  .project-showcase-card {
    padding: 2rem;
  }

  .project-showcase-content h3 {
    font-size: 1.5rem;
  }

  .project-tech {
    gap: 0.5rem;
  }

  .contact-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-item {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .hero-photo {
    width: 250px;
    height: 350px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .software-item {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .tech-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}