@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    min-height: 300vh;
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 4rem 3rem;
    padding-top: 15vh;
}

.hero-content {
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.6);
    padding: 3rem 4rem;
    border-left: 4px solid rgba(0, 255, 255, 0.5);
    max-width: 800px;
    transform: translateZ(0);
}

.glitch-text {
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0a4d68, #088395, #00d4ff, #0ff, #088395);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
    line-height: 0.95;
    text-transform: uppercase;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    letter-spacing: 0.3em;
    margin-top: 1.5rem;
    color: #00d4ff;
    font-weight: 300;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    margin-top: 2rem;
    color: rgba(0, 212, 255, 0.8);
    font-style: normal;
    font-weight: 300;
    max-width: 500px;
    line-height: 1.6;
}

.zalgo-quote {
    position: fixed;
    right: 3rem;
    top: 60%;
    transform: translateY(-50%);
    font-size: clamp(0.65rem, 0.9vw, 0.85rem);
    color: rgba(150, 150, 150, 0.35);
    max-width: 500px;
    line-height: 2.5;
    font-weight: 300;
    text-align: right;
    animation: floatZalgo 6s ease-in-out infinite;
    text-shadow: 0 0 3px rgba(150, 150, 150, 0.15);
    z-index: 15;
    mix-blend-mode: screen;
}

@keyframes floatZalgo {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-8px) translateX(3px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-12px) translateX(-3px);
        opacity: 0.75;
    }
    75% {
        transform: translateY(-8px) translateX(2px);
        opacity: 0.8;
    }
}

@keyframes gradientShift {
    0%, 100% { 
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% { 
        background-position: 100% 50%;
        filter: hue-rotate(20deg);
    }
}

/* Company Section */
.company-section {
    min-height: 100vh;
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-grid {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin: 0 auto;
}

.company-card {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: linear-gradient(
        135deg,
        rgba(0, 30, 50, 0.4) 0%,
        rgba(0, 10, 20, 0.6) 100%
    );
    padding: 2.5rem;
    border-left: 3px solid rgba(0, 180, 216, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.company-card.featured {
    grid-column: span 2;
    border-left-width: 4px;
    border-left-color: rgba(0, 212, 255, 0.6);
}

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

.company-card:hover::before {
    left: 100%;
}

.company-card:hover {
    transform: translateY(-10px);
    border-left-color: rgba(0, 212, 255, 0.7);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    background: linear-gradient(
        135deg,
        rgba(0, 50, 80, 0.5) 0%,
        rgba(0, 20, 40, 0.7) 100%
    );
}

.company-header {
    margin-bottom: 1.5rem;
}

.company-logo-text {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #00d4ff, #0088aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.company-role {
    font-size: 0.85rem;
    color: rgba(0, 212, 255, 0.7);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 1rem;
}

.company-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.company-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 100, 150, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: rgba(0, 212, 255, 0.9);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 400;
}

.company-link {
    display: inline-block;
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.company-link:hover {
    color: #fff;
    border-bottom-color: #00d4ff;
    transform: translateX(5px);
}

.tech-label {
    font-size: 0.8rem;
    color: rgba(0, 212, 255, 0.6);
    border: none;
    cursor: default;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.tech-label:hover {
    transform: none;
    border-bottom-color: transparent;
}

.infinite-scroll-trigger {
    height: 50vh;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .company-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 2rem;
    }
    
    .company-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .company-section {
        padding: 3rem 1rem;
    }
    
    .company-card.featured {
        grid-column: span 1;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0a4d68, #00d4ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00d4ff, #088395);
}
