body {
    background-color: #0a192f;
    color: #ccd6f6;
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Main Container */
.container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 27%;
    padding: 20px;
    background: #0a192f;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
}

/* Sidebar Headings */
.sidebar h1 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sidebar h3 {
    font-size: 1.2rem;
    color: #64ffda;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Sidebar Paragraph */
.sidebar p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #a8b2d1;
    margin-bottom: 30px;
}

/* Navigation Links */
.sidebar nav ul {
    list-style: none;
    padding: 0;
}

.sidebar nav ul li {
    margin: 18px 0;
}

.sidebar nav ul li a {
    color: #ccd6f6;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.nav-icon {
    margin-right: 10px;
    font-size: 1.1rem;
    color: #64ffda;
}

.sidebar nav ul li a:hover {
    color: #64ffda;
    transform: translateX(6px);
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 18px;
    margin-top: 35px;
}

.social-icon {
    font-size: 2rem;
    color: #ccd6f6;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #64ffda;
    transform: translateY(-3px) scale(1.1);
}

/* Main Content */
.content {
    flex-grow: 1;
    padding: 50px;
    overflow-y: auto;
    height: 100%;
    width: calc(100% - 27%);
    margin-left: 27%;
}

/* Section Styling */
.section {
    margin-bottom: 80px;
    padding-bottom: 20px;
    position: relative;
}

/* Main Content Headings */
.content h2 {
    font-size: 2.3rem;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.content h3 {
    font-size: 1.6rem;
    color: #e6f1ff;
    margin-bottom: 15px;
    font-weight: 600;
}

.content h4 {
    font-size: 1.3rem;
    color: #a8b2d1;
    margin-bottom: 15px;
    font-weight: 500;
}

.content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #a8b2d1;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.skill-category {
    background-color: rgba(17, 34, 64, 0.8);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-left: 3px solid #64ffda;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.skill-category h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap:.8rem;
}

.skill-category h3 i {
    color: #64ffda;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    padding: 8px 0;
    color: #a8b2d1;
    position: relative;
    padding-left: 20px;
}

.skill-list li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #64ffda;
}

/* Projects Section */
.project-item {
    margin-bottom: 50px;
    background-color: rgba(17, 34, 64, 0.8);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.8rem;
    color: #e6f1ff;
    margin: 0;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    color: #ccd6f6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #64ffda;
}

.project-tech {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tech-tag {
    background-color: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.project-description {
    margin-bottom: 20px;
}

.project-image-container {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 20px;
    max-width: 600px;
    max-height: 400px;
}

/* Project Images */
.project-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-image:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* Education Section */
.education-item {
    background-color: rgba(17, 34, 64, 0.8);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.education-date {
    background-color: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.institution {
    color: #a8b2d1;
    margin-top: 0;
    margin-bottom: 15px;
}

.education-highlights {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.education-highlights li {
    padding: 5px 0 5px 20px;
    position: relative;
    color: #a8b2d1;
}

.education-highlights li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #64ffda;
}

/* Contact Section */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-method {
    background-color: rgba(17, 34, 64, 0.8);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-method:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    color: #64ffda;
    margin-bottom: 15px;
}

.contact-method h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.contact-method a {
    color: #a8b2d1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: #64ffda;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer p {
    color: #8892b0;
    font-size: 0.9rem;
}

/* Scrollbar Customization */
.sidebar::-webkit-scrollbar,
.content::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.content::-webkit-scrollbar-track {
    background: #112240;
}

.sidebar::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb {
    background: #64ffda;
    border-radius: 5px;
}

/* Back to Top Button (for mobile) */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #64ffda;
    color: #0a192f;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background-color: #a8fcf0;
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    /* Single page layout for mobile */
    body {
        overflow-x: hidden;
    }
    
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
        overflow-y: visible;
        border-right: none;
        border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    }
    
    .sidebar-content {
        text-align: center;
    }
    
    .content {
        width: 100%;
        margin-left: 0;
        padding: 20px;
        overflow-y: visible;
        height: auto;
    }
    
    .sidebar nav ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Show back to top button */
    .back-to-top {
        display: flex;
    }
    
    /* Section styling for mobile */
    .section {
        padding-top: 30px;
        margin-bottom: 40px;
    }
    
    .skills-container,
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-links {
        margin-top: 10px;
    }
    
    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .education-date {
        margin-top: 5px;
    }
}

@media (max-width: 768px) {
    .sidebar h1 {
        font-size: 2.2rem;
    }

    .sidebar h3 {
        font-size: 1.1rem;
    }

    .sidebar nav ul li a {
        font-size: 1.1rem;
    }

    .content h2 {
        font-size: 1.8rem;
    }

    .content h3 {
        font-size: 1.5rem;
    }

    .content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .sidebar h1 {
        font-size: 1.8rem;
    }

    .sidebar h3 {
        font-size: 1rem;
    }

    .sidebar nav ul {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar nav ul li {
        margin: 5px;
    }

    .sidebar nav ul li a {
        font-size: 0.9rem;
        padding: 5px 10px;
    }

    .social-icon {
        font-size: 1.6rem;
    }

    .content {
        padding: 15px;
    }

    .content h2 {
        font-size: 1.6rem;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
}/* Resume Button */
.resume-btn {
    background-color: #64ffda;
    color: #0a192f;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px auto;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 80%;
    max-width: 200px;
    text-decoration: none; /* ✅ This removes underline */
}


.resume-btn:hover {
    background-color: #a8fcf0;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.2);
}

/* Resume Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
    background-color: #112240;
    margin: 5% auto;
    width: 80%;
    max-width: 900px;
    height: 85%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #ccd6f6;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #64ffda;
}

.resume-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    background-color: #fff;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        height: 80%;
    }
}