/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a1628;
    --bg-darker: #060d18;
    --primary: #00d9a5;
    --primary-light: #00ffbe;
    --primary-glow: rgba(0, 217, 165, 0.3);
    --secondary: #00b4d8;
    --accent: #7b2cbf;
    --purple: #9d4edd;
    --white: #ffffff;
    --gray-light: rgba(255, 255, 255, 0.7);
    --gray-muted: rgba(255, 255, 255, 0.5);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(0, 217, 165, 0.2);
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: var(--bg-dark);
    color: var(--white);
    overflow-x: hidden;
    position: relative;
}

/* Fiber Optic Background Animation */
.fiber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.fiber-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.4;
    animation: fiberMove 8s linear infinite;
}

.fiber-1 {
    top: 10%;
    width: 60%;
    left: -60%;
    animation-delay: 0s;
}

.fiber-2 {
    top: 25%;
    width: 80%;
    left: -80%;
    animation-delay: 1s;
    background: linear-gradient(90deg, transparent, var(--secondary), var(--purple), transparent);
}

.fiber-3 {
    top: 45%;
    width: 50%;
    left: -50%;
    animation-delay: 2s;
}

.fiber-4 {
    top: 65%;
    width: 70%;
    left: -70%;
    animation-delay: 3s;
    background: linear-gradient(90deg, transparent, var(--purple), var(--primary), transparent);
}

.fiber-5 {
    top: 80%;
    width: 55%;
    left: -55%;
    animation-delay: 4s;
}

.fiber-6 {
    top: 92%;
    width: 65%;
    left: -65%;
    animation-delay: 5s;
    background: linear-gradient(90deg, transparent, var(--secondary), var(--primary-light), transparent);
}

@keyframes fiberMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(100vw + 100%));
    }
}

/* Fiber Glow Effects */
.fiber-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: glowPulse 6s ease-in-out infinite;
}

.fiber-glow-1 {
    top: 10%;
    right: 10%;
    background: var(--primary);
}

.fiber-glow-2 {
    bottom: 20%;
    left: 5%;
    background: var(--secondary);
    animation-delay: 2s;
}

.fiber-glow-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--purple);
    animation-delay: 4s;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.2);
    }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    animation: particleFloat 15s linear infinite;
    opacity: 0;
}

.particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.particles span:nth-child(2) { left: 20%; animation-delay: 1.5s; background: var(--secondary); box-shadow: 0 0 10px var(--secondary); }
.particles span:nth-child(3) { left: 30%; animation-delay: 3s; }
.particles span:nth-child(4) { left: 40%; animation-delay: 4.5s; background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.particles span:nth-child(5) { left: 50%; animation-delay: 6s; }
.particles span:nth-child(6) { left: 60%; animation-delay: 7.5s; background: var(--secondary); box-shadow: 0 0 10px var(--secondary); }
.particles span:nth-child(7) { left: 70%; animation-delay: 9s; }
.particles span:nth-child(8) { left: 80%; animation-delay: 10.5s; background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.particles span:nth-child(9) { left: 85%; animation-delay: 12s; }
.particles span:nth-child(10) { left: 95%; animation-delay: 13.5s; background: var(--secondary); box-shadow: 0 0 10px var(--secondary); }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Main Wrapper */
.main-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 40px 40px 20px;
    display: flex;
    justify-content: center;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo {
    height: 220px;
    width: auto;
    filter: drop-shadow(0 0 60px var(--primary-glow));
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.slogan {
    color: var(--gray-light);
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 3px;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 20px 20px 40px;
    animation: fadeInUp 1s ease-out;
}

/* Gear Animation */
.gear-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
}

.gear-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: spinGear 2s linear infinite;
}

.gear-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 217, 165, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gear-icon i {
    font-size: 2rem;
    color: var(--primary);
    animation: spinGearReverse 4s linear infinite;
}

@keyframes spinGear {
    100% { transform: rotate(360deg); }
}

@keyframes spinGearReverse {
    100% { transform: rotate(-360deg); }
}

/* Title */
.title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.title-white {
    color: var(--white);
}

.title-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.description {
    font-size: 1.1rem;
    color: var(--gray-light);
    margin-bottom: 5px;
    font-weight: 300;
}

/* Status Box */
.status-box {
    margin-top: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px 50px;
    backdrop-filter: blur(10px);
    max-width: 500px;
    width: 100%;
}

.status-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 500;
}

.status-header i {
    font-size: 1.1rem;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    width: 65%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    position: relative;
    animation: progressPulse 2s ease-in-out infinite;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressGlow 2s linear infinite;
}

@keyframes progressPulse {
    0%, 100% { width: 55%; }
    50% { width: 75%; }
}

@keyframes progressGlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

.status-text {
    color: var(--gray-muted);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 60px 40px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.section-title i {
    font-size: 1.5rem;
    color: var(--primary);
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-muted);
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 217, 165, 0.2);
}

.contact-card:hover .card-glow {
    opacity: 1;
}

.contact-card:hover .card-icon {
    background: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 217, 165, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card-icon {
    width: 55px;
    height: 55px;
    background: rgba(0, 217, 165, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.card-icon i {
    font-size: 1.4rem;
    color: var(--primary);
    transition: color 0.4s ease;
}

.contact-card:hover .card-icon i {
    color: var(--bg-dark);
}

.card-content h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-muted);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.card-content a,
.card-content span {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
    display: block;
}

.card-content a:hover {
    color: var(--primary);
}

/* Footer */
.footer {
    padding: 25px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 25px;
    width: auto;
    opacity: 0.7;
}

.footer-left span {
    color: var(--gray-muted);
    font-size: 0.85rem;
}

.footer-left strong {
    color: var(--white);
}

.footer-right span {
    color: var(--gray-muted);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 50px 20px 30px;
    }

    .logo {
        height: 160px;
    }
    
    .slogan {
        font-size: 1.1rem;
    }

    .title {
        font-size: 2.5rem;
    }

    .description {
        font-size: 1rem;
    }

    .status-box {
        padding: 25px 30px;
        margin: 30px 20px 0;
    }

    .contact-section {
        padding: 40px 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .gear-container {
        width: 80px;
        height: 80px;
    }

    .gear-icon {
        width: 55px;
        height: 55px;
    }

    .gear-icon i {
        font-size: 1.5rem;
    }
}
