@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color:#ada4f7 ;
  --primary-color-dark: #c58cd6;
  --text-dark: #020617;
  --text-light: #1e293b;
  --extra-light: #f3f4f6;
  --white: #ffffff;
  /* --max-width: 1200px; */
}


html, body {
     overflow-x: hidden;  
}

/* Global Styles */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  }
 
  h1, h2 {
    margin: 0;
  }
  section{
    padding: 50px 0;
  }
  h1{
    line-height: 1.4; 
    letter-spacing: 1px; 
    text-transform: capitalize;
    color: #333; 
    margin: 0;
    padding: 20px 0;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.logo {
  height: 50px;
  display: block; /* Show the first logo by default */
}



.nav-links {
  display: none; /* Default hidden */
}

.nav-links.show {
  display: flex; /* Show when toggled */
}
/* Additional media query for mobile responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem; /* Adjusts the font size for smaller screens */
        letter-spacing: 0.5px; /* Slightly reduces letter spacing on mobile */
        padding: 15px 0; /* Adjusts padding for smaller screens */
    }
}
p {
  line-height: 1.8; /* Controls the spacing between lines for readability */
  letter-spacing: 0.5px; /* Adds slight spacing between each letter */
  color: #666; /* Light gray color for less contrast but still readable */
  margin-left: auto;
  margin-right: auto;
  padding: 10px 0; /* Adds spacing around the text */
}

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
  p {
      font-size: 1rem; /* Adjusts the font size for smaller screens */
      line-height: 1.6; /* Slightly reduces line height for better fit on smaller screens */
      letter-spacing: 0.3px; /* Adjust letter-spacing for mobile */
      padding: 8px 0; /* Adjusts padding for mobile */
  }
}

  
  /* Navbar */
.navbar {
    display: flex;
    align-items: center;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
  }
  
  .nav-left,
  .nav-right {
    display: flex;
    align-items: center;
    height: 100%;
  }
  
  /* Light (Left) Side */
  .nav-left {
    /* flex: 1; */
    background: rgb(185, 180, 231); /* Light color */
    padding: 0 20px;
    width: 51.3%;
  }
  
 
  
  /* Dark (Right) Side */
  .navbar {
    display: flex;
    align-items: center;
    height: 70px;
    position: fixed; /* Fix the navbar */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent; /* Initially transparent */
    transition: background 0.4s ease-in-out;
}

/* Change background when scrolled */
.navbar.scrolled {
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Adds a shadow for better visibility */
}

  .nav-right {
    justify-content: flex-end;
    background: rgb(203, 194, 219);/* Dark color */
    padding: 0 20px;
    width: 50%;
  }
  
  .nav-links {
    display: flex;
    list-style: none;
  }
  
  .navbar.scrolled .nav-left,
.navbar.scrolled .nav-right {
    background: white;
}
  
  .nav-links li {
    margin-left: 30px;
  }
  
  
/* Remove the previous hover effect */
.nav-links a {
  position: relative;
  text-decoration: none;
  color: #333; /* Default text color */
  font-size: 1rem;
  padding-bottom: 5px; /* Space for the underline */
  transition: color 0.3s ease-in-out;
}

/* Super underline effect */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px; /* Thickness of the underline */
  background: #5c5959; /* Color of the underline */
  transform: scaleX(0); /* Initially hidden */
  transform-origin: right;
  transition: transform 0.5s ease-in-out;
}

