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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: #0b0f1e;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
    padding: 0;
    overflow-x: hidden;
}

.top-bar {
    width: 100%;
    background: rgba(7, 11, 20, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
    z-index: 101;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.top-bar-item:hover {
    color: #a855f7;
}

.top-bar-item svg {
    flex-shrink: 0;
}

header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(11, 15, 30, 0.95);
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
    position: relative;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #a855f7;
}

.hero {
    width: 100%;
    text-align: center;
    padding: 4rem 2rem 1rem;
    background: transparent;
    position: relative;
    z-index: 5;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.602);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0.5rem 1rem;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .top-bar-item {
        font-size: 0.75rem;
    }

    .hero {
        padding: 3rem 2rem 1rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    nav {
        display: none;
    }

    /* Hide interactive elements on mobile */
    .button-container {
        display: none !important;
    }

    #canvas {
        display: none !important;
    }

    .interactive-section {
        flex: none !important;
        min-height: 0 !important;
        padding: 1rem !important;
    }
}

.interactive-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    padding: 0.5rem 2rem 2rem;
    min-height: 600px;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.laptop-container {
    max-width: 700px;
    max-height: 55vh;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.laptop-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.button-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 20;
    pointer-events: none;
}

.laptop-button {
    position: absolute;
    padding: 0.8rem 1.8rem;
    background: #667eea;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    white-space: nowrap;
}

.laptop-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

/* Button positions - spread to sides, less bottom */
.btn-screen {
    top: 25%;
    left: 18%;
    background: #4338CA;
}

.btn-keyboard {
    bottom: 35%;
    left: 22%;
    background: #6D28D9;
}

.btn-ports {
    top: 42%;
    left: 12%;
    background: #7C3AED;
}

.btn-specs {
    bottom: 35%;
    right: 18%;
    background: #DB2777;
}

.btn-webcam {
    top: 12%;
    left: 42%;
    background: #059669;
}

.btn-touchpad {
    bottom: 12%;
    left: 42%;
    background: #D97706;
}

.btn-battery {
    top: 35%;
    right: 10%;
    background: #DC2626;
}

.btn-display {
    top: 25%;
    right: 20%;
    background: #7C3AED;
}

.btn-cpu {
    bottom: 42%;
    right: 26%;
    background: #0891B2;
}
