@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    transition: background 0.3s, color 0.3s;
}


body.dark-mode {
    background-color: #121212;
    color: white;
}


.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #ffffff, #f1f1f1);
    color: black;
    padding: 20px;
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}


.sidebar.dark-mode {
    background: linear-gradient(135deg, #1f1f1f, #292929);
    color: white;
}


.profile-section {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.profile-img {

    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    margin-bottom: 15px;
}


.profile-name {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: black;
    margin-bottom: 5px;
}


.profile-title {
    font-size: 14px;
    font-weight: normal;
    color: #555;
}

.dark-mode .profile-name {
    color: white;
}

.dark-mode .profile-title {
    color: #ff914d;
}


.nav-links {
    list-style: none;
    padding: 0;
    width: 100%;
    margin-top: 20px;
}

.nav-links li {
    margin: 10px 0;
}


.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    display: block;
    padding: 10px;
    border-radius: 15px;
    transition: background 0.3s ease-in-out;
    text-align: center;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(0, 0, 0, 0.1);
}


.sidebar.dark-mode .nav-links a {
    color: white;
}


.sidebar.dark-mode .nav-links a:hover,
.sidebar.dark-mode .nav-links a.active {
    background: rgba(255, 136, 77, 0.2);
}


.theme-toggle {
    position: absolute;
    top: 15px;
    right: 20px;
    padding: 10px 15px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background-color: #646262;
    font-size: 20px;
    transition: background 0.3s, transform 0.2s;
}


.theme-toggle:hover {
    background-color: #000000;
    transform: scale(1.1);
}


body.dark-mode .theme-toggle {
    background-color: #ff5722;
    color: white;
}


body.dark-mode .theme-toggle:hover {
    background-color: #ff7043;
}


.content {
    margin-left: 280px;
    padding: 40px;
    flex-grow: 1;
}


.nav-links a.active {
    background: rgba(0, 0, 0, 0.2);
    font-weight: bold;
}


.sidebar.dark-mode .nav-links a.active {
    background: rgba(255, 136, 77, 0.2);
}


.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.square-button {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out, box-shadow 0.3s;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.square-button i {
    font-size: 30px;
    margin-bottom: 8px;
}

.square-button:hover {
    transform: scale(1.1);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-about {
    background-color: #007bff;
}

.btn-projects {
    background-color: #6c757d;
}

.btn-blogs {
    background-color: #28a745;
}

.btn-contact {
    background-color: #dc3545;
}

/* Dark mode adjustments */
body.dark-mode .square-button {
    box-shadow: 3px 3px 10px rgba(255, 255, 255, 0.2);
}

body.dark-mode .square-button:hover {
    box-shadow: 5px 5px 15px rgba(255, 255, 255, 0.3);
}

.button-container a {
    margin: 5px;
}


.contact-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: black;
    font-size: 18px;
    font-weight: bold;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.3s ease-in-out, transform 0.2s;
    border: 2px solid #ccc;
}

.contact-item i {
    font-size: 22px;
}

.contact-item:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

body.dark-mode .contact-item {
    color: white;
    border-color: #fff;
}

body.dark-mode .contact-item:hover {
    background: rgba(255, 136, 77, 0.2);
}
.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.project-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    width: 400px;
    display: flex;
    align-items: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

.project-card:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.05);
}

.project-img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    margin-right: 15px;
}

.project-info {
    flex-grow: 1;
}

.project-card h2 {
    font-size: 18px;
    margin: 0;
}

.project-card p {
    font-size: 14px;
    color: #555;
    margin: 5px 0 0;
}

.arrow-link {
    font-size: 24px;
    text-decoration: none;
    color: #ff5722;
    transition: color 0.3s ease-in-out;
}

.arrow-link:hover {
    color: #ff914d;
}

/* Dark Mode Support */
body.dark-mode .project-card {
    background: #1e1e1e;
    color: white;
}

body.dark-mode .project-card:hover {
    background: #292929;
}

body.dark-mode .arrow-link {
    color: #ff914d;
}

body.dark-mode .arrow-link:hover {
    color: #ff7043;
}
.blogs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.blog-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    width: 400px;
    display: flex;
    align-items: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

.blog-card:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.05);
}

.blog-img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    margin-right: 15px;
}

.blog-info {
    flex-grow: 1;
}

.blog-card h2 {
    font-size: 18px;
    margin: 0;
}
.blog-card p {
    font-size: 14px;
    color: #555;
    margin: 5px 0 0;
}
.arrow-link {
    font-size: 24px;
    text-decoration: none;
    color: #ff5722;
    transition: color 0.3s ease-in-out;
}
.arrow-link:hover {
    color: #ff914d;
}
body.dark-mode .blog-card {
    background: #1e1e1e;
    color: white;
}

body.dark-mode .blog-card:hover {
    background: #292929;
}

body.dark-mode .arrow-link {
    color: #ff914d;
}

body.dark-mode .arrow-link:hover {
    color: #ff7043;
}
