styles.css

21.44 KB
12/11/2025 13:25
CSS
styles.css
/* ============================================
   FUTURISTIC CHRISTMAS - LEAFBOX TECHNOLOGIES
   ============================================ */

/* ========== CSS VARIABLES ========== */
:root {
    /* Color System - Dark Theme */
    --leaf-green: #00FF99;
    --cyber-gold: #FFD700;
    --ice-blue: #00E5FF;
    
    --bg-main: linear-gradient(160deg, #020617 0%, #0A132C 100%);
    --bg-main-solid: #020617;
    --surface-primary: #111827;
    --surface-secondary: #1E293B;
    
    --text-primary: #E4E4E7;
    --text-secondary: #9CA3AF;
    --border-neutral: #374151;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 64px;
    --space-xxl: 96px;
    
    /* Effects */
    --glow-primary: 0 0 24px rgba(0, 255, 153, 0.3);
    --glow-hover: 0 0 32px rgba(0, 229, 255, 0.4);
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.4);
    
    /* Animation */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.25s ease-in-out;
}

/* Light Theme */
body.light-theme {
    --leaf-green: #00B377;
    --cyber-gold: #D4A500;
    --ice-blue: #0096B3;
    
    --bg-main: linear-gradient(160deg, #E8F4FF 0%, #F0F9FF 100%);
    --bg-main-solid: #E8F4FF;
    --surface-primary: #FFFFFF;
    --surface-secondary: #F3F4F6;
    
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-neutral: #D1D5DB;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: var(--transition-smooth);
}

/* ========== BACKGROUND CANVAS ========== */
#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ========== UTILITY CLASSES ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.glow-text {
    text-shadow: 0 0 8px rgba(228, 228, 231, 0.3);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--leaf-green), var(--ice-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: var(--space-xxl);
}

/* ========== THEME TOGGLE ========== */
.theme-toggle, .sound-toggle {
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: var(--surface-primary);
    border: 2px solid var(--leaf-green);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: var(--glow-primary);
}

.sound-toggle {
    right: calc(var(--space-md) + 70px);
}

.theme-toggle:hover, .sound-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--glow-hover);
}

.icon-moon, .icon-sun, .icon-sound-on, .icon-sound-off {
    color: var(--leaf-green);
    transition: var(--transition-fast);
}

.icon-sun, .icon-sound-off {
    display: none;
}

body.light-theme .icon-moon {
    display: none;
}

body.light-theme .icon-sun {
    display: block;
}

.sound-toggle.muted .icon-sound-on {
    display: none;
}

.sound-toggle.muted .icon-sound-off {
    display: block;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xxl) 0;
    overflow: hidden;
}

.digital-tree {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    filter: drop-shadow(0 0 20px var(--leaf-green));
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-top: 400px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    animation: fadeInUp 1s ease-out;
}

.brand-highlight {
    color: var(--leaf-green);
    text-shadow: 0 0 20px rgba(0, 255, 153, 0.5);
}

.subtitle {
    font-size: clamp(20px, 3vw, 32px);
    color: var(--ice-blue);
    font-weight: 400;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: 2px solid var(--leaf-green);
    color: var(--leaf-green);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-fast);
    box-shadow: var(--glow-primary);
    animation: fadeInUp 1s ease-out 0.4s both, pulse 2s ease-in-out infinite;
}

.cta-button:hover {
    background: var(--leaf-green);
    color: var(--bg-main-solid);
    box-shadow: var(--glow-hover);
    transform: translateY(-2px);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* Data Streams Background Effect */
.data-streams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.data-streams::before,
.data-streams::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 200px;
    background: linear-gradient(180deg, transparent, var(--ice-blue), transparent);
    animation: dataStream 4s linear infinite;
    opacity: 0.3;
}

.data-streams::before {
    left: 20%;
    animation-delay: 0s;
}

.data-streams::after {
    right: 30%;
    animation-delay: 2s;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    position: relative;
    padding: var(--space-xxl) 0;
    z-index: 10;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--ice-blue), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--ice-blue);
    background: var(--surface-primary);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--ice-blue);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    z-index: 2;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--surface-primary);
    border: 3px solid var(--leaf-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
    z-index: 3;
}

.special-marker {
    border-color: var(--cyber-gold);
    box-shadow: var(--glow-gold);
    animation: pulse 2s ease-in-out infinite;
}

.timeline-marker svg {
    color: var(--leaf-green);
}

.special-marker svg {
    color: var(--cyber-gold);
}

.pulse-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--leaf-green);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
}

