:root {
    --cyber-green: #39ff14;
    --cyber-green-glow: rgba(57, 255, 20, 0.5);
    --dark-bg: #050505;
    --dark-surface: #0a0a0a;
    --dark-surface-2: #151515;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scanlines & Noise Effects */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 100;
    pointer-events: none;
    opacity: 0.1;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    z-index: 99;
    pointer-events: none;
}

/* Header */
.main-header {
    height: 15vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--cyber-green-glow);
}

.accent {
    color: var(--cyber-green);
}

/* Slanted Layout */
.slanted-container {
    flex: 1;
    display: flex;
    height: 75vh;
    position: relative;
    overflow: hidden;
}

.owner-section {
    flex: 1;
    position: relative;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

/* Creating a more balanced slanted effect */
.section-1 {
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);
    z-index: 10;
    background-position: 20% center; /* Shifted to show more of the body */
}

.section-2 {
    clip-path: polygon(25% 0, 100% 0, 75% 100%, 0% 100%);
    margin-left: -8.33%; /* Aligning the slants */
    z-index: 5;
    background-position: center;
}

.section-3 {
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    margin-left: -8.33%; /* Aligning the slants */
    z-index: 1;
    background-position: center;
}

/* Base style adjustment for sections */
.owner-section {
    flex: 1;
    position: relative;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: flex-end; /* Moved to bottom */
    justify-content: center;
    background-size: cover;
    background-position: center;
    width: 33.333%; /* Explicitly set base width */
}

/* Hover States */
.owner-section:hover {
    flex: 1.5;
    z-index: 20;
}

.owner-section:hover .overlay {
    background: rgba(57, 255, 20, 0.1);
}

.owner-section:hover .content {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Removed dark overlay */
    transition: background 0.3s ease;
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    transition: all 0.3s ease;
    padding: 20px 15px;
    margin-bottom: 30px;
    width: 80%; /* Constrained to avoid slants */
    max-width: 280px;
    background: rgba(0, 0, 0, 0.6); /* Switched back to dark for better contrast with cyber-green */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(57, 255, 20, 0.3); /* Cyber green border */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(57, 255, 20, 0.1);
}

.owner-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem; /* Slightly smaller to fit */
    margin-bottom: 8px;
    color: var(--cyber-green);
    text-shadow: 0 0 10px var(--cyber-green-glow);
}

.description {
    font-size: 1rem; /* Slightly smaller to fit */
    color: #fff;
    margin-bottom: 0;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    opacity: 0.9;
}

.bio-link {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--cyber-green);
    color: var(--cyber-green);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bio-link:hover {
    background: var(--cyber-green);
    color: black;
    box-shadow: 0 0 20px var(--cyber-green);
}

/* Footer */
.main-footer {
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--dark-surface);
    border-top: 1px solid var(--dark-surface-2);
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    body {
        height: auto; /* Allow scrolling on mobile */
        overflow-y: auto;
    }

    .main-header {
        height: 20vh;
        padding-top: 40px;
    }

    .tagline {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .slanted-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .owner-section {
        height: 60vh; /* Taller sections for better portrait visibility */
        width: 100% !important;
        clip-path: none !important; /* Removes slants on mobile for cleaner stack */
        margin: 0 !important;
        border-bottom: 2px solid var(--cyber-green-glow);
    }

    .content {
        width: 90%;
        max-width: 320px;
        margin-bottom: 40px;
        padding: 15px;
    }

    .owner-name {
        font-size: 1.6rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .main-footer {
        height: 80px;
        padding: 20px;
        text-align: center;
    }
}
