/*---------------------------------------
  CUSTOM PROPERTIES ( VARIABLES )             
-----------------------------------------*/
:root {
  --white-color:                  #ffffff;
  --primary-color:                #5d52ba;
  --secondary-color:              #0dcaf0;
  --section-bg-color:             #f0f8ff;
  --custom-btn-bg-color:          #f65129;
  --social-icon-link-bg-color:    #7f73eb;
  --dark-color:                   #000000;
  --p-color:                      #717275;
  --border-color:                 #e9eaeb;

  --body-font-family:             'League Spartan', sans-serif;

  --h1-font-size:                 62px;
  --h2-font-size:                 48px;
  --h3-font-size:                 36px;
  --h4-font-size:                 32px;
  --h5-font-size:                 24px;
  --h6-font-size:                 22px;
  --p-font-size:                  20px;
  --btn-font-size:                16px;
  --copyright-font-size:          14px;

  --border-radius-large:          100px;
  --border-radius-medium:         30px;
  --border-radius-small:          10px;

  --font-weight-thin:             100;
  --font-weight-light:            300;
  --font-weight-normal:           400;
  --font-weight-semibold:         600;
  --font-weight-bold:             700;
}

body {
  background-color: var(--white-color);
  font-family: var(--body-font-family); 
}


/*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.5px;
}

h1,
h2 {
  letter-spacing: -1.5px;
}

h1 {
  font-size: var(--h1-font-size);
  line-height: normal;
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--h2-font-size);
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
}

a, 
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--custom-btn-bg-color);
}

b,
strong {
  font-weight: var(--font-weight-bold);
}


/*---------------------------------------
  NAVIGATION              
-----------------------------------------*/
/* Navbar Styling */
.navbar {
  background: linear-gradient(120deg, #3a8bd4, #8dc2f2);
  padding: 1.5rem 0;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo and Avatar Section */
.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Avatar Wrapping */
.avatar-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  margin-right: 15px;
  border-radius: 50%;
  overflow: hidden;
}

/* Circular Avatar with Animation */
.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 50%;
}

.navbar-brand:hover .avatar {
  transform: scale(1.1); /* Enlarging avatar on hover */
}

/* Brand Text Styles */
.brand-text {
  color: white;
  font-size: 1.2rem;
}

.brand-text small {
  display: block;
  font-size: 0.9rem;
  color: #f8f9fa;
}

/* Navbar Links */
.navbar-nav .nav-item .nav-link {
  color: #f8f9fa;
  padding: 12px 18px;
  transition: all 0.3s ease;
  font-weight: 500;
}

/* Active and Hover Link States */
.navbar-nav .nav-item .nav-link.active,
.navbar-nav .nav-item .nav-link:hover {
  background: rgba(255, 255, 255, 0.2); /* Translucent background for hover and active */
  border-radius: 30px; /* Smooth rounded corners */
  color: #ecf0f1; /* Light grayish color for better contrast on blue tones */
  transition: background 0.3s, color 0.3s ease-in-out; /* Smooth transitions for background and text */
}

/* Optional - Focus State */
.navbar-nav .nav-item .nav-link:focus {
  background: rgba(255, 255, 255, 0.3); /* Slightly stronger background for focus */
  color: #ecf0f1; /* Consistent light accent color */
}


/* Button Styling */
.nav-btn {
  background-color: transparent;
  border: 2px solid #fffbfc;
  color: #000000;
  font-weight: 600;
  border-radius: 30px;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background-color: #1abc9c;
  color: white;
}

/* Mobile Navigation Styles */
@media (max-width: 992px) {
  .navbar-toggler {
      border: none;
  }
  
  .navbar-toggler-icon {
      background-color: #000000;
  }
  
  .navbar-collapse {
      flex-grow: 0;
  }
  
  .navbar-nav {
      margin-top: 15px;
  }
}