/* Hover effect - underline expands */
.nav-links a:hover::after {
  transform: scaleX(1); /* Expand underline */
  transform-origin: left;
}


  /* Hamburger Menu */
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
  }
  
  .hamburger .bar {
    background: white;
    height: 3px;
    width: 25px;
    margin: 4px 0;
  }
  .navbar.scrolled .hamburger .bar{
    background-color: #333;
  }
  /* Close button */
  .close-btn {
    display: none;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
}
  
  /* Mobile Styles */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      background: #fff;
      position: absolute;
      top: 70px;
      right: 0;
      width: 100%;
      text-align: center;
    }
  
    .nav-links li {
      margin: 10px 0;
    }
  
    .hamburger {
      display: flex;
    }
  
    .nav-links.show {
      display: flex;
    }
  }
  
  
  
  /* Hero Section */
  .hero{
    height: 100vh;
    width: 100vw;
    display: flex;
    padding: 70px 0 0;
  }
  .dark{
    width: 50%;
    background: rgb(185, 180, 231);
    display: grid;
    place-items: center;
  }
  .light{
    width: 50%;
    background: rgb(203, 194, 219);
    display: grid;
    place-items: center;
  }
  .hero-image{
    max-width: 65%;
    border: 9px solid white;
  }
  .hero p{
    font-family: "Playfair Display", serif;
  }

  /* Mobile View Adjustments */
  @media (max-width: 768px) {
    /* Adjust the hamburger and nav items */
    .hamburger.active + .nav-links {
        display: flex;
    }
    .nav-links.show {
        display: flex;
    }

    .hamburger.active + .nav-links .close-btn {
        display: block;
    }

    /* Ensure images and sections fit within the viewport */
    .hero {
        flex-direction: column; /* Stack sections vertically */
        height: auto;
        width: 100vw; /* Ensure no overflow */
    }
    .hero h1{
      font-size: 1.5rem;
    }
    .hero p{
      word-break: none;
    }

    .hero-image {
        max-width: 90%; /* Scale image to fit the screen width */
        margin-right: 15px;
    }

    .dark,
    .light {
        width: 100%; /* Full width for each section */
        padding: 20px; /* Add padding for spacing */
        background: rgb(185, 180, 231);
    }
    .nav-right{
      background: rgb(185, 180, 231);
    }
    
}
  



.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__subheader {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-color);
}

.section__header {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 3.25rem;
}

.section__header span {
  color: var(--primary-color);
}

.section__description {
  color: var(--text-light);
  line-height: 1.75rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 5px;
  transition: 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-color-dark);
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}



/* skills */
.skills__container {
  display: grid;
  gap: 2rem;
  overflow: hidden;
  background: #E6E6FA;
}
.skills-list{
  padding-left: 5%;
}
.skills__content h1 {
  margin-bottom: 2rem;
  font-size: 4rem;
  color: var(--text-dark);
  text-align: center;
}

.skills__content h2 span {
  font-style: italic;
  text-decoration-color: var(--primary-color);
  padding-left: 15%;
}

.skills__content .section__description {
  text-align: center;
}


.skills__image {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 90px;
    gap: 1rem;
    position: relative;
}

.skills__image img {
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills__image img:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.3);
}

/* Arrange images with grid areas */
.skills__image img:nth-child(1) {
  grid-area: 1/1/5/3;
  border-radius: 50%; /* For circular shape */
  border: 5px solid #fff; 
}

.skills__image img:nth-child(2) {
  grid-area: 5/1/7/3;
  border-radius: 50%; /* For circular shape */
    border: 5px solid #fff;
}

.skills__image img:nth-child(3) {
  grid-area: 2/3/6/6;
  border-radius: 50%; /* For circular shape */
  border: 5px solid #fff;
}

.skills__image img:nth-child(4) {
  position: absolute;
  top: -2rem;
  right: 5rem;
  height: 10rem;
  width: unset;
  object-fit: contain;
  aspect-ratio: 1;
  box-shadow: none;
  border-radius: 50%; /* For circular shape */
    border: 5px solid #fff;
}
.skills-list {
  list-style: none; /* Remove default list styling */
 
  margin: 0; /* Remove margin */
  line-height: 1.6; /* Set line height for readability */
}

.skills-list li {
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Center items vertically */
  padding: 10px 0; /* Add padding for spacing */
  font-size: 1rem; /* Set font size */
}

