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

body, html {
    height: 100%;
    font-family: system-ui, -apple-system, sans-serif;
    color: white;
    background: transparent;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background video container */
#bg-video-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -10;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -10;
}

#bg-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: -9;
}

/* Overlay for readability */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 31, 0.55);
    z-index: -5;
    pointer-events: none;
}

/* Main content */
main {
    position: relative;
    z-index: 10;
    flex: 1 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    background: transparent;
}

h1 {
    font-size: clamp(3.2rem, 9vw, 7.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.7);
}

p {
    font-size: clamp(1.3rem, 4vw, 2rem);
    max-width: 720px;
    margin-bottom: 2.5rem;
    opacity: 0.92;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* Button */
.btn {
    display: inline-block;
    padding: 1rem 2.4rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.28s ease;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
    margin: 1rem 0; /* vertical spacing when alone */
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.5);
}

/* Portfolio section */
.portfolio-section {
    margin-top: 4rem;
    width: 100%;
    max-width: 1200px;
}

.portfolio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.portfolio-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.portfolio-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 600px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.company-description {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Footer */
footer {
    position: relative;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.7;
    padding: 2rem 1rem;
    margin-top: auto;
    background: transparent;
}

/* Responsive */
@media (max-width: 640px) {
    h1 { font-size: 3.4rem; }
    p  { font-size: 1.35rem; }
    .btn {
        padding: 0.9rem 2rem;
        font-size: 1.2rem;
    }
    .portfolio-section {
        margin-top: 3rem;
        padding: 0 1rem;
    }
    .portfolio-box {
        padding: 1.5rem;
    }
}