/* Avatar Border Animation */
@keyframes avatar-border {
  0%, 100% {
      box-shadow: 0 0 0px rgba(255, 255, 255, 0.4);
  }
  50% {
      box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  }
}

.avatar-wrapper {
  animation: avatar-border 2s ease-in-out infinite;
}


/*---------------------------------------
  HERO              
-----------------------------------------*/
/* Hero Section Styling */
.hero-section {
  background: linear-gradient(120deg, #3a8bd4, #8dc2f2);
  color: white;
  padding: 80px 0;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-section::before {
  content: '';
  background: rgba(0, 0, 0, 0.4);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

/* Hero Heading and Subheading */
.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  animation: fade-in-up 1.5s ease-out;
}

.hero-name {
  font-size: 3rem;
  font-weight: 600;
  color: #f9f9f9;
  animation: fade-in-up 1.8s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #fffbfb;
  font-weight: 400;
  margin-bottom: 30px;
  animation: fade-in-up 2s ease-out;
}

/* Call-to-Action Buttons */
.cta-buttons .btn {
  margin-right: 15px;
  padding: 12px 30px;
  font-weight: 500;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
  background: #1abc9c;
  border: 2px solid #1abc9c;
}

.cta-buttons .btn-outline-light {
  border-color: white;
  color: white;
  background: transparent;
}

/* Hover Effect for CTA Buttons */
.cta-buttons .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Hero Image Styling */
.hero-image img {
  max-width: 70%;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease;
  filter: grayscale(100%) contrast(150%) brightness(100%);
}

.hero-image img:hover {
  transform: scale(1.05);
  filter: grayscale(0) contrast(120%) brightness(105%);
}

/* Fade-in-Up Animation */
@keyframes fade-in-up {
  0% {
      opacity: 0;
      transform: translateY(30px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-section {
      text-align: center;
      flex-direction: column; /* Stack text and image vertically */
  }

  .hero-image {
      display: block; /* Show the image on mobile */
      margin-top: 20px; /* Adjust top margin */
      max-width: 90%; /* Make sure it doesn't take too much space */
  }

  .hero-image img {
      max-width: 150px; /* Limit size of the image */
      margin-bottom: 20px; /* Ensure some space between the image and the buttons */
  }

  .cta-buttons .btn {
      display: block;
      margin: 10px 0;
  }

  .hero-title {
      font-size: 2rem;
  }

  .hero-name {
      font-size: 2.5rem;
  }

  .hero-subtitle {
      font-size: 1rem;
  }
}


/*---------------------------------------
  ABOUT             
-----------------------------------------*/
/* Global Animations */
@keyframes fade-in {
  0% {
      opacity: 0;
      transform: translateY(20px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes slide-up {
  0% {
      opacity: 0;
      transform: translateY(50px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes scale-in {
  0% {
      opacity: 0;
      transform: scale(0.5);
  }
  100% {
      opacity: 1;
      transform: scale(1);
  }
}

/* About Us Section Styling */
.about-us {
  background: #f7f7f7;
  color: #333;
  padding: 50px 0;
}

/* Section Title Animation */
.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #4a90e2;
  margin-bottom: 20px;
  text-transform: uppercase;
  animation: fade-in 1s ease-out;
}

/* About Me Intro with animation */
.intro-text {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  animation: fade-in 1.2s ease-out;
}

/* Image Styling with animation */
.about-image img {
  width: 100%;
  max-width: 200px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease;
  animation: scale-in 1.5s ease-out;
}

.about-image img:hover {
  transform: scale(1.05);
}

/* Skills Section with animation */
.skills-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #4a90e2;
  margin-bottom: 15px;
  text-transform: uppercase;
  animation: slide-up 1.5s ease-out;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  animation: slide-up 1.5s ease-out;
}

.skill-item {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  animation: fade-in 1s ease-out;
}

.skill-item:hover {
  transform: translateY(-5px);
}

.skill-item h4 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
}

.skill-item p {
  font-size: 1rem;
  color: #777;
}

/* Contact Section with animation */
.contact-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #4a90e2;
  margin-bottom: 15px;
  text-transform: uppercase;
  animation: slide-up 1.5s ease-out;
}

.contact-details {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  animation: fade-in 1s ease-out;
}

.contact-details p {
  font-size: 1.1rem;
  color: #555;
}

/* Mobile-Friendly Animations */
@media (max-width: 768px) {
  .about-us {
      padding: 40px 0;
  }

  .section-title {
      font-size: 2rem;
  }

  .intro-text {
      font-size: 1.1rem;
  }

  .skills-list {
      display: block;
  }

  .skill-item {
      margin-bottom: 20px;
  }

  .about-image img {
      max-width: 150px;
  }
}



/*---------------------------------------
  EDUCATION              
-----------------------------------------*/
/* Education Section Styling */
.education-section {
  padding: 70px 0;
  background: linear-gradient(120deg, #3a8bd4, #8dc2f2);
  color: #ffffff;
}

.education-list {
  padding-right: 30px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4a90e2;
  margin-bottom: 20px;
}

.section-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 20px;
}

.education-items {
  list-style-type: none;
  padding-left: 0;
}

.education-item {
  margin-bottom: 20px;
}

.degree-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

.degree-details {
  font-size: 1rem;
  color: #000000;
}

.specialisation {
  font-size: 1rem;
  font-weight: 400;
  color: #000000;
}

.address, .matric-date {
  font-size: 1rem;
  color: #000000;
}

/* Graduation Media */
.graduation-media {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.graduation-gallery {
  margin-top: 20px;
}

.graduation-video {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.graduation-image {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .education-section {
    padding: 50px 15px;
  }

  .section-title {
    font-size: 2rem;
  }

  .degree-title {
    font-size: 1.1rem;
  }

  .degree-details {
    font-size: 0.9rem;
  }

  .specialisation, .address, .matric-date {
    font-size: 0.9rem;
  }
}


/*---------------------------------------
  HEADER               
-----------------------------------------*/
/* Header Styling */
.site-header {
  background: linear-gradient(120deg, #3a8bd4, #8dc2f2);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  padding: 30px 0;
  color: #fff;
}

/* Gradient Background Animation */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Personal Branding */
.branding .name {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.branding .designation {
  margin: 5px 0 0;
  font-size: 1rem;
  font-style: italic;
  color: #dfe6e9;
}

/* Profile Picture */
.profile-card {
  background: #fff;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-picture {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

/* Social Icons */
.social-icons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 10px;
}

.social-icons .social-link {
  color: #dfe6e9;
  font-size: 1.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons .social-link:hover {
  color: #f39c12; /* Highlighted icon color */
  transform: scale(1.2);
}

/* Responsive design for small screens */
@media (max-width: 768px) {
  .site-header {
    padding: 20px 0;
  }
  
  .branding .name {
    font-size: 1.5rem;
  }

  .branding .designation {
    font-size: 0.9rem;
  }
  
  .profile-card {
    width: 100px;
    height: 100px;
  }

  .profile-picture {
    width: 80px;
    height: 80px;
  }
}


/*---------------------------------------
  EXPERIENCE            
-----------------------------------------*/
.experience-section {
  background: linear-gradient(135deg, #e0f7fa, #e1bee7); /* Gradient background */
  padding: 70px 20px;
  font-family: 'Arial', sans-serif;
}

.section-title {
  font-size: 2.5rem;
  color: #1d3557; /* Rich blue for titles */
  text-align: center;
  margin-bottom: 60px;
  font-weight: bold;
}

.experience-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.experience-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  flex-basis: 320px;
  text-align: center;
  transition: all 0.3s ease-in-out;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.experience-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.experience-icon {
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.experience-icon i {
  font-size: 1.5rem;
  color: #00796b; /* Vibrant teal for icons */
}

.experience-icon p,
.experience-icon h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #37474f;
}

.year p {
  font-weight: bold;
  color: #e91e63; /* Highlighted pink for years */
}

.school h3 {
  font-size: 1.3rem;
  color: #1e88e5;
}

.duration p,
.subjects p,
.grade p {
  color: #6d4c41; /* Neutral brown for text */
}

/* Responsive Design */
@media (max-width: 768px) {
  .experience-card {
    flex-basis: 100%;
  }

  .experience-icon i {
    font-size: 1.3rem;
  }
}

/*---------------------------------------
  CONTACT               
-----------------------------------------*/
/* Contact Section Styling */
.contact-section {
  background: #f0f4f8;
  color: #343a40;
  padding: 60px 0;
  font-family: 'Segoe UI', sans-serif;
}

.section-title {
  font-size: 2.5rem;
  color: #2d6187;
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.contact-details {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.contact-details h3 {
  color: #2d6187;
  margin-bottom: 15px;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.contact-info i {
  color: #2d6187;
  margin-right: 10px;
  font-size: 1.2rem;
}

.contact-form {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 15px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

.btn-submit {
  display: inline-block;
  background-color: #2d6187;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background-color: #1d4560;
}

/* Animations (using AOS library) */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.6s;
  transition-timing-function: ease-in-out;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .contact-grid {
      grid-template-columns: 1fr;
  }
}



/*---------------------------------------
  SERVICES             
-----------------------------------------*/
/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

.services {
  background: linear-gradient(135deg, #f0f4f8, #d4e3f0); /* Soft gradient background */
  overflow: hidden;
}

.section-title {
  font-size: 2.5rem;
  color: #333;
  font-weight: bold;
  animation: fade-in-down 1.2s ease-in-out;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-top: 0.5rem;
  animation: fade-in-down 1.4s ease-in-out;
}

/* Service Card Styles */
.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  transform: translateY(30px);
  opacity: 0;
}

.service-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-10px);
}

.icon-container {
  margin-bottom: 1.5rem;
  animation: pop-in 1s ease-in-out;
}

.icon-container i {
  font-size: 3rem;
  color: #3498db;
  transition: color 0.3s;
}

.service-card:hover .icon-container i {
  color: #2980b9;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.card-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* Animation Keyframes */
@keyframes fade-in-down {
  0% {
      opacity: 0;
      transform: translateY(-20px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes pop-in {
  0% {
      opacity: 0;
      transform: scale(0.9);
  }
  100% {
      opacity: 1;
      transform: scale(1);
  }
}

/* Apply Animation */
.animate {
  animation: fade-in-up 1.5s ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes fade-in-up {
  0% {
      opacity: 0;
      transform: translateY(30px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .service-card {
      padding: 1.5rem;
  }

  .icon-container i {
      font-size: 2.5rem;
  }

  .card-title {
      font-size: 1.3rem;
  }

  .card-description {
      font-size: 0.9rem;
  }
}




/*---------------------------------------
  SITE FOOTER              
-----------------------------------------*/
.footer {
  background-color: #333;
  color: #fff;
  padding: 50px 0;
  font-size: 0.9rem;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #4a90e2;
  margin-bottom: 20px;
}

.footer-nav, .footer-highlights, .footer-contact {
  list-style: none;
  padding-left: 0;
}

.footer-nav li, .footer-highlights li, .footer-contact li {
  margin-bottom: 10px;
}

.footer-nav li a, .footer-contact li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav li a:hover, .footer-contact li a:hover {
  color: #4a90e2;
}

.footer-highlights li {
  font-size: 1rem;
  color: #ccc;
}

.footer-copyright {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #ccc;
}

.footer-copyright a {
  color: #4a90e2;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-copyright a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 0;
  }

  .footer-title {
    font-size: 1.1rem;
  }

  .footer-nav, .footer-highlights, .footer-contact {
    text-align: center;
  }

  .footer-nav li, .footer-highlights li, .footer-contact li {
    margin-bottom: 8px;
  }

  .footer-copyright {
    font-size: 0.9rem;
  }
}
