/* ===== CSS VARIABLES ===== */
:root {
    --charcoal: #0A0C0F;
    --slate: #12151C;
    --surface: #0E1117;
    --aja-red: #C41E2A;
    --aja-red-hover: #A01820;
    --amber: #F5A623;
    --off-white: #F8F9FA;
    --sand: #D4C4A8;
}

/* ===== BASE STYLES ===== */
body {
    background-color: var(--charcoal);
    color: var(--off-white);
    font-family: 'Cairo', 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--charcoal);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--aja-red);
}

/* ===== TEXT GRADIENT ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--aja-red) 0%, var(--amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.15em 0;
    display: inline-block;
    line-height: 1.5;
}

/* ===== NAVIGATION ===== */
.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* ===== HERO SECTION ===== */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: grayscale(30%);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            var(--charcoal) 0%,
            transparent 30%,
            transparent 70%,
            var(--charcoal) 100%);
    z-index: 1;
}

.light-beam {
    position: absolute;
    width: 800px;
    height: 1000px;
    top: -20%;
    right: -10%;
    background: radial-gradient(ellipse at center, rgba(196, 30, 42, 0.15) 0%, transparent 60%);
    transform: rotate(-30deg) scale(1.5);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
    animation: beam-pulse 8s ease-in-out infinite;
}

.light-beam-2 {
    position: absolute;
    width: 600px;
    height: 800px;
    top: 20%;
    left: -20%;
    background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.08) 0%, transparent 60%);
    transform: rotate(30deg) scale(1.3);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
    animation: beam-pulse 10s ease-in-out infinite reverse;
}

@keyframes beam-pulse {

    0%,
    100% {
        opacity: 1;
        transform: rotate(-30deg) scale(1.5);
    }

    50% {
        opacity: 0.6;
        transform: rotate(-30deg) scale(1.7);
    }
}

.grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ===== HERO CARD ===== */
.hero-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ===== GRID TEXTURE ===== */
.grid-texture {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40V0' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.3;
}

/* ===== SECTION BACKGROUNDS ===== */
.about-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/about-section.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    filter: grayscale(40%);
}

.methodology-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/methodology-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    filter: grayscale(30%);
}

/* ===== AMBIENT LIGHTS ===== */
.ambient-light {
    position: absolute;
    right: -10%;
    top: 20%;
    width: 400px;
    height: 400px;
    background: rgba(196, 30, 42, 0.08);
    border-radius: 50%;
    filter: blur(120px);
}

.ambient-light-2 {
    position: absolute;
    left: -10%;
    bottom: 10%;
    width: 300px;
    height: 300px;
    background: rgba(245, 166, 35, 0.05);
    border-radius: 50%;
    filter: blur(100px);
}

/* ===== STATS BACKGROUND ===== */
.stats-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/partners-section.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.08;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: rgba(10, 12, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    border-color: rgba(245, 166, 35, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(245, 166, 35, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

/* ===== VALUE CARDS ===== */
.value-card {
    padding: 1.5rem;
    background: rgba(18, 21, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: rgba(196, 30, 42, 0.3);
    transform: translateY(-4px);
}

.value-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(196, 30, 42, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aja-red);
    margin-bottom: 1rem;
}

/* ===== STEP CARDS ===== */
.step-card {
    position: relative;
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--slate) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber);
    font-family: 'IBM Plex Mono', monospace;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    border-color: var(--amber);
    box-shadow: 0 0 30px -5px rgba(245, 166, 35, 0.3);
    transform: scale(1.1);
}

.step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.step-card:hover .step-title {
    color: var(--amber);
}

.step-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: rgba(18, 21, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(196, 30, 42, 0.3);
}

.stat-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: rgba(196, 30, 42, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aja-red);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--aja-red);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== SECTOR CARDS ===== */
.sector-card {
    background: rgba(10, 12, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.4s ease;
}

.sector-card:hover {
    border-color: var(--aja-red);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.sector-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.sector-card:hover .sector-icon {
    background: var(--aja-red);
}

/* ===== PRODUCT ITEMS ===== */
.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    background: rgba(18, 21, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.product-item:hover {
    color: white;
    border-color: rgba(196, 30, 42, 0.3);
    background: rgba(196, 30, 42, 0.1);
}

/* ===== CONTACT METHODS ===== */
.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(18, 21, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
}

.contact-icon {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
    background: rgba(18, 21, 28, 0.9);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(10, 12, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--aja-red);
    box-shadow: 0 0 0 3px rgba(196, 30, 42, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1rem;
    padding-left: 2.5rem;
}

/* ===== FOOTER ===== */
.footer-social {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.footer-social:hover {
    background: var(--aja-red);
    color: white;
}

/* ===== SCROLL REVEAL ===== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .step-number {
        width: 4rem;
        height: 4rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-card {
        animation: none;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}