/* ==================== GLOBAL STYLES ==================== */
:root {
  --primary: #061638;
  --accent: #38b6ff;
  --light-bg: #f6f7f8;
  --text-dark: #222;
  --text-light: #fff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --transition: all 0.3s ease-in-out;
  --fade: fadeIn 0.8s ease forwards;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #e8edf4;
  color: var(--text-dark);
  padding-top: 80px;
  animation: fadeInBody 1s ease-in;
}

@keyframes fadeInBody {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== HEADER ==================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: var(--primary);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  color: var(--text-light);
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--accent);
}

#nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

#nav-list li a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

#nav-list li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--accent);
  left: 0;
  bottom: -4px;
  transition: width 0.3s ease;
}

#nav-list li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
}

/* ==================== HERO SECTION ==================== */
.hero {
  text-align: center;
  padding: 4rem 1rem 3rem 1rem;
  background: linear-gradient(135deg, #061638, #0b235d);
  color: var(--text-light);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInHero 1s ease forwards;
}

@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-img {
  width: 145px;
  height: 155px;
  border-radius: 60%;
  border: 4px solid var(--accent);
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
  transition: transform 0.4s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

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

.hero .btn {
  display: inline-block;
  margin: 1.2rem 0;
  padding: 0.7rem 2rem;
  border-radius: 25px;
  background: var(--accent);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(56, 182, 255, 0.3);
}

.hero .btn:hover {
  background: #1b77b9;
  transform: translateY(-2px);
}

.social-links {
  margin-top: 1.2rem;
}

.social-links a {
  margin: 0 1rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--accent);
}

/* ==================== SECTIONS ==================== */
section {
  max-width: 950px;
  margin: 2.5rem auto;
  padding: 2rem 1.5rem;
  background: var(--light-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeInSection 0.8s ease forwards;
  opacity: 0;
}

@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

section h2 {
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
}

/* ==================== PROJECTS ==================== */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.project-card {
  flex: 1 1 280px;
  background: #fff;
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--accent);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(56, 182, 255, 0.2);
}

.project-card h3 {
  margin-bottom: 0.6rem;
  color: var(--primary);
}

.project-card p {
  font-size: 0.95rem;
  color: #333;
}

.project-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}

.project-tags {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #2472a4;
}

/* ==================== SKILLS ==================== */
.skills-list {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 1rem;
}

.skills-list li {
  background: var(--primary);
  color: var(--text-light);
  padding: 0.5em 1em;
  border-radius: 16px;
  font-weight: 500;
  transition: var(--transition);
}

.skills-list li:hover {
  background: var(--accent);
}

/* ==================== RESUME & CONTACT ==================== */
.resume-preview {
  margin-top: 1rem;
  border: 2px solid var(--accent);
  border-radius: 8px;
  overflow: hidden;
  background: var(--light-bg);
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact input,
#contact textarea {
  padding: 0.8rem;
  border: 1px solid #b4b4b4;
  border-radius: 9px;
  font-size: 1rem;
  width: 100%;
  background: #fff;
  transition: var(--transition);
}

#contact input:focus,
#contact textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 6px rgba(56, 182, 255, 0.4);
  outline: none;
}

#contact button.btn {
  width: fit-content;
  padding: 0.7rem 2rem;
  background: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

#contact button.btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ==================== FOOTER ==================== */
footer {
  margin-top: 2rem;
  padding: 1.5rem 0;
  text-align: center;
  background: var(--primary);
  color: #dcdcdc;
  font-size: 0.95rem;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
  }

  #nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1rem;
  }

  #nav-list.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .projects-container {
    flex-direction: column;
  }

  section {
    margin: 1rem;
    padding: 1rem;
  }
}
