* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

@font-face {
   font-family: myFirstFont;
   src: url(../Poppins/Poppins-Regular.ttf);
}

@font-face {
   font-family: bold;
   src: url(../Poppins/Poppins-Bold.ttf);
}

h1 {
   font-family: bold;
}

body {
   font-family: myFirstFont, Verdana, Geneva, Tahoma, sans-serif;
   cursor: default;
}

/* Website Scrollbar */
body::-webkit-scrollbar {
   width: 5px !important;
   height: 5px !important;
}

body::-webkit-scrollbar-track {
   background: #3838387c !important;
}

body::-webkit-scrollbar-thumb {
   background-color: #e0120ba4 !important;
   border: 1px solid #ff020279 !important;
   border-radius: 1px !important;
}

/* Navigation */
.header {
   min-height: 100vh;
   width: 100%;
   background-image: linear-gradient(rgba(4, 9, 30, 0.6), rgba(4, 9, 30, 0.6)), url(../image/background.jpg);
   background-position: center;
   background-size: cover;
   position: relative;
}

nav {
   display: flex;
   padding: 2% 6%;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
}

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

.nav-links {
   flex: 1;
   text-align: right;
}

.nav-links ul li {
   list-style: none;
   display: inline-block;
   padding: 8px 12px;
   position: relative;
}

.nav-links a {
   color: #fff;
   text-decoration: none;
   font-size: 16px;
}

.nav-links ul li::after {
   content: '';
   width: 0%;
   height: 2px;
   background: #ff0000;
   display: block;
   margin: auto;
   transition: 0.5s;
}

.nav-links ul li:hover::after {
   width: 100%;
}

.icon {
   display: none;
   color: #fff;
   margin: 10px;
   font-size: 25px;
   cursor: pointer;
}

/* Hero Section */
.hero-section {
   position: relative;
   padding: 60px 20px;
   text-align: center;
}

.hero-text {
   color: white;
   font-size: clamp(2rem, 8vw, 3rem);
   font-family: 'Georgia', serif;
   text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Info Section */
.info-section {
   margin: 20px;
   padding: 20px;
}

.college-info {
   color: #333;
   font-size: clamp(1rem, 5vw, 1.2rem);
   margin-bottom: 10px;
}

.thank-you-message {
   color: #666;
   font-size: clamp(0.9rem, 4vw, 1rem);
   font-style: italic;
   margin-bottom: 20px;
}

/* Contact Info Grid */
.contact-info {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 30px;
   margin: 40px auto;
   padding: 20px;
   max-width: 1200px;
}

.contact-block {
   background-color: #f9f9f9;
   border: 1px solid #ccc;
   border-radius: 15px;
   padding: 20px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
   transition: all 0.3s ease;
}

.contact-block:hover {
   background-color: #e0f7fa;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
   transform: translateY(-5px);
}

.contact-block h3 {
   margin: 0 0 10px;
   font-size: 1.1rem;
   color: #333;
}

.contact-block p {
   margin: 5px 0;
   font-size: 0.9rem;
   color: #555;
}

.email {
   font-style: italic;
   color: #007BFF;
}

/* Get in Touch Section */
.get-in-touch {
   background-color: #e0f7fa;
   padding: clamp(20px, 5vw, 40px);
   margin: 30px auto;
   border-radius: 10px;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
   border: 2px solid #007BFF;
   max-width: 1000px;
   width: 95%;
}

.get-in-touch h2 {
   margin-bottom: 30px;
   font-size: clamp(1.5rem, 6vw, 3rem);
   color: #004d4d;
   font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

/* Container Styling */
.container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 40px 20px;
   width: 95%;
}

.container h1 {
   text-align: center;
   font-size: clamp(1.8rem, 5vw, 2.5rem);
   color: #333;
   margin-bottom: 20px;
}

.container h2 {
   text-align: center;
   font-size: clamp(1.5rem, 4vw, 2rem);
   color: #333;
   margin-bottom: 30px;
}

/* Contact Cards Wrapper */
.contact-cards-wrapper {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 30px;
   margin-bottom: 40px;
   width: 100%;
}

/* Contact Card Styling */
.contact-card {
   background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
   border: 2px solid #e0e0e0;
   border-radius: 12px;
   padding: 30px 25px;
   text-align: center;
   transition: all 0.3s ease;
   box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
   cursor: pointer;
}

.contact-card:hover {
   transform: translateY(-8px);
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
   border-color: #ff0000;
   background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.contact-card .card-icon {
   font-size: 3rem;
   color: #ff0000;
   margin-bottom: 15px;
   display: flex;
   justify-content: center;
   align-items: center;
}

.contact-card h3 {
   font-size: clamp(1.2rem, 3vw, 1.5rem);
   color: #333;
   margin: 15px 0;
   font-weight: bold;
}

.contact-card p {
   font-size: clamp(0.9rem, 2vw, 1rem);
   color: #555;
   line-height: 1.6;
   margin: 10px 0;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
   background: #f9f9f9;
   padding: 30px;
   border-radius: 12px;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
   margin: 30px 0;
}

/* Form Row */
.form-row {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 20px;
   margin-bottom: 20px;
}

.form-container {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 20px;
   margin-bottom: 20px;
}

.form-group {
   display: flex;
   flex-direction: column;
}

.form-group.full-width {
   grid-column: 1 / -1;
}

.form-group label {
   margin-bottom: 8px;
   font-weight: bold;
   text-align: left;
   font-size: clamp(0.9rem, 3vw, 1.2rem);
}

.form-input,
.form-select,
.form-textarea {
   padding: 15px;
   border: 1px solid #ccc;
   border-radius: 5px;
   font-size: clamp(0.9rem, 3vw, 1.1rem);
   width: 100%;
   font-family: myFirstFont, sans-serif;
   transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
   outline: none;
   border-color: #ff0000;
   box-shadow: 0 0 8px rgba(255, 0, 0, 0.2);
}

.form-textarea {
   height: 140px;
   resize: vertical;
   min-height: 120px;
   max-height: 250px;
}

.form-submit {
   margin-top: 20px;
   background-color: #008CBA;
   color: white;
   border: none;
   border-radius: 5px;
   padding: 12px 30px;
   cursor: pointer;
   font-size: clamp(0.9rem, 3vw, 1rem);
   transition: all 0.3s ease;
   width: 100%;
   max-width: 200px;
   display: block;
   margin-left: auto;
   margin-right: auto;
   font-weight: bold;
   letter-spacing: 0.5px;
}

.form-submit:hover {
   background-color: #005f7a;
   transform: translateY(-2px);
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.form-submit:active {
   transform: translateY(0);
}

/* Popup Styles */
.popup {
   display: none;
   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   background-color: #ffffff;
   padding: 30px;
   border-radius: 10px;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
   text-align: center;
   z-index: 1000;
   max-width: 90%;
   width: 100%;
   max-width: 400px;
}

.popup h2 {
   margin: 0 0 10px;
   font-size: clamp(1.2rem, 5vw, 1.5rem);
   color: #333;
}

.popup p {
   margin: 0 0 20px;
   font-size: clamp(0.9rem, 3vw, 1rem);
   color: #555;
}

.popup .close-btn {
   padding: 10px 20px;
   background-color: #008CBA;
   color: white;
   border: none;
   border-radius: 5px;
   cursor: pointer;
   font-size: 1rem;
   transition: background-color 0.3s;
}

.popup .close-btn:hover {
   background-color: #005f7a;
}

/* Departments Grid Styling */
.departments-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 25px;
   margin: 40px 0;
   width: 100%;
}

/* Department Card Styling */
.dept-card {
   background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
   border-left: 5px solid #ff0000;
   border-radius: 8px;
   padding: 25px;
   box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
   transition: all 0.3s ease;
}

.dept-card:hover {
   transform: translateX(8px);
   box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
   background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.dept-card h3 {
   font-size: clamp(1.1rem, 3vw, 1.4rem);
   color: #333;
   margin-bottom: 15px;
   display: flex;
   align-items: center;
   gap: 10px;
}

.dept-card h3 i {
   color: #ff0000;
   font-size: 1.3rem;
}

.dept-card p {
   font-size: clamp(0.9rem, 2vw, 1rem);
   color: #666;
   margin: 8px 0;
   line-height: 1.6;
}

.dept-card p:last-child {
   margin-top: 12px;
   padding-top: 12px;
   border-top: 1px solid #e0e0e0;
}


/* Tablet Responsive (768px and below) */
@media (max-width: 768px) {
   nav {
      padding: 2% 4%;
   }

   nav img {
      width: 100px;
   }

   .nav-links {
      position: absolute;
      background: #f44336;
      height: 100vh;
      width: 200px;
      top: 0;
      right: -200px;
      text-align: left;
      z-index: 2;
      transition: 0.3s;
      flex: none;
   }

   .nav-links ul {
      padding: 30px 0;
   }

   .nav-links ul li {
      display: block;
      padding: 12px 20px;
   }

   .icon {
      display: block;
   }

   .hero-text {
      font-size: clamp(1.5rem, 6vw, 2.5rem);
   }

   .get-in-touch {
      padding: 20px;
   }

   .form-container {
      grid-template-columns: 1fr;
      gap: 15px;
   }

   .contact-info {
      grid-template-columns: 1fr;
      gap: 20px;
      padding: 10px;
   }

   .contact-cards-wrapper {
      grid-template-columns: 1fr;
      gap: 20px;
   }

   .departments-grid {
      grid-template-columns: 1fr;
      gap: 20px;
   }

   .form-row {
      grid-template-columns: 1fr;
      gap: 15px;
   }
}

/* Mobile Responsive (480px and below) */
@media (max-width: 480px) {
   nav {
      padding: 2% 3%;
   }

   nav img {
      width: 80px;
   }

   .hero-section {
      padding: 30px 15px;
   }

   .hero-text {
      font-size: clamp(1.2rem, 5vw, 2rem);
   }

   .info-section {
      margin: 15px;
      padding: 15px;
   }

   .college-info,
   .thank-you-message {
      font-size: clamp(0.85rem, 4vw, 1rem);
   }

   .get-in-touch {
      padding: 15px;
      margin: 15px auto;
      border-radius: 8px;
   }

   .get-in-touch h2 {
      font-size: clamp(1.2rem, 5vw, 1.8rem);
      margin-bottom: 20px;
   }

   .form-group label {
      font-size: clamp(0.85rem, 3vw, 1rem);
   }

   .form-input,
   .form-select,
   .form-textarea {
      padding: 12px;
      font-size: 16px;
   }

   .form-textarea {
      height: 120px;
   }

   .contact-block {
      border-radius: 10px;
      padding: 15px;
   }

   .contact-block h3 {
      font-size: 1rem;
   }

   .contact-block p {
      font-size: 0.85rem;
   }

   .popup {
      padding: 20px;
   }

   .popup h2 {
      font-size: 1.2rem;
   }

   .popup p {
      font-size: 0.9rem;
   }

   .contact-card {
      padding: 20px 15px;
   }

   .contact-card .card-icon {
      font-size: 2.5rem;
      margin-bottom: 10px;
   }

   .contact-card h3 {
      font-size: 1.1rem;
   }

   .contact-card p {
      font-size: 0.9rem;
   }

   .dept-card {
      padding: 20px;
   }

   .dept-card h3 {
      font-size: 1.1rem;
      margin-bottom: 12px;
   }

   .dept-card p {
      font-size: 0.9rem;
   }

   .contact-form-wrapper {
      padding: 20px;
   }

   .form-row {
      grid-template-columns: 1fr;
      gap: 12px;
   }

   .container {
      padding: 30px 15px;
   }
}
