/* CSS Custom Properties (Variables) */
:root {
    /* Background Colors */
    --bg-primary: rgb(28 30 37);
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2d2d2d;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --bg-footer-overlay: rgba(0, 0, 0, 0.2);
    
    /* Text Colors */
    --text-primary: white;
    --text-secondary: #ccc;
    --text-tertiary: #aaa;
    --text-muted: #888;
    --text-placeholder: #aaa;
    
    /* Accent Colors */
    --accent-primary: #4CAF50;
    --accent-primary-hover: #45a049;
    --accent-success: #4CAF50;
    --accent-error: #f44336;
    
    /* Border Colors */
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: #444;
    --border-tertiary: #333;
    --border-accent: #4CAF50;
    
    /* Shadow Colors */
    --shadow-primary: rgba(0, 0, 0, 0.3);
    --shadow-secondary: rgba(0, 0, 0, 0.5);
    --shadow-accent: rgba(76, 175, 80, 0.3);
    --shadow-accent-hover: rgba(76, 175, 80, 0.4);
    
    /* Social Icon Colors */
    --social-bg: rgba(255, 255, 255, 0.05);
    --social-bg-hover: rgba(255, 255, 255, 0.1);
}

body {
    background: var(--bg-primary);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-primary);
    margin: 0;
    min-width: 700px;
}

#top_menu {
    width: 100%;
    height: 50px;
    padding-top: 30px;
    box-shadow: -5px 0px 6px 4px var(--shadow-secondary);
    font-weight: bolder;
    background-color: var(--bg-secondary);
}

#top_menu_btns {
    width: fit-content;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    gap: 50px;
    justify-content: flex-end;
    align-items: center;
}

.top_menu_item {
    color: var(--text-muted);
    cursor: pointer;
    padding: 10px 0;
    font-size: 1.2em;
    text-decoration: none;
}

.top_menu_item:hover {
    color: var(--text-primary);
}

.top_menu_item_active {
    color: var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    font-size: 1.5em;
}

#intro_body {
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid #3d4151;
    user-select: none;
}


#intro_background_image {
    position: absolute;
    top: -600px;
    left: -600px;
    width: 200%;
    height: 250%;
    background-image: url(/images/homepage/circuit_background_3.png);
    background-size: 250px;
    z-index: -1;
    transform-origin: center;
    transform: perspective(600px) rotateX(35deg) rotateY(0deg);
    animation: scrollDiagonal 20s linear infinite;

    width: 300%;
    background-size: 300px;
    transform: perspective(2500px) rotateX(35deg) rotateY(0deg);
}

#intro_background_underlay_animation {
    position: absolute;
    width: 0;
    height: 0;
    z-index: -2;
}

#intro_background_underlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -3;
    background: #22252D;
}


/* Ripple effect */
.ripple-effect {
    position: absolute;
    border: 60px solid var(--accent-primary);
    border-radius: 10%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    animation: ripple 1.5s linear forwards;
    pointer-events: none;
    z-index: 1000;
}

@keyframes ripple {
    to {
        width: 300%;
        height: 300%;
        opacity: 0;
    }
}


@keyframes scrollDiagonal {
    0% {
        background-position: 0 0;
    }    
    100% {
        background-position: 250px 250px;
    }
}

#intro_body_item_box {
    position: relative;
    height: inherit;
    display: flex;
    justify-content: center;
}

#self_photos {
    margin-bottom: -10px;
}

.intro_items {
    /* Individual intro items styling */
}

.intro_self_photo {
    height: 80vh;
    min-height: 400px;
    max-height: 1000px;
}

#intro_text {
    margin-top: 15vh;
}

#top_body {
    margin: auto;
    display: flex;
    margin-top: 200px;
    width: 600px;
    height: 200px;
    align-items: center;
}


#top_body_name {
    font-size: 2.4em;
    font-weight: bold;
    padding-top: 30px;
    padding-bottom: 6px;
}

#top_body_occupation {
    font-size: 1.1em;
    font-weight: bold;
}

#top_body_contactInfo {
    margin-top: 20px;
    width: 300px;
    line-height: 2.0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}


#top_body_contactInfo div {
    margin-left: 6px;
    width: 260px; /* Required for correct wrapping */
}

#top_body_contactInfo > a {
    margin-top: 20px;
    margin-left: 25px;
}

