/* =====================================
   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 color for accent background */
    --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);
}

/* =====================================
   SKILL PAGE LAYOUT
   ===================================== */

/* Sections wrapper */
.web article,
.cybersecurity article,
.projects article {
    margin: 10px 20px;
}

/* Section headers (Web / Cyber) with red band */
.section-web,
.section-cyber,
.section-projects {
    background-color: var(--accent-color);
    text-align: center;
    color: #ffffff;
    padding: 10px 0;
}

/* Centered title text for skills */
.text-skill {
    text-align: center;
    margin-top: 20px;
}

/* Icons inside skill cards */
.bootstrap-icon,
.virtual,
.nmap,
.phistool {
    width: 40px;
    height: 40px;
}

/* Container that holds web technologies / skill cards */
.stuff-web, .stuff-security, .projects article{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

/* SECTION - PROJECTS */

.portfolio-list {
    list-style: none;
    padding-left: 0;
    max-width: 900px;
    margin: 0 auto;
}

.portfolio-item {
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

/* Links inside portfolio items */
.portfolio-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.portfolio-item a:hover {
    text-decoration: underline;
}

/* =====================================
   HEADINGS
   ===================================== */
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: 1439px) {
    .stuff-web {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}