:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #00f3ff;
    --accent-secondary: #ff00ff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Custom Cursor */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
    z-index: 9999;
    mix-blend-mode: difference;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--text-color);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

/* Hero Images */
.hero-images-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    z-index: 5;
    pointer-events: none;
}

.hero-image-node {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    background: #000;
    pointer-events: auto;
}

.hero-image-node:hover {
    z-index: 10;
    transform: scale(1.1);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s ease;
}

.hero-image-node:hover .hero-image {
    filter: grayscale(0%) contrast(1);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 243, 255, 0.2), rgba(255, 0, 255, 0.2));
    mix-blend-mode: overlay;
    pointer-events: none;
}

h1.glitch {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    position: relative;
    color: var(--text-color);
    z-index: 100;
}

/* Glitch Effect */
h1.glitch::before,
h1.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

h1.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-secondary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

h1.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-color);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(14px, 9999px, 121px, 0);
    }

    20% {
        clip: rect(89px, 9999px, 34px, 0);
    }

    40% {
        clip: rect(23px, 9999px, 11px, 0);
    }

    60% {
        clip: rect(67px, 9999px, 92px, 0);
    }

    80% {
        clip: rect(45px, 9999px, 56px, 0);
    }

    100% {
        clip: rect(102px, 9999px, 13px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    20% {
        clip: rect(21px, 9999px, 12px, 0);
    }

    40% {
        clip: rect(98px, 9999px, 43px, 0);
    }

    60% {
        clip: rect(12px, 9999px, 76px, 0);
    }

    80% {
        clip: rect(54px, 9999px, 21px, 0);
    }

    100% {
        clip: rect(32px, 9999px, 87px, 0);
    }
}

.subtitle {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-top: 1rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
}

.location {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-top: 1rem;
    color: var(--accent-color);
}

.tagline {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    opacity: 0.5;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
}

/* Content Sections */
.content-section {
    padding: 8rem 4rem;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 2rem;
    margin-bottom: 4rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-color);
    z-index: -1;
    transition: transform 0.3s ease;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-secondary);
    z-index: -1;
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover::before {
    transform: translate(-5px, -5px);
}

.about-image-wrapper:hover::after {
    transform: translate(5px, 5px);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.08);
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.about-text strong {
    color: var(--text-color);
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 4px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Ventures Grid */
.ventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.venture-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 3rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.venture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 243, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.venture-card:hover::before {
    transform: translateX(100%);
}

.venture-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.venture-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.venture-type {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.venture-card p:last-child {
    color: rgba(255, 255, 255, 0.6);
}

.venture-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.venture-card:hover .venture-image {
    transform: scale(1.05);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.news-card:hover::before {
    transform: translateX(100%);
}

.news-card:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-10px);
}

.news-header {
    margin-bottom: 1rem;
}

.news-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-source {
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.news-date {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.news-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    margin: 0 auto;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.news-link {
    color: var(--accent-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.news-link:hover {
    border-bottom-color: var(--accent-secondary);
    color: var(--accent-color);
}

/* Slideshow Styles */
.slideshow-wrapper {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.slideshow-main {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%;
    /* 3:2 aspect ratio */
    overflow: hidden;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.slideshow-image.active {
    opacity: 1;
}

.slideshow-thumbnails {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.slideshow-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.slideshow-thumb:hover {
    opacity: 1;
    border-color: var(--accent-color);
}

.slideshow-thumb.active {
    opacity: 1;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

/* Footer/Connect */
.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.social-link {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.social-link:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.main-footer {
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.main-footer p {
    color: rgba(255, 255, 255, 0.4);
}

.main-footer .small {
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }

    h1.glitch {
        font-size: 4rem;
    }

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

    .content-section {
        padding: 4rem 2rem;
    }

    .hero-images-wrapper {
        height: 300px;
    }
}

/* Responsive - Mobile (iPhone 14 Max and larger phones) */
@media (max-width: 500px) {
    .navbar {
        padding: 1rem 1rem;
    }

    h1.glitch {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .location {
        font-size: 0.8rem;
    }

    .tagline {
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    .hero-images-wrapper {
        height: 250px;
    }

    .content-section {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .about-image-wrapper {
        max-width: 250px;
        margin: 0 auto 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

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

    .slideshow-thumb {
        width: 60px;
        height: 45px;
    }
}

/* Slideshow Responsive - Mobile */
@media (max-width: 480px) {
    .slideshow-thumbnails {
        gap: 0.3rem;
    }

    .slideshow-thumb {
        width: 50px;
        height: 38px;
    }
}

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

    100% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

/* Contact Page Specifics */
.contact-page-section {
    padding-top: 8rem;
    padding-bottom: 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

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

h1.glitch.small {
    font-size: 3rem;
}

.contact-header .subtitle {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: var(--text-color);
    letter-spacing: 0.5em;
}

.contact-header .logo-text {
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    margin-top: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.social-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.icon-wrapper {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    transition: transform 0.3s ease;
}

.social-card:hover .icon-wrapper img {
    transform: scale(1.1);
}

.social-label {
    font-family: var(--font-mono);
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.home-base-section {
    margin-top: 2rem;
    position: relative;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.home-base-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.home-base-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/icons/footer_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.home-base-link:hover .home-base-bg {
    opacity: 0.8;
}

.home-base-logo {
    position: relative;
    z-index: 2;
    height: 40px;
    margin-bottom: 0.5rem;
}

.map-label {
    position: relative;
    z-index: 2;
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.contact-footer {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    border-top: none;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .contact-container {
        padding: 0 1.5rem;
    }

    .social-grid {
        grid-template-columns: 1fr 1fr;
        /* Keep 2 columns if possible */
        gap: 1rem;
    }

    .social-card {
        padding: 1.5rem;
    }



    .social-label {
        font-size: 0.8rem;
    }

    h1.glitch.small {
        font-size: 2rem;
    }

    .contact-header {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1.5rem 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: flex;
        gap: 1rem;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 0.8rem;
    }

    /* Force single column for very small screens if needed, 
       but 2-col linktree is kinda the vibe. 
       Let's keep 2-col but ensure it fits. */
    .social-grid {
        gap: 0.8rem;
    }

    .social-card {
        padding: 1rem;
    }

    .contact-page-section {
        padding-top: 140px;
        /* Account for taller navbar */
    }
}

/* Initial Animation States - Prevents flash of content before JS runs */
h1.glitch,
.subtitle,
.location,
.tagline,
.scroll-indicator,
.contact-header .subtitle,
.contact-header .logo-text,
.social-card,
.home-base-section,
.contact-footer {
    opacity: 0;
    transform: translateY(20px);
}