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

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0d1220;
    --accent-primary: #00ff41;
    --accent-secondary: #00cc34;
    --text-primary: #00ff41;
    --text-secondary: #00ff41;
    --text-muted: #00bb30;
    --divider-color: rgba(0, 255, 65, 0.15);

    /* Core Web Vitals - Prevent CLS */
    --logo-size: 160px;
    --logo-size-mobile: 100px;
}

html {
    scroll-behavior: smooth;
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Font rendering handled by Google Fonts with display=swap */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Particle Background */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ff41;
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 0.5;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.4;
    }

    25% {
        transform: translateY(-50px) translateX(25px);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-20px) translateX(-20px);
        opacity: 0.3;
    }

    75% {
        transform: translateY(-40px) translateX(30px);
        opacity: 0.5;
    }
}

/* Grid pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Logo Section */
.logo-section {
    margin-bottom: 10px;
}

.logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoEntry 1s ease-out;
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
}

@keyframes logoEntry {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Company Name */
.company-name {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services */
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.services span {
    transition: color 0.3s ease;
}

.services span:not(.separator):hover {
    color: var(--accent-primary);
}

.separator {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Description */
.description {
    max-width: 500px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: center;
    opacity: 0.8;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* Social Handles */
.social-handles {
    display: flex;
    gap: 24px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.social-handles a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.social-handles a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.social-handles a:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.social-handles a:hover::after {
    width: 100%;
}

/* Divider */
.divider {
    width: 80%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--divider-color), transparent);
    margin: 16px 0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Contact Line - Single Line */
.contact-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    animation: fadeInUp 0.8s ease-out 0.7s both;
    font-style: normal;
    /* Override browser default for address tag */
}

.contact-line a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-line a:hover {
    color: var(--accent-primary);
}

.contact-line span:not(.separator) {
    color: #ffffff;
}

.contact-line .separator {
    color: var(--text-muted);
    font-weight: 300;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

/* Circuit line decorations */
.container::before,
.container::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
    opacity: 0.2;
    animation: lineMove 3s infinite ease-in-out;
}

.container::before {
    left: -40px;
    top: 30%;
}

.container::after {
    right: -40px;
    top: 50%;
    animation-delay: 1.5s;
}

@keyframes lineMove {

    0%,
    100% {
        opacity: 0.1;
        transform: translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateY(20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 40px 16px;
    }

    .company-name {
        font-size: 2.4rem;
    }

    .services {
        font-size: 0.85rem;
        gap: 8px;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .container::before,
    .container::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 2rem;
    }

    .services {
        flex-direction: column;
        gap: 6px;
    }

    .separator {
        display: none;
    }

    .social-handles {
        flex-direction: column;
        gap: 10px;
    }
}

/* Hover animations for tech feel */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Scanning line effect */
@keyframes scan {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}