/* RESET + GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

/* MAIN BODY LAYOUT */
body {
  display: flex;
  background-color: #f0f0e9;
  color: #333;
}

:root {
    /* ===== DOMINANT COLORS (60% of design) ===== */
    --bg-primary: #F5F5F5;           /* Main background color - light grey */
    --bg-secondary: #FFFFFF;         /* Card/section background - white */
    --bg-tertiary: #E0E0E0;         /* Alternative sections - soft grey */
    
    /* ===== SECONDARY COLORS (30% of design) ===== */
    /* Text colors for different content types
       Maintain sufficient contrast with backgrounds */
    --text-primary: #333333;          /* Main text color - dark grey */
    --text-secondary: #666666;        /* Secondary text - medium grey */
    --text-light: #999999;           /* Subtle text - light grey */
    
    /* ===== ACCENT COLORS (10% of design) ===== */
    /* Brand colors and highlights
       Used for buttons, links, and emphasis */
    --primary-color: #0066CC;         /* Primary brand color - blue */
    --secondary-color: #1ABC9C;       /* Secondary brand color - teal */
    --accent-color: #0066CC;          /* Highlight color - blue */
    
    /* ===== UI ELEMENT STYLES ===== */
    /* Common interface elements
       Used for navigation and borders */
    --bg-navbar: rgba(245, 245, 245, 0.95); /* Navbar with transparency */
    --border-color: #E0E0E0;          /* Default border color */
    
    /* ===== SHADOW SYSTEM ===== */
    /* Elevation system using shadows
       Larger values create higher elevation */
    --shadow-sm: 0 1px 3px rgba(51, 51, 51, 0.1);   /* Subtle shadow */
    --shadow-md: 0 4px 6px rgba(51, 51, 51, 0.1);   /* Medium shadow */
    --shadow-lg: 0 10px 15px rgba(51, 51, 51, 0.1); /* Large shadow */
    --shadow-xl: 0 20px 25px rgba(51, 51, 51, 0.15); /* Extra large shadow */
    
    /* ===== ANIMATION SYSTEM ===== */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar {
    position: fixed;      /* Stick to top of viewport */
    top: 0;
    left: 0;
    right: 0;
    background: #000;     /* Dark background for contrast */
    z-index: 1000;       /* Keep above other content */
    transition: var(--transition);  /* Smooth color/height changes */
}

/* Navigation container with flexbox layout 
   Holds logo and navigation items
   To adjust width: Modify max-width value */
.nav-container {
    display: flex;        /* Horizontal layout */
    align-items: center;  /* Vertical centering */
    justify-content: space-between;  /* Space between logo and menu */
    max-width: 1500px;    /* Maximum navbar width */
    min-height: 20px;     /* Minimum navbar height */
}

/* Logo and department name styling 
   Contains site branding elements
   To adjust spacing: Modify gap, margin, and padding values */
.nav-logo {
    display: flex;          /* Horizontal layout */
    align-items: left;      /* Left alignment */
    gap: 0.75rem;          /* Space between logo and text */
    font-size: 1.5rem;     /* Logo text size */
    font-weight: 700;      /* Bold text */
    color: var(--primary-color);  /* Brand color */
    margin-left: 10px;     /* Left spacing */
    padding: 10px;         /* Internal spacing */
}

/* Department name styling 
   Text next to the logo
   To adjust width/position: Modify width and margin values */
.nav-logo h4 {
   width: 240px;          /* Fixed width for text */
   margin-top: 24px;      /* Top spacing */
   margin-left: 30px;     /* Left spacing */
}

/* Logo image styling 
   Main logo/icon image
   To resize: Adjust height value, width stays proportional */
.logo-image {
    height: 90px;         /* Fixed height */
    width: auto;          /* Maintain aspect ratio */
}

/* Logo icon styling (if using icon instead of image) */
.nav-logo i {
    font-size: 5rem;
}

/* Main navigation menu container */
.nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

/* Navigation links row */
.nav-row {
    margin-top: 0;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: right;
    margin-left: 60px;
    flex-wrap: nowrap;
}

/* Individual navigation link styling */
.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation link hover effect */
.nav-link:hover {
    color: var(--primary-color);
}

/* Animated underline for navigation links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Expand underline on hover */
.nav-link:hover::after {
    width: 80%;
}

/* Multi-row navigation layout */

/* HOD Animation Keyframes */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ------------------------------- */
/* ✅ Responsive Navbar Extension  */
/* ------------------------------- */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 25px;
  cursor: pointer;
  margin-right: 20px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #FFFFFF;
  border-radius: 3px;
  transition: all 0.3s ease;
  margin: 2px 0;
  
}

