@font-face {
    font-family: 'EgyptianHieroglyphs';
    src: url('fonts/NotoSansEgyptianHieroglyphs-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

:root {
    --primary-color: #C5A572;
    --secondary-color: #DAA520;
    --text-color: #e8e0d4;
    --background-color: #0a0a0f;
    --hieroglyph-color: #8B7355;
    --accent-color: #B8860B;
    --gold: #DAA520;
    --gold-light: #F5D76E;
    --gold-dark: #B8860B;
    --obsidian: #0a0a0f;
    --obsidian-light: #12121a;
    --sandstone: #C5A572;
    --bronze: #8B7355;
    --text-primary: #e8e0d4;
    --text-secondary: #9a9080;
    --content-max: 1200px;
    --content-wide: 1600px;
    --header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(139, 115, 85, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(218, 165, 32, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(184, 134, 11, 0.03) 0%, transparent 60%);
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
    width: 100%;
}

header {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.98), rgba(10, 10, 15, 0.95));
    border-bottom: 1px solid rgba(197, 165, 114, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0 clamp(16px, 3vw, 32px);
    flex-shrink: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--content-wide);
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    height: 52px;
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-img {
    width: 40px;
    height: 40px;
}

.site-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    background: linear-gradient(
        45deg,
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        var(--gold-light) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 8s linear infinite;
}

.site-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--primary-color),
        var(--secondary-color),
        transparent
    );
    opacity: 0.4;
}

.nav-bar {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 10px;
    border-radius: 30px;
    border: 1px solid rgba(197, 165, 114, 0.08);
}

.nav-button {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 7px 14px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(0.65rem, 0.85vw, 0.78rem);
    border: 1px solid transparent;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.nav-button:hover {
    color: var(--gold);
    background: rgba(218, 165, 32, 0.06);
    border-color: rgba(218, 165, 32, 0.15);
}

.nav-button.active {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.15), rgba(197, 165, 114, 0.08));
    color: var(--gold);
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.nav-button.education-link {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.1), rgba(218, 165, 32, 0.06));
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.nav-button.education-link i {
    margin-right: 4px;
    font-size: 0.7rem;
}

.nav-button.education-link:hover {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.2), rgba(218, 165, 32, 0.12));
    border-color: rgba(218, 165, 32, 0.35);
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.15);
}

.nav-button.lang-switch {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding: 7px 12px;
    background: rgba(218, 165, 32, 0.08);
    border: 1px solid rgba(218, 165, 32, 0.25);
    color: var(--gold);
    margin-left: 4px;
}

.nav-button.lang-switch:hover {
    background: rgba(218, 165, 32, 0.18);
    border-color: rgba(218, 165, 32, 0.45);
    box-shadow: 0 0 12px rgba(218, 165, 32, 0.12);
}

.mobile-nav-link.lang-switch {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: var(--gold);
    border-left-color: var(--gold);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sandstone);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(197, 165, 114, 0.1);
    flex-direction: column;
    padding: 8px 0;
    z-index: 999;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav-link {
    display: block;
    padding: 14px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--gold);
    background: rgba(218, 165, 32, 0.05);
    border-left-color: var(--gold);
}

.hero {
    text-align: center;
    padding: clamp(60px, 10vh, 120px) clamp(20px, 4vw, 40px) clamp(40px, 6vh, 80px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(139, 115, 85, 0.06));
    pointer-events: none;
}

.hero h1 {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 30px rgba(218, 165, 32, 0.1);
    font-family: 'Cinzel', serif;
}

.gradient-text {
    background: linear-gradient(
        45deg,
        var(--sandstone),
        var(--secondary-color),
        var(--gold-light),
        var(--secondary-color),
        var(--sandstone)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 3s linear infinite;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.15;
}

h2 {
    color: var(--text-primary);
}

.tagline {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--sandstone);
    margin-bottom: 32px;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.cta-button {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--obsidian);
}

.primary:hover {
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.3);
}

.secondary {
    background: transparent;
    color: var(--sandstone);
    border: 1px solid rgba(197, 165, 114, 0.3);
}

