:root {
    --color-bg: #050505;
    --color-surface: #0a0a0a;
    --color-text-main: #ffffff;
    --color-text-muted: #888888;
    --color-gold: #D4AF37;
    --color-gold-glow: rgba(212, 175, 55, 0.4);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --container-width: 1200px;
    --header-height: 100px; /* Increased for bigger logo */
}

/* Reset basics */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Background Effects */
.site-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #020202; /* Deep dark background */
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind content but above base bg */
    opacity: 0.6;
}

.glow-orb {
    position: absolute;
    top: 20%; left: 50%;
    width: 80vh; height: 80vh;
    background: radial-gradient(circle, var(--color-gold-glow) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    transform: translate(-50%, -50%);
    animation: pulseOrb 10s infinite alternate;
}

.grid-overlay {
    position: absolute;
    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;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

@keyframes pulseOrb {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.25; }
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo-wrapper {
    height: 100px; /* Significantly larger */
    display: flex;
    align-items: center;
}

.logo {
    height: 100%;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

.contact-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
}

.contact-btn:hover {
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.1);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.9fr; /* More space for visual */
    gap: 2rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.eyebrow {
    display: block;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-heading em {
    font-style: italic;
    color: #eee;
}

.hero-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--color-gold);
    color: #000;
    box-shadow: 0 10px 20px -5px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(255, 255, 255, 0.3);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
}

.lang-switch a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
    text-decoration: none;
    color: inherit;
}

.lang-switch a:hover {
    opacity: 1;
    color: var(--color-gold);
}

.lang-switch svg {
    stroke-width: 1.5px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Fix Link Arrow for RTL */
.link-arrow { display: inline-block; } 
/* Removed bidi-override which reversed text */

.visual-wrapper {
    width: 100%;
    /* max-width removed to allow full scaling */
    animation: floatImage 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(255,255,255,0.05));
    transform: scale(1.9); /* Maximum Scale */
    transform-origin: center center;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Vision Section */
.vision {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.6); /* Transparent Dark Background for Section */
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
    margin: 4rem 0;
    border-radius: 20px;
}

.section-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    text-transform: uppercase;
    font-size: 0.75rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 3rem; /* Small space requested */
}

.vision-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch; /* Forces equal height based on tallest card */
}

.v-card {
    padding: 2rem; /* Reduced padding for compactness */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically if card stretches */
    height: 100%; /* Stretches to match the grid row */
    min-height: auto; /* Remove fixed height to eliminate empty space */
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Subtle pulse animation for "Life" */
@keyframes borderPulse {
    0% { border-color: rgba(255,255,255,0.08); }
    50% { border-color: rgba(212, 175, 55, 0.3); }
    100% { border-color: rgba(255,255,255,0.08); }
}

.v-card {
    animation: borderPulse 4s infinite; /* Alive breathing effect */
}

.v-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--color-gold);
    opacity: 0.3; /* Partially visible by default */
    transition: opacity 0.3s;
}

.v-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-color: var(--color-gold);
    box-shadow: 0 10px 40px -10px rgba(212, 175, 55, 0.15); /* Gold shadow */
}

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

.v-num {
    font-family: var(--font-heading);
    font-size: 4rem; /* Even Larger */
    color: rgba(255,255,255,0.03); /* Subtle fill by default */
    -webkit-text-stroke: 1px rgba(255,255,255,0.2); /* Visible outline */
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    transition: all 0.4s;
    opacity: 0.5;
}

.v-card:hover .v-num {
    color: rgba(212, 175, 55, 0.1);
    -webkit-text-stroke: 1px var(--color-gold);
    opacity: 1;
    transform: scale(1.05);
}

.v-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    margin-top: 2rem; 
    color: #fff;
    position: relative;
    z-index: 2;
}

.v-card p {
    color: #aaa; /* Brighter default text */
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.v-card:hover p {
    color: #fff;
}

/* Ecosystem Section */
.ecosystem {
    padding: 100px 0;
}

.section-header-center {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--color-text-muted);
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force Single Row */
    gap: 2rem;
    align-items: stretch; /* Ensure equal height */
    margin-top: 3rem;
}

