/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #003366;
  --primary-light: #1a4d80;
  --text-light: #ffffff;
  --text-dark: #333333;
  --card-dark: #2d2d2d;
  --accent: #d4af37;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}


/* CSS Variables for theming */
:root {
    /* Light theme (default) */
    --primary: #003366;
    --primary-light: #00509e;
    --text-color: #333333;
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Use these variables in your existing CSS */
body {
    background-color: var(--background-color);
    color: var(--text-color);
}

.sidebar-section {
    background: var(--surface-color);
}

.project-card {
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

body {
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  background: #feffff;
  line-height: 1.6;
}

/* HEADER - Shared across all pages */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: relative;
  z-index: 10;
}

header img {
  width: 150px;
  height: auto;
}

/* NAVIGATION - Shared across all pages */
nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav ul a {
  text-decoration: none;
  color: rgb(252, 251, 249);
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

nav ul a:hover {
  color: #d4af37; 
}

/* Dropdown Styles - Shared */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  min-width: 200px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border-radius: 4px;
  overflow: hidden;
  z-index: 1000;
  padding: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #d4af37;
}

/* NAV ICONS - Shared */
.navicons {
  display: flex;
  gap: 20px;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
}

.icon-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #d4af37;
}

.icon-link i {
  font-size: 1.2rem;
}

/* ASIDE SOCIAL ICONS - Shared */
.aside-content {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 99;
}

.aside-content a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--primary);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.aside-content a:hover {
  transform: translateY(-3px);
  background-color: var(--primary-light);
}

.aside-content img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* FOOTER - Shared across all pages */
footer {
  background-color: #333;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-links i {
  margin-right: 10px;
  width: 16px;
}

.footer-links a {
  transition: var(--transition);
  opacity: 0.8;
  color: white;
  text-decoration: none;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.search-box {
  display: flex;
  margin-top: 15px;
}

.search-box input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.search-box button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0.7;
}

.copyright a {
  color: white;
  text-decoration: none;
  margin: 0 5px;
}

.copyright a:hover {
  text-decoration: underline;
}

/* Responsive Design - Shared */
@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  header {
    padding: 20px 30px;
  }
  
  nav {
    gap: 20px;
  }
  
  nav ul {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  nav {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .aside-content {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  header img {
    width: 120px;
  }
}