/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --accent-primary: #00ffff;
    --accent-secondary: #ff00ff;
    --accent-tertiary: #ffff00;
    --neon-glow: rgba(0, 255, 255, 0.8);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
}

body[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #1a1a2e;
    --text-secondary: #666666;
    --accent-primary: #0099cc;
    --accent-secondary: #cc00cc;
    --accent-tertiary: #cc9900;
    --neon-glow: rgba(0, 153, 204, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body[data-theme="dark"] {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
    cursor: none;
}

/* Mouse Trail Canvas */
#mouse-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 20px var(--neon-glow);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 0 30px var(--neon-glow), 0 0 60px var(--neon-glow);
}

.theme-icon {
    position: relative;
    width: 30px;
    height: 30px;
}

.theme-icon svg {
    position: absolute;
    width: 100%;
    height: 100%;
    fill: var(--accent-primary);
    transition: all 0.3s ease;
}

.moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

body[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

body[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

body[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Container */
.container {
    max-width: 900px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero {
    margin-bottom: 4rem;
    position: relative;
    text-align: center;
}

.heihs-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 2rem;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: clamp(4rem, 10vw, 8rem);
    text-transform: uppercase;
    letter-spacing: 0;
}

.letter {
    display: inline-block;
    position: relative;
    /* Minimal glass text */
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.9) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    /* Minimal outline */
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.6);
    text-stroke: 0.5px rgba(255, 255, 255, 0.6);
    /* Simple glow */
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.4),
        0 0 16px rgba(0, 255, 255, 0.3),
        inset 0 0 5px rgba(255, 255, 255, 0.3);
    animation: letterFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.letter:nth-child(1) { animation-delay: 0s; }
.letter:nth-child(2) { animation-delay: 0.2s; }
.letter:nth-child(3) { animation-delay: 0.4s; }
.letter:nth-child(4) { animation-delay: 0.6s; }
.letter:nth-child(5) { animation-delay: 0.8s; }

@keyframes letterFloat {
    0%, 100% {
        transform: translateY(0px);
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.9) 100%
        );
    }
    50% {
        transform: translateY(-15px);
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.7) 0%,
            rgba(0, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.8) 100%
        );
    }
}
    50% {
        transform: translateY(-15px);
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.7) 0%,
            rgba(0, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.8) 100%
        );
    }
}

.logo-container {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.brand-name {
    font-family: 'Orbitron', monospace;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    animation: glitch 2s infinite;
    transition: all 0.3s ease;
    display: inline-block;
    /* Glass text effects - transparent background showing page background */
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
    text-stroke: 1px rgba(255, 255, 255, 0.4);
    /* Subtle glass reflection within the text only */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%,
        rgba(255, 255, 255, 0.15) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    /* Glass glow and refraction effects */
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 20px var(--accent-primary),
        0 0 30px var(--accent-primary),
        2px 2px 2px rgba(0, 0, 0, 0.2),
        -2px -2px 2px rgba(255, 255, 255, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    /* Glass material properties */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    filter: drop-shadow(0 5px 15px rgba(0, 255, 255, 0.2));
}

.brand-name::before {
    content: 'HEIHS';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: 'Orbitron', monospace;
    font-size: inherit;
    font-weight: inherit;
    text-transform: uppercase;
    letter-spacing: inherit;
    z-index: -1;
    /* Glass reflection layer - very subtle light on text */
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 60%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    text-stroke: 1px rgba(255, 255, 255, 0.2);
    animation: glassReflection 3s ease-in-out infinite;
}

.brand-name::after {
    content: 'HEIHS';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 100%;
    height: 100%;
    font-family: 'Orbitron', monospace;
    font-size: inherit;
    font-weight: inherit;
    text-transform: uppercase;
    letter-spacing: inherit;
    z-index: -2;
    /* Glass shadow/refraction layer - subtle color distortion */
    background: linear-gradient(
        225deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(0, 255, 255, 0.1) 50%,
        rgba(255, 0, 255, 0.05) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    text-stroke: 1px rgba(255, 255, 255, 0.1);
    filter: blur(0.5px);
    animation: glassShimmer 4s ease-in-out infinite;
}

.logo-container:hover .brand-name {
    transform: translateY(-5px) scale(1.02);
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.6),
        0 0 30px var(--accent-primary),
        0 0 45px var(--accent-primary),
        1px 1px 3px rgba(0, 0, 0, 0.3),
        -1px -1px 3px rgba(255, 255, 255, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 10px 25px rgba(0, 255, 255, 0.4));
    animation: glassRefract 0.3s ease-in-out;
}

.brand-name::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.05) 75%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border-radius: 20px;
    z-index: -1;
    animation: glassShimmer 4s ease-in-out infinite;
}

