/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Theme variables */
:root {
    --bg-color: #FFF8E7;
    --text-color: #2c2416;
    --text-secondary: #3d3420;
    --text-muted: #6b5e44;
    --heading-color: #1a1510;
    --link-color: #3498db;
    --link-hover: #2980b9;
    --button-bg: #3498db;
    --button-hover: #2980b9;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --heading-color: #ffffff;
    --link-color: #5dade2;
    --link-hover: #85c1e9;
    --button-bg: #5dade2;
    --button-hover: #85c1e9;
}

/* Basic styling */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: none;
    position: relative;
}

/* Particles.js container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.6;
}

/* Custom cursor */
.custom-cursor {
    width: 30px;
    height: 30px;
    border: 2px solid var(--link-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-width 0.3s ease, background-color 0.3s ease;
    mix-blend-mode: difference;
}

.custom-cursor.cursor-hover {
    width: 50px;
    height: 50px;
    border-width: 3px;
    background-color: rgba(52, 152, 219, 0.1);
}

/* Header styling */
header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

/* Games dropdown container - fixed top left */
.games-dropdown-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

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

.games-dropdown-btn {
    background-color: var(--button-bg);
    color: white;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.games-dropdown-btn:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
}

.games-dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: var(--bg-color);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 100;
    overflow: hidden;
    margin-top: 5px;
}

.games-dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
    cursor: none;
}

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

.games-dropdown.open .games-dropdown-content {
    display: block;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--heading-color);
    margin-bottom: 0;
}

header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

header a {
    color: var(--link-color);
    text-decoration: none;
    cursor: none;
}

header a:hover {
    text-decoration: underline;
}

/* Header navigation button styling */
header nav ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

header nav ul li {
    display: inline-block;
}

header nav ul li a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--button-bg);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: none;
}

header nav ul li a:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
    text-decoration: none;
}

header nav ul li a:active {
    transform: translateY(0);
}

/* Section styling */
section {
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

main {
    position: relative;
    z-index: 10;
}

section h2 {
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 15px;
}

section h3 {
    color: var(--heading-color);
}

section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

ul {
    list-style-type: none;
}

ul li {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

ul li a {
    color: var(--link-color);
    text-decoration: none;
    cursor: none;
}

ul li a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

/* Projects section styling */
section ul {
    padding-left: 20px;
}

section ul li {
    margin-bottom: 10px;
}

/* Skills section */
section ul li {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* Add some spacing between sections */
section + section {
    margin-top: 20px;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section p, section ul li {
        font-size: 1rem;
    }
}

/* Back to Home button styling */
.back-to-home {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--button-bg);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    cursor: none;
}

.back-to-home:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
    text-decoration: none;
}

.back-to-home:active {
    transform: translateY(0);
}

/* Theme toggle styling */
.theme-toggle-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.theme-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    cursor: none;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--button-bg);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.toggle-slider:after {
    content: '☀️';
    position: absolute;
    left: 8px;
    top: 4px;
    font-size: 16px;
}

input:checked + .toggle-slider:after {
    content: '🌙';
    left: auto;
    right: 8px;
}
