/* University of Technology Jamaica - Simple CSS */
/*Homepage Done By Khi Lewis, 
  openning overlay/intro and search designed by Joievelle Leslie- 2001095
 

/*INTRO ------------Logo--J.leslie*/
#loadingd {
						position: fixed;   /* ---------Overlay main web contents------- */
						top: 0;
						left: 0;
						width: 100vw;
						height: 100vh;
						background-color: black; 
						display: flex;
						justify-content: center;
						align-items: center;
						z-index: 9999; /* Keep it on top */
						
						animation: fadeOut 3s forwards 2s;     /* a 2second delay before fading */
					}

					/* ----------------------Make skull gif responsive----------------------------- */
					#loadingd img {
						max-width: 100%;
						max-height: 100%;
					}

					/* -------------------------Fade-out animation for skull---------------------------- */
					@keyframes fadeOut {
						from { opacity: 1; }
						to { opacity: 0; visibility: hidden; }
					}



 
/* Base Styles and Normalize */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1e3a8a;  /* Deep blue */
  --secondary-color: #0a5c36; /* Dark green */
  --accent-color: #f59e0b;    /* Amber */
  --text-color: #333333;
  --text-light: #f8fafc;
  --background-color: #ffffff;
  --background-alt: #f1f5f9;
  --border-color: #e2e8f0;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  border-style: none;
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5em;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  background-color: #ddd;
  border-radius: 5px;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.header {
  background-color: #4c4949;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 100px;
  height: 100px;
  margin-right: 10px;
}

.logo-text {
 color: white;
 font-family: 'MIXONE';
  font-size: 1.9rem;
  font-weight: 700;
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: white;
 font-family: 'MIXONE';
 font-size:18pt;
 text-align:center;
 text-decoration: none;
  color: white;
  font-weight: 500;
  padding: 8px 12px;
  transition: 0.2s;
}

.nav-menu a.active {
  color: white;
 font-family: 'MIXONE';
 font-size:18pt;
}

@font-face {
	font-family: 'MIXONE';
	src: url('Assets/Fonts/MIXONE.ttf') format('truetype');
}	

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 80px 0;
  margin-bottom: 40px;
}

.hero h1 {
  color: var(--text-light);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.btn:hover {
  background-color: var(--secondary-color);
  text-decoration: none;
  color: var(--accent-color);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: var(--background-color);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-image {
  height: 150px;
  background-color: var(--background-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image i {
  font-size: 4rem;
  color: var(--primary-color);
}

.card-content {
  padding: 20px;
}

/* Features */
.features {
  padding: 60px 0;
  background-color: var(--background-alt);
  margin: 40px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature {
  text-align: center;
  padding: 20px;
}

.feature i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

/* Testimonials */
.testimonials {
  padding: 60px 0;
  background-color: var(--background-alt);
  text-align: center;
  margin: 40px 0;
}

.testimonial {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-position {
  font-size: 0.9rem;
  color: #666;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 60px 0;
  background-color: #60423F;
  color: var(--text-light);
  margin: 40px 0;
}

.cta-section h2 {
  color: var(--text-light);
  margin-bottom: 20px;
}

.btn-light {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.btn-light:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color:#4c4949;
  color: var(--text-light);
  padding: 40px 0 20px;
  margin-top: auto;
}
.footer a{
  text-decoration: none;
  font-family: 'MIXONE';
  color: white;
  font-size:18pt
  font-weight: 500;
  padding: 8px 12px;
  transition: 0.2s;
}		

.footer a:hover {
  background-color: #ddd;
  border-radius: 5px;
}

@font-face {
	font-family: 'MIXONE';
	src: url('Assets/Fonts/MIXONE.ttf') format('truetype');
}	
.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}


.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}


		



/* Responsive Styles */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  .nav-menu {
    width: 100%;
    justify-content: center;
  }
  
  .nav-menu li {
    margin: 0 10px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-menu li {
    margin: 5px 0;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    gap: 20px;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }
}