@charset "UTF-8";

/* Base Variables */
:root {
  --primary-color: #1d9c03;  /* Kampala University Green */
  --primary-dark: #0f5c02;   /* Darker Green */
  --primary-light: #2bc20e;  /* Lighter Green */
  --accent-color: #ffd700;   /* Gold Accent */
  --secondary-color: #2c3e50; /* Deep Blue */
  --tertiary-color: #e74c3c;  /* Vibrant Red */
  --text-color: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a1628;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --modal-bg: #ffffff;
  --modal-text: #333333;
  --modal-input-bg: #ffffff;
  --modal-input-border: #dee2e6;
  --section-spacing: 3rem;
}

/* Reset and Base Styles */
* {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: #f8f9fa;
}

/* Modern Header */
.fixed-top {
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  -webkit-box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
          box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.logo-section img {
  max-height: 60px;
  width: auto;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.logo-section img:hover {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}

/* Navigation */
.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--text-color);
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(29, 156, 3, 0.9) 0%, rgba(15, 92, 2, 0.95) 100%);
  z-index: 1;
}

.hero-gradient .container {
  position: relative;
  z-index: 2;
}

.hero-gradient h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-gradient p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Modern Buttons */
.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-color);
  border: none;
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 4px 15px rgba(29, 156, 3, 0.3);
          box-shadow: 0 4px 15px rgba(29, 156, 3, 0.3);
}

.btn-light {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: var(--primary-dark);
}

