/* ==========================================================================
   Code and Motion - Holding Page Styles
   ========================================================================== */

/* CSS Custom Properties */
:root {
    --color-primary: #1a365d;
    --color-primary-light: #2c5282;
    --color-primary-glow: rgba(26, 54, 93, 0.4);
    --color-accent: #4299e1;
    --color-background: #0d1117;
    --color-background-lighter: #161b22;
    --color-surface: #1c2128;
    --color-text: #f7fafc;
    --color-text-muted: #8b949e;
    --color-border: rgba(255, 255, 255, 0.1);
    
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --timing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --timing-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: var(--font-primary);
    background: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   Animated Background Grid
   ========================================================================== */

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(26, 54, 93, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 54, 93, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 8s ease-in-out infinite;
}

.grid-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(26, 54, 93, 0.15) 0%, transparent 60%);
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ==========================================================================
   Motion Lines Animation
   ========================================================================== */

.motion-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.motion-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-primary-light), transparent);
    border-radius: 2px;
    opacity: 0;
    animation: motionLine 12s linear infinite;
}

.motion-line:nth-child(1) {
    top: 15%;
    width: 200px;
    animation-delay: 0s;
}

.motion-line:nth-child(2) {
    top: 35%;
    width: 150px;
    animation-delay: 2.4s;
}

.motion-line:nth-child(3) {
    top: 55%;
    width: 180px;
    animation-delay: 4.8s;
}

.motion-line:nth-child(4) {
    top: 75%;
    width: 120px;
    animation-delay: 7.2s;
}

.motion-line:nth-child(5) {
    top: 90%;
    width: 160px;
    animation-delay: 9.6s;
}

@keyframes motionLine {
    0% {
        left: -200px;
        opacity: 0;
    }
    5% {
        opacity: 0.6;
    }
    95% {
        opacity: 0.6;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* ==========================================================================
   Main Content
   ========================================================================== */

main {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    text-align: center;
    padding: 4rem 1rem 2rem;
}

.hero-content {
    animation: fadeInUp 1s var(--timing-smooth) forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo-container {
    margin-bottom: 2rem;
}

.logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px var(--color-primary-glow));
}

/* Company Name */
.company-name {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    flex-wrap: wrap;
}

.name-code {
    animation: slideInLeft 0.8s var(--timing-smooth) 0.2s forwards;
    opacity: 0;
}

.name-and {
    font-family: var(--font-mono);
    font-weight: 400;
    color: var(--color-accent);
    animation: fadeIn 0.8s var(--timing-smooth) 0.4s forwards;
    opacity: 0;
}

.name-motion {
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInRight 0.8s var(--timing-smooth) 0.6s forwards;
    opacity: 0;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Tagline */
.tagline {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: fadeIn 1s var(--timing-smooth) 0.8s forwards;
    opacity: 0;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services {
    width: 100%;
    max-width: 600px;
    padding: 2rem 1rem;
}

.services-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.8s var(--timing-smooth) 1s forwards;
}

.services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item {
    padding: 1rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.3s var(--timing-smooth);
    opacity: 0;
    animation: slideInUp 0.6s var(--timing-smooth) forwards;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text);
}

.service-item:nth-child(1) { animation-delay: 1.1s; }
.service-item:nth-child(2) { animation-delay: 1.2s; }
.service-item:nth-child(3) { animation-delay: 1.3s; }
.service-item:nth-child(4) { animation-delay: 1.4s; }
.service-item:nth-child(5) { animation-delay: 1.5s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item:hover {
    background: var(--color-background-lighter);
    border-color: var(--color-primary);
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact {
    padding: 4rem 1rem;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.8s var(--timing-smooth) 1.6s forwards;
}

.contact-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    border: 2px solid var(--color-primary);
    transition: all 0.3s var(--timing-smooth);
    position: relative;
    overflow: hidden;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-button:hover {
    background: transparent;
    box-shadow: 0 0 30px var(--color-primary-glow);
    transform: translateY(-2px);
}

.contact-button:hover::before {
    left: 100%;
}

.button-arrow {
    transition: transform 0.3s var(--timing-bounce);
}

.contact-button:hover .button-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    opacity: 0;
    animation: fadeIn 0.8s var(--timing-smooth) 1.8s forwards;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.launch-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(66, 153, 225, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(66, 153, 225, 0);
    }
}

.copyright {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    
    .hero {
        min-height: 50vh;
        padding: 3rem 1rem;
    }
    
    .logo {
        width: 140px;
        height: 140px;
    }
    
    .company-name {
        flex-direction: column;
        gap: 0.1em;
    }
    
    .services {
        padding: 2rem 0.5rem;
    }
    
    .service-item {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact {
        padding: 2rem 1rem;
    }
    
    .contact-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .motion-line {
        height: 1px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 120px;
        height: 120px;
    }
    
    .tagline {
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .logo-container {
        animation: none;
    }
    
    .motion-lines {
        display: none;
    }
    
    .grid-background {
        animation: none;
        opacity: 0.8;
    }
}

/* ==========================================================================
   Selection & Focus Styles
   ========================================================================== */

::selection {
    background: var(--color-primary);
    color: var(--color-text);
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ==========================================================================
   Scrollbar Styling
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-background);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

