:root {
    --primary-color: #143c6e;
    /* Extracted Deep Blue */
    --secondary-color: #ffa00a;
    /* Extracted Orange/Gold */
    --bg-color: #050505;
    /* Very dark almost black */
    --text-color: #f5f5f7;
    --text-muted: #a1a1a6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    /* Industrial spacing */
    text-transform: uppercase;
    /* Stronger look */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
}

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

.logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

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

.lang-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    transition: var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Increased for parallax */
    background-image: url('../assets/images/main_pic.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: brightness(0.5);
    will-change: transform;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #fff, #b0b0b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--text-color);
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.bg-darker {
    background-color: rgba(255, 255, 255, 0.02);
    /* Subtle contrast for dark theme */
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
}

/* Cards (Liquid Glass) */
.card,
.value-item,
.adv-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--glass-shadow);
    text-align: center;
    /* Center text in cards */
}

.card:hover,
.value-item:hover,
.adv-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
    /* Center text in About section */
}

.mission-goals {
    display: grid;
    gap: 1.5rem;
}

.card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.values-section h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.value-item {
    text-align: center;
}

.value-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

.adv-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.adv-card h3 {
    margin-bottom: 1rem;
}

.adv-card p {
    color: var(--text-muted);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-item {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--glass-shadow);
}

.project-img {
    width: 100%;
    height: 100%;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-img img {
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--text-color);
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    /* Improve contrast */
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    /* Improve contrast */
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow-y: auto;
}

.modal-content {
    background: #1c1c1e;
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 0;
}

.modal-body img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.modal-text {
    padding: 2rem;
}

.modal-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-text p {
    color: var(--text-muted);
    white-space: pre-line;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    /* Center text in Contact section */
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center contact items */
    gap: 1rem;
    color: var(--text-muted);
}

.contact-info i {
    color: var(--primary-color);
}

.contact-map iframe {
    border-radius: 20px;
    filter: grayscale(1);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.contact-map iframe:hover {
    opacity: 1;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .burger {
        display: block;
        z-index: 1001;
        cursor: pointer;
    }

    .burger div {
        width: 25px;
        height: 2px;
        background: var(--text-color);
        margin: 5px;
        transition: all 0.3s ease;
    }

    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.toggle .line2 {
        opacity: 0;
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
}