.timeline-content {
    width: 45%;
    padding: var(--space-md);
    background: var(--surface-primary);
    border: 1px solid var(--border-neutral);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

.timeline-content:hover {
    background: var(--surface-secondary);
    border-color: var(--leaf-green);
    box-shadow: var(--glow-primary);
    transform: translateY(-5px);
}

.timeline-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: var(--ice-blue);
    margin-bottom: var(--space-sm);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Christmas Ornaments */
.christmas-ornament {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: -10px;
}

.timeline-item:nth-child(odd) .christmas-ornament {
    right: -40px;
}

.timeline-item:nth-child(even) .christmas-ornament {
    left: -40px;
}

.ornament-green {
    background: var(--leaf-green);
    box-shadow: 0 0 15px var(--leaf-green);
}

.ornament-gold {
    background: var(--cyber-gold);
    box-shadow: 0 0 15px var(--cyber-gold);
}

.ornament-blue {
    background: var(--ice-blue);
    box-shadow: 0 0 15px var(--ice-blue);
}

.ornament-blue.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    position: relative;
    padding: var(--space-xxl) 0;
    z-index: 10;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.service-card {
    position: relative;
    background: var(--surface-primary);
    border: 1px solid var(--border-neutral);
    border-radius: 12px;
    padding: var(--space-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover .card-glow {
    opacity: 1;
}

.service-card:hover {
    background: var(--surface-secondary);
    border-color: var(--leaf-green);
    box-shadow: var(--glow-primary);
    transform: translateY(-10px);
}

.service-icon {
    margin: 0 auto var(--space-md);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.service-icon svg {
    color: var(--ice-blue);
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.5));
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: translateY(-20px) scale(1.1) perspective(500px) rotateY(15deg);
}

.service-card:hover .service-icon svg {
    color: var(--leaf-green);
    filter: drop-shadow(0 0 20px var(--leaf-green));
}

.service-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.service-description {
    color: var(--text-secondary);
    font-size: 16px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.service-card:hover .service-description {
    opacity: 1;
    max-height: 200px;
    margin-top: var(--space-md);
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    position: relative;
    padding: var(--space-xxl) 0;
    z-index: 10;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.animated-greeting {
    animation: colorShift 5s ease-in-out infinite;
}

.contact-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.neon-contact-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: transparent;
    border: 2px solid var(--leaf-green);
    color: var(--leaf-green);
    font-size: 18px;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 0 12px rgba(0, 255, 153, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.neon-contact-button:hover {
    background: var(--leaf-green);
    color: var(--bg-main-solid);
    box-shadow: 0 0 24px rgba(0, 255, 153, 0.6);
    transform: scale(1.05);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 16px;
}

.info-item svg {
    color: var(--ice-blue);
}

/* ========== FOOTER ========== */
.footer {
    position: relative;
    padding: var(--space-xxl) 0 var(--space-lg);
    background: var(--surface-primary);
    border-top: 1px solid var(--border-neutral);
    overflow: hidden;
    z-index: 10;
}

.footer-snow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
}

.countdown-container {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.countdown-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: var(--ice-blue);
    margin-bottom: var(--space-lg);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.digit-display {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    color: var(--ice-blue);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    background: var(--surface-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    border: 2px solid var(--ice-blue);
    min-width: 100px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.digit-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 2px;
}

.countdown-divider {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    color: var(--leaf-green);
    animation: blink 1s ease-in-out infinite;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-neutral);
    border-bottom: 1px solid var(--border-neutral);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--leaf-green);
}

.footer-logo svg {
    color: var(--leaf-green);
    filter: drop-shadow(0 0 10px var(--leaf-green));
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--leaf-green);
    text-shadow: 0 0 10px var(--leaf-green);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-neutral);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    border-color: var(--leaf-green);
    color: var(--leaf-green);
    box-shadow: var(--glow-primary);
    transform: scale(1.1) rotate(15deg);
}

.footer-bottom {
    text-align: center;
    margin-top: var(--space-lg);
    color: var(--text-secondary);
    font-size: 14px;
}

.easter-hint {
    margin-top: var(--space-sm);
    font-style: italic;
    opacity: 0.5;
}

/* ========== MODAL (Easter Egg) ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background: var(--surface-primary);
    padding: var(--space-xl);
    border-radius: 12px;
    border: 2px solid var(--cyber-gold);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
    max-width: 600px;
    text-align: center;
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 32px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--cyber-gold);
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: var(--space-lg);
}

.modal-message {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes dataStream {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes colorShift {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(30deg);
    }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1199px) {
    .section-title {
        font-size: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 48px;
        --space-xxl: 64px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 24px;
    }
    
    .digital-tree {
        top: 5%;
        width: 300px !important;
        height: 300px !important;
    }
    
    .hero-content {
        margin-top: 320px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 80px;
    }
    
    .timeline-item::before {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-marker {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: 100%;
        text-align: left !important;
        margin: 0 !important;
    }
    
    .christmas-ornament {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .countdown {
        gap: var(--space-sm);
    }
    
    .digit-display {
        font-size: 36px;
        min-width: 70px;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .countdown-divider {
        font-size: 32px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .theme-toggle, .sound-toggle {
        top: var(--space-sm);
        right: var(--space-sm);
        width: 40px;
        height: 40px;
    }
    
    .sound-toggle {
        right: calc(var(--space-sm) + 50px);
    }
    
    .contact-info {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .data-streams::before,
    .data-streams::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .modal-content {
        margin: var(--space-md);
        padding: var(--space-lg);
    }
}

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

/* ========== PRINT STYLES ========== */
@media print {
    .theme-toggle, .sound-toggle, .data-streams, #snowCanvas, #treeCanvas {
        display: none;
    }
}