/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f4f4f4;
    color: #333;
}

/* Profile Image */
#home img {
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

#home img:hover {
    transform: scale(1.1);
}

/* Links */
.links a {
    margin: 0 10px;
    color: #00bcd4;
    text-decoration: none;
    font-weight: bold;
}

.links a:hover {
    color: #0097a7;
}


/* Navigation */
header {
    background: #222;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin: 0 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

nav ul li a:hover {
    color: #00bcd4;
}

/* Light Mode (Default) */
:root {
    --bg-color: #ffffff;
    --text-color: #333;
    --primary-color: #00bcd4;
    --secondary-color: #f4f4f4;
    --toggle-bg: #00bcd4;
    --toggle-fg: #ffffff;
}

/* Dark Mode */
.dark-mode {
    --bg-color: #121212;
    --text-color: #ffffff;
    --primary-color: #00bcd4;
    --secondary-color: #1e1e1e;
    --toggle-bg: #ffffff;
    --toggle-fg: #121212;
}

/* General Styles */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background 0.5s, color 0.5s;
}

nav ul li a {
    color: var(--text-color);
    transition: color 0.5s;
}

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

/* Toggle Switch Styling */
.theme-toggle {
    display: flex;
    align-items: center;
}

#theme-switch {
    display: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: 30px;
    background: var(--toggle-bg);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}

.toggle-label::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background: var(--toggle-fg);
    border-radius: 50%;
    left: 3px;
    top: 2px;
    transition: 0.3s;
}

#theme-switch:checked + .toggle-label::before {
    left: 31px;
}

.toggle-icon {
    font-size: 18px;
    width: 50%;
    text-align: center;
    line-height: 30px;
    z-index: 1;
    transition: opacity 0.3s;
}

/* Show sun or moon icon based on mode */
#theme-switch:not(:checked) + .toggle-label .toggle-icon:first-child {
    opacity: 1;
}

#theme-switch:checked + .toggle-label .toggle-icon:first-child {
    opacity: 0;
}

#theme-switch:checked + .toggle-label .toggle-icon:last-child {
    opacity: 1;
}

#theme-switch:not(:checked) + .toggle-label .toggle-icon:last-child {
    opacity: 0;
}

/* Sections */
/* Skills Section */
#skills {
    text-align: center;
    margin: 50px 0;
    padding: 40px;
    background: var(--secondary-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 10px;
}

/* Notebook Frame */
.notebook-frame {
    position: relative;
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: var(--bg-color);
}

/* Skill Cards */
.skill-card {
    display: none;
    padding: 30px;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Display only the active skill */
.skill-card.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.nav-buttons button {
    padding: 10px 25px;
    border: none;
    background: var(--primary-color);
    color: var(--bg-color);
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.nav-buttons button:hover {
    background: var(--text-color);
    color: var(--primary-color);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .notebook-frame {
        width: 95%;
    }

    .nav-buttons button {
        font-size: 14px;
        padding: 8px 15px;
    }
}


/* Projects Section */
#projects {
    text-align: center;
    margin: 50px 0;
    padding: 40px;
    background: var(--secondary-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 10px;
}

/* Notebook Frame */
.notebook-frame {
    position: relative;
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: var(--bg-color);
}

/* Project Cards */
.project-card {
    display: none;
    padding: 30px;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Show only the active card */
.project-card.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.nav-buttons button {
    padding: 10px 25px;
    border: none;
    background: var(--primary-color);
    color: var(--bg-color);
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.nav-buttons button:hover {
    background: var(--text-color);
    color: var(--primary-color);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .notebook-frame {
        width: 95%;
    }

    .nav-buttons button {
        font-size: 14px;
        padding: 8px 15px;
    }
}


/* Footer */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 15px 0;
}
