:root {
    /* Colors - Academic Light */
    --color-bg: #f8fafc;
    --color-bg-secondary: #ffffff;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-primary: #7c3aed;
    --color-primary-gradient: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    --color-accent: #15803d;
    --color-border: #e2e8f0;

    /* Spacing */
    --container-width: 1200px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    /* Typography */
    --font-heading: 'Kanit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 60px;
    /* Offset for fixed navbar */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Utilities */
.text-center {
    text-align: center;
}

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

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

.mt-1 {
    margin-top: var(--spacing-md);
}

.mt-2 {
    margin-top: var(--spacing-lg);
}

.mt-3 {
    margin-top: var(--spacing-xl);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-primary-gradient);
    color: white;
    border-radius: 50px;
    /* Pill shape for modern look */
    font-weight: 600;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
    /* Purple glow */
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    /* Reverse gradient on hover */
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}

.btn:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.section {
    padding: 80px 0;
    /* Standardize section padding */
}

/* Navbar Specifics */
.logo-spin {
    animation: slow-spin 10s linear infinite;
    transform-origin: center center;
}

@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.navbar {
    background-color: #ffffff; /* Opaque white for stability */
    padding: 12px 0;
    font-family: var(--font-body);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000; /* Above preloader and all other effects */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: none !important; /* Strictly no transitions */
    animation: none !important; /* Strictly no animations */
}

.nav-links {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-item {
    color: #1e293b;
    text-decoration: none;
    padding: 0 12px;
    font-weight: 400;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
    /* Prepare for hover underline */
}

/* Home Icon */
.home-icon {
    font-size: 1.2rem;
    padding-bottom: 2px;
}

/* Hover/Active State */
.nav-item:hover,
.nav-item.active {
    color: #a855f7;
    /* Purple accent */
    border-bottom-color: #a855f7;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
    /* Subtle glow */
}

.separator {
    color: #cbd5e1;
    font-weight: 300;
    font-size: 1.2rem;
    opacity: 0.8;
    user-select: none;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}

/* General Components */
/* Component Animated Borders */
.card,
.table-container {
    position: relative;
    background: transparent;
    /* Must be transparent to show ::before border */
    padding: var(--spacing-lg);
    /* Inner padding */
    border-radius: 8px;
    z-index: 1;
    /* Content above border */
    overflow: hidden;
    /* Contain the animation */
}

/* The Rotating Gradient Border - Disabled for Academic Light */
.card::before,
.table-container::before {
    display: none;
}

.card:hover {
    transform: translateY(-2px);
    /* Slight lift */
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.2);
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Lists in Cards */
.card ul li {
    line-height: 1.6;
}

.card ul li strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Delay modifiers for staggered animations */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Float animation class */
.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* Gradient Utilities */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
    background-image: linear-gradient(to right, #a855f7, #ec4899);
}

.text-gradient-green {
    background-image: linear-gradient(to right, #22c55e, #10b981);
}

.border-gradient-green {
    border-image: linear-gradient(to right, #22c55e, #10b981) 1;
}

.border-gradient-purple {
    border-image: linear-gradient(to right, #a855f7, #ec4899) 1;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: #000;
    padding: 0;
    color: #fff;
}

.hero-bg {
    position: absolute;
    top: 0;
    height: 100%;
    opacity: 0.6;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg-left {
    left: 0;
    width: 50%;
    background-image: url('../images/fire-bg.jpg');
    filter: none;
    opacity: 0.8;
}

.hero-overlay-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
}

.hero-bg-right {
    right: 0;
    width: 50%;
    background-image: url('../images/soil-bg.jpg');
    filter: none;
    opacity: 0.8;
}

.hero-overlay-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
}

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

/* Skeleton Loader (Preloader) */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.skeleton-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 var(--spacing-md);
    box-sizing: border-box;
    max-width: var(--container-width);
    margin: 0 auto;
}

.skeleton-nav {
    height: 60px;
    width: 100%;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 12px;
}

.skeleton-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 15vh;
    margin-bottom: 80px;
}

.skeleton-title {
    height: 60px;
    width: 50%;
    max-width: 600px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.skeleton-subtitle {
    height: 20px;
    width: 30%;
    max-width: 400px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.skeleton-btn-group {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.skeleton-btn {
    height: 48px;
    width: 140px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
}

.skeleton-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

.skeleton-card {
    height: 250px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

/* Shimmer Animation */
/* Higher contrast skeleton for white theme */
.skeleton-nav,
.skeleton-title,
.skeleton-subtitle,
.skeleton-btn,
.skeleton-card {
    background: linear-gradient(90deg, #f1f5f9 25%, #cbd5e1 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 2s infinite linear;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ========================================
   FUTURISTIC UI COMPONENTS
   ======================================== */

/* Data Cards - Futuristic Design */
.data-card {
    transition: all 0.3s ease;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.4);
}

/* Evidence Tables - Futuristic Design */
.evidence-table {
    width: 100%;
    border-collapse: collapse;
}

.evidence-table thead tr {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
}

.evidence-table th {
    padding: 20px;
    text-align: left;
    color: #a855f7;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(168, 85, 247, 0.4);
}

.evidence-table tbody tr {
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
}

.evidence-table tbody tr:hover {
    background: rgba(168, 85, 247, 0.1);
    box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.2);
}

.evidence-table td {
    padding: 18px 20px;
    color: var(--color-text);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

/* Timeline Roadmap - Futuristic Design */
.timeline-milestone {
    position: relative;
}

.timeline-milestone .milestone-marker {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.timeline-milestone.complete .milestone-marker {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

.timeline-milestone.in-progress .milestone-marker {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
    animation: pulse-glow 2s infinite;
}

.timeline-milestone.upcoming .milestone-marker {
    background: rgba(168, 85, 247, 0.2);
    border: 2px dashed rgba(168, 85, 247, 0.5);
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Validation Sections - Futuristic Design */
.validation-panel {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 2px solid rgba(34, 197, 94, 0.5);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.validation-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.validation-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Glow Pulse Animations */
.glow-pulse-purple {
    animation: glow-pulse-purple 2s ease-in-out infinite;
}

.glow-pulse-green {
    animation: glow-pulse-green 2s ease-in-out infinite;
}

@keyframes glow-pulse-purple {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
    }
}

@keyframes glow-pulse-green {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.8);
    }
}

/* Lab Card Holographic Effect */
.lab-card.holographic {
    position: relative;
    transition: all 0.3s ease;
}

.lab-card.holographic:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
}

/* Fade In Up Animation - Neutralized */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-60px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(60px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--color-border);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-item {
        padding: 15px 0;
        border-bottom: none;
        width: 100%;
        text-align: center;
        display: block;
    }

    .nav-item:hover {
        background: rgba(124, 58, 237, 0.05);
    }

    .separator {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        color: var(--color-text);
    }
}

/* Existing Responsive Design */
@media (max-width: 768px) {
    .data-card {
        padding: 25px !important;
    }

    .evidence-table th,
    .evidence-table td {
        padding: 12px !important;
        font-size: 0.85rem !important;
    }

    .timeline-milestone .milestone-marker {
        width: 50px;
        height: 50px;
    }

    .footer-modern {
        padding: 50px 0 20px 0;
        /* Reduce massive top padding on mobile */
    }

    .validation-panel {
        padding: 30px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        /* Reduce gap to fit screen better */
        text-align: center;
        margin-bottom: 30px;
        padding: 0 15px;
        /* Added padding to prevent squishing against edges */
    }

    .brand-col {
        padding-right: 0;
        align-items: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 0 10px;
    }

@media (max-width: 768px) {
    .data-card {
        padding: 25px !important;
    }

    .evidence-table th,
    .evidence-table td {
        padding: 12px !important;
        font-size: 0.85rem !important;
    }

    .timeline-milestone .milestone-marker {
        width: 50px;
        height: 50px;
    }
}