/* CSS Custom Properties */
:root {
    --white: #ffffff;
    --light-grey: #cccccc;
    --soft-blue: #4fc3f7;
    --rust-orange: #B8704A;
    --warm-terracotta: #C67B5C;
    --soft-peach: #E8C4A0;
    --vintage-cream: #F5F1E8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #000000;
    color: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Prismatic Aurora Background */
.aurora-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 120% 80% at 70% 20%, rgba(255, 20, 147, 0.15), transparent 50%),
        radial-gradient(ellipse 100% 60% at 30% 10%, rgba(0, 255, 255, 0.12), transparent 60%),
        radial-gradient(ellipse 90% 70% at 50% 0%, rgba(138, 43, 226, 0.18), transparent 65%),
        radial-gradient(ellipse 110% 50% at 80% 30%, rgba(255, 215, 0, 0.08), transparent 40%),
        #000000;
    z-index: -1;
    pointer-events: none;
}

/* Social Icons */
.social-icons {
    position: fixed;
    display: flex;
    gap: 1rem;
    z-index: 100;
}

.social-icons.bottom-left {
    bottom: 2rem;
    left: 2rem;
}

.social-link {
    color: var(--white);
    opacity: 0.75;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    opacity: 1;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.company-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 700; /* Sora 700 is strong but soft */
    line-height: 0.9;
    margin-bottom: 2.5rem;
    letter-spacing: 0.0em; /* neutral tracking suits Sora */
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.glitch-word {
    display: flex;
    gap: 0.06em;
}

.letter {
    position: relative;
    display: inline-block;
    color: var(--rust-orange);
    opacity: 0;
    transform: translateY(20px) rotateX(90deg);
    animation: buildLetter 0.8s ease-out forwards;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* Staggered animation delays */
.letter:nth-child(1) { animation-delay: 0.5s; }
.letter:nth-child(2) { animation-delay: 0.7s; }
.letter:nth-child(3) { animation-delay: 0.9s; }
.letter:nth-child(4) { animation-delay: 1.1s; }
.letter:nth-child(5) { animation-delay: 1.3s; }
.letter:nth-child(6) { animation-delay: 1.5s; }
.letter:nth-child(7) { animation-delay: 1.7s; }

/* Glitch effect */
.letter::before,
.letter::after {
    content: attr(data-letter);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    color: var(--warm-terracotta);
}

.letter::before {
    animation: glitch1 2s infinite linear alternate-reverse;
    animation-delay: var(--delay, 0s);
}

.letter::after {
    animation: glitch2 2s infinite linear alternate-reverse;
    animation-delay: var(--delay, 0.1s);
    color: var(--soft-peach);
}

/* Cog/gear building effect */
.letter:hover {
    animation: cogSpin 0.6s ease-out;
}

@keyframes buildLetter {
    0% {
        opacity: 0;
        transform: translateY(20px) rotateX(90deg) scale(0.92);
        filter: blur(2.5px);
    }
    50% {
        opacity: 0.85;
        transform: translateY(5px) rotateX(45deg) scale(1.05);
        filter: blur(1.4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
        filter: blur(0);
    }
}

@keyframes glitch1 {
    0%, 90% { transform: translate(0); opacity: 0; }
    95% { transform: translate(-2px, 1px); opacity: 0.6; }
    100% { transform: translate(1px, -1px); opacity: 0; }
}

@keyframes glitch2 {
    0%, 90% { transform: translate(0); opacity: 0; }
    95% { transform: translate(2px, -1px); opacity: 0.45; }
    100% { transform: translate(-1px, 2px); opacity: 0; }
}

@keyframes cogSpin { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.05); } 100% { transform: rotate(360deg) scale(1); } }

.taglines {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--light-grey);
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease-out forwards;
}

.tagline:nth-child(1) { animation-delay: 0.8s; }
.tagline:nth-child(2) { animation-delay: 1.0s; }
.tagline:nth-child(3) { animation-delay: 1.2s; }

/* About Section */
.about { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 4rem; max-width: 1400px; margin: 0 auto; text-align: center; }
.about-content { max-width: 900px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin-bottom: 3rem; color: var(--white); opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.description { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--light-grey); line-height: 1.8; opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out 0.2s; }
.description strong { color: var(--white); }

/* Footer */
.footer { position: fixed; bottom: 2rem; right: 2rem; text-align: right; font-size: 0.9rem; color: var(--light-grey); z-index: 100; }
.footer p { margin-bottom: 0.5rem; }
.footer a { color: var(--soft-blue); text-decoration: none; transition: color 0.3s ease; }
.footer a:hover { color: var(--white); }

/* Animations */
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* Visible state for scroll animations */
.visible { opacity: 1 !important; transform: translateY(0) !important; }

/* Responsive Design */
@media (max-width: 768px) {
    .social-icons.bottom-left { left: 1rem; }
    .social-icons.bottom-left { bottom: 1rem; }
    .footer { bottom: 1rem; right: 1rem; font-size: 0.8rem; }
    .hero, .about { padding: 1rem 2rem; }
}

@media (max-width: 480px) {
    .hero, .about { padding: 1rem 1.5rem; }
    .company-title { margin-bottom: 2rem; }
    .taglines { gap: 0.8rem; }
}
