/* ===========================
   GLOBAL STYLES
=========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #f2f2f2;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===========================
   HEADER
=========================== */

header {
  background: #1e1e2f;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.8rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav li {
  margin: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover,
nav a.active {
  color: #4da6ff;
}

/* ===========================
   HOME SECTION
=========================== */

.home {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.intro-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.profile-img {
  flex: 1;
  text-align: center;
}

.profile-img img {
  width: 280px;
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.text-section {
  flex: 2;
  min-width: 300px;
}

.text-section h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.text-section h3 {
  color: #666;
  margin-bottom: 15px;
}

.highlight {
  color: #0066cc;
}

.text-section p {
  max-width: 700px;
}

/* ===========================
   BUTTONS
=========================== */

.cta-buttons {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn,
.btn-secondary,
.btn-outline {
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 600;
}

.btn {
  background: #0066cc;
  color: white;
}

.btn:hover {
  background: #004e99;
}

.btn-secondary {
  background: #444;
  color: white;
}

.btn-secondary:hover {
  background: #222;
}

.btn-outline {
  border: 2px solid #0066cc;
  color: #0066cc;
}

.btn-outline:hover {
  background: #0066cc;
  color: white;
}

/* ===========================
   SOCIAL ICONS
=========================== */

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  align-items: center;
}

.social-icons img {
  width: 32px;
  height: 32px;
  transition: 0.3s;
}

.social-icons img:hover {
  transform: scale(1.15);
}

/* ===========================
   PROJECTS
=========================== */

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.project {
  background: white;
  padding: 1.2rem;
  border-radius: 12px;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project:hover {
  transform: translateY(-5px);
}

.project h3 {
  margin-bottom: 10px;
}

/* ===========================
   FOOTER
=========================== */

footer {
  text-align: center;
  padding: 1rem;
  background: #1e1e2f;
  color: white;
  margin-top: 2rem;
}

/* ===========================
   TABLET VIEW
=========================== */

@media (max-width: 1024px) {

  .intro-content {
    gap: 2rem;
  }

  .profile-img img {
    width: 240px;
  }

  .text-section h2 {
    font-size: 2.3rem;
  }
}

/* ===========================
   MOBILE VIEW
=========================== */

@media (max-width: 768px) {

  header .container {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
  }

  .intro-content {
    flex-direction: column;
    text-align: center;
  }

  .profile-img img {
    width: 200px;
  }

  .text-section {
    min-width: auto;
  }

  .text-section h2 {
    font-size: 2rem;
  }

  .text-section h3 {
    font-size: 1rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .cta-buttons a {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .project-list {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   SMALL MOBILE VIEW
=========================== */

@media (max-width: 480px) {

  header h1 {
    font-size: 1.4rem;
  }

  .text-section h2 {
    font-size: 1.7rem;
  }

  .text-section p {
    font-size: 0.95rem;
  }

  .profile-img img {
    width: 170px;
  }

  .social-icons img {
    width: 28px;
    height: 28px;
  }
}