.secondary:hover {
    border-color: var(--sandstone);
    background: rgba(197, 165, 114, 0.08);
    box-shadow: 0 8px 25px rgba(197, 165, 114, 0.1);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 24px;
    padding: clamp(40px, 6vw, 80px) clamp(16px, 3vw, 24px);
    max-width: var(--content-max);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

.feature-card {
    background: linear-gradient(145deg, rgba(18, 18, 26, 0.9), rgba(12, 12, 18, 0.95));
    padding: clamp(24px, 3vw, 40px);
    text-align: center;
    position: relative;
    border: 1px solid rgba(197, 165, 114, 0.08);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 165, 114, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(218, 165, 32, 0.04);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card i {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 18px;
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.featured-project {
    max-width: 900px;
    margin: clamp(20px, 4vw, 48px) auto clamp(32px, 5vw, 64px);
    padding: clamp(28px, 4vw, 52px);
    background: linear-gradient(145deg, rgba(18, 18, 26, 0.95), rgba(10, 10, 15, 0.98));
    border: 1px solid rgba(218, 165, 32, 0.15);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2;
    width: calc(100% - clamp(24px, 4vw, 48px));
}

.featured-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.featured-content {
    position: relative;
    z-index: 2;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--obsidian);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.featured-badge i {
    font-size: 0.65rem;
}

.featured-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.15), rgba(197, 165, 114, 0.08));
    border: 1px solid rgba(218, 165, 32, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-icon-wrapper i {
    font-size: 2rem;
    color: var(--gold);
}

.featured-project h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--text-primary);
    margin-bottom: 10px;
}

.featured-tagline {
    font-size: 1.1rem;
    color: var(--sandstone);
    font-weight: 500;
    margin-bottom: 15px;
}

.featured-description {
    max-width: 600px;
    margin: 0 auto 24px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.featured-features {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.featured-features span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(218, 165, 32, 0.06);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--sandstone);
    border: 1px solid rgba(218, 165, 32, 0.12);
    transition: all 0.3s ease;
}

.featured-features span:hover {
    background: rgba(218, 165, 32, 0.1);
    transform: translateY(-2px);
}

.featured-features span i {
    color: var(--gold);
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--obsidian);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.featured-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.3);
}

.featured-cta i {
    transition: transform 0.3s ease;
}

.featured-cta:hover i {
    transform: translateX(4px);
}

.animated-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--obsidian);
    pointer-events: none;
}

.animated-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(139, 115, 85, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(218, 165, 32, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(184, 134, 11, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hieroglyph-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    font-family: 'EgyptianHieroglyphs', 'Noto Sans Egyptian Hieroglyphs', serif;
}

.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
}

.section-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    margin-bottom: 40px;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.site-footer {
    background: rgba(5, 5, 8, 0.95);
    border-top: 1px solid rgba(197, 165, 114, 0.08);
    padding: clamp(32px, 5vw, 48px) clamp(16px, 3vw, 32px) 24px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--content-max);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: clamp(24px, 3vw, 40px);
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--gold-light));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-brand-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 165, 114, 0.12);
    border-radius: 8px;
}

.footer-socials a:hover {
    color: var(--gold);
    border-color: rgba(218, 165, 32, 0.3);
    background: rgba(218, 165, 32, 0.06);
    transform: translateY(-2px);
}

.footer-col-heading {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sandstone);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links li a:hover {
    color: var(--gold);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(197, 165, 114, 0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px rgba(139, 115, 85, 0.3); }
    100% { text-shadow: 0 0 20px rgba(139, 115, 85, 0.5); }
}

@keyframes shimmer {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.section-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 2000px) {
    :root {
        --content-max: 1400px;
        --content-wide: 1800px;
    }
}

@media (max-width: 1100px) {
    .nav-bar {
        gap: 3px;
        padding: 4px 8px;
    }
}

@media (max-width: 900px) {
    .nav-bar {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    header {
        padding: 0 16px;
    }

    .site-title {
        letter-spacing: 2px;
    }

    .logo-img {
        width: 36px;
        height: 36px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        min-width: 220px;
        justify-content: center;
    }

    .featured-features {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

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

@media (max-width: 600px) {
    .features {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
