/* GuideSonic Technologies - Landing Page Styles */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Colors */
    --color-bg-deep: #0a0e17;
    --color-bg-accent: #0f1629;
    --color-primary: #00d4ff;
    --color-secondary: #0066cc;
    --color-text-primary: #e8eef4;
    --color-text-secondary: #7a8ba3;
    --color-text-muted: #4a5568;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-deep);
    background-image: url('../images/background.png');
    background-repeat: repeat;
    color: var(--color-text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   Background Effects
   ============================================ */

/* Animated wave container */
.wave-container {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    height: 320px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.waves {
    width: 200%;
    height: 100%;
}

.wave {
    animation: wave-flow 8s linear infinite;
}

.wave-1 {
    animation-duration: 7s;
}

.wave-2 {
    animation-duration: 10s;
    animation-delay: -2s;
}

.wave-3 {
    animation-duration: 13s;
    animation-delay: -4s;
}

@keyframes wave-flow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Glow orb effect */
.glow-orb {
    position: fixed;
    top: 30%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle,
        rgba(0, 212, 255, 0.08) 0%,
        rgba(0, 102, 204, 0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
    animation: orb-pulse 6s ease-in-out infinite;
}

@keyframes orb-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ============================================
   Layout
   ============================================ */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* ============================================
   Logo Placeholder
   ============================================ */
.header {
    margin-bottom: var(--spacing-lg);
    animation: fade-in-down 1s ease-out;
}

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

.logo-pulse {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--color-primary),
                0 0 40px rgba(0, 212, 255, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

.logo-ring {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: ring-expand 2s ease-out infinite;
}

.logo-ring-2 {
    animation-delay: 1s;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--color-primary),
                    0 0 40px rgba(0, 212, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 30px var(--color-primary),
                    0 0 60px rgba(0, 212, 255, 0.7);
    }
}

@keyframes ring-expand {
    0% {
        width: 20px;
        height: 20px;
        opacity: 0.8;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    animation: fade-in-up 1s ease-out 0.3s backwards;
}

.company-name {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.name-primary {
    display: block;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.name-secondary {
    display: block;
    font-size: 0.4em;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--color-text-secondary);
    -webkit-text-fill-color: var(--color-text-secondary);
}

.tagline {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 300;
    color: var(--color-text-secondary);
    letter-spacing: 0.15em;
    font-style: italic;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    animation: fade-in-up 1s ease-out 0.6s backwards;
}

.email-link {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.email-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left var(--transition-medium);
}

.email-link:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.email-link:hover::before {
    left: 100%;
}

.email-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--spacing-md);
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fade-in-up 1s ease-out 0.9s backwards;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.footer-content {
    max-width: 400px;
    margin: 0 auto;
}

.copyright {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xs);
}

.legal {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

.address {
    font-size: 0.75rem;
    font-style: normal;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .wave-container {
        opacity: 0.4;
    }

    .glow-orb {
        width: 400px;
        height: 400px;
    }

    .logo-placeholder {
        width: 60px;
        height: 60px;
    }

    .logo-pulse {
        width: 16px;
        height: 16px;
    }

    .logo-ring {
        width: 40px;
        height: 40px;
    }

    @keyframes ring-expand {
        0% {
            width: 16px;
            height: 16px;
            opacity: 0.8;
        }
        100% {
            width: 60px;
            height: 60px;
            opacity: 0;
        }
    }
}

@media (max-width: 480px) {
    .company-name {
        letter-spacing: 0.05em;
    }

    .name-secondary {
        letter-spacing: 0.15em;
    }

    .tagline {
        letter-spacing: 0.1em;
    }

    .footer::before {
        width: 150px;
    }
}

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

    .wave-container {
        display: none;
    }

    .glow-orb {
        animation: none;
        opacity: 0.5;
    }
}