.brand-name::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--accent-primary), 
        var(--accent-secondary), 
        var(--accent-tertiary),
        var(--accent-primary)
    );
    border-radius: 22px;
    z-index: -2;
    opacity: 0.3;
    filter: blur(3px);
    animation: borderGlow 3s linear infinite;
    transition: opacity 0.3s ease;
}

.logo-container:hover .brand-name {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-border);
    box-shadow: 
        0 15px 40px 0 rgba(31, 38, 135, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
        0 0 30px var(--neon-glow),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.logo-container:hover .brand-name::after {
    opacity: 0.6;
}



@keyframes glitch {
    0%, 100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-2px);
    }
    40% {
        transform: translateX(2px);
    }
    60% {
        transform: translateX(-1px);
    }
    80% {
        transform: translateX(1px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scaleX(1);
        opacity: 1;
    }
    50% {
        transform: scaleX(1.2);
        opacity: 0.8;
    }
}

.title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: textShimmer 3s ease-in-out infinite;
}

.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}



@keyframes borderGlow {
    0% {
        filter: blur(3px) hue-rotate(0deg);
    }
    50% {
        filter: blur(5px) hue-rotate(180deg);
    }
    100% {
        filter: blur(3px) hue-rotate(360deg);
    }
}

/* Status Section */
.status-section {
    margin-bottom: 4rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 30px rgba(0, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.status-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-2);
    border-radius: 30px;
    opacity: 0.3;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.status-icon {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

.status-svg {
    width: 40px;
    height: 40px;
    fill: var(--accent-primary);
    z-index: 2;
    position: relative;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.status-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.status-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter-section {
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.newsletter-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 280px;
    padding: 1.2rem 2rem;
    border: 2px solid var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: inherit;
}

.email-input::placeholder {
    color: var(--text-secondary);
}

.email-input:focus {
    outline: none;
    border-color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.submit-btn {
    padding: 1.2rem 2.5rem;
    background: var(--gradient-2);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff00ff, #00ffff, #ffff00);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.4);
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

.form-message {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    min-height: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.form-message.show {
    opacity: 1;
}

.form-message.success {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

.form-message.error {
    color: #ff4444;
    text-shadow: 0 0 10px #ff4444;
}

/* Social Section */
.social-section {
    margin-bottom: 4rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-5px) scale(1.1) rotate(360deg);
    box-shadow: 0 15px 40px rgba(255, 0, 255, 0.4);
}

.social-icon {
    width: 28px;
    height: 28px;
    fill: var(--text-primary);
    position: relative;
    z-index: 2;
}

/* Footer */
.footer {
    padding: 3rem 1rem;
    border-top: 2px solid rgba(0, 255, 255, 0.3);
}

.brand-url {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--neon-glow);
}

.coming-soon {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 300;
    letter-spacing: 8px;
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Enhanced Particle System */
.particle:nth-child(3n) {
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    width: 3px;
    height: 3px;
}

.particle:nth-child(3n+1) {
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
    width: 2px;
    height: 2px;
}

.particle:nth-child(3n+2) {
    background: var(--accent-tertiary);
    box-shadow: 0 0 10px var(--accent-tertiary);
    width: 4px;
    height: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 1rem;
    }
    
    .brand-name {
        font-size: clamp(3rem, 12vw, 5rem);
    }
    
    .status-section {
        padding: 2rem;
        margin-bottom: 3rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .email-input {
        min-width: 250px;
    }
    
    .social-links {
        gap: 1.5rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
    }
    
    .social-icon {
        width: 24px;
        height: 24px;
    }
    
    .theme-toggle {
        width: 50px;
        height: 50px;
        top: 1rem;
        right: 1rem;
    }
    
    .theme-icon {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .status-section,
    .newsletter-section,
    .social-section {
        margin-bottom: 2rem;
    }
    
    .brand-url {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .coming-soon {
        font-size: 1rem;
        letter-spacing: 5px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Glass Text Animation Enhancement */


/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --accent-primary: #00ccff;
        --accent-secondary: #ff00ff;
        --accent-tertiary: #ffff00;
    }
}