/* GENERAL STYLES */
:root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2a2a2a;
    --nav-bg: #333;
    --nav-text: #e0e0e0;
    --btn-bg: #555;
    --btn-hover: #777;
    --border-color: #444;
    --shadow: rgba(0,0,0,0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
}

main {
    flex-grow: 1;
}

/* NAVIGATION BAR */
header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--nav-bg);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.logo a {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--nav-text);
    text-decoration: none;
}

.site-version-small {
    font-size: 0.7rem;
    color: #999;
    vertical-align: super;
    margin-left: 5px;
    font-weight: normal;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-left: 15px;
}

.bar {
    background-color: var(--nav-text);
    height: 3px;
    width: 25px;
    margin: 4px 0;
    transition: 0.4s;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a, .dropbtn {
    color: var(--nav-text);
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

.nav-links a:hover, .nav-links a.active, .dropbtn:hover, .dropbtn:focus {
    color: #b5b5b5;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: var(--nav-bg);
        width: 100%;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .menu-toggle {
        display: flex;
    }
}

/* DROPDOWN */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.caret {
    font-size: 0.8rem;
    opacity: 0.8;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px var(--shadow);
    z-index: 1;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--btn-bg);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

@media (max-width: 768px) {
    .nav-links {
        align-items: stretch;
        gap: 0;
    }

    .nav-links a, .dropbtn {
        margin: 0;
        padding: 15px;
        width: 100%;
        text-align: left;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border-top: 1px solid var(--border-color);
    }

    .dropdown.open .dropdown-content {
        display: block;
    }
}
/* BREADCRUMB */
#breadcrumb {
    padding: 10px 15px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

#breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
}

#breadcrumb a:hover {
    text-decoration: underline;
}

#breadcrumb .current {
    font-weight: bold;
    color: var(--text-color);
}
/* CONTAINER */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* CARDS & GRIDS */
.category-grid, .yt-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.card, .yt-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    width: 280px;
    box-shadow: 0 4px 10px var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover, .yt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow);
}

/* BUTTONS */
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--btn-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 1px solid var(--border-color);
}

.btn:hover { background-color: var(--btn-hover); border-color: var(--btn-hover); }
.red-btn { background-color: #6c6c6c; }
.red-btn:hover { background-color: #545454; }

/* MACHINES & APPS SPECIFIC */
.machine-item, .app-card {
    background: var(--card-bg);
    padding: 20px;
    margin: 20px auto;
    border-left: 5px solid var(--border-color);
    text-align: left;
    max-width: 600px;
    box-shadow: 0 2px 5px var(--shadow);
}

.privacy-section {
    margin-top: 50px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    font-size: 0.9rem;
}

.contact-box {
    margin-top: 50px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow);
    text-align: center;
}

/* APP DETAIL PAGE */
.app-detail {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow);
}

.app-icon {
    margin-right: 20px;
}

.app-info h2 {
    margin-top: 0;
}

.app-screenshots {
    margin-top: 40px;
}

.screenshot-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.screenshot-grid img {
    width: 200px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* SEARCH */
.search-container {
    margin-bottom: 20px;
    text-align: center;
}

.search-container input {
    padding: 10px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.hero {
    background: url('../images/hero-background.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero h1 {
    font-size: 3rem;
    margin: 0;
}

.about-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.profile, .social-media {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow);
}

.social-media ul {
    list-style: none;
    padding: 0;
}

.social-media li {
    margin-bottom: 10px;
}

.social-media a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
}

/* FOOTER */
footer {
    background-color: #222;
    color: white;
    padding: 20px;
    text-align: left;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-left h4, .footer-center h4, .footer-right h4 {
    margin-bottom: 10px;
    color: #ccc;
}

footer a {
    color: #bbb;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

footer a:hover {
    color: white;
}

footer p {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
    color: #aaa;
}

/* LIGHT THEME */
body.light-theme {
    --bg-color: #f5f5f6;
    --text-color: #222;
    --card-bg: #ffffff;
    --nav-bg: #2b2b2b;
    --nav-text: #eaeaea;
    --btn-bg: #333333;
    --btn-hover: #111111;
    --border-color: #e6e6e6;
    --shadow: rgba(0,0,0,0.1);
}

body.light-theme .dropdown-content {
    background-color: #f9f9f9;
}

body.light-theme .dropdown-content a {
    color: #444;
}

body.light-theme .dropdown-content a:hover {
    background-color: #ddd;
}

body.light-theme #breadcrumb {
    background-color: #fafafa;
    border-bottom: 1px solid #ddd;
    color: #666;
}

body.light-theme #breadcrumb a {
    color: #666;
}

body.light-theme #breadcrumb .current {
    color: #333;
}

