/* -------------Page Loader-----------*/
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

.loader-content {
  text-align: center;
  max-width: 300px;
}

.loader-logo img {
  width: 80px;
  height: 80px;
  animation: pulse 2s infinite;
}

.loader-bar {
  width: 100%;
  height: 4px;
  background: #333;
  margin: 20px 0;
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: #e0a1ff;
  transition: width 0.3s ease;
}

.loader-text {
  color: #aaa;
  font-family: 'Futura', sans-serif;
  margin-top: 10px;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ------------------------Navbar container-----------------------------*/
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
}


/* Logo */
.navbar .logo {
  font-size: 1.4rem;
  color: #EFC887;
  font-weight: bold;
  letter-spacing: 1px;
}


/* Hamburger Icon */
.hamburger {
  width: 28px;
  height: 21px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #EFC887;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Navigation Links */
.nav-links {
  position: fixed;
  top: 60px;
  right: 20px;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(239, 200, 135, 0.3);
  box-shadow: 0 0 20px rgba(230, 46, 189, 0.3);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  padding: 20px;
  width: 200px;
  text-align: right;
  transition: opacity 0.3s ease;
}

.nav-links a {
  color: #EFC887;
  text-decoration: none;
  font-size: 1rem;
  margin: 10px 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  color: #e62ebd;
  transform: translateX(-5px);
}

/* Active (when menu is open) */
.nav-links.active {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hamburger toggle animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Desktop View */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex !important;
    flex-direction: row;
    background: none;
    box-shadow: none;
    border: none;
    width: auto;
    padding: 0;
  }

  .nav-links a {
    margin: 0 15px;
  }
}


/* ------------------------Body-----------------------------*/


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
  /* Reset and base styles */
:root {
    --primary-color: #8500a1;
    --text-color: #ffffff;
    --bg-color: #150021;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
   font-family: 'Cinzel', serif; /* Added Cinzel font */
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header styles */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  padding: 10px 25px;
  z-index: 1000;
  display: flex;
  justify-content: center;
}



.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}


@media (max-width: 480px) {
  .about-me-top {
    margin-top: 60px;
  }
  
  .text-container h1, .title {
    font-size: 1.8rem;
  }
  
  .description, .text-container p {
    font-size: 1rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* Animation for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section, .about-me-top, #my-qualifications {
  animation: fadeInUp 0.8s ease-out forwards;
}

.section:nth-child(2) {
  animation-delay: 0.2s;
}

.section:nth-child(3) {
  animation-delay: 0.4s;
}

#my-qualifications {
  animation-delay: 0.6s;
}


/* ------------UNIVERSAL GRADIENT UNDERLINE--------- */
.gradient-underline {
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
  max-width: 95vw;
}

.gradient-underline::after {

  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #8500a1, transparent);
}

/* Optional: Adjust spacing for heading tags using the underline */
.gradient-underline + * {
  margin-top: 1.5rem;
}


/* ------------------------Footer-----------------------------*/

.site-footer {

  color: white;
  padding: 40px 20px;
  font-family: 'Futura', sans-serif;
}
/* Mobile-only footer centering override */
@media (max-width: 768px) {
  .footer-container {
    align-items: center; /* override flex-start */
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-column {
    min-width: unset; /* allow columns to shrink */
    width: 100%;      /* stack and center each column */
    text-align: center;
    margin-bottom: 1rem;
  }

  .social-media {
    justify-content: center;
  }
}

.footer-column {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-column h3 {
  color: #EFC887; /* Pinkish-violet for headers */
  margin-bottom: 10px;
  font-family: 'Cinzel', serif;
  font-size: 18px;
}

.footer-column a {
  color: white;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #e62ebd;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 5px;
}

@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}



.social-media {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.social-media a {
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: inline-block;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
      margin: 0 8px;

}

.social-media a:hover {
    color: #8500a1;
    transform: translateY(-3px);
    background-color: rgba(133, 0, 161, 0.1);
}

.scroll-to-top {
    background-color: #8500a1;
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scroll-to-top:hover {
    background-color: #6a006a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(133, 0, 161, 0.3);
}

.copyright {
    margin-top: 2rem;
    font-family: 'Futura', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    footer {
        padding: 2rem 1rem;
    }
    
    .footer-nav {
        gap: 1rem;
    }
    
    .social-media {
        gap: 1rem;
    }
    
    .social-media a {
        font-size: 1.3rem;
        width: 36px;
        height: 36px;
    }
    
    .scroll-to-top {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-nav a {
        font-size: 0.9rem;
    }
}


@media (max-width: 600px) {
  .gradient-underline::after {
    width: 80vw;
  }
}

/* 3. Footer: Stack and Center */
.site-footer .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
}
.site-footer .footer-column {
  min-width: 180px;
  flex: 1 1 220px;
  text-align: center;
  margin-bottom: 1.5rem;
}
.site-footer .footer-column h3,
.site-footer .footer-column p,
.site-footer .footer-column ul {
  text-align: center;
}
.site-footer .social-media {
  justify-content: center;
  display: flex;
  gap: 1rem;
}
.site-footer .scroll-to-top {
  display: block;
  margin: 1.5rem auto 0 auto;
}

@media (max-width: 700px) {
  .site-footer .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 0.5rem;
  }
  .site-footer .footer-column {
    min-width: unset;
    flex: unset;
    width: 100%;
    margin-bottom: 1rem;
  }
}

