/* =====================================
   GLOBAL RESET & BASE TYPOGRAPHY
   ===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* =====================================
   THEME SYSTEM (LIGHT / DARK)
   ===================================== */

:root {
    --bg-color: #ffffff;        /* default light background */
    --text-color: #111111;      /* default dark text */
    --accent-color: #ff1744;    /* neon red accent */
    --accent-contrast: #050509; /* contrast for accent backgrounds */
    --card-bg: #f5f5f5;         /* light card background */
}

/* Dark mode overrides */
body.dark-mode {
    --bg-color: #181818;
    --text-color: #ededed;
    --card-bg: #111111;
}

/* Apply theme variables */
body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* =====================================
   HEADER & NAVIGATION
   ===================================== */

.header {
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    position: relative;
    font-size: 25px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    cursor: default;
    opacity: 0;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
    animation: slideRight 1s ease forwards;
}

.navbar a {
    display: inline-block;
    font-size: 25px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: 0.3s;
    opacity: 0;
    animation: slideTop 0.5s ease forwards;
    animation-delay: calc(0.2s * var(--i));
}

.navbar a:hover,
.navbar a.active {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(255, 23, 68, 0.8);
}

/* Theme toggle button (light/dark mode) */
.theme-toggle {
    margin: 0 1rem;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
    white-space: nowrap;
}

.theme-toggle:hover {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(255, 23, 68, 0.9);
    transform: translateY(-1px);
}

/* =====================================
   ABOUT PAGE LAYOUT
   ===================================== */

/* Top title / heading */
.top-about {
    text-align: center;
}

/* About image */
.yo-about {
    height: 400px;
    width: 400px;
    border-radius: 20%;
}

/* Flex container for image + text */
.flex-about {
    margin: 20px 0;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}

/* Text box beside the image */
.info-about {
    margin: 10px 15px 0 20px;
}

/* Wrapper used in mobile layout for centering image */
.yo-about2 {
    display: flex;
    justify-content: center;
}

/* =====================================
   REUSABLE COMPONENTS
   ===================================== */


/* Headings look slightly glowing */
h1,
h2,
h3,
h4 {
    color: var(--text-color);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

/* =====================================
   ANIMATIONS
   ===================================== */

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */

@media (max-width: 450px) {
    .yo-about {
        height: 200px;
        width: 200px;
    }

    .flex-about {
        flex-direction: column-reverse;
        align-items: center;
    }

    .info-about {
        margin: 10px 15px 20px 15px;
    }
}