/* ========================================
   Fix.ng Coming Soon Page - Nigerian Theme
   ======================================== */

/* CSS Variables - Nigerian Color Palette */
:root {
    --ng-green: #008751;
    --ng-green-dark: #006B40;
    --ng-green-light: #00A862;
    --ng-white: #FFFFFF;
    --ng-gold: #F4A900;
    --ng-gold-light: #FFD966;
    --text-dark: #1a1a2e;
    --text-light: #666;
    --bg-cream: #FEFDF8;
    --bg-gradient-start: #f0fff4;
    --bg-gradient-end: #e8f5e9;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 50%, var(--bg-cream) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: var(--text-dark);
}

/* Pattern Overlay - Nigerian Adire-inspired */
.pattern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(
            45deg,
            var(--ng-green) 0px,
            var(--ng-green) 2px,
            transparent 2px,
            transparent 20px
        ),
        repeating-linear-gradient(
            -45deg,
            var(--ng-green) 0px,
            var(--ng-green) 2px,
            transparent 2px,
            transparent 20px
        );
}

/* Floating Background Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--ng-green);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--ng-gold);
    bottom: -50px;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--ng-green-light);
    top: 50%;
    left: 10%;
    animation: float 18s ease-in-out infinite 2s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: var(--ng-green);
    top: 20%;
    right: 20%;
    animation: float 12s ease-in-out infinite 1s;
}

.shape-5 {
    width: 100px;
    height: 100px;
    background: var(--ng-gold);
    bottom: 30%;
    right: 10%;
    animation: float 14s ease-in-out infinite 3s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
    75% {
        transform: translate(20px, 30px) rotate(3deg);
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    padding: 20px 0;
    text-align: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    display: inline-block;
}

.logo-fix {
    color: var(--ng-green);
}

.logo-dot {
    color: var(--ng-gold);
    animation: pulse-dot 2s ease-in-out infinite;
}

.logo-ng {
    color: var(--ng-green-dark);
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Fixing Animation Container */
.fixing-animation {
    text-align: center;
    margin-bottom: 40px;
}

/* Tool Container */
.tool-container {
    position: relative;
    width: 200px;
    height: 150px;
    margin: 0 auto 30px;
}

.wrench {
    width: 80px;
    height: 80px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: wrench-turn 3s ease-in-out infinite;
    transform-origin: center center;
    filter: drop-shadow(3px 3px 5px rgba(0, 135, 81, 0.3));
}

@keyframes wrench-turn {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    25% {
        transform: translate(-50%, -50%) rotate(-30deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    75% {
        transform: translate(-50%, -50%) rotate(30deg);
    }
}

.gear {
    position: absolute;
    width: 50px;
    height: 50px;
}

.gear-1 {
    left: 20px;
    top: 10px;
    animation: gear-spin 4s linear infinite;
    filter: drop-shadow(2px 2px 4px rgba(0, 135, 81, 0.3));
}

.gear-2 {
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    animation: gear-spin 3s linear infinite reverse;
    filter: drop-shadow(2px 2px 4px rgba(0, 135, 81, 0.2));
}

@keyframes gear-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Fixing Text Animation */
.fixing-text-container {
    margin-bottom: 30px;
}

.fixing-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--ng-green);
    display: inline-flex;
    align-items: baseline;
    text-shadow: 2px 2px 4px rgba(0, 135, 81, 0.2);
}

.letter {
    display: inline-block;
    animation: letter-bounce 2s ease-in-out infinite;
}

.letter:nth-child(1) { animation-delay: 0s; }
.letter:nth-child(2) { animation-delay: 0.1s; }
.letter:nth-child(3) { animation-delay: 0.2s; }
.letter:nth-child(4) { animation-delay: 0.3s; }
.letter:nth-child(5) { animation-delay: 0.4s; }
.letter:nth-child(6) { animation-delay: 0.5s; }
.letter:nth-child(7) { animation-delay: 0.6s; }
.letter:nth-child(8) { animation-delay: 0.7s; }
.letter:nth-child(9) { animation-delay: 0.8s; }

