@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Body settings */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    background-color: #eeeeee;
    overflow-x: hidden;
    direction: ltr;
}

/* Main colors */
:root {
    --mainColor: #000D31;
    --fontColor: #0E1E63;
}

::selection {
    background-color: var(--mainColor);
    color: white;
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

header nav {
    width: 95%;
    height: 80px;
    background-color: var(--mainColor);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 50px;
    transition: all 0.6s ease-in-out;
    padding: 0 40px;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 10px;
}

header nav.blue-nav {
    background-color: var(--mainColor) !important;
    backdrop-filter: none !important;
}

header nav.transparent-nav {
    background-color: rgba(0, 13, 49, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

header nav .logo {
    height: 70px;
    cursor: pointer;
    transition: all 0.3s ease;
}

header nav .options {
    display: flex;
    gap: 15px;
}

header nav .options li {
    list-style: none;
}

/* header nav .options li a {
    color: white;
    padding: 0 15px;
    text-decoration: none;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
    font-size: 16px;
    white-space: nowrap;
} */
header nav .options li a {
    color: white;
    padding: 0 20px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 18px;
    line-height: 1;
    align-items: center;
}

header nav .options li a:hover {
    color: #002fff99;
}

header nav .options .column a {
    font-size: 15px;
}

header nav .lang {
    list-style: none;
    display: flex;
    align-items: center;
}

header nav .lang .flag {
    width: 30px;
    margin-left: 15px;
    transition: 0.3s;
}

header nav .lang .flag:hover {
    width: 35px;
}

nav .dropdown {
    position: relative;
}

nav .dropdown .arrow {
    margin-right: 6px;
    font-size: 16px;
}

.dropdown:hover .mega-menu {
    display: flex;
}

/* Mega menu style */
.mega-menu.clean-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #c3c5c4;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 200px;
    gap: 30px;
    z-index: 100;
    color: var(--fontColor);
    max-height: 300px; 
    overflow-y: auto;
}

header nav .options .column a:hover {
    color: var(--fontColor);
}

.mega-menu .column {
    display: flex;
    flex-direction: column;
}

.mega-menu .column a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #002f6c;
    transition: 0.3s;
    font-size: 14px;
}

/* Burger icon */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    width: 30px;
    height: 25px;
}

.burger-menu span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 13, 49, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: left 0.4s ease-in-out;
    z-index: 9998;
    text-align: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu ul li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 12px 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--mainColor);
    display: block;
}

.mobile-menu ul li a:hover {
    background-color: var(--mainColor);
    color: #fff;
    transform: scale(1.05);
}

.mobile-extras {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 400px;
}

.home-btn {
    text-decoration: none;
    color: white;
    font-size: 16px;
    background-color: var(--mainColor);
    padding: 10px 20px;
    border-radius: 10px;
    transition: 0.3s ease;
    border: 1px solid white;
    width: 100%;
    text-align: center;
}

.home-btn:hover {
    background-color: white;
    color: var(--mainColor);
}

.language-options {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.language-options .flag {
    width: 35px;
    height: 25px;
    transition: 0.3s ease;
    border-radius: 5px;
    border: 2px solid white;
}

.language-options .flag:hover {
    transform: scale(1.2);
    border-color: var(--mainColor);
}

/* On scroll */
header.scrolled nav {
    background-color: rgba(0, 13, 49, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease-in-out;
    border-radius: 50px;
}

header.scrolled nav .options li a {
    color: white;
}

header.scrolled nav .options .clean-menu .column a {
    color: var(--mainColor);
}

header.scrolled nav .options li a:hover {
    color: #4DA3F2;
}

/* Main content section */

.sub .photo {
    width: 100%;
    height: 600px;
    background-color: var(--fontColor);
    background-image: url(../images/buy.jpg);
    background-size: cover;
    background-position: center;
    border-bottom: 10px solid var(--mainColor);
    border-radius: 10px;
    margin-bottom: 30px;
}

.sub h1 {
    font-size: 36px;
    color: var(--mainColor);
    margin-bottom: 30px;
    text-align: center;
}

.sub p {
    font-size: 18px;
    line-height: 1.8;
    margin-left: 5%;
    width: 90%;
    text-align: justify;
    padding: 0 15px;
    position: relative;
}

.sub p::before {
    content: ' ';
    width: 10px;
    height: 10px;
    background: var(--mainColor);
    border: 1px solid var(--fontColor);
    position: absolute;
    top: 10px;
    left: -20px;
}

.sub .second {
    margin-top: 50px;
    margin-bottom: 50px;
}

footer {
    width: 100%;
    height: 60px;
    background-color: var(--mainColor);
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

/* Responsiveness improvements */
@media (max-width: 1200px) {
    header nav {
        width: 98%;
        padding: 0 20px;
    }
    
    header nav .options li a {
        padding: 0 12px;
        font-size: 15px;
    }
    
    .sub h1 {
        font-size: 32px;
    }
    
    .sub p {
        font-size: 17px;
        max-width: 800px;
    }
}

@media (max-width: 992px) {
    header nav .options {
        gap: 10px;
    }
    
    header nav .options li a {
        padding: 0 10px;
        font-size: 14px;
    }
    
    .sub h1 {
        font-size: 28px;
    }
    
    .sub p {
        font-size: 16px;
        max-width: 700px;
    }
    
    .mega-menu.clean-menu {
        width: 180px;
    }
}

@media (max-width: 768px) {
    header nav .options,
    header nav .lang {
        display: none;
    }

    .burger-menu {
        display: flex;
    }
    
    header nav {
        height: 70px;
        padding: 0 15px;
        border-radius: 35px;
    }
    
    header nav .logo {
        height: 60px;
    }
    
    .sub {
        margin-top: 90px;
    }
    
    .sub .photo {
        height: 300px;
    }
    
    .sub h1 {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .sub p {
        font-size: 16px;
        text-align: left;
        padding: 0 10px;
    }
    
    .sub p::before {
        left: -15px;
    }
    
    .mega-menu.clean-menu {
        width: 160px;
        left: -10px;
    }
}

@media (max-width: 576px) {
    header nav {
        height: 60px;
        padding: 0 10px;
    }
    
    header nav .logo {
        height: 50px;
    }
    
    .burger-menu {
        width: 25px;
        height: 20px;
    }
    
    .sub {
        margin-top: 0px;
    }
    
    .sub .photo {
        height: 300px;
    }
    
    .sub h1 {
        font-size: 24px;
    }
    
    .sub p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .sub p::before {
        width: 8px;
        height: 8px;
        left: -12px;
    }
    
    .mobile-menu ul {
        max-width: 300px;
    }
    
    .mobile-menu ul li a {
        font-size: 15px;
    }
    
    footer {
        height: 50px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    header nav .logo {
        height: 45px;
    }
    
    .sub .photo {
        height: 200px;
    }
    
    .sub h1 {
        font-size: 22px;
    }
    
    .sub p {
        font-size: 14px;
    }
    
    .sub p::before {
        display: none;
    }
}