/* 
 * Prime Universe - Premium Design System
 * Colors: Navy Blue (#003c58), Light Gold (#caa34d), Dark Gold (#9d7d2f)
 */

@font-face {
    font-family: 'DINNextLTArabic-Regular';
    src: url('assets/din-next-lt-arabic-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DINNextLTArabic-Bold';
    src: url('assets/din-next-lt-arabic-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --primary-color: #003c58;
    --primary-dark: #002b40;
    --primary-light: #005075;

    --accent-light: #caa34d;
    --accent-dark: #9d7d2f;

    --text-light: #fcfcfc;
    --text-dim: #e0e0e0;
    --text-dark: #1a1a1a;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --font-heading: 'DINNextLTArabic-Bold', sans-serif;
    --font-body: 'DINNextLTArabic-Regular', sans-serif;

    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-glass {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    color: var(--primary-dark);
    border: none;
    box-shadow: 0 4px 15px rgba(202, 163, 77, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(202, 163, 77, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--accent-light);
}

.btn-secondary:hover {
    background: rgba(202, 163, 77, 0.1);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

.drawer-cta {
    display: none;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    padding: 1.5rem 0;
}

#navbar.scrolled {
    background: rgba(0, 60, 88, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
}

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

.logo-img {
    height: 40px;
    object-fit: contain;
}

.nav-links ul {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-light);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--accent-light);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #005075 0%, #003c58 40%, #001f2e 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    padding-bottom: 0.1em;
    background: linear-gradient(to right, #fff, var(--accent-light), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-light);
    border-radius: 50%;
    animation: scroll 1.5s infinite;
}

/* Sections General */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    padding-bottom: 0.1em;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: var(--accent-light);
    margin-bottom: 2rem;
}

.title-underline.centered {
    margin: 0 auto 2rem auto;
}

.section-description {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: var(--text-dim);
}

/* About Section */
.about-section {
    background-color: var(--primary-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.vm-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 3px solid var(--accent-light);
}

[dir="rtl"] .vm-item {
    border-left: none;
    border-right: 3px solid var(--accent-light);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-light);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-glass-card {
    position: relative;
    height: 400px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--glass-shadow);
}

.floating-icon {
    width: 150px;
    height: 150px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(202, 163, 77, 0.2));
}

/* Services Section */
.services-section {
    background-color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 10px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.glass-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--accent-light);
    font-weight: 600;
}

.service-link:hover {
    color: #fff;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 60, 88, 0.9), rgba(0, 43, 64, 0.95)), url('assets/uniprime-icon.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0;
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item .icon {
    color: var(--accent-light);
    background: rgba(202, 163, 77, 0.1);
    padding: 0.8rem;
    border-radius: 50%;
}

.glass-form {
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 2px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-light);
    background: rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
    background-color: #001f2e;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

.footer-mission {
    max-width: 400px;
}

.footer-logo-img {
    height: 50px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer-tagline {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-top: 1rem;
    opacity: 0.8;
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-light);
}

[dir="rtl"] .footer-col h4::after {
    left: auto;
    right: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-dim);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.social-link {
    color: var(--text-dim);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    color: var(--accent-light);
    background: rgba(202, 163, 77, 0.1);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.footer-legal-links a:hover {
    color: var(--accent-light);
}

.footer-legal {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* RTL Support */
[dir="rtl"] {
    /* Font inherited from global settings */
}

[dir="rtl"] .nav-links a::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .btn-glass {
    flex-direction: row-reverse;
}

[dir="rtl"] .info-item {
    text-align: right;
    flex-direction: row-reverse;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 24px;
        opacity: 0;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Scroll Reveals */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-mission {
        grid-column: span 2;
        max-width: 100%;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-dark);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    [dir="rtl"] .nav-links {
        right: auto;
        left: -100%;
    }

    .nav-links.active {
        right: 0;
    }

    [dir="rtl"] .nav-links.active {
        right: auto;
        left: 0;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .footer-content {
        grid-template-columns: 100%;
        gap: 2.5rem;
    }

    .footer-mission {
        grid-column: 1;
        width: 100%;
    }

    .footer-mission p {
        word-break: break-word;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stats-grid,
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

    .nav-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .nav-actions .btn-primary {
        display: none;
    }

    [dir="rtl"] .nav-actions {
        margin-left: 0;
        margin-right: auto;
    }
}

/* Final fix for mobile drawer CTA */
@media (max-width: 768px) {
    .drawer-cta {
        display: block !important;
        margin-top: 2rem;
        padding: 0 1.5rem;
        width: 100%;
        text-align: center;
    }

    .drawer-cta .btn-primary {
        display: inline-block !important;
        width: 100%;
        padding: 0.8rem 1.5rem;
    }
}