/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
}

/* Color palette */
:root {
  --primary: #00458a;
  --secondary: #0077c8;
  --accent: #f5a623;
  --light-bg: #ffffff;
  --dark-overlay: rgba(0, 0, 0, 0.55);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--light-bg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  z-index: 1000;
}

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

nav .logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  background: url('images/hero.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-overlay);
  z-index: 0;
}

.hero .content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero .btn {
  background-color: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.hero .btn:hover {
  background-color: #d48e1d;
}

/* Section base styling */
section {
  padding: 4rem 2rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #555;
  text-align: center;
}

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

#about .about-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

#about .about-text {
  flex: 2;
}

#about .highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

#about .highlight-box {
  flex: 1 1 250px;
  background-color: #f0f4f9;
  border-left: 4px solid var(--accent);
  padding: 1rem;
  border-radius: 4px;
}

#about .highlight-box h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Experience Section */
#experience {
  background-color: #fafbfc;
}

#experience .timeline {
  max-width: 1100px;
  margin: 0 auto;
  border-left: 2px solid var(--secondary);
  padding-left: 1.5rem;
}

#experience .job {
  margin-bottom: 2rem;
  position: relative;
}

#experience .job::before {
  content: '';
  position: absolute;
  left: -1.05rem;
  top: 0.4rem;
  width: 0.8rem;
  height: 0.8rem;
  background-color: var(--accent);
  border-radius: 50%;
}

#experience .job h3 {
  font-size: 1.4rem;
  color: var(--secondary);
}

#experience .job h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-top: 0.2rem;
}

#experience .job span {
  font-size: 0.9rem;
  color: #777;
}

#experience .job ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

#experience .job ul li {
  list-style: disc;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

/* Skills Section */
#skills {
  background-color: var(--light-bg);
}

#skills .skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

#skills .skill {
  flex: 1 1 220px;
  background-color: #f0f4f9;
  padding: 1rem;
  border-radius: 4px;
  border-left: 4px solid var(--secondary);
}

#skills .skill h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

/* Certifications Section */
#certifications {
  background-color: #fafbfc;
}

#certifications .cert-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

#certifications .cert-item {
  background-color: #f0f4f9;
  padding: 1rem;
  border-radius: 4px;
  border-left: 4px solid var(--accent);
}

#certifications .cert-item h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

#certifications .cert-item span {
  font-size: 0.9rem;
  color: #555;
}

/* Projects Section */
#projects {
  background-color: var(--light-bg);
}

#projects .project-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#projects .project {
  background-color: #f0f4f9;
  padding: 1.5rem;
  border-radius: 4px;
  border-left: 4px solid var(--secondary);
}

#projects .project h4 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

/* Articles Section */
#articles {
  background-color: #fafbfc;
}

#articles .article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

#articles .article {
  background-color: #f0f4f9;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#articles .article img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

#articles .article-content {
  padding: 1rem;
  flex: 1;
}

#articles .article h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

#articles .article p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.8rem;
}

#articles .article a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 600;
}

/* Recommendations Section */
#recommendations {
  background-color: var(--light-bg);
}

#recommendations .rec-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#recommendations .rec {
  background-color: #f0f4f9;
  padding: 1.5rem;
  border-radius: 4px;
  border-left: 4px solid var(--accent);
}

#recommendations .rec p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.5rem;
}

#recommendations .rec span {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

/* Contact Section */
#contact {
  background-color: #fafbfc;
}

#contact .contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

#contact p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

#contact .contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

#contact .contact-links a {
  background-color: var(--primary);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

#contact .contact-links a:hover {
  background-color: var(--secondary);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  nav .container {
    flex-direction: column;
    gap: 0.8rem;
  }
}