/* =========================================
   CSS Variables (Dark Mode Professional)
========================================= */
:root {
    --obsidian-circuit: #0A0A0B;
    --neon-logic: #00FFD1;
    --solid-silver: #E0E0E0;
    --ultraviolet: #8A2BE2;
    --suncoast-orange: #FF7B00; /* For cursor and accents */
    
    --bg-card: rgba(224, 224, 224, 0.03);
    --bg-card-hover: rgba(0, 255, 209, 0.05);
    
    --font-heading: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --radius: 12px;
}

/* =========================================
   Reset & Global Styles
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor to use custom one */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--obsidian-circuit);
    color: var(--solid-silver);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #FFF;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 4px;
    background: var(--neon-logic);
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

section { padding: 8rem 0; }

/* =========================================
   Custom Cursor (Orange Particle/Ring)
========================================= */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--suncoast-orange);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--suncoast-orange);
    transition: transform 0.1s ease;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid var(--suncoast-orange);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, transform 0.15s ease-out;
    box-shadow: 0 0 20px rgba(255, 123, 0, 0.4) inset;
}

.cursor-hover .cursor-ring {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 123, 0, 0.1);
    border-color: var(--neon-logic);
    box-shadow: 0 0 20px rgba(0, 255, 209, 0.4) inset;
}
.cursor-hover .cursor-dot {
    background-color: var(--neon-logic);
    box-shadow: 0 0 10px var(--neon-logic);
}

/* =========================================
   Buttons
========================================= */
.btn-primary, .btn-secondary, .btn-primary-sm, .btn-text {
    display: inline-block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--neon-logic);
    border: 1px solid var(--neon-logic);
    box-shadow: inset 0 0 0 rgba(0, 255, 209, 0);
    transition: var(--transition);
}

.btn-primary:hover {
    background: rgba(0, 255, 209, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 255, 209, 0.4), 0 0 20px rgba(0, 255, 209, 0.2);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--solid-silver);
    border: 1px solid rgba(224,224,224,0.3);
}

.btn-secondary:hover {
    border-color: var(--solid-silver);
    background: rgba(224,224,224,0.05);
}

.btn-primary-sm {
    padding: 0.6rem 1.5rem;
    background: var(--neon-logic);
    color: var(--obsidian-circuit) !important;
    font-size: 0.85rem;
}

.btn-primary-sm:hover {
    box-shadow: 0 0 15px var(--neon-logic);
}

.btn-text {
    font-size: 0.85rem;
    color: var(--neon-logic);
    margin-top: 1rem;
    display: inline-block;
}

.btn-text:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-logic);
}

/* =========================================
   Navigation
========================================= */
.glass-nav {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.glass-nav.scrolled {
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,255,209,0.1);
    padding: 1rem 0;
}

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

.nav-logo-img {
    height: 40px; /* Adjust based on logo proportions */
}

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

.nav-links a:not(.btn-primary-sm) {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    color: var(--solid-silver);
}

.nav-links a:not(.btn-primary-sm):hover {
    color: var(--neon-logic);
}

.hamburger {
    display: none;
    z-index: 1001;
}
.hamburger .line {
    width: 30px; height: 2px;
    background-color: var(--solid-silver);
    margin: 6px 0;
    transition: 0.4s;
}

/* =========================================
   Hero Section
========================================= */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background: radial-gradient(circle at center, #1a1a24 0%, var(--obsidian-circuit) 100%);
}

.grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 209, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 209, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-logo-wrapper {
    margin-bottom: 2rem;
}

.hero-surfer-img {
    height: 120px;
    opacity: 0.8;
}

.hero-content .title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(0,255,209,0.2);
}

.hero-content .sub-headline {
    font-size: 1.25rem;
    color: var(--solid-silver);
    margin-bottom: 3rem;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 24px; height: 36px;
    border: 2px solid rgba(224,224,224,0.5);
    border-radius: 12px;
    position: relative;
}
.wheel {
    width: 2px; height: 6px;
    background: var(--neon-logic);
    border-radius: 1px;
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}
@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 16px; opacity: 0; }
}