.company-card {
    display: flex; /* Changed from block to flex to ensure proper height handling */
    flex-direction: column;
    height: 100%; /* Fill Grid Cell */
    min-height: 550px; /* Forced minimum height */
    text-decoration: none;
    color: white;
    background: rgba(10, 10, 10, 0.5); 
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
    position: relative;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.card-inner {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center; /* Center Content */
    text-align: center; /* Center Text */
}

/* Company Logos */
.card-icon-wrapper {
    width: 140px; /* Much Larger */
    height: 140px;
    margin-bottom: 2rem;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-logo {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(3); /* Super Bright White */
    transition: all 0.4s ease;
    opacity: 0.9;
}

.company-card:hover .card-logo {
    filter: none; 
    transform: scale(1.15);
    opacity: 1;
}

/* Brand Specific Logo Coloring via Filters */
/* Tech (Blue #3498db) */
.company-card:hover .logo-tech {
    filter: drop-shadow(0 0 15px rgba(52, 152, 219, 0.8)); /* Glow only, keep original color or filter if needed */
    /* If logos are white SVG, we might need filter to colorize them. 
       Assuming logo.svg is white/monochrome, we re-apply filters if needed. 
       I will use the previous complex filters to ensure color appears. 
    */
    filter: brightness(0) saturate(100%) invert(53%) sepia(31%) saturate(1063%) hue-rotate(174deg) brightness(91%) contrast(91%) drop-shadow(0 0 20px rgba(52, 152, 219, 0.6));
}

/* Media (Red #e74c3c) */
.company-card:hover .logo-media {
    filter: brightness(0) saturate(100%) invert(43%) sepia(93%) saturate(1352%) hue-rotate(338deg) brightness(92%) contrast(85%) drop-shadow(0 0 20px rgba(231, 76, 60, 0.6));
}

/* Growth (Green #2ecc71) */
.company-card:hover .logo-growth {
    filter: brightness(0) saturate(100%) invert(67%) sepia(61%) saturate(464%) hue-rotate(85deg) brightness(87%) contrast(90%) drop-shadow(0 0 20px rgba(46, 204, 113, 0.6));
}

.company-card h3 { font-size: 1.8rem; margin-bottom: 0.5rem; margin-top: 1rem; }
.role { display: block; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 1.5rem; opacity: 0.8; color: var(--color-gold); font-weight: 600; }
.company-card p { color: #bbb; font-size: 1rem; margin-bottom: 2rem; flex-grow: 1; line-height: 1.6; max-width: 300px; }

.link-arrow { color: #fff; font-weight: 600; font-size: 1rem; margin-top: auto; border-bottom: 1px solid var(--color-gold); padding-bottom: 5px; }

/* Company Specific Accents */
.card-tech:hover { border-color: rgba(52, 152, 219, 0.5); background: rgba(52, 152, 219, 0.05); }
.card-media:hover { border-color: rgba(231, 76, 60, 0.5); background: rgba(231, 76, 60, 0.05); }
.card-growth:hover { border-color: rgba(46, 204, 113, 0.5); background: rgba(46, 204, 113, 0.05); }

/* Footer */
.footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.8); /* Darker background for footer */
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: center; /* Vertically center all columns relative to each other */
}

/* Brand Column */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    text-align: center; /* Center text */
}

.footer-logo {
    width: 140px; 
    height: auto;
    display: block;
    margin-bottom: 1.5rem;
    opacity: 1; 
    filter: brightness(0) invert(1); 
}

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

/* Titles */
.footer h4 {
    color: #fff;
    font-size: 1rem; 
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0; /* Remove manual offset */
}

/* Social Center Alignment */
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center header and icons */
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center; /* Center icons in the row */
}

.social-link {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.social-link:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: #000;
    transform: translateY(-5px);
}

/* Contact Info Center Alignment */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center; /* Center items flex-wise */
    text-align: center; /* Center text content */
}

.contact-item {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

.contact-item:hover {
    color: var(--color-gold);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .footer-logo { margin: 0 auto 1.5rem; }
    .footer-desc { margin: 0 auto; }
    .social-icons { justify-content: center; }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-heading { font-size: 3.5rem; }
    .visual-wrapper { margin: 0 auto; }
    .vision-cards { grid-template-columns: 1fr; }
}