.skills-list li i {
  margin-right: 10px; /* Space between icon and text */
  color:var(--primary-color); /* Change icon color to match a professional theme */
  font-size: 1.2rem; /* Increase icon size */
}


/* .conferences */

.conferences__container {
  position: relative;
  isolation: isolate;
  background: #f3f4f6;
  padding-left: 5%;
}

.conferences__bg {
  position: absolute;
  left: 75%;
  top: 0;
  transform: translate(-65%, -35%) rotate(-45deg);
  height: 12rem;
  width: unset;
  aspect-ratio: 1;
  object-fit: contain;
}

.conferences__card {
  position: relative;
  isolation: isolate;
  margin-top: 4rem;
  display: none;
  animation: fadeEffect 1s;
}

.conferences__card.active {
  display: block;
}

@keyframes fadeEffect {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.conferences__card img {
  max-width: 400px;
  border-radius: 2rem;
  box-shadow: 30px -30px 0px rgba(0, 0, 0, 0.1);
}

.conferences__content {
  padding: 2rem;
  background-color: var(--white);
  border-left: 5px solid var(--primary-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-5rem);
}

.conferences__content h4 {
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-dark);
}

.conferences__content h5 {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary-color);
}

.conferences__content p {
  color: var(--text-light);
}

.conferences__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.conferences__btns .btn {
  padding: 10px 12px;
  font-size: 1.5rem;
  color: var(--primary-color);
  background-color: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: 100%;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

.conferences__btns .btn:hover {
  color: var(--white);
  background-color: var(--primary-color);
}


/* ================= GALLERY SECTION ================= */
.gallery__container {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: auto;
}

.section__header {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.section__header span {
  color: #0077ff;
}


/* ================= GALLERY SECTION ================= */
.section__container.gallery__container {
  padding-block: 4rem 4rem;
}

.section__header {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

/* ================= SWIPER ================= */
.gallery-swiper {
  padding-bottom: 4rem;
}

/* ================= CARD ================= */
.gallery__card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  height: 380px;                    /* Increased default height */
}

.gallery__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;          /* Change to "top" if top of images are still cut off */
  display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
}

/* HOVER EFFECT */
.gallery__card:hover img {
  transform: scale(1.08);
  filter: brightness(0.85);
}

/* ================= PAGINATION ================= */
.swiper-pagination {
  bottom: 12px !important;
}

.swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
  width: 10px;
  height: 10px;
}

.swiper-pagination-bullet-active {
  background: #0077ff;
  width: 10px;
  height: 10px;
}

/* ================= RESPONSIVE - Increased Heights ================= */

/* Large Desktop */
@media (min-width: 1025px) {
  .gallery__card {
    height: 460px;                  /* Taller on big screens */
  }
}

/* Tablets & Medium screens */
@media (max-width: 1024px) {
  .gallery__card {
    height: 420px;                  /* Increased for tablets */
  }
  
  .section__header {
    font-size: 2.3rem;
  }
}

/* Mobile - Main adjustment area */
@media (max-width: 768px) {
  .gallery__card {
    height: 380px;                  /* Increased - this is what you'll see most on phones */
  }
  
  .section__header {
    font-size: 2.2rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .gallery__card {
    height: 340px;                  /* Still decent size on very small screens */
    border-radius: 10px;
  }
  
  .section__header {
    font-size: 1.95rem;
    margin-bottom: 2.5rem;
  }
  
  .gallery-swiper {
    padding-bottom: 3.2rem;
  }
}

/* ================= LIGHTBOX ================= */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 15px;
}

#lightbox img {
  max-width: 95%;
  max-height: 92%;
  border-radius: 12px;
  object-fit: contain;
}

#lightbox #close {
  position: absolute;
  top: 25px;
  right: 30px;
  color: #fff;
  font-size: 2.8rem;
  cursor: pointer;
  z-index: 10000;
}

