@font-face{
  font-family: 'IranYekan';
  src: url('/static/fonts/Yekan.woff') format('woff'),
       url('/static/fonts/Yekan.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

*{
    margin: 0;
    padding: 0;     
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root{
  /* colors :> */
    --color-primary: #eeeeee;
    --color-secondary: #787a91; 
    --color-dark: #0F044C;
    --color-orange: #FF6F00;
    --color-blue: #141E61;
    --color-text: #000000;
    --color-white: #ffffff;
  /* size & weight :> */
    --font-size-title: 2.2rem;
    --font-size-subtitle: 1.2rem;
    --font-size-btn: 1rem;
    --font-size-small: 0.8rem;
    --font-weight-bold: 700;
    --font-weight-normal: 400;
  /* border & shadow :> */
    --border-radius: 20px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body{
    min-height: 100vh;
    font-family: 'IranYekan', sans-serif;
}

/* all sections css :> */
section {
  padding: 5vh 10%;
  margin: 0 auto;
  width: 100%;
  max-width: 1400px;
  background-color: var(--color-primary);
}

/* all btns css :> */
.btn {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid var(--color-orange);
    background-color: transparent;
    color: var(--color-orange);
    min-width: 160px;
    text-align: center;
    transition: 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(218, 100, 4, 0.315), transparent);
    transition: left .7s;
    transform: skewX(-20deg);
}

.btn:hover::after {
    left: 150%;
}

/* all titles css :> */
.section-title {
  font-size: var(--font-size-title);
  color: var(--color-dark);
  font-weight: var(--font-weight-normal);
}

.section-title span{
    color: var(--color-orange);
}

.underline-animate {
  position: relative;
  display: inline-block;
  font-size: var(--font-size-title);
  color: var(--color-dark);
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.5s ease;
}

.underline-animate::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.5s ease;
}

.underline-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.underline-animate.visible::after {
  transform: scaleX(1);
}



/* navbar :> */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.header::after{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #eeeeee3f, transparent);
    transition: 1s;
}

.header:hover::after{
    left: 100%;
}

.navbar a{
    font-size: 1.1rem;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: var(--font-weight-normal);
    margin-left: 2.5rem;
    transition: .5s ease;
}

.navbar a:hover{
    color: var(--color-white);
}

.logo{
    margin-top: 10px;
}

#check{
    display: none;
}

.icons{
    position: absolute;
    right: 5%;
    font-size: var(--font-size-title);
    color: var(--color-white);
    cursor: pointer;
    display: none;
}

/* hero-page :> */
.home{
    min-height: 100vh;
    background-image: url(/static/images/home-background.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;  
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    padding-top: 35vh;
}


.hero-content h1{
    font-size: var(--font-size-title);
    color: var(--color-dark);
    font-weight: bold;
    line-height: 1.6;
}

.hero-content h1 span{
    color: var(--color-orange);
}

.hero-content .home-text{
        direction: rtl;
}

.hero-content .home-text h2,
.hero-content .home-text h2 span{
    color: var(--color-secondary);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 1rem;
    margin-top: 2rem;
}

/* scrolldown :> */
.scrolldown {
    position: absolute;
    left: 50%;
    width: 2vw;
    height: 2vw;
    bottom: 0;
    transform: translateY(-50px) translateX(-50%) rotate(45deg);
}

.scrolldown a {
    transition: .5s ease;
}

.scrolldown span {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-bottom: 4px solid var(--color-dark);
    border-right: 4px solid var(--color-orange);
    animation: animate 1.5s linear infinite;
    opacity: 0;
}

.scrolldown span:nth-child(1) {
    transform: translate(-15px, -15px);
    animation-delay: -0.4s;
}

.scrolldown span:nth-child(2) {
    transform: translate(0, 0);
    animation-delay: -0.2s;
}

.scrolldown span:nth-child(3) {
    transform: translate(15px, 15px);
    animation-delay: 0s;
}

@keyframes animate1 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes back {
    100% {
        background-position: 2000px 0;
    }
}

@keyframes animate {
    0% {
        top: -5px;
        left: -5px;
        opacity: 0;
    }

    25% {
        top: 0;
        left: 0;
        opacity: 1;
    }

    50%,
    100% {
        top: 5px;
        left: 5px;
        opacity: 0;
    }
}
/* end-hero */

/* event-section :> */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2.2rem 0;
  flex-wrap: wrap;
  direction: rtl;
}

.events-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.event-card {
  position: relative;
  overflow: hidden;
  width: 330px;
  height: 350px;
  background: var(--color-primary);
  border-radius: 16px;
  box-shadow: 0 0 12px #0000009f;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s;
}

.event-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 100, 4, 0.151), transparent);
    transition: left .5s;
    transform: skewX(-20deg);
}

