body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

/* Fullscreen clock on the left, mirroring social icons on right */
.dclock {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: flex-start;
    font-family: 'Courier New', Courier, monospace;
}
.dclock h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight:bold;
}
/* Individual elements (optional fine tuning) */
.digital-clock {
    font-size: 1.2rem;
    background-color: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    color: #000;
}

.digital-date {
    font-size: 1.1rem;
    color: #555;
}

/* Dark mode adjustments */
body.dark-mode .digital-clock {
    color: white;
    background-color: #222;
}

body.dark-mode .digital-date {
    color: #ccc;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

.dark-mode {
    background-color: black;
    color: #e0e0e0;
}

.dark-mode header {
    background-color: #1e1e1e;
}

.dark-mode .project-card {
    background-color: #1a1a1a;
    color: #fff;
}

.dark-mode .project-info p {
    color: #ccc;
}

header {
    background: white;
    color: black;
    padding: 1rem;
}

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

.dark-mode .header_page {
    background-color: black;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    color: white;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.link-text {
    color: black;
}

.dark-mode .link-text {
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: inherit;
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: #fff;
    color: #000;
    font-size: 34px;
    flex-direction: column;
}

.herosubtext {
    font-size: 34px;
    margin-top: 0.5rem;
}

.social-icons {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero span {
    font-weight: bold;
    font-size: 2rem;
}

.dark-mode .hero {
    background: black;
    color: #f5f5f5;
}

.about {
    padding: 4rem 2rem;
    text-align: center;
    padding-bottom: 10%;
}

.about-text {
    padding-bottom: 10%;
}

.about-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.skills-icons img {
    height: 50px;
    margin: 0.5rem;
}
/* ===== Mini Game Section ===== */
.mini-game {
    text-align: center;
    margin: 4rem 0;
    padding: 2rem;
    background-color: #ffffff;
    color: #000;
    border-radius: 12px;
    transition: background-color 0.3s, color 0.3s;
}

.dark-mode .mini-game {
    background-color: #040404;
    color: #fff;
}

/* ===== Canvas ===== */
.mini-game canvas {
    background-color: #302626;
    border: 2px solid #fff;
    border-radius: 8px;
    display: block;
    margin: 1rem auto;
    transition: background-color 0.3s, border-color 0.3s;
}

.dark-mode .mini-game canvas {
    background-color: #0b0606;
    border-color: #ccc;
}

/* ===== Headings & Text ===== */
.mini-game h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mini-game p {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: #555;
    transition: color 0.3s;
}

.dark-mode .mini-game p {
    color: #ccc;
}

/* ===== Game Buttons ===== */
.game-buttons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.game-buttons button,
.touch-controls button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f57c00;
    color: #fff;
    transition: background-color 0.2s, color 0.2s;
}

.game-buttons button:active,
.touch-controls button:active {
    background-color: #ff9800;
}

/* Dark mode for buttons */
.dark-mode .game-buttons button,
.dark-mode .touch-controls button {
    background-color: #ff9800;
    color: #000;
}

/* ===== Touch Controls ===== */
.touch-controls {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.touch-controls button {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    background-color: #ffffff;
    color: #000;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.touch-controls button:active {
    background-color: #ff9800;
}

.dark-mode .touch-controls button {
    background-color: #080808;
    color: #fff;
}

.dark-mode .touch-controls button:active {
    background-color: #ff9800;
}
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding-left: 5%;
    padding-right: 5%;
}

.dark-mode .about {
    background: black;
    color: #ddd;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-5px);
}

.projects {
    padding: 4rem 2rem;
    text-align: center;
    padding-bottom: 10%;
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.project-info p {
    color: #555;
    margin: 0 0 1rem 0;
}

.project-links {
    display: flex;
    gap: 1rem;
    color: white;
}

.dark-mode .projects {
    background: black;
    color: #fff;
}

.project-title {
    padding: 4rem 2rem;
    text-align: center;
    padding-bottom: 10%;
}

.project-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.project-links a:hover {
    text-decoration: underline;
}

.contact-section {
    padding: 4rem 2rem;
    background: var(--bg);
    color: var(--text);
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    background-color: #002b40;
    color: white;
    padding: 2rem;
    flex: 1 1 300px;
    border-radius: 8px;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-form {
    background-color: #f57c00;
    padding: 2rem;
    flex: 1 1 300px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: white;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

.contact-form button {
    background-color: white;
    color: black;
    border: none;
    padding: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #ddd;
}

.social-note {
    margin-top: 2rem;
    font-weight: 500;
}

.social-icon {
    margin-top: 0.5rem;
    width: 32px;
    height: 32px;
}

.dark-mode .contact {
    background: #1a1a1a;
    color: #eee;
}

.up path {
    width: 249px;
    height: 134px;
    flex-shrink: 0;
    stroke-width: 3px;
    stroke: #000;
}

body.dark-mode .up path {
    stroke: white;
}

footer {
    display: block;
    padding: 1%;
    justify-items: center;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .dclock {
        left: 1rem;
        gap: 0.7rem;
    }

    .digital-clock {
        font-size: 1rem;
        padding: 3px 6px;
    }

    .digital-date {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .dclock {
        left: 1rem;
        top: auto;
        position: relative;
        transform: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .social-icons {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        /* horizontal on mobile */
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    .hero {
        font-size: 28px;
    }

    .herosubtext {
        font-size: 24px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}