/* ===== CSS Variables ===== */
:root {
    /* Color Palette - Blue & Cyan Theme */
    --primary-dark: #0a0e27;
    --secondary-dark: #14183d;
    --tertiary-dark: #1a1f4d;
    --accent-cyan: #00d9ff;
    --accent-blue: #0099ff;
    --accent-purple: #6366f1;
    --text-light: #e2e8f0;
    --text-gray: #94a3b8;
    --success-green: #10b981;

    /* Gradients */
    --gradient-bg: linear-gradient(135deg, #0a0e27 0%, #14183d 50%, #1a1f4d 100%);
    --gradient-accent: linear-gradient(135deg, #00d9ff 0%, #0099ff 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 153, 255, 0.05) 100%);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 217, 255, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 217, 255, 0.2);
    --shadow-lg: 0 8px 40px rgba(0, 217, 255, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 217, 255, 0.5);

    /* Transitions */
    --transition: 0.3s ease-in-out;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--gradient-bg);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== Geometric Background ===== */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

#circuitCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

/* ===== Floating Elements ===== */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    color: var(--accent-cyan);
    opacity: 0.2;
    animation: floatAround 15s infinite ease-in-out;
}

.float-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px currentColor);
}

.float-1 {
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.float-2 {
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.float-3 {
    top: 30%;
    left: 10%;
    animation-delay: 10s;
}

@keyframes floatAround {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }

    50% {
        transform: translate(-20px, 40px) rotate(180deg);
    }

    75% {
        transform: translate(-40px, -20px) rotate(270deg);
    }
}

/* ===== Main Container ===== */
.main-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Logo Section ===== */
.logo-wrapper {
    margin-bottom: var(--space-xl);
    animation: slideDown 0.8s ease;
}

.logo-hexagon {
    position: relative;
    padding: 1.5rem;
    background: rgba(0, 217, 255, 0.05);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.logo-hexagon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition);
}

.logo-hexagon:hover::before {
    opacity: 0.2;
}

.main-logo {
    display: block;
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===== Main Icon ===== */
.maintenance-icon-wrapper {
    position: relative;
    margin-bottom: var(--space-xl);
    animation: slideUp 0.8s ease 0.2s both;
}

.icon-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: var(--gradient-card);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 10s linear infinite;
}

.maintenance-icon {
    width: 60px;
    height: 60px;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 15px currentColor);
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid var(--accent-cyan);
    border-radius: var(--radius-full);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== Content Section ===== */
.content-wrapper {
    width: 100%;
    text-align: center;
}

.main-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: var(--space-md);
    line-height: 1.2;
    animation: slideUp 0.8s ease 0.3s both;
}

.title-line {
    display: block;
    color: var(--text-light);
}

.title-line.highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.main-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    animation: slideUp 0.8s ease 0.4s both;
}

/* ===== Progress Section ===== */
.progress-section {
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    animation: slideUp 0.8s ease 0.5s both;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.progress-label {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 600;
}

.progress-percentage {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    font-weight: 700;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 12px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.progress-fill {
    position: relative;
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 10px;
    width: 0;
    transition: width 0.5s ease;
    box-shadow: var(--shadow-glow);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ===== Status Grid ===== */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    animation: slideUp 0.8s ease 0.6s both;
}

.status-card {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
    transition: left 0.5s;
}

.status-card:hover::before {
    left: 100%;
}

.status-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-md);
}

.status-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--space-sm);
    color: var(--accent-cyan);
}

.status-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px currentColor);
}

.status-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-light);
}

.status-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* ===== Time Estimate ===== */
.time-estimate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: slideUp 0.8s ease 0.7s both;
}

.estimate-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-cyan);
}

.estimate-icon svg {
    width: 100%;
    height: 100%;
    animation: rotate 4s linear infinite;
}

.estimate-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

.estimate-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.estimate-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

/* ===== Contact Section ===== */
.contact-section {
    margin-bottom: var(--space-xl);
    animation: slideUp 0.8s ease 0.8s both;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: var(--space-md);
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.contact-btn svg {
    width: 20px;
    height: 20px;
}

.email-btn {
    background: transparent;
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.email-btn:hover {
    background: var(--accent-cyan);
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.phone-btn {
    background: var(--gradient-accent);
    color: var(--primary-dark);
    border-color: transparent;
}

.phone-btn:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* ===== Footer ===== */
.footer-info {
    margin-top: var(--space-xl);
    animation: slideUp 0.8s ease 0.9s both;
}

.footer-text {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: var(--space-sm);
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-gray);
    opacity: 0.7;
}

/* ===== Animations ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */

/* Tablets */
@media (max-width: 1024px) {
    .main-logo {
        max-width: 160px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 2.5rem;
    }

    .main-container {
        padding: var(--space-md);
    }

    .main-logo {
        max-width: 140px;
    }

    .icon-circle {
        width: 100px;
        height: 100px;
    }

    .maintenance-icon {
        width: 50px;
        height: 50px;
    }

    .icon-pulse {
        width: 100px;
        height: 100px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-btn {
        justify-content: center;
    }

    .time-estimate {
        flex-direction: column;
        text-align: center;
    }

    .estimate-text {
        text-align: center;
    }

    .float-icon {
        width: 40px;
        height: 40px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .main-logo {
        max-width: 120px;
    }

    .status-card {
        padding: var(--space-md);
    }

    .progress-info {
        flex-direction: column;
        gap: var(--space-xs);
        align-items: flex-start;
    }
}