.event-card:hover::after {
    left: 150%;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-logo-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
}

.event-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  background: white;
}

.event-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid transparent;
  z-index: 1;
  animation: spin 4s linear infinite;
}

.spinner.orange {
  border-right: 4px solid var(--color-orange);
}

.spinner.navy {
  border-left: 4px solid #162938;
  animation-direction: reverse;
  animation-duration: 6s;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.event-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  color: var(--color-dark);
}

.event-meta {
  font-size: 0.9rem;
  color: var(--color-blue);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.flip-card-back h3{
  color: var(--color-dark);
}

.flip-card-back h3 span{
  color: var(--color-orange);
}

.flip-card-back p{
  color: var(--color-secondary);
}

.flip-back-btn{
  margin: 20px auto;
}

/* event-section-end :> */

/* contact-us-section :> */
.contact-us {
  background: var(--color-primary);
  direction: rtl;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  justify-content: center;
}

.contact-info {
  flex: 1 1 300px;
  background-image: url(/static/images/home-background.png);
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-dark);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 0 12px #0000009f;
}

.contact-info h3 {
  font-size: var(--font-size-subtitle);
  margin-bottom: 1rem;
}

.contact-info i {
  margin-left: 0.5rem;
  color: var(--color-orange);
}

.contact-us-logo {
    margin-top: 150px;
}

.contact-info .socials {
  margin-top: 1rem;
}

.contact-info .socials a {
  color: var(--color-orange);
  margin-left: 0.8rem;
  font-size: 1.2rem;
}

.contact-form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: none;
  border-bottom: 2px solid var(--color-secondary);
  background: transparent;
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--color-orange);
  box-shadow: 0 10px 10px #ff6f0091;
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.subject-title {
  font-weight: bold;
  text-align: right;
  margin-top: 1rem;
  color: var(--color-dark);
}

.subject-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  color: var(--color-dark); 
}

.subject-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-us-btn {
    width: 100px;
    margin: 0 auto;
}
/* contact-us-section-end :> */

/* footer-section :> */
.footer {
  position: relative;
  z-index: 100;
  overflow: hidden;
  text-align: center;
  padding: 1vh 10%;
  margin: 0 auto;
  width: 100%;
  max-width: 1400px;
  background-color: var(--color-primary);
}

.footer::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, #eeeeee1e, transparent);
  animation: slideLight 2s linear infinite;
  z-index: -1;
}

@keyframes slideLight {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}


.footer-overlay {
  padding: 50px 30px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  flex: 1 1 250px;
  min-width: 220px;
}

.footer-col h3 {
  margin-bottom: 15px;
  font-size: var(--font-size-subtitle);
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-orange);
  padding-bottom: 5px;
}

.footer-col span {
  color: var(--color-orange);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin: 8px 0;
}

.footer-col a {
  color: var(--color-dark);
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-col p{
  color: var(--color-dark);
}

.footer-btn{
  width: 100px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  padding: 10px;
  border: none;
  border-radius: 4px;
  text-align: right;
}

.footer-bottom {
  border-top: 1px solid var(--color-secondary);
  margin-top: 15px;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-small);
  flex-wrap: wrap;
  color: var(--color-blue);
}

/* footer-section-end :> */



/* breakpoints :> */
@media (max-width: 992px) {
    .header{
        padding: 1.3rem 5%;
    }
}

@media (max-width: 768px) {
    .icons{
        display: inline-flex;
    }

    #check:checked~.icons #menu-icon{
        display: none;
    }

    .icons #close-icon{
        display: none;
    }

    #check:checked~.icons #close-icon{
        display: block;
    }
    
    .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(50px);
        box-shadow: #0F044C;
        overflow: hidden;
        transition: .3s ease;
    }

    #check:checked~.navbar{
        height: 20rem;
    }

    .navbar a{
        display: block;
        font-size: 1rem;
        margin: 1.5rem 0;
        text-align: center;
        transform: translateY(-10px);
        opacity: 0;
        transition: .3s ease;
    }

    #check:checked~.navbar a{
        transform: translateY(-0);
        opacity: 1;
        transition-delay: calc(.15s * var(--i));
    }

    .hero-content h1,
    .hero-content .home-text h2,
    .hero-content .home-text h2 span {
        font-size: var(--font-size-subtitle);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .event-card {
    flex: 0 0 100%;
    }

    .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    }

  .footer-bottom{
    display: block;
    text-align: center;
  }

  .scrolldown {
    display: none;
  }

  .home{
    min-height: auto;
    padding: 20vh;
  }
}