#close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}


/* .contact-section */

.contact-section {
  display: flex;
  flex-direction: row;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  margin: 20px auto; 
}

.contact-image {
  flex: 1;
  background-image: url('./img/hero\ image.jpg'); 
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.contact-form {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form h2 {
  margin: 0 0 10px;
  color: var(--primary-color);
}

.contact-form p {
  margin: 0 0 20px;
  color: #666;
}

.input-field {
  border: none;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 20px;
  padding: 10px;
  outline: none;
  transition: border-color 0.3s;
}

.input-field::placeholder {
  color: #aaa;
}

.input-field:focus {
  border-color: var(--primary-color);
}

.submit-btn {
  padding: 10px;
  border: none;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color:#b522e2;
}

@media (max-width: 600px) {
  .contact-section {
      flex-direction: column;
  }
  
  .contact-image {
      min-height: 200px;
  }
  .contact-image{
    background-size: contain;
  }
}

/* footerr */
.footer {
  background-color: #1e293b;
  color: white;
  text-align: center;
  padding: 20px 0;
  position: relative;
  bottom: 0;
  width: 100%;
}

.social-icons {
  margin-top: 10px;
}
.footer p{
  color: white;
}
.footer i {
  font-size: 24px; /* Adjust size as needed */
  margin: 0 15px; /* Spacing between icons */
  color: white; /* Icon color */
  transition: color 0.3s;
}

.footer a:hover i {
  color:#c58cd6; /* Change color on hover */
}


@media (width > 540px) {
  .conferences__content {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-left: 2rem;
    width: 75%;
  }

  .conferences__btns {
    margin-top: 2rem;
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  
  .skills__container {
    padding-top: 2rem;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    isolation: isolate;
  }

  .skills__content {
    position: relative;
    padding-bottom: 10rem;
  }

  .skills__content :is(h1, .section__description) {
    text-align: left;
  }

  .skills__content form {
    position: absolute;
    width: max-content;
    padding: 1.5rem;
    margin: 0;
    bottom: 0;
    border-radius: 1.5rem;
    backdrop-filter: blur(5px);
    z-index: 10;
  }

  .conferences__btns {
    position: absolute;
    top: 15rem;
    right: 1rem;
    margin-top: 0;
  }

  .footer__container {
    grid-template-columns: repeat(7, 1fr);
  }

  .footer__col:nth-child(1) {
    grid-column: 1/3;
  }

  .footer__col:nth-child(2) {
    grid-column: 3/4;
  }

  .footer__col:nth-child(3) {
    grid-column: 4/6;
  }

  .footer__col:nth-child(4) {
    grid-column: 6/8;
  }
}

@media (width > 1024px) {
  .skills__image {
    gap: 1.5rem;
    grid-auto-rows: 90px;
  }
}





.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Show loader */
.loader-container.active {
  visibility: visible;
  opacity: 1;
}

/* Loader Animation */
.loader-37 {
  width: 1.5em;
  height: 1.5em;
  border-right: 0.4em solid var(--primary-color);
  border-radius: 100%;
  position: relative;
  animation: loader-37 3000ms linear infinite;
}

.loader-37::before,
.loader-37::after {
  content: '';
  width: 1.2em;
  height: 1.2em;
  display: block;
  position: absolute;
  top: calc(50% - 0.4em);
  left: calc(50% - 0.4em);
  border-left: 1.2em solid var(--primary-color);
  border-radius: 100%;
  animation: loader-37 500ms linear infinite reverse;
}

.loader-37::after {
  width: 1.2em;
  height: 1.2em;
  top: calc(50% - 0.3em);
  left: calc(50% - 0.3em);
  border: 0;
  border-right: 1.2em solid var(--primary-color);
  animation: none;
}

@keyframes loader-37 {
  from {
      transform: rotate(360deg);
  }
  to {
      transform: rotate(0deg);
  }
}
