/* Root color variables */
:root {
    --primary-color: #0055A2;
    --secondary-color: #FFD700;
    --background-color: #ffffff;
    --text-color: #333;
    --header-bg: #00274D;
    --link-hover-bg: #FFD700;
    --link-hover-text: #00274D;
  }
  
  /* Dark mode */
  body.dark-mode {
    --background-color: #121212;
    --text-color: #f0f0f0;
    --header-bg: #1e1e1e;
    --link-hover-bg: #333;
    --link-hover-text: #FFD700;
  }
  
  /* Reset */
  body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
  }
  ul {
    list-style-type: none;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding-bottom: 80px; /* For sticky footer space */
  }
  
  /* Header & Navigation */
  header {
    background: var(--header-bg);
    color: var(--secondary-color);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: 0.3s;
  }
  
  nav a:hover {
    background: var(--link-hover-bg);
    color: var(--link-hover-text);
  }
  
  #theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--secondary-color);
    cursor: pointer;
  }
  
  /* Sections */
  section {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
  }
  
  /* Triggered when body class is added */
  body.loaded section {
    opacity: 1;
    transform: translateY(0);
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Profile Image */
  .profile-pic {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    display: block;
    margin: 0 auto 20px;
  }
  
  /* Resume button */
  .btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    margin-top: 10px;
  }
  .btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
  }
  
  /* Sticky Footer */
  .sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--background-color);
    border-top: 1px solid #ccc;
    padding: 10px 0;
    text-align: center;
    z-index: 999;
  }
  .sticky-footer .contact-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  .sticky-footer .contact-icons a {
    font-size: 24px;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
  }
  .sticky-footer .contact-icons a:hover {
    transform: scale(1.2);
    color: var(--secondary-color);
  }
  
  /* Image Slider (Projects) */
  .gallery-container {
    overflow-x: auto;
    white-space: nowrap;
    margin: 20px 0 40px;
    padding: 10px;
    border-radius: 10px;
    background: var(--background-color);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  }
  .image-slider {
    display: flex;
    gap: 20px;
    padding-bottom: 10px;
  }
  .image-slider img {
    width: 320px;
    max-width: 90vw;
    height: auto;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
  }
  .image-slider img:hover {
    transform: scale(1.05);
  }
  
  /* Education Logo Layout */
  .edu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .edu-logo {
    width: 100px;
    height: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .edu-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    header h1 {
      font-size: 1.5rem;
    }
  
    nav {
      flex-direction: column;
      gap: 10px;
      margin-top: 10px;
    }
  
    .edu-header {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .edu-logo {
      width: 80px;
      margin-top: 10px;
    }
  
    .image-slider img {
      width: 90%;
      max-width: 100%;
    }
  
    .sticky-footer .contact-icons {
      flex-direction: row;
      gap: 15px;
    }
  }
  .contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
  }
  
  .contact-form h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  
  .contact-form form {
    display: flex;
    flex-direction: column;
  }
  
  .contact-form label {
    margin: 10px 0 5px;
    font-weight: bold;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 6px rgba(0, 85, 162, 0.4);
  }
  
  .contact-form .btn {
    margin-top: 15px;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .contact-form .btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
  }
