@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #121212;
    color: #f0f0f0;
    line-height: 1.6;
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

/* Light mode */
.light-mode {
    background: #f9f9f9;
    color: #121212;
}
.light-mode .side-menu {
    background: #ffffff;
    border-right: 1px solid #e0e0e0;
}
.light-mode .side-menu a {
    color: #121212;
}
.light-mode .side-menu a:hover {
    background: #f0f0f0;
    color: #3DDC84;
}
.light-mode .project-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #121212;
}
.light-mode .skills span {
    background: #f0f0f0;
    color: #121212;
}
.light-mode footer {
    color: #555;
}

/* Sidebar */
.side-menu {
    background-color: #1a1a1a;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: fixed;
    width: 250px;
    top: 0;
    left: 0;
    z-index: 100;
}
.side-menu a {
    padding: 15px 32px;
    text-decoration: none;
    font-size: 18px;
    color: #f0f0f0;
    transition: 0.3s;
}
.side-menu a:hover {
    color: #3DDC84;
    background-color: #2c2c2c;
}

/* Content */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: 2;
    position: relative;
}

.centered {
    max-width: 900px;
    text-align: center;
    margin: 60px auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin: 10px 0;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: #3DDC84;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Hero */
.profile-pic {
    width: 160px;
    border-radius: 50%;
    border: 4px solid #3DDC84;
    margin-bottom: 20px;
}

/* Links & Buttons */
.links a, .btn {
    margin: 0 8px;
    padding: 12px 24px;
    background: #3DDC84;
    color: black;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s, transform 0.2s;
}
.links a:hover, .btn:hover {
    background: #36c578;
    transform: translateY(-2px);
}
.links i, .btn i {
    font-size: 1.1rem;
}

/* Projects & Cards */
.project-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.project-card {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 16px;
    width: 270px;
    text-align: left;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.35);
}
.project-card img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    margin-bottom: 12px;
}
.project-card a {
    text-decoration: none;
    color: inherit;
}

/* Skills */
.skills-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.skills span {
    background: #2c2c2c;
    padding: 10px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s, color 0.3s;
}
.skills span:hover {
    background: #3DDC84;
    color: #121212;
}
.skills i {
    font-size: 1.2rem;
}

/* Toggle */
.toggle-container.top-right {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 200;
}

/* Switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.switch input { display: none; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc;
    border-radius: 24px;
    transition: .4s;
}
.slider:before {
    content: "";
    position: absolute;
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: .4s;
}
input:checked + .slider { background: #3DDC84; }
input:checked + .slider:before { transform: translateX(26px); }

/* Scroll to top */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #3DDC84;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.3s, transform 0.2s;
}
#scrollToTopBtn:hover {
    background-color: #36c578;
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: gray;
}

/* Scrollbar */
body::-webkit-scrollbar { width: 12px; }
body::-webkit-scrollbar-track { background: #1e1e1e; }
body::-webkit-scrollbar-thumb {
    background-color: #3DDC84;
    border-radius: 6px;
    border: 3px solid #1e1e1e;
}
body::-webkit-scrollbar-thumb:hover { background-color: #36c578; }

/* 📱 Responsive design */
@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
    }

    .side-menu {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: center;
        border-bottom: 1px solid #2c2c2c;
    }
    .side-menu a {
        padding: 12px 15px;
        font-size: 16px;
    }

    .container {
        grid-column: 1;
        margin-top: 20px;
    }

    .project-grid {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90%;
    }

    .skills-grid {
        gap: 8px;
    }
    .skills span {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
}
