/* =========================
   RESET & BASE
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
}

/* =========================
   GLOBAL ELEMENTS
========================= */
img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

p {
  color: #444;
}

/* =========================
   HEADER & NAVBAR
========================= */
header {
  background: #f5943c;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  max-width: 1300px;
  margin: auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo-img {
  height: 64px;
  width: auto;
}

/* Navigation */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1rem;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease;
  border-radius: 6px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 15%;
  bottom: 6px;
  width: 70%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* Hover / Active */
.nav-links a:hover,
.nav-links a.active {
  background: #0057b8; /* blue */
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Burger button (hidden on desktop) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Burger animation */
.burger.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.toggle span:nth-child(2) {
  opacity: 0;
}

.burger.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* Container */
.container {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

/* Portfolio Grid Layout */
.portfolio-grid {
  display: flex;
  gap: 30px;
  overflow-x: auto; /* Allow horizontal scrolling if needed */
  padding-bottom: 10px;
}

/* Images and video fill the same size */
.portfolio-img,
.portfolio-video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  flex-shrink: 0; /* prevent shrinking */
}

.portfolio-item {
  flex: 0 0 320px; /* fixed width */
  height: 420px;   /* fixed height */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.portfolio-item:hover .portfolio-img,
.portfolio-item:hover .portfolio-video {
  transform: scale(1.05);
}

/* Content area */
.portfolio-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}
/* Project Title */
.portfolio-content h2 {
  margin-bottom: 10px;
  color: #1c2d5f; /* main CSS dark blue */
  font-weight: 700;
  font-size: 1.25rem;
}

/* Project Type */
.project-type {
  font-size: 0.9rem;
  color: #2563eb; /* blue accent */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* Project Description */
.project-description {
  flex-grow: 1;
  color: #555;
  font-size: 1rem;
  margin-bottom: 15px;
}

/* View Details Link */
.view-details {
  align-self: flex-start;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
}
.view-details:hover,
.view-details:focus {
  color: #1c2d5f;
  outline-offset: 3px;
  outline: 3px solid #2563eb;
}

/* Sidebar */
.sidebar {
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(28, 45, 95, 0.1);
  padding: 20px;
  border-radius: 10px;
  max-width: 280px;
  margin-left: 30px;
  height: fit-content;
}
.sidebar h2 {
  margin-bottom: 15px;
  border-bottom: 2px solid #f28c28;
  padding-bottom: 5px;
  color: #f28c28;
}
.recent-projects {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recent-projects a {
  color: #1c2d5f;
  font-weight: 600;
  transition: color 0.3s ease;
  text-decoration: none;
}
.recent-projects a:hover,
.recent-projects a:focus {
  color: #f28c28;
  outline-offset: 3px;
  outline: 3px solid #f28c28;
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    margin: 30px 15px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sidebar {
    max-width: 100%;
    margin: 20px 0 0 0;
  }
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  background-color: #1c2d5f; /* dark blue */
  color: #a8b8db; /* light blue text */
  text-align: center;
  padding: 25px 20px 15px;
  margin-top: auto;
}

.footer-nav {
  margin-bottom: 15px;
}

.footer-nav a {
  color: #a8b8db; /* light blue */
  margin: 0 10px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #f28c28; /* orange */
}

.footer-nav a:focus {
  outline: 3px solid #f28c28;
  outline-offset: 2px;
}

footer p {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #a8b8db;
}


/* Social icons */

.social-icons {
  margin-bottom: 10px;
}

.social-icons a {
  color: #a8b8db;
  margin: 0 10px;
  font-size: 1.3rem;
  transition: color 0.3s ease;
  display: inline-block;
}

.social-icons a:hover {
  color: #f28c28;
  transform: scale(1.1);
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:focus {
  outline: 3px solid #f28c28;
  outline-offset: 2px;
}

.dual-images {
  display: flex;
  gap: 10px;
  height: 180px;
}

.dual-images .portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dual-images a {
  width: 50%;
  height: 100%;
  display: block;
}