@keyframes letter-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.dots {
    display: inline-flex;
    margin-left: 5px;
}

.dot {
    font-size: 4rem;
    color: var(--ng-gold);
    animation: dot-pulse 1.5s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.3s; }
.dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes dot-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Progress Bar */
.progress-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    height: 8px;
    background: rgba(0, 135, 81, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--ng-green), var(--ng-green-light), var(--ng-gold));
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progress-animate 3s ease-out forwards, gradient-shift 2s ease-in-out infinite;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: glow-move 2s ease-in-out infinite;
}

@keyframes progress-animate {
    from {
        width: 0%;
    }
    to {
        width: 75%;
    }
}

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

@keyframes glow-move {
    0% {
        left: -30px;
    }
    100% {
        left: 100%;
    }
}

.progress-text {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Coming Soon Section */
.coming-soon {
    text-align: center;
    margin-bottom: 40px;
}

.coming-soon h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.coming-soon .highlight {
    color: var(--ng-green);
    position: relative;
}

.coming-soon .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--ng-gold);
    opacity: 0.3;
    z-index: -1;
    border-radius: 4px;
}

.coming-soon p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Nigerian Flag Decoration */
.flag-decoration {
    display: flex;
    width: 120px;
    height: 8px;
    margin: 30px auto;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 135, 81, 0.3);
}

.flag-stripe {
    flex: 1;
    animation: flag-wave 3s ease-in-out infinite;
}

.green-left {
    background: var(--ng-green);
    animation-delay: 0s;
}

.white-middle {
    background: var(--ng-white);
    animation-delay: 0.2s;
}

.green-right {
    background: var(--ng-green);
    animation-delay: 0.4s;
}

@keyframes flag-wave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.3);
    }
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ng-green);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.social-link:hover {
    background: var(--ng-green);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 135, 81, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(0, 135, 81, 0.1);
}

.footer-content {
    margin-bottom: 15px;
}

.owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--ng-green), var(--ng-green-dark));
    padding: 10px 25px;
    border-radius: 50px;
    color: white;
    margin-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0, 135, 81, 0.3);
}

.owned-by {
    font-size: 0.85rem;
    opacity: 0.9;
}

.owner-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.tagline {
    color: var(--ng-gold);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 10px;
}

.copyright p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }

    .fixing-text {
        font-size: 2.5rem;
    }

    .dot {
        font-size: 2.5rem;
    }

    .coming-soon h2 {
        font-size: 1.8rem;
    }

    .coming-soon p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .tool-container {
        width: 150px;
        height: 120px;
    }

    .wrench {
        width: 60px;
        height: 60px;
    }

    .gear-1 {
        width: 40px;
        height: 40px;
    }

    .gear-2 {
        width: 30px;
        height: 30px;
    }

    .shape-1 {
        width: 250px;
        height: 250px;
    }

    .shape-2 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .fixing-text {
        font-size: 2rem;
    }

    .dot {
        font-size: 2rem;
    }

    .coming-soon h2 {
        font-size: 1.5rem;
    }

    .owner-badge {
        flex-direction: column;
        gap: 5px;
        padding: 15px 25px;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-gradient-start: #0a1f0d;
        --bg-gradient-end: #0d2818;
        --bg-cream: #0f1f13;
        --text-dark: #e8f5e9;
        --text-light: #a5d6a7;
    }

    body {
        background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 50%, var(--bg-cream) 100%);
    }

    .input-group {
        background: #1a2e1f;
    }

    .input-group input {
        color: var(--text-dark);
    }

    .social-link {
        background: #1a2e1f;
    }

    .progress-bar {
        background: rgba(255, 255, 255, 0.1);
    }

    .footer {
        border-top-color: rgba(0, 135, 81, 0.2);
    }
}
