/* =========================================
   LAGAAM - DESIGN SYSTEM & VARIABLES
========================================= */
:root {
    /* Colors */
    --bg-pure: #ffffff;
    --bg-offwhite: #f8f9fb;
    --text-main: #0a0a0b;
    --text-muted: #5e6066;
    
    /* Accents */
    --accent-blue: #007aff;
    --glow-blue: rgba(0, 122, 255, 0.3);
    --glow-ice: rgba(180, 225, 255, 0.4);
    --accent-purple: #7000ff;
    --glow-purple: rgba(112, 0, 255, 0.15);
    
    /* Gradients */
    --grad-silver: linear-gradient(135deg, #ffffff 0%, #e0e5ec 100%);
    --grad-text: linear-gradient(90deg, #0a0a0b, #4a4d55);
    
    /* Shadows & Glass */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(0, 122, 255, 0.08);
    --shadow-glow: 0 0 20px var(--glow-ice);
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacing */
    --section-pad: 120px 5%;
}

/* =========================================
   RESET & BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-pure);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Particle Background */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, var(--glow-ice), transparent 60%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title.massive {
    font-size: 5rem;
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    border-radius: 20px;
}

.hover-float {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.hover-float:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover), var(--shadow-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-pure);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--glow-blue);
}

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

.btn-secondary:hover {
    background: var(--bg-offwhite);
}

/* =========================================
   NAVIGATION
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 5%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links a {
    margin: 0 20px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-cta {
    background: var(--bg-offwhite);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--bg-pure);
    box-shadow: var(--shadow-soft);
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
    background-image: url('images/hero_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.hero-title {
    font-size: 5vw;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(180deg, #000 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Floating UI Elements */
.floating-panel {
    position: absolute;
    padding: 20px;
    border-radius: 16px;
    font-size: 0.9rem;
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

.panel-left {
    top: 30%;
    left: 10%;
    animation-delay: 0s;
}

.panel-right {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

.panel-header {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--accent-purple);
}

.scanning-line {
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.scanning-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: scan 2s linear infinite;
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    background: var(--accent-blue);
    border-radius: 50%;
    margin-top: 10px;
    box-shadow: 0 0 0 0 var(--glow-blue);
    animation: pulse 2s infinite;
}

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

@keyframes scan {
    100% { left: 100%; }
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 15px rgba(0,122,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,122,255,0); }
}

/* =========================================
   ABOUT SECTION
========================================= */
.about-section {
    padding: var(--section-pad);
    background: var(--bg-pure);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.about-text {
    padding: 50px;
    font-size: 1.25rem;
}

.about-text p {
    margin-bottom: 20px;
}

.about-visuals {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pipeline-visual {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pipeline-visual .node {
    padding: 20px;
    background: var(--bg-pure);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    font-weight: 500;
    position: relative;
}

.pipeline-visual .node::before {
    content: '';
    position: absolute;
    top: -5px; right: -5px; bottom: -5px; left: -5px;
    background: linear-gradient(45deg, var(--glow-blue), var(--glow-purple));
    z-index: -1;
    border-radius: 15px;
    opacity: 0.5;
    filter: blur(10px);
}

.pipeline-visual .line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    position: relative;
}

.pipeline-visual .line::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    top: -4px;
    left: 0;
    animation: pipeline-flow 2s infinite linear;
}

@keyframes pipeline-flow {
    100% { left: calc(100% - 10px); }
}

/* =========================================
   INDUSTRIES SECTION
========================================= */
.industries-section {
    padding: var(--section-pad);
    background: var(--grad-silver);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.industry-card {
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-pure);
    border-radius: 50%;
    color: var(--accent-blue);
    box-shadow: 0 10px 20px var(--glow-blue);
    transition: all 0.3s;
}

.industry-card:hover .card-icon {
    background: var(--accent-blue);
    color: var(--bg-pure);
    transform: scale(1.1);
}

/* =========================================
   RESEARCH SECTION
========================================= */
.research-section {
    padding: var(--section-pad);
}

.research-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px;
    margin-top: 50px;
}

.research-text ul {
    list-style: none;
}

.research-text li {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.research-text li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-purple);
}

.research-graphics {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 300px;
    background: rgba(0,0,0,0.02);
    border-radius: 20px;
    padding: 30px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(0deg, var(--glow-blue), transparent);
    border-radius: 10px 10px 0 0;
    position: relative;
}

.chart-bar:nth-child(1) { height: 40%; animation: grow 3s infinite alternate; }
.chart-bar:nth-child(2) { height: 60%; animation: grow 3s infinite alternate 0.5s; }
.chart-bar:nth-child(3) { height: 30%; animation: grow 3s infinite alternate 1s; }
.chart-bar:nth-child(4) { height: 80%; animation: grow 3s infinite alternate 1.5s; }
.chart-bar:nth-child(5) { height: 100%; animation: grow 3s infinite alternate 2s; }

@keyframes grow {
    0% { transform: scaleY(0.8); }
    100% { transform: scaleY(1.1); }
}

/* =========================================
   GLOBAL DATA SECTION
========================================= */
.global-data-section {
    padding: var(--section-pad);
    background: var(--bg-pure);
    position: relative;
    overflow: hidden;
}

.map-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin-top: 50px;
    border-radius: 30px;
    background: var(--bg-offwhite);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.05);
}

#world-map-visual {
    width: 80%;
    height: 80%;
    background-image: radial-gradient(circle, var(--accent-blue) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    mask-image: radial-gradient(ellipse, black, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse, black, transparent 70%);
}

.map-overlay-stats {
    position: absolute;
    bottom: -30px;
    display: flex;
    gap: 40px;
    padding: 30px 60px;
    left: 50%;
    transform: translateX(-50%);
}

.map-overlay-stats h4 {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.map-overlay-stats span {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   HUMANITY SECTION
========================================= */
.humanity-section {
    padding: var(--section-pad);
    background: linear-gradient(180deg, var(--bg-pure), var(--bg-offwhite));
    position: relative;
}

.humanity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.h-card {
    padding: 40px;
}

.h-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cinematic-blur {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(0deg, var(--bg-pure), transparent);
    pointer-events: none;
}

/* =========================================
   FUTURE SECTION
========================================= */
.future-section {
    padding: 150px 5%;
    background: var(--bg-pure);
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.floating-cities {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    pointer-events: none;
    z-index: -1;
}

.hologram {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    animation: float 10s ease-in-out infinite;
}

.holo-1 {
    width: 400px; height: 400px;
    background: var(--accent-blue);
    top: 20%; left: -10%;
}

.holo-2 {
    width: 500px; height: 500px;
    background: var(--accent-purple);
    bottom: -10%; right: -10%;
    animation-delay: -5s;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    padding: 80px 5% 40px 5%;
    background: var(--bg-pure);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
}

.link-group h4 {
    margin-bottom: 20px;
    color: var(--text-main);
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.link-group a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
}

/* =========================================
   MEDIA QUERIES
========================================= */
@media (max-width: 1024px) {
    .about-grid, .research-content, .humanity-grid {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 4rem; }
    .footer-top { grid-template-columns: 1fr; }
    .floating-panel { display: none; } /* Hide floating panels on smaller screens for cleaner look */
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .section-title, .section-title.massive { font-size: 2.5rem; }
    .nav-links, .nav-cta { display: none; } /* Add hamburger menu logic if needed */
    .footer-links { flex-direction: column; gap: 30px; }
}