.btn-light:hover {
  background: #ffffff;
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Feature Cards */
.feature-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  -webkit-box-shadow: var(--card-shadow);
          box-shadow: var(--card-shadow);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: -webkit-gradient(linear, left top, right top, from(var(--primary-color)), to(var(--primary-light)));
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  -webkit-transform: translateY(-5px);
          transform: translateY(-5px);
  -webkit-box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
          box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card .card-body {
  padding: 1.5rem;
}

/* Feature Icons */
.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  font-size: 2.5rem;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.feature-icon-small {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: white;
  font-size: 1.5rem;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.feature-icon-large {
  width: 100px;
  height: 100px;
  border-radius: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-transform: rotate(-5deg);
          transform: rotate(-5deg);
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.tech-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: white;
  font-size: 2rem;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-transform: rotate(-5deg);
          transform: rotate(-5deg);
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

/* Tech Badge */
.tech-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Modern Modal */
.modal-content {
  background: var(--modal-bg);
  border: none;
  border-radius: 20px;
  -webkit-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
          box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  border-bottom: none;
  padding: 1.5rem;
  border-radius: 20px 20px 0 0;
}

.modal-body {
  background: var(--modal-bg);
  color: var(--modal-text);
  padding: 1.5rem;
  border-radius: 0 0 20px 20px;
}

.modal-title {
  color: var(--text-color);
  font-weight: 600;
}

/* Form Elements */
.modal .form-label {
  color: var(--modal-text);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.modal .form-control {
  background: var(--modal-input-bg);
  border: 1px solid var(--modal-input-border);
  color: var(--modal-text);
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.modal .form-control:focus {
  border-color: var(--primary-color);
  -webkit-box-shadow: 0 0 0 3px rgba(29, 156, 3, 0.2);
          box-shadow: 0 0 0 3px rgba(29, 156, 3, 0.2);
}

.modal .input-group-text {
  background: var(--modal-input-bg);
  border: 1px solid var(--modal-input-border);
  color: var(--primary-color);
  border-radius: 10px 0 0 10px;
}

/* Password Toggle Button */
.password-toggle-btn {
  background: var(--modal-input-bg);
  border: 1px solid var(--modal-input-border);
  color: var(--primary-color);
  padding: 0.8rem 1.2rem;
  border-radius: 0 10px 10px 0;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-width: 45px;
}

.password-toggle-btn:hover {
  background: rgba(29, 156, 3, 0.1);
  border-color: var(--primary-color);
}

/* Button Styling */
.modal .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border-radius: 10px;
  color: white;
}

.modal .btn-primary:hover {
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 4px 15px rgba(29, 156, 3, 0.3);
          box-shadow: 0 4px 15px rgba(29, 156, 3, 0.3);
}

.modal .btn-secondary {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: var(--modal-text);
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.modal .btn-secondary:hover {
  background: #e9ecef;
}

/* Modal Icons */
.modal-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-gradient h1 {
    font-size: 2.5rem;
  }
  
  .hero-gradient {
    padding: 100px 0 60px;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
  }
  
  .modal-dialog {
    margin: 1rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Animations */
@-webkit-keyframes float {
  0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  50% { -webkit-transform: translateY(-20px); transform: translateY(-20px); }
}
@keyframes float {
  0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  50% { -webkit-transform: translateY(-20px); transform: translateY(-20px); }
}

.floating-element {
  -webkit-animation: float 6s ease-in-out infinite;
          animation: float 6s ease-in-out infinite;
}

/* Loading Optimization */
img {
  max-width: 100%;
  height: auto;
  will-change: transform;
}

/* Vibrant Section Backgrounds */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
}

.bg-gradient-tertiary {
  background: linear-gradient(135deg, var(--tertiary-color) 0%, #c0392b 100%);
}

/* Main Feature Styles */
.main-feature {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(29, 156, 3, 0.05) 0%, rgba(15, 92, 2, 0.1) 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.main-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231d9c03' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.main-feature:hover .feature-icon-large {
  -webkit-transform: rotate(0deg);
          transform: rotate(0deg);
}

.feature-stats {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.stat-item:hover {
  -webkit-transform: translateY(-5px);
          transform: translateY(-5px);
}

/* Feature List Styles */
.feature-list {
  padding: 2rem;
}

.feature-item {
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 1rem;
}

.feature-item:hover {
  -webkit-transform: translateX(10px);
          transform: translateX(10px);
  -webkit-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
          box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-item .feature-icon-small {
  margin-right: 0;
}

/* Tech Features */
.tech-feature {
  padding: 2rem;
  background: white;
  border-radius: 20px;
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: -webkit-gradient(linear, left top, right top, from(var(--primary-color)), to(var(--primary-light)));
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.tech-feature:hover {
  -webkit-transform: translateY(-5px);
          transform: translateY(-5px);
  -webkit-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
          box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tech-feature:hover::before {
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .main-feature {
    margin-bottom: 3rem;
  }
  
  .feature-stats {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
  
  .stat-item {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 calc(50% - 1rem);
            flex: 1 1 calc(50% - 1rem);
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
  
  .tech-feature {
    margin-bottom: 2rem;
  }
}

/* Section Spacing */
section {
  padding: var(--section-spacing) 0;
}

/* Student Life Section */
.student-life-content {
  padding-right: 2rem;
}

.student-life-image {
  position: relative;
  padding: 1rem;
}

.student-life-image img {
  border-radius: 20px;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.student-life-image:hover img {
  -webkit-transform: scale(1.02);
          transform: scale(1.02);
}

.floating-badge {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
  -webkit-box-shadow: 0 4px 15px rgba(29, 156, 3, 0.2);
          box-shadow: 0 4px 15px rgba(29, 156, 3, 0.2);
  -webkit-animation: float 3s ease-in-out infinite;
          animation: float 3s ease-in-out infinite;
}

.floating-badge i {
  color: var(--accent-color);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  :root {
    --section-spacing: 2.5rem;
  }

  .student-life-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .student-life-image {
    padding: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 2rem;
  }

  .floating-badge {
    top: 1rem;
    right: 1rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Adjust existing section spacing */
.hero-gradient {
  padding: 100px 0 60px;
}

.text-center.mb-5 {
  margin-bottom: 2rem !important;
}

.feature-card .card-body {
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

/* Responsive Icon Sizes */
@media (max-width: 991px) {
  .feature-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }

  .feature-icon-small {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .feature-icon-large {
    width: 85px;
    height: 85px;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .tech-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .modal-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .feature-icon-small {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .feature-icon-large {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
  }

  .tech-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .modal-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  /* Adjust feature items for better mobile layout */
  .feature-item {
    padding: 1rem;
  }

  .feature-item h4 {
    font-size: 1rem;
  }

  .feature-item p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .feature-icon-small {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  .feature-icon-large {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .tech-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .modal-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}

/* Adjust icon spacing in feature items */
.feature-item {
  gap: 0.75rem;
}

.feature-item .feature-icon-small {
  margin-right: 0;
}