body.light-theme .privacy-section {
    background: #f1f2f3;
}

body.light-theme .search-container input {
    border: 1px solid #ccc;
    background-color: #fff;
    color: #222;
}

body.light-theme .btn {
    color: #ffffff;
}

body.light-theme footer {
    background-color: #222;
    color: white;
}

body.light-theme footer a {
    color: #bbb;
}

body.light-theme footer a:hover {
    color: white;
}

body.light-theme footer p {
    color: #aaa;
    border-top: 1px solid #444;
}

/* THEME TOGGLE */
.theme-toggle {
    background: none;
    border: none;
    color: var(--nav-text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-left: 15px;
}

.theme-toggle:hover {
    background-color: var(--btn-bg);
}
/* RESUME PAGE STYLES */
main h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-color);
    text-align: left;
    border-bottom: 3px solid #555;
    padding-bottom: 15px;
}

.resume-section {
    margin-bottom: 40px;
    text-align: left;
}

.resume-section h2 {
    font-size: 1.8rem;
    color: #b5b5b5;
    margin-bottom: 25px;
    border-left: 5px solid #555;
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resume-section h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #e0e0e0;
}

.about-details {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #555;
}

.about-details p {
    margin: 12px 0;
    line-height: 1.8;
    font-size: 1rem;
}

.about-details strong {
    color: #b5b5b5;
    min-width: 140px;
    display: inline-block;
}

.about-details a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.about-details a:hover {
    color: #b5b5b5;
    text-decoration: underline;
}

.website-link {
    color: #87CEEB !important;
    font-weight: 500;
}

.website-link:hover {
    color: #66B3FF !important;
}

.social-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #444;
}

.social-item:last-child {
    border-bottom: none;
}

.social-label {
    font-weight: 600;
    color: #b5b5b5;
    min-width: 80px;
}

.social-url {
    color: #777;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.social-url:hover {
    color: #b5b5b5;
    text-decoration: underline;
}

.resume-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.resume-item:last-child {
    border-bottom: none;
}

.resume-item h3 {
    margin-bottom: 8px;
}

.resume-item p {
    margin: 8px 0;
    line-height: 1.6;
    color: var(--text-color);
}

.resume-item p strong {
    color: #b5b5b5;
}

.resume-item a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s;
}

.resume-item a:hover {
    color: #b5b5b5;
    text-decoration: underline;
}

.resume-item ul {
    margin: 15px 0;
    padding-left: 25px;
}

.resume-item ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.skill-category {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 5px solid #777;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.skill-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-left-color: #999;
}

.skill-category h3 {
    margin-top: 0;
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.skill-category ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.skill-category ul li {
    margin-bottom: 12px;
    line-height: 1.8;
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
    color: #d0d0d0;
}

.skill-category ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #777;
    font-weight: bold;
}

.skill-category ul li strong {
    color: #ffffff;
    font-weight: 600;
}

/* Back Button */
main > div {
    margin-top: 40px;
    text-align: left;
}

main > div .btn {
    display: inline-block;
    background-color: #555;
    color: #e0e0e0;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: bold;
}

main > div .btn:hover {
    background-color: #777;
}