/* =========================================
   Mission / Paradigm Section
========================================= */
.mission-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-text .highlight-text {
    font-size: 1.5rem;
    color: var(--neon-logic);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.mission-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #aaa;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.north-stars-box h3 {
    margin-bottom: 1.5rem;
    color: var(--ultraviolet);
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    padding-bottom: 0.5rem;
}

.north-stars-box ul li {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.north-stars-box ul li::before {
    content: '>';
    position: absolute;
    left: 0; top: 0;
    color: var(--neon-logic);
    font-family: var(--font-heading);
    font-weight: bold;
}

.north-stars-box strong {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.2rem;
}

.north-stars-box span {
    font-size: 0.9rem;
    color: #888;
}

/* =========================================
   Dynamic Gallery (The 5 Labs)
========================================= */
.dynamic-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-card {
    position: relative;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Abstract backgrounds for the labs to make them look distinct without images yet */
.card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s;
    filter: grayscale(80%) brightness(0.4);
}

.lab-1 { background-image: linear-gradient(45deg, #1a1a1a 25%, #222 25%, #222 50%, #1a1a1a 50%, #1a1a1a 75%, #222 75%, #222 100%); background-size: 40px 40px; }
.lab-2 { background: radial-gradient(circle, #2a0845 0%, #0A0A0B 100%); }
.lab-3 { background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,255,209,0.05) 2px, rgba(0,255,209,0.05) 4px); }
.lab-4 { background: linear-gradient(135deg, #0A0A0B 0%, #111 100%); }
.lab-5 { background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%); }

.card-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(10,10,11,0.95) 0%, rgba(10,10,11,0.4) 100%);
    transition: var(--transition);
}

.lab-icon {
    font-size: 2.5rem;
    margin-bottom: auto;
    opacity: 0.7;
    transition: var(--transition);
}

.gallery-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--neon-logic);
    transition: transform 0.4s;
}

.lab-focus {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 1rem;
    transition: transform 0.4s, opacity 0.4s;
}

.lab-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.lab-details p {
    font-size: 0.9rem;
    color: #999;
}

/* Hover Reveals */
.gallery-card:hover .card-bg {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(0.6);
}

.gallery-card:hover .card-content {
    background: linear-gradient(to top, rgba(10,10,11,1) 0%, rgba(10,10,11,0.6) 100%);
}

.gallery-card:hover .lab-icon {
    opacity: 1;
    transform: translateY(-10px) scale(1.2);
}

.gallery-card:hover h3 {
    transform: translateY(-10px);
}

.gallery-card:hover .lab-focus {
    transform: translateY(-10px);
}

.gallery-card:hover .lab-details {
    max-height: 200px;
    opacity: 1;
    transform: translateY(-10px);
}

/* Dimming siblings - achieved via JS or parent hover */
.dynamic-gallery:hover .gallery-card:not(:hover) {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* =========================================
   Founder Section
========================================= */
.founder-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    border-left: 3px solid var(--neon-logic);
}

.founder-content p {
    margin-bottom: 1rem;
    color: #aaa;
}

.founder-graphics {
    height: 100%;
    min-height: 300px;
    position: relative;
    background: url('SunCoast Creative Labs logo.png') no-repeat center center;
    background-size: contain;
    opacity: 0.3;
}

/* =========================================
   Footer
========================================= */
footer {
    background: #050506;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.footer-brand .tagline {
    font-family: var(--font-heading);
    color: var(--neon-logic);
    font-size: 1.1rem;
}

.footer-links h4, .footer-compliance h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #888;
}

.footer-links a:hover {
    color: var(--neon-logic);
}

.footer-compliance p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-compliance .muted {
    color: #555;
    font-family: var(--font-heading);
    font-size: 0.8rem;
}

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

/* =========================================
   Animations
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Responsive Design
========================================= */
@media screen and (max-width: 992px) {
    .mission-grid, .founder-card {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%; top: 0;
        height: 100vh; width: 100%;
        background: rgba(10, 10, 11, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
    }
    
    .nav-links.active { right: 0; }
    
    .hamburger { display: block; }
    
    .hamburger.active .line:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.active .line:nth-child(2) { opacity: 0; }
    .hamburger.active .line:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    
    .hero-content .title { font-size: 2.5rem; }
    
    /* On mobile, standard cursors are best, hide custom */
    .cursor-dot, .cursor-ring { display: none; }
    * { cursor: auto; }
}
