@import url("https://fonts.googleapis.com/css?family=Poppins");

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background-color: #161616;
}
::-webkit-scrollbar-thumb {
    background: #0f172a;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #006787;
}
:root {
  --base-color: #eef2f7;
  --base-variant: #ffffff;
  --text-color: #1f2937;
  --secondary-text: #4b5563;
  --primary-color: #0072ce;
  --accent-color: #2d4592;
  --button-text: #ffffff;
}
.dark-mode {
  --base-color: #0f172a;
  --base-variant: #1e293b;
  --text-color: #e2e8f0;
  --secondary-text: #94a3b8;
  --primary-color: #3b82f6;
  --accent-color: #1476b8;
  --button-text: #0f172a;
}

/* GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    list-style: none;
}
html {
    scroll-behavior: smooth;
}
body {
    background: #0f172a;
    color: #56d2ff;
}

/* HEADINGS */
h2 {
    color: #2484c6;
}

/* HOME */
.home-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.home-text {
    max-width: 50%;
    padding-right: 20px;
}
.home-image img {
    max-width: 100%;
}

/* ABOUT */
.about-container,
.skills-container {
    display: flex;
}
.about-image {
    min-width: 300px;
    max-width: 350px;
    padding: 40px;
}
.abimg {
    width: 100%;
    padding: 3px;
    border: 2px solid #0d40ad;
    border-radius: 15px;
    max-height: 400px;
    max-width: 360px;
    position: relative;
}
.about-text {
    min-width: min-content;
    padding: 40px;
    color: #fff;
    font-size: 18px;
    text-align: justify;
}
.about-head,
.skills-head,
.contact-head,
.project-head {
    text-transform: uppercase;
    text-align: center;
    font-weight: bolder;
    font-size: 30px;
    color: #fff;
    padding: 10px;
    margin: 30px 0px;
    margin-bottom: 80px;
}

/* NAVBAR / HEADER */
header {
    width: 100%;
    display: flex;
    position: fixed;
    background-color: #0f172a;
    padding: 0px 20px;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    z-index: 1000;
}
.logo {
    height: 60px;
    width: 70px;
}
header .fa-bars,
header .fa-circle-xmark {
    display: none;
}
.navbar {
    display: flex;
    text-decoration: none;
}
ul li {
    padding: 12px;
}
ul li a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    position: relative;
    margin: 0px 22px;
}
ul li a::after {
    content: '';
    width: 0%;
    height: 3px;
    background: #56d2ff;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}
ul li a:hover::after {
    width: 100%;
}
span {
    color: rgb(67, 168, 196);
}

/* SECTION */
section {
    min-height: 100vh;
    padding: 90px 90px;
    margin: 0px 30px;
}

/* SKILLS */
.skills-container {
    display: flex;
    justify-content: space-between;
    color: rgb(255, 255, 255);
    box-sizing: border-box;
    position: relative;
}
.skills-container .fa-solid {
    font-size: 70px;
    margin: 50px 0px;
    color: #003fd3;
}
.skills-container .skills-text {
    width: auto;
    margin: 10px 30px;
    text-align: left;
}
.skill {
    display: flex;
    flex-direction: column;
    min-height: 30%;
    width: 30%;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
    padding: 30px;
}
.skill:hover {
    background-color: #ffffff;
    transform: translateY(-8px);
}
.skill:hover > .fa-solid {
    color: #000000;
}
.skill:hover > .skills-text {
    color: #000000;
}

/* ANIMATIONS */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(30%);
    transition: all 0.5s;
}
.show {
    opacity: 1;
    filter: blur(0px);
    transform: translateX(0%);
}
@keyframes bg-gradient {
    0% {
        background-position: left;
    }
    100% {
        background-position: right;
    }
}

/* FOOTER */

center p {
    color: #2753b8;
}
.copyright {
    padding: 10px;
    margin: 0px;
    text-align: center;
    transition: 0.5s;
    width: 100%;
    text-decoration-color: floralwhite;
}
.copyright:hover {
    font-size: 16.5px;
}


#current-events {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}


/* SLIDESHOW MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}
#slides-container {
    position: relative;
    margin: auto;
    max-width: 800px;
    text-align: center;
}
.mySlides {
    display: none;
    width: 100%;
    max-height: 500px;
    border-radius: 10px;
    object-fit: contain;
}
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.close:hover {
    color: #f00;
}
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: #fff;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
    border-radius: 0 3px 3px 0;
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev:hover,
.next:hover {
    background-color: rgba(36, 132, 198, 0.5);
}
#dots-container {
    text-align: center;
    padding: 15px 0;
}
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}
.dot.active,
.dot:hover {
    background-color: #2484c6;
}


.section-title {
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(90deg, #56d2ff, #2484c6, #064b87);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin: 60px 0 30px;
  position: relative;
  letter-spacing: 1px;
}

.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 45%;
  height: 2px;
  background: linear-gradient(90deg, #56d2ff, #2484c6, #064b87);
}

.section-title::before {
  left: -100px;
  transform: translateY(-50%);
}

.section-title::after {
  right: -100px;
  transform: translateY(-50%);
}
/* EVENT CALENDAR */

