/* ========================================
   General Styles
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f5f7fa;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================================
   Header
======================================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .logo {
  font-size: 1.8rem;
  color: #1e3c72;
  font-weight: bold;
}

.nav a {
  text-decoration: none;
  color: #222;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: #2a5298;
}

/* ========================================
   Hero Section (BLUE GRADIENT)
======================================== */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #ffffff;
  border-radius: 12px;
  margin-bottom: 50px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero .subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
  opacity: 0.95;
}

/* ========================================
   Philosophy / About Section
======================================== */
.philosophy {
  padding: 60px 0;
  text-align: center;
}

.philosophy h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #1e3c72;
}

.philosophy p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 15px;
  color: #555;
}

/* ========================================
   Projects & Blog Sections
======================================== */
.projects,
.blog {
  padding: 60px 0;
}

.projects h2,
.projects h3,
.blog h2 {
  text-align: center;
  font-size: 2rem;
  color: #1e3c72;
  margin-bottom: 40px;
}

.project-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.project-card,
.blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover,
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.project-card h4,
.blog-card h4 {
  padding: 15px 15px 0;
  color: #1e3c72;
}

.project-card p,
.blog-card p {
  padding: 15px;
  color: #555;
}

.project-card a,
.blog-card a {
  display: block;
  padding: 12px 15px;
  background-color: #2a5298;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  transition: background-color 0.3s;
}

.project-card a:hover,
.blog-card a:hover {
  background-color: #1e3c72;
}

.coming-soon {
  display: block;
  padding: 15px;
  color: #2a5298;
  font-weight: bold;
  text-align: center;
}

/* ========================================
   Contact Section
======================================== */
.contact {
  padding: 60px 20px;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #1e3c72;
}

.contact ul {
  list-style: none;
  margin-bottom: 30px;
}

.contact ul li {
  margin-bottom: 12px;
  font-size: 1rem;
}

.contact ul li a {
  color: #2a5298;
  font-weight: bold;
  text-decoration: none;
}

.contact ul li a:hover {
  color: #1e3c72;
}

.contact-placeholder {
  font-style: italic;
  color: #555;
  padding: 20px;
}

/* ========================================
   Footer
======================================== */
.site-footer {
  background-color: #1e3c72;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
  margin-top: 50px;
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
}

/* ========================================
   Back to Top Button
======================================== */
#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  font-size: 1.4rem;
  padding: 10px 14px;
  border: none;
  border-radius: 50%;
  background-color: #2a5298;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

#backToTop:hover {
  background-color: #1e3c72;
  transform: scale(1.1);
}

/* ========================================
   Scroll Animations
======================================== */
section,
.project-card,
.blog-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible,
.project-card.visible,
.blog-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 768px) {
  .nav a {
    margin-left: 15px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .project-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
