/* Add these color variables at the top */
:root {
    --primary: #171518;
    --background: #171518;
    --accent1: #bde0fe;
    --accent2: #a2d2ff;
}

/* Add background color to body */
body {
    background-color: var(--background);
}

/* Add header styling */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    background-color: var(--primary);
}

/* Style the logo container */
.logo {
    margin-bottom: 20px;
}

.logo img {
    max-height: 160px;
    width: auto;
    justify-content: center;
    align-items: center;
}

/* Adjust existing nav styling if needed */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
    gap: 20px;
}

/* Add these new responsive styles */
/* Base styles for main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: white;
}

/* Make images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.project {
    padding: 20px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background-color: var(--accent1);
}

/* Responsive typography */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    header {
        padding: 10px;
    }

    .logo img {
        max-height: 120px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    section {
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .logo img {
        max-height: 100px;
    }

    main {
        padding: 10px;
    }
}

.project a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: var(--accent2);
}

/* Update footer styling */
footer {
    background-color: var(--primary);
    color: white;
    padding: 20px;
    text-align: center;
}

/* Update navigation styling */
nav ul li a {
    color: var(--accent2);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent1);
}

#digital-clock {
    background-color: #111;
    /* Slightly lighter background for the clock */
    color: #0f0;
    padding: 20px 30px;
    font-size: 4em;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    /* Reduced glow intensity */
    font-family: 'Seven Segment', sans-serif;
    letter-spacing: 5px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
    text-align: center;
    /* Added text shadow for better readability */
}

@font-face {
    font-family: 'Seven Segment';
    src: url('https://fonts.cdnfonts.com/css/seven-segment') format('woff2'),
        url('https://fonts.cdnfonts.com/css/seven-segment') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Add these input styles to your existing CSS */
input[type="number"] {
    background-color: var(--accent1);
    border: 2px solid var(--accent2);
    border-radius: 5px;
    padding: 8px;
    margin: 0 5px;
    color: var(--primary);
    font-size: 1.2rem;
    text-align: center;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--accent2);
    box-shadow: 0 0 5px var(--accent2);
}

input[type="number"]:disabled {
    background-color: #ccc;
    border-color: #999;
}

/* Remove spinner buttons from number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add these select styles to your existing CSS */
select {
    background-color: var(--accent1);
    border: 2px solid var(--accent2);
    border-radius: 5px;
    padding: 8px;
    margin: 0 5px;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    width: 300px;
}

select:focus {
    outline: none;
    border-color: var(--accent2);
    box-shadow: 0 0 5px var(--accent2);
}

select:disabled {
    background-color: #ccc;
    border-color: #999;
    cursor: not-allowed;
}

/* Add metronome-specific styles */
#bpmInput,
#startBpm,
#endBpm {
    background-color: white;
    border: 2px solid var(--accent2);
    border-radius: 5px;
    padding: 8px;
    margin: 0 5px;
    color: var(--primary);
    font-size: 1.2rem;
    text-align: center;
}

label {
    color: var(--primary);
    font-size: 1.1rem;
    margin: 0 10px;
}

.metronome-container {
    background-color: var(--accent1);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}