/* Hamburger animation (active state) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Responsive Layout for Tablets & Mobiles */
@media (max-width: 992px) {
  .nav-container {
    flex-wrap: wrap;
  }

  .nav-menu {
    width: 100%;
  }

  .nav-row {
    position: fixed;
    top: 80px;
    right: -100%;
    flex-direction: column;
    background: #000; /* Keep dark theme */
    width: 220px;
    height: calc(100vh - 80px);
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.4);
    transition: right 0.3s ease-in-out;
  }

  .nav-row.active {
    right: 0;

  }

  .nav-link {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-logo h4 {
    font-size: 0.9rem;
    width: auto;
    margin-left: 10px;
  }

  .logo-image {
    height: 60px;
  }
}

/* LEFT FIXED PANEL */
.left-panel {
  width: 350px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background-color: #f0f0e9;
  border-right: 2px solid #ccc;
  padding: 20px;
  overflow: hidden;
}

/* PROFILE CARD (YOUR DESIGN) */
.card {
  width: 300px;
  
  background-color: #f7c96b;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  overflow: hidden;
  padding: 20px;
  position: fixed; /* keeps it at top-left */
  top: 119px;
  left: 20px;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  margin-top: 10px;
}

.info {
  margin-top: 20px;
}

.info h2 {
  color: #003366;
  font-size: 24px;
  margin-bottom: 10px;
}

.info p {
  font-size: 18px;
  color: #333;
  margin: 8px 0;
}

.info a {
  color: #0044cc;
  text-decoration: none;
}

.info a:hover {
  text-decoration: underline;
}

.icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.icons img {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.icons img:hover {
  transform: scale(1.2);
}

/* RIGHT SCROLLABLE CONTENT */
.right-content {
  margin-left: 360px; /* leaves space for left card */
  padding: 40px;
  height: 100vh;
  overflow-y: scroll;
  margin-top: 90px;
}

.right-content h1 {
  color: #003366;
  margin-bottom: 10px;
}
.right-content h2{
  color: #cc3300;
  margin-top:  20PX; ;
}
 .right-content h3 {
  color: #002b5c;
  margin-top: 20px;
}

.right-content ul {
  list-style: disc;
  margin-left: 20px;
}

.right-content li, .right-content p {
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Close button shown on profile pages */
.close-btn {
  position: fixed;
  /* place the button below the fixed navbar so it appears "in" the profile page */
  top: 110px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  z-index: 1200; /* above navbar */
  box-shadow: var(--shadow-md);
  transition: transform 0.12s ease, background 0.12s ease;
}
.close-btn:hover{
  transform: scale(1.05);
  background: rgba(0,0,0,0.85);
}
.close-btn:focus{
  outline: 3px solid rgba(0,102,204,0.25);
}

/* Small screens: nudge button slightly below smaller navbar and reduce size */
@media (max-width: 600px) {
  .close-btn {
    top: 86px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}
/* ===========================
   Responsive Adjustments
   =========================== */

/* Navbar adjustments for smaller screens */
@media (max-width: 1024px) {
  .nav-logo h4 {
    font-size: 1.2rem;
    width: auto;
    margin-left: 10px;
  }
  .logo-image {
    height: 70px;
  }
  .nav-row {
    gap: 10px;
    margin-left: 20px;
  }
}

/* LEFT PANEL ADJUSTMENTS */
@media (max-width: 992px) {
  .left-panel {
    width: 250px;
    padding: 15px;
  }

  .card {
    width: 220px;
    top: 120px;
    left: 15px;
    padding: 15px;
  }

  .profile-img {
    width: 150px;
    height: 150px;
  }

  .info h2 {
    font-size: 20px;
  }

  .info p {
    font-size: 16px;
  }

  .icons img {
    width: 18px;
    height: 18px;
  }

  .right-content {
    margin-left: 270px;
    padding: 30px 20px;
  }
}

/* TABLET / SMALL SCREENS */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 2px solid #ccc;
    padding: 15px 10px;
  }

  .card {
    width: 90%;
    position: relative;
    top: 0;
    left: 0;
    margin: 0 auto;
  }

  .profile-img {
    width: 130px;
    height: 130px;
  }

  .right-content {
    margin-left: 0;
    margin-top: 20px;
    padding: 20px 15px;
    height: auto;
  }

  .right-content h2 {
    font-size: 1.4rem;
  }

  .right-content h3 {
    font-size: 1.1rem;
  }

  .right-content p, .right-content li {
    font-size: 0.95rem;
  }

  .close-btn {
    top: 90px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* MOBILE SCREENS */
@media (max-width: 480px) {
  .card {
    width: 95%;
    padding: 10px;
    margin-top: 110px;
  }

  .profile-img {
    width: 120px;
    height: 120px;
  }

  .info h2 {
    font-size: 18px;
  }

  .info p {
    font-size: 14px;
  }

  .icons img {
    width: 16px;
    height: 16px;
  }

  .right-content {
    padding: 15px 10px;
  }

  .right-content h2 {
    font-size: 1.2rem;
  }

  .right-content h3 {
    font-size: 1rem;
  }

  .right-content p, .right-content li {
    font-size: 0.9rem;
  }

  .close-btn {
    top: 80px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}