.event-calendar-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out; 
    display: flex; 
    align-items: center;
    justify-content: center;
    gap: 40px; 
    margin: 30px auto; 
    padding: 0 20px; 
    max-width: 1000px;
    color: #64b5f6;
}

.event-calendar-title.show {
    opacity: 1;
    transform: translateY(0);
}

.event-calendar-title h1 {
    font-size: 2.8rem;
    color: #64b5f6;
    white-space: nowrap;
    text-align: center;
}

.event-calendar-title hr {
    width: 0;
    height: 3px;
    background-color: #64b5f6;
    border: none;
    margin: 0;
    transition: width 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.event-calendar-title.show hr {
    width: 40%; 
}


/* MEDIA QUERIES */

/* <= 1100px — large laptops / small desktops */
@media (max-width: 1100px) {
  section {
    padding: 60px 40px;
  }

  .about-text {
    padding: 24px 12px;
    font-size: 17px;
  }

  .about-image {
    min-width: 260px;
    max-width: 320px;
    padding: 30px;
  }

  .skill, .project {
    width: 45%;
    padding: 18px;
  }

  .section-title {
    font-size: 2.2rem;
    margin: 40px 0 20px;
  }
  .section-title::before,
  .section-title::after {
    width: 30%;
  }

  .event-calendar-title h1,
  .event-calendar-title h2 {
    font-size: 2.2rem;
  }

  #current-events {
    gap: 24px;
  }

  .event-item {
    width: 230px;
  }

  #slides-container {
    max-width: 700px;
  }
}

/* <= 992px — tablets / smaller laptops */
@media (max-width: 992px) {
  section {
    padding: 48px 28px;
    margin: 0 12px;
  }

  .about-image {
    min-width: 220px;
    max-width: 280px;
    padding: 22px;
  }

  .about-text {
    padding: 20px;
    font-size: 16px;
  }

  .home-text {
    max-width: 100%;
  }

  .skill {
    width: 48%;
    padding: 16px;
  }

  .skills-container {
    gap: 12px;
  }

  .skills-container .fa-solid {
    font-size: 56px;
    margin: 30px 0;
  }

  .event-item,
  #past-workshops .event-item {
    width: calc(50% - 26px);
    max-width: 360px;
  }

  #slides-container {
    max-width: 640px;
  }
}

/* <= 768px — mobile / portrait tablets — show mobile nav, stack major blocks */
@media (max-width: 768px) {
  /* Header / Nav */
  header {
    height: 64px;
    padding: 0 16px;
  }
  .logo {
    height: 46px;
    width: auto;
  }
  header .fa-bars {
    display: block;
    font-size: 22px;
    cursor: pointer;
    color: #fff;
  }

  /* Off-canvas nav (requires a small JS toggle to add/remove .open on .navbar) */
  .navbar {
    position: fixed;
    top: 64px;
    right: -280px;
    width: 260px;
    height: calc(100vh - 64px);
    background: rgba(12, 0, 63, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding-top: 18px;
    padding-left: 12px;
    transition: right .28s ease;
    z-index: 2000;
  }
  .navbar.open {
    right: 0;
  }
  .navbar li {
    width: 100%;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  /* Home / About / Skills layout */
  .home-container {
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
  }
  .home-image img {
    display: block;
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
  }

  .about-container,
  .skills-container,
  .project-container {
    flex-direction: column;
    align-items: center;
  }

  .about-image,
  .abimg {
    max-width: 320px;
    padding: 18px;
  }

  .about-text {
    padding: 16px;
    font-size: 15px;
    text-align: left;
  }

  .skill, .project {
    width: 100%;
    padding: 16px;
  }

  /* Titles */
  .section-title {
    font-size: 1.9rem;
    margin: 30px 0;
  }
  .section-title::before,
  .section-title::after {
    width: 18%;
  }

  /* Events */
  .event-calendar-title {
    flex-direction: column;
    gap: 10px;
    padding: 0 12px;
  }
  .event-calendar-title h1 {
    font-size: 1.9rem;
    white-space: normal;
  }

  .event-item {
    width: calc(50% - 22px);
    max-width: 360px;
  }

  #current-events, #event-calendar, #past-events {
    padding: 18px;
    gap: 18px;
  }

  /* Modal / Slides */
  .modal {
    padding-top: 40px;
  }
  #slides-container {
    width: 94%;
    max-width: 600px;
  }
  .mySlides {
    max-height: 420px;
  }

  /* Buttons */
  button {
    font-size: 16px;
    padding: 10px 20px;
  }
}

/* <= 600px — small phones */
@media (max-width: 600px) {
  section {
    padding: 20px 12px;
    margin: 0;
  }

  header {
    height: 56px;
    padding: 0 14px;
  }
  .logo {
    height: 40px;
  }

  /* Keep nav off-screen unless .open */
  .navbar {
    width: 220px;
    right: -240px;
    top: 56px;
    height: calc(100vh - 56px);
  }

  .home-text {
    padding-right: 0;
  }

  /* Hide large home image on small phones to save vertical space */
  .home-image img {
    display: none;
  }

  .about-image,
  .abimg {
    max-width: 100%;
    padding: 12px;
    margin: 0 auto;
  }

  .about-text {
    font-size: 14px;
    padding: 12px;
    text-align: left;
  }

  .skill,
  .project,
  #event-calendar .event-item,
  .event-item {
    width: 100%;
  }

  .event-item img {
    height: auto;
  }

  .event-calendar-title h1 {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
  .section-title::before,
  .section-title::after {
    width: 12%;
  }

  .modal {
    padding-top: 20px;
  }
  #slides-container {
    width: 98%;
    max-width: 480px;
  }
  .mySlides {
    max-height: 320px;
  }

  button {
    width: 100%;
    box-sizing: border-box;
  }

  .copyright {
    font-size: 14px;
    padding: 8px 6px;
  }
}

/* <= 420px — very small devices */
@media (max-width: 420px) {
  .section-title {
    font-size: 1.4rem;
    margin: 18px 0;
  }
  .event-calendar-title h1 {
    font-size: 1.4rem;
  }
  .event-item {
    padding: 12px 8px;
  }
  .skill .fa-solid {
    font-size: 48px;
    margin: 18px 0;
  }
  ul li a {
    font-size: 18px;
    margin: 0 10px;
  }
  header .fa-bars {
    font-size: 20px;
  }
  .about-head, .skills-head, .contact-head, .project-head {
    font-size: 22px;
    margin-bottom: 50px;
  }
}



/* Event Cards Container */
#current-events, #event-calendar, #past-events {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;        
  padding: 30px;  
  margin-top: 30px; 
}



.event-item {
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  background: #142850;     
  border: 2px solid #0c003f;    
  border-radius: 12px;
  overflow: hidden;

  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
  text-align: center;
}



.event-item:hover {
  background: #60a5fa;               
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.event-item:hover h3,
.event-item:hover p {
  color: #000;                  
}


.event-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}


.event-item:hover img {
  transform: scale(1.05);       
  background: #fff;
}


.event-item h3 {
  font-size: 22px;
  font-weight: 600;
  color: #2b9bcb; 
  margin: 12px 0 6px 0;
  transition: color 0.3s ease;
}

.event-item p {
  font-size: 16px;
  color: #cbd5e1;
  margin: 10 0 0 0;
  transition: color 0.3s ease;
}

.event-item p.date {
  font-weight: bold;
  font-size: 14px;
  color: #cbd5e1; /* A color that is visible on your background */
  margin: 10px 0 0 0; /* Add top margin and remove others */
}


/* No Events Message */
.no-events {
  font-family: cursive;
  width: 100%;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  color: #ccc;
  margin: 30px auto;
  flex-basis: 100%;  
}



/* Event Buttons */
 button {
  background: linear-gradient(135deg, #064b87, #2484c6);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 10px 25px;
  margin: 10px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

button:hover {
  background: linear-gradient(135deg, #2484c6, #064b87);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

button:active {
  transform: scale(0.98);
} 

/* Past Workshops Cards */
#past-workshops {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    margin-top: 20px;
}

#past-workshops .event-item {
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid #0c003f;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

#past-workshops .event-item:hover {
    background: #fff;
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#past-workshops .event-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

#past-workshops .event-item h3 {
    margin: 10px 0;
    color: #2b9bcb;
}


/* Hide extra info initially */
.event-item .extra-info {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: opacity 0.3s ease, max-height 0.4s ease;
  font-size: 0.95rem;
  color: #e3f2fd;
  text-align: center;
  margin-top: 0px;
}

/* Reveal description on hover */
.event-item:hover .extra-info {
  opacity: 1;
  max-height: 200px; 
  visibility: visible;
}
#toggle-button {
    position: fixed;
    top: 18px;
    right: 20px;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--button-text);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
}


