/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* Root Variables: Define color palette and base font */
:root {
  --primary-color: #000080ff; /* Navy blue */
  --text-color: #333;
  --bg-color: #fff;
  --light-bg: #f9f9f9;
  --font-main: 'Montserrat', sans-serif;
}

/* Global Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Include padding and border in width/height */
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

/* Remove underline and inherit color for links */
a {
  text-decoration: none;
  color: inherit;
}

/* Utility container to center and constrain content */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* ========== HEADER SECTION ========== */
header {
  background-color: var(--primary-color);
  padding: 12px 20px;
}

/* Flex container for logo and nav items */
header .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo styling */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* Navigation Menu */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: flex;
  align-items: center;
}

nav ul li a {
  color: white;
  font-weight: 600;
  padding: 6px 12px;
  transition: background-color 0.3s ease;
  border-radius: 4px;
  display: inline-block;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 10px;
  transition: 0.3s ease;
  text-align: center;
}

.btn.primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn:hover {
  opacity: 0.9;
}

/* ========== HERO SECTION ========== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--light-bg);
  padding: 60px 0;
  flex-wrap: wrap;
}

/* Inner content layout */
.hero .hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* Text column */
.hero .text {
  flex: 1;
  min-width: 280px;
}

.hero .text h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero .text h2 span {
  color: var(--primary-color);
}

/* Image column */
.hero .photo {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.hero .photo img {
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* ========== COMMON SECTION SPACING ========== */
.section {
  padding: 60px 0;
}

/* Section Headings */
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

/* ========== SKILLS GRID ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Each skill box */
.skill-card {
  background-color: var(--light-bg);
  padding: 20px;
  text-align: center;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
}

/* ========== ABOUT SECTION ========== */
.about-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

/* Text block in about */
.about-text {
  flex: 1;
  min-width: 300px;
}

/* ========== INTERESTS LIST ========== */
.interests {
  list-style: none;
  padding-left: 20px;
}

.interests li {
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
}

.interests li::before {
  content: "✔"; /* Tick mark */
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* ========== PROJECTS SECTION ========== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Individual project box */
.project-card {
  background-color: var(--light-bg);
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  border-radius: 6px;
}

/* Project links */
.project-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary-color);
  font-weight: 600;
}

/* ========== FOOTER ========== */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
  }

  .about-grid {
    flex-direction: column;
  }

  header .nav-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
  }

  nav ul {
    justify-content: flex-end;
    gap: 15px;
  }

  .logo img {
    height: 36px;
    width: 36px;
  }
}

/* ========== CONTACT SECTION TYPOGRAPHY (Optional Enhancement) ========== */
.contact p {
  font-size: 16px;
  line-height: 1.6;
}
