/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    background: url('../images/Background_final.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed; 
    min-height: 100vh;
    
}

.hidden {
    display: none !important;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(to right, #020617, #1e3a8a, #020617);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

header::after {
  content: "";
  position: absolute;
  bottom: 0; 
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a78bfa, transparent);
  box-shadow: 0 0 10px #a78bfa;
}



.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.flame-icon-wrapper {
    position: relative;
}

.flame-glow {
    position: absolute;
    inset: 0;
    background: url('../images/Background_final.png');
    border-radius: 50%;
    filter: blur(16px);
    opacity: 0.5;
}

.flame-icon {
    position: relative;
    color: #3b82f6;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.8));
}

.logo-text {
    font-size: 1.875rem;
    background: linear-gradient(to right, #60a5fa, #22d3ee, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #93c5fd;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.mobile-menu-btn:hover {
    color: #ffffff;
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.desktop-nav a,
.mobile-nav a {
    color: #bfdbfe;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #ffffff;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.8));
}

.mobile-nav {
    padding: 1rem 0;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Team Section */
.team-section {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    
}

.bg-radial {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(30, 58, 138, 0.2), transparent);
}

.container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.title-underline {
    height: 4px;
    width: 8rem;
    background: linear-gradient(to right, #3b82f6, #06b6d4, #2563eb);
    margin: 0 auto;
    border-radius: 9999px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Subsection with proper spacing */
.subsection {
    margin-bottom: 6rem;
}

.subsection:last-child {
    margin-bottom: 2rem;
}

.subsection-header {
    text-align: center;
    margin-bottom: 3rem;
}

.subsection-title {
    font-size: 2rem;
    background: linear-gradient(to right, #60a5fa, #22d3ee, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 700;
}

.subsection-underline {
    height: 2px;
    width: 12rem;
    background: linear-gradient(to right, transparent, #3b82f6, transparent);
    margin: 1rem auto 0;
    border-radius: 9999px;
}

/* Cards Grid with proper spacing */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    justify-items: center;
    align-items: start;
}

.founder-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

/* Flip Card Styles */
.flip-card {
    height: 550px;
    width: 380px;
    max-width: 380px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.flip-card-front {
    background: url('../images/Background_final.png');
}

.flip-card-back {
    background: url('../images/Background_final.png');
    transform: rotateY(180deg);
}

/* Front Card Content */
.card-front-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.card-gradient-overlay {
    position: absolute;
    inset: 0;
    background: url('../images/Background_final.png');
    opacity: 0.5;
}

.card-image-section {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.image-glow {
    position: absolute;
    inset: 0;
    background: url('../images/Background_final.png');
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.flip-card:hover .image-glow {
    opacity: 0.75;
}

.image-container {
    position: relative;
    width: 256px;
    height: 256px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-info {
    position: relative;
    text-align: center;
    z-index: 10;
}

.member-name {
    color: #ffffff;
    font-size: 1.875rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.member-position {
    color: #93c5fd;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.info-divider {
    height: 4px;
    width: 4rem;
    background: linear-gradient(to right, #3b82f6, #06b6d4, #2563eb);
    margin: 0 auto;
    border-radius: 9999px;
}

/* Back Card Content */
.card-back-content {
    position: relative;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.back-decorative-1,
.back-decorative-2 {
    position: absolute;
    width: 256px;
    height: 256px;
    border-radius: 50%;
    filter: blur(80px);
}

.back-decorative-1 {
    top: 0;
    right: 0;
    background: url('../images/Background_final.png');
}

.back-decorative-2 {
    bottom: 0;
    left: 0;
    background: url('../images/Background_final.png');
}

.back-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.4);
}

.back-header {
    position: relative;
    margin-bottom: 1.5rem;
}

.back-name {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.back-position {
    color: #bfdbfe;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.back-divider {
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.5), rgba(6, 182, 212, 0.5), transparent);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.back-bio-section {
    position: relative;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.back-bio-section::-webkit-scrollbar {
    width: 6px;
}

.back-bio-section::-webkit-scrollbar-track {
    background: transparent;
}

.back-bio-section::-webkit-scrollbar-thumb {
    background: url('../images/Background_final.png');
    border-radius: 9999px;
}

.member-bio {
    color: #f3f4f6;
    font-size: 1rem;
    line-height: 1.75;
}

.social-links {
    position: relative;
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.social-link {
    color: #93c5fd;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.social-icon {
    width: 22px;
    height: 22px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
    transition: all 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.7);
}

.main-header {
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.main-header .header-container {
  /* max-width: 1200px;
  margin: 0 auto; */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header .logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem; /*0.4rem*/
  font-weight: 300;
  text-decoration: none;
  color: rgb(212, 207, 223);
}

.main-header .logo h4 {
  font-family: var(--font-secondary);
  font-size: 1.25rem; /*1rem*/
  font-weight: 500;
  margin: 0;
}

.main-header .logo img {
  height: 100px;
}

.main-header .logo-text p {
  font-size: 18px; /*10px*/
  margin: 0;
}

.main-header .buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.main-header .btn-secondary a  {
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.044);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.092);
  transition: background 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05)
}

.main-header .buttons a:hover {
  background: rgba(255, 255, 255, 0.2);
}
#langBtn {
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.044);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.092);
  transition: background 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer; /* για να φαίνεται clickable */
}

#langBtn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.main-header .burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 30px;
  height: 22px;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1001;
}

.main-header .burger div {
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.main-header .burger.open div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.main-header .burger.open div:nth-child(2) {
  opacity: 0;
}
.main-header .burger.open div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.main-header .mobile-nav {
  position: absolute;
  top: 100%;
  right: 2rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  padding: 1rem;
  border-radius: 12px;
  flex-direction: column;
  gap: 0.5rem;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.main-header .mobile-nav a {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  display: block;
  text-decoration: none;
  color: white;
  border-radius: 8px;
  transition: background 0.3s;
}

.main-header .mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.main-header .mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .main-header nav .buttons {
    display: none;
  }
  .main-header .burger {
    display: flex;
  }
}

.main-footer h2,
.main-footer p {
  margin: 0;
}

.main-footer {
  position: relative;   
  color: #d8dee9;
  font-family: "Inter", sans-serif;
  padding: 0rem 2rem 3rem 2rem;
}


.main-footer::before {
  content: "";
  position: absolute;
  top: 0;   
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a78bfa, transparent);
  box-shadow: 0 0 10px #a78bfa;
}

.main-footer .footer-content-wrapper {
  /* max-width: 1200px;
  margin: 0 auto; */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
}

.main-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; 
  gap: 2rem;
}

.main-footer .footer-left h2 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 1.5rem; 
}

.main-footer .footer-left p {
  color: #cdd3df;
  font-weight: 300;
  margin-bottom: 1.5rem; 
}

.main-footer .footer-links {
  display: flex;
  flex-wrap: wrap; 
  gap: 0.5rem;
  font-size: 0.95rem;
}

.main-footer .footer-links a {
  color: #cdd3df;
  text-decoration: none;
  transition: color 0.2s;
}

.main-footer .footer-links a:hover {
  color: #ffffff;
}

.main-footer .footer-right {
  flex-shrink: 0; 
}

.main-footer .developer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.main-footer .footer-right .developer a {
  height: 28px;
  min-width: 0; 
  display: flex;
  align-items: center;
}

.main-footer .footer-right .developer a img {
  height: 60px;
  width: auto;
  object-fit: contain;
  vertical-align: middle; 
}

.main-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem; 
  padding-top: 1.5rem; 
}

.main-footer .footer-bottom .copyright {
  font-size: 0.9rem;
  color: #9aa0ae;
}

.main-footer .socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.main-footer .socials a {
  color: #cdd3df;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 1.25rem; 
  vertical-align: middle;
}

.main-footer .socials a:hover {
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .desktop-nav {
        display: none;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .subsection-title {
        font-size: 1.5rem;
    }

    .subsection {
        margin-bottom: 4rem;
    }

    .subsection-header {
        margin-bottom: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        justify-items: center;
    }

    .image-container {
        width: 200px;
        height: 200px;
    }

    .member-name {
        font-size: 1.5rem;
    }

    .member-position {
        font-size: 1rem;
    }

    .flip-card {
        height: 500px;
        max-width: 400px;
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        justify-items: center;
    }

    .subsection {
        margin-bottom: 5rem;
    }
}

@media (min-width: 1025px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
    }
}
