:root {
    --base-color: #f9f9f9;
    --base-variant: #f0f0f0;
    --text-color: #2b2b2b;
    --secondary-text: #3a3a3a;
    --primary-color: #f0f0f0;
    --accent-color: #003597;
    --hover-color: #00a6cf;
    --shadow-color: black;
}

.darkmode {
    --base-color: #000000;
    --base-variant: #141414;
    --text-color: #00ff00;
    --secondary-text: #ececec;
    --primary-color: #000000;
    --accent-color: #00ff00;
    --hover-color: #009600;
    --shadow-color: #00ff00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--base-color);
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

p {
    font-size: 1rem;
    margin-bottom: 20px;
    word-wrap: break-word;
    color: var(--secondary-text);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background: var(--primary-color);
    padding-top: 60px;
    border-right: 2px solid var(--accent-color);
    transition: left 0.3s ease-in-out;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 15px;
    text-align: left;
}

.sidebar ul li a {
    color: var(--accent-color);
    font-size: 1.2rem;
    display: block;
    transition: all 0.3s;
}

.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1000;
}

.bar {
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.darkmode-switch {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

.darkmode-switch input {
    appearance: none;
    width: 40px;
    height: 20px;
    background: var(--secondary-text);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.darkmode-switch input::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--base-color);
    border-radius: 50%;
    top: 1px;
    left: 2px;
    transition: transform 0.3s ease;
}

.darkmode-switch input:checked {
    background: var(--accent-color);
}

.darkmode-switch input:checked::before {
    transform: translateX(20px);
}

.intro {
    max-width: 1000px;
    padding: 20px;
    background-color: var(--base-variant);
    border-radius: 15px;
    margin-top: 20px;
    overflow-y: visible;
}

.intro-content {
    text-align: center;
}

.intro-content h1 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.intro-content h2 {
    text-align: center;
}

.intro-content h3 {
    text-align: left;
}

.certificates {
    max-width: 1000px;
    padding: 20px;
    background-color: var(--base-variant);
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
}

.certificates-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.certificate {
    max-width: 300px;
    text-align: center;
}

.certificate img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.certificate img:hover {
    transform: scale(1.05);
}

.services {
    max-width: 1000px;
    padding: 20px;
    background-color: var(--base-variant);
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
}

.services h2 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
}

.services-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.service-item {
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    width: calc(50% - 10px);
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.service-item p {
    font-size: 1.1rem;
    color: var(--secondary-text);
}

.service-item strong {
    color: var(--accent-color);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .menu-toggle {
        top: 10px;
        left: 10px;
    }

    .intro-content h1 {
        font-size: 1.5rem;
    }

    .intro-content p {
        font-size: 1rem;
        padding: 15px;
    }

    .intro-content h3 {
        font-size: 4vw;
    }

    .intro {
        padding-left: 15px;
        padding-right: 15px;
        border-radius: 10px;
    }
    
    body {
        font-size: 1rem;
    }

    .certificates-container {
        flex-direction: column;
        align-items: center;
    }

    .services-container {
        flex-direction: column;
    }

    .service-item {
        width: 100%;
        padding: 15px;
    }

    .service-item h3 {
        font-size: 1.2rem;
    }

    .service-item p {
        font-size: 1rem;
    }

    .service-item strong {
        font-size: 1.1rem;
    }
}
