/* --------------------- Global Styles --------------------- */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;

    overflow-x: hidden;
    font-family: "Playfair Display", serif;
}
h1 {
    font-family: "Playfair Display", serif;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 1px;
}
p {
    font-family: "Lora", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.8;
}

/* --------------------- Navbar --------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeDown 1s forwards;
}
@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 60px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-link {
    text-decoration: none;
    color: #808080;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: color 0.2s;
    overflow: hidden;
    font-size: 22px;
}
.nav-link::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, #fff 0%, #fff 100%);
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}
.nav-link:hover {
    color: #fff;
}

/* --------------------- Dropdown Menu --------------------- */
.dropdown-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background-color: #3a3a3a;
}
.dropdown.active .dropdown-menu {
    display: flex;
}
.dropdown-menu .nav-link {
    width: 100%;
    display: block;
    padding: 15px 20px;
    font-size: 20px;
    color: #fff;
}

/* --------------------- Hero Section --------------------- */
.home-section {
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
}
.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    color: #fff;
}
.home-section h1 {
    font-size: 50px;
    color: #E6E6E6;
    text-align: center;
    margin-top: 130px;
    margin-bottom: 0;
    padding: 0 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);

    /* Fade down */
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeDown 1s forwards;
    animation-delay: 0.3s;
}

.home-section p {
    font-size: 20px;
    color: #B3B3B3;
    text-align: center;
    margin-top: 10px;
    padding: 0 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.6;

    /* Fade up */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards;
    animation-delay: 0.6s;
}

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #ddd;
    background-color: #2a2a2a;
    border: 1px solid #ddd;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Fade up */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards;
    animation-delay: 0.9s;
}

.btn:hover {
    background-color: #fff;
    color: #000;
}
@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-section h1 {
        font-size: 38px;
        margin-top: 140px;
    }
    .home-section p {
        font-size: 18px;
    }
}
/* --------------------- Responsive --------------------- */
@media (max-width: 768px) {
    .home-section h1 {
        font-size: 38px;
        margin-top: 140px;
    }
    .home-section p {
        font-size: 18px;
    }
    .nav-link {
        font-size: 24px;
        color: #fff;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: 340px;
        background-color: #3a3a3a;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 20px;
        gap: 0;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-menu li a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
    }
    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
        
    }
}

/* /* About Section  */
.about-section {
    width: 100%;
    background-color: #2a2a2a;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 500px; 
    grid-template-rows: auto auto;   
    gap: 40px;
    max-width: 1200px;               
    width: 100%;
    align-items: start;
    margin-top: 100px;
}

.about-content {
    grid-column: 1;   
    grid-row: 1 / 3; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    /* Fade-left animation */
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeLeft 1s forwards;
    animation-delay: 0.3s;
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-content h2 {
    margin: 0;
    font-size: 52px;
    color: #E6E6E6;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    padding: 0 20px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.about-content p {
    margin: 0;
    margin-top: 150px;
    font-size: 22px;
    color: #9a9a9a;
    line-height: 1.6;
    font-weight: 400;
}

/* Right Image */
.about-container img {
    grid-column: 2;  
    grid-row: 1 / 3; 
    width: 800px;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0;
    transform: translateX(50px);
    animation: fadeRight 1s forwards;
    animation-delay: 0.5s;
}
.about-container img:hover {
    transform: translateX(50px) rotateY(10deg) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

@keyframes fadeRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .about-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 50px;
    }

    .about-content {
        transform: translateX(0);
        opacity: 1;
        animation: none;  
        text-align: center;
    }

    .about-container img {
        width: 95%;
        height: auto;
        margin-top: 20px;
        transform: translateX(0); 
        opacity: 1;
        animation: none;  
    }

    .about-content h2 {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .about-content p {
        font-size: 18px;
    }
}


/* --------------------- Specifications Section --------------------- */
.specifications-section {
    width: 100%;
    background-color: #1a1a1a;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.specifications-container {
    max-width: 1200px;
    width: 100%;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards;
    animation-delay: 0.2s;
}

.specifications-container h2 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-align: left;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeLeft 1s forwards;
    animation-delay: 0.3s;
}

.specifications-container p {
    font-size: 20px;
    color: #b3b3b3;
    margin-bottom: 40px;
    text-align: center;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeLeft 1s forwards;
    animation-delay: 0.5s;
}

/* Grid layout for 9 items */
.spec-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.spec-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    color: #9a9a9a;
    width: 400px;
    height: 200px;
    padding: 10px;
    border-radius: 10px;
    background-color: #2a2a2a;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    opacity: 1; /* اجعلها ظاهرة */
}

.spec-list li:hover {
    transform: scale(1.9);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 1px solid #4a90e2;
}


/* Animation directions based on position */
.spec-list li:nth-child(3n+1) { /* 1,4,7 from left */
    transform: translateX(-50px);
    animation: fadeFromLeft 1s forwards;
}
.spec-list li:nth-child(3n+2) { /* 2,5,8 from top */
    transform: translateY(-50px);
    animation: fadeFromTop 1s forwards;
}
.spec-list li:nth-child(3n) { /* 3,6,9 from right */
    transform: translateX(50px);
    animation: fadeFromRight 1s forwards;
}

/* Staggered delays */
.spec-list li:nth-child(1) { animation-delay: 0.2s; }
.spec-list li:nth-child(2) { animation-delay: 0.4s; }
.spec-list li:nth-child(3) { animation-delay: 0.6s; }
.spec-list li:nth-child(4) { animation-delay: 0.8s; }
.spec-list li:nth-child(5) { animation-delay: 1s; }
.spec-list li:nth-child(6) { animation-delay: 1.2s; }
.spec-list li:nth-child(7) { animation-delay: 1.4s; }
.spec-list li:nth-child(8) { animation-delay: 1.6s; }
.spec-list li:nth-child(9) { animation-delay: 1.8s; }

/* Icon styling */
.spec-list li i {
    font-size: 48px;
    margin-bottom: 15px;
    margin-top: 15px;
    margin-left: 15px;
    color: #4a90e2;
}

.spec-list li strong {
    font-size: 24px;
    margin-top: 10px;
    margin-left: 15px;
    color: #ffffff;
}

.spec-list li p {
    font-size: 18px;
    margin-left: 15px;
}

/* Animations */
@keyframes fadeFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeFromTop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .spec-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .specifications-container h2 {
        font-size: 36px;
    }
    .specifications-container p {
        font-size: 16px;
    }
    .spec-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .spec-list li {
        width: 100%;
        height: auto;
        transform: translateX(0);
        animation: fadeUp 0.8s forwards;
    }
    .spec-list li i {
        font-size: 40px;
    }
    .spec-list li strong {
        font-size: 16px;
    }
}


/* --------------------- Gallery Section --------------------- */
.gallary-section {
    width: 100%;
    background-color: #2a2a2a;
    padding: 60px 20px;
    color: #fff;
}

.gallay-container {
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards;
    animation-delay: 0.2s;
}

.gallay-container h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeLeft 1s forwards;
    animation-delay: 0.3s;
}

