@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #FFF;
    font-family: Michroma;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

body {
    line-height: 1.6;
    background-color: #0a0a0c;
    color: #fff;
    margin: 0;
    padding: 0;
    overflow: hidden;
    cursor: none;
}

.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) skewX(-45deg);
  width: 120px;
  height: 20px;
  background: 
    linear-gradient(#18ffc5 0 0) left -30px top 0/30px 20px no-repeat 
    #444;
  animation: l3 1s infinite linear;
  border-radius: 5px;
  z-index: 9999;
}

@keyframes l3 {
  100% { background-position: right -30px top 0; }
}

body.loaded {
    overflow: auto;
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


header {
    position: fixed;
    top: 0.2vh;
    left: 27vh;
    width: 71%;
    height: 80px;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 2vh;
    -webkit-backdrop-filter: blur(10px);
     box-shadow: 0 8px 20px rgb(113 113 113 / 12%);
     
}

header .logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 154px;
    width: 148px;
    z-index: 1001;
}
header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem; 
    position: relative; 
    padding-bottom: 5px;
    transition: color 0.3s, font-size 0.3s;
}

header nav ul li a:hover {
    color: #18ffc5;
    transition: 0.3s ease-in;
}
header nav ul li a {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #18ffc5;
    transition: width 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
}

header nav ul li a.nav-home {
    font-size: 1.3rem; 
}

header nav ul li a.nav-home::after {
    content: '';
    display: block;
    height: 3px; 
    width: 100%; 
    background-color: #18ffc5; 
    margin-top: 3px;
}

#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    background: #0f0f0f; 
}

.hero {
    text-align: center;
    padding: 414px 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/hero-bg.jpg') center/cover no-repeat;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #18ffc5, #0aff87);
    text-shadow: #18ffc5 0px 0px 3px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* دعم إضافي */
    color: transparent;
        animation: slideFade 1s ease forwards 0.3s; /* تأخير بسيط */
    opacity: 0;
}

.frame1 {
    position: relative;
    width: 100%;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
}

.frame1:hover {
    transform: perspective(800px) rotateY(15deg) rotateX(10deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.frame2 {
    position: relative;
    width: 100%;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
}

.frame2:hover {
    transform: perspective(800px) rotateY(-15deg) rotateX(10deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}


.frame3 {
    position: relative;
    width: 100%;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
}

.frame3:hover {
    transform: perspective(800px) rotateY(-15deg) rotateX(10deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: #fff;
    animation: slideFade 1s ease forwards 0.3s; /* تأخير بسيط */
    opacity: 0;
}

/* أنيميشن slide up + fade-in */
@keyframes slideFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(30px);
    }
}
/* Contact Section */
.contact-section {
    text-align: center;
    padding: 414px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(images/hero-bg.jpg) center / cover no-repeat;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #18ffc5;
}

.contact-section p {
    font-size: 1rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #18ffc5;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s, background-color 0.3s;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    /* border-radius: 2vh; */
    font-size: 11px;
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 40px rgb(113 113 113 / 12%);
}

.btn:hover {
    background: rgba(0, 255, 191, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.15);
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    /* border-radius: 2vh; */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 40px rgba(0, 190, 149, 0.12);
    transform: scale(1.05);
}

/* Footer */
footer {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(images/hero-bg.jpg) center / cover no-repeat;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #aaa;
}

.section {
    padding: 414px 0;
    text-align: center;
    background-color: #1a1a1a00;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(images/hero-bg.jpg) center / cover no-repeat;
    color: #fff;
}

.section:nth-child(even) {
    background-color: #11111100;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(images/hero-bg.jpg) center / cover no-repeat;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #18ffc5;
}

.section p {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

section img {
    opacity: 0;
    transform: translateY(50px) scale(0.9) rotateY(0deg) rotateX(0deg);
    transition: opacity 1.8s ease-out, transform 1.5s ease-out, box-shadow 1.5s ease-out;
    transform-style: preserve-3d;
    z-index: 2;
}


section img.visible {
    opacity: 1;
    transform: translateY(0) scale(1) rotateY(0deg) rotateX(0deg);
}

section img:hover {
    transform: perspective(800px) rotateY(20deg) rotateX(-15deg) scale(1.08);
    transition: transform 1.4s ease, box-shadow 1.4s ease;
}
/* خلفية النجوم */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* الغيوم / الدخان */
#matrix-clouds {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(rgba(0, 255, 170, 0.05), transparent 70%);
  background-repeat: repeat;
  z-index: 1;
  animation: drift 60s linear infinite, pulse 5s ease-in-out infinite alternate;
}

@keyframes drift {
  0% {background-position: 0 0;}
  100% {background-position: 2000px 2000px;}
}

@keyframes pulse {
  0% {opacity: 0.6;}
  100% {opacity: 0.6;}
}
section, footer {
  position: relative;
  z-index: 2;
}

.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid #18ffc5;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, background 0.2s ease;
  z-index: 9999;
}

a:hover ~ .cursor,
button:hover ~ .cursor {
  transform: translate(-50%, -50%) scale(1.5);
  background: rgba(24, 255, 197, 0.2);
}

#toggle-music {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 16px;
  font-size: 18px;
  color: #18ffc5;
  background: transparent;
  border: 2px solid #18ffc5;
  border-radius: 8px;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(10px);
     box-shadow: 0 8px 20px rgb(113 113 113 / 12%);
}

#toggle-music:hover {
  background: #18ffc5;
  color: #0f0f0f;
  box-shadow: 0 0 15px #18ffc5, 0 0 30px #18ffc5;
  transform: translateY(-2px);
        background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 191, 0.15);
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(10px);
     box-shadow: 0 8px 20px rgba(0, 255, 200, 0.12);
}

#toggle-music:active {
  transform: scale(0.95);
  box-shadow: 0 0 8px #18ffc5;
}

#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; 
  background: transparent; 
}

#meteorCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; 
  background: transparent;
}

#matrix-clouds {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; 
  pointer-events: none;
  background: radial-gradient(rgba(24,255,197,0.05), transparent 70%);
}

.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) skewX(-45deg);
  z-index: 999; 
}

.btn-purchase {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #18ffc5, #0aff87);
  color: #0f0f0f;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(24, 255, 197, 0.6);
  transition: all 0.3s ease-in-out;
}

.btn-purchase:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 0 15px rgba(24, 255, 197, 0.9), 0 0 40px rgba(10, 255, 135, 0.7);
}