.gallay-container p {
    font-size: 20px;
    color: #b3b3b3;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeLeft 1s forwards;
    animation-delay: 0.5s;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card flip */
.gallery-card {
    perspective: 1000px;
    height: 300px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards;
}

/* staggered animation for each card */
.gallery-card:nth-child(1) { animation-delay: 0.6s; }
.gallery-card:nth-child(2) { animation-delay: 0.7s; }
.gallery-card:nth-child(3) { animation-delay: 0.8s; }
.gallery-card:nth-child(4) { animation-delay: 0.9s; }
.gallery-card:nth-child(5) { animation-delay: 1s; }
.gallery-card:nth-child(6) { animation-delay: 1.1s; }

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.gallery-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-back {
    background-color: #2a2a2a;
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.card-back h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.card-back p {
    font-size: 16px;
}

/* Video Section */
.video-section {
    max-width: 1200px;
    margin: 60px auto 0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards;
    animation-delay: 1.2s;
}

.video-section p {
    font-size: 24px;
    margin-bottom: 20px;
}

.video-wrapper iframe {
    width: 100%;
    max-width: 100%;
    height: 500px; 
    border-radius: 15px;
}

/* --------------------- Fade Animations --------------------- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallay-container h2 {
        font-size: 28px;
    }
    .gallay-container p {
        font-size: 14px; 
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-card {
        height: 200px; 
    }
    .video-wrapper iframe {
        height: 250px; 
    }
}


/* --------------------- Contact Section --------------------- */
.contact-section {
    width: 100%;
    background-color: #1a1a1a;
    padding: 60px 20px;
    color: #fff;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Header block */
.contact-header {
    width: 100%;
    margin-bottom: 30px;
}

.contact-header h2,
.contact-header p {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards;
}

.contact-header h2 { 
    animation-delay: 0.2s; 
    font-size: 36px; 
    margin-bottom: 10px; 
}

.contact-header p { 
    animation-delay: 0.3s; 
    font-size: 16px; 
    color: #b3b3b3; 
}

/* Form Left */
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form form {
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #4a90e2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #555;
    background-color: #1a1a1a;
    color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { 
    color: #999; 
}

.contact-form .btn {
    padding: 12px 25px;
    background-color: #4a90e2;
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form .btn:hover { 
    background-color: #357ABD; 
}

/* Right Contact Info Boxes */
/* Right Contact Info Boxes */
.contact-info-boxes {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column; 
    gap: 20px;
}

.info-box {
    background-color: #2a2a2a;
    border-radius: 15px;
    border: 1px solid #4a90e2;
    padding: 15px 20px;
    display: flex;
    flex-direction: column; 
    gap: 29px; 
    transition: transform 0.3s;
    }

.info-box:hover { transform: translateY(-5px); }

.info-box-header {
    display: flex;
    align-items: center;
    gap: 10px; 
}

.info-box-header i {
    font-size: 24px;
    color: #4a90e2;
}

.info-box-header h4 {
    font-size: 16px; 
    margin: 0;
    color: #fff;
}

.info-box p {
    font-size: 18px;
    margin: 0;
    color: #b3b3b3;
}


/* Fade Animations */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-info-boxes { flex-direction: column; }
}

@media (max-width: 768px) {
    .contact-container { flex-direction: column; }
    .contact-header h2 { font-size: 28px; }
    .contact-header p { font-size: 14px; }
    .contact-form form { padding: 20px; }
}


/* --------------------- Footer Creative Design --------------------- */
.footer {
    width: 100%;
    background-color: #111;
    padding: 60px 20px;
    color: #b3b3b3;
    border-top: 2px solid #4a90e2;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, rgba(74,144,226,0.1), rgba(74,144,226,0.3), rgba(74,144,226,0.1));
    transform: rotate(45deg);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* Left Column */
.footer-left h3 {
    margin-bottom: 5px;
    font-size: 28px;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 1px;
}
.footer-left p {
    font-size: 19px;
    margin-bottom: 15px;
    color: #b3b3b3;
}
.footer-left .footer-social a {
    color: #b3b3b3;
    margin-right: 15px;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #4a90e2; 
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    text-decoration: none;
}
.footer-left .footer-social a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0%;
    height: 0%;
    background: rgba(74,144,226,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.4s ease;
}
.footer-left .footer-social a:hover {
    color: #4a90e2;
    transform: scale(1.3);
}
.footer-left .footer-social a:hover::after {
    width: 120%;
    height: 120%;
    opacity: 1;
}

/* Middle Column */
.footer-middle h4 {
    font-size: 19px;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-middle ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-middle ul li {
    margin-bottom: 10px;
}
.footer-middle ul li a {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}
.footer-middle ul li a:hover {
    color: #4a90e2;
    transform: translateX(5px);
}

/* Right Column */
.footer-right h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-right p {
    margin: 8px 0;
    color: #b3b3b3;
}
.footer-right p span {
    display: block;
    color: #fff;
    font-weight: 500;
}

/* Bottom Text */
.footer-bottom {
    width: 100%;
    border-top: 1px solid #4a90e2;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #b3b3b3;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-container { flex-direction: column; align-items: flex-start; gap: 30px; }
    .footer-left h3 { font-size: 24px; }
    .footer-middle h4, .footer-right h4 { font-size: 16px; }
}
@media (max-width: 768px) {
    .footer-left, .footer-middle, .footer-right { width: 100%; }
}

/* Custom Alert */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4a90e2;
    color: #fff;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
    z-index: 9999;
    font-weight: 600;
}

/* Show alert */
.custom-alert.show {
    opacity: 1;
    transform: translateY(0);
}

