/* Reset and base styles */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Merriweather', serif;
}

/* Layout container */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar styles */
.sidebar {
    width: 300px;
    background-color: #1a1a1a;
    position: relative;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1);
    min-height: 100vh;
}

/* Main content area */
.main-content {
    flex: 1;
    background-color: #1a1a1a;
    padding: 2rem;
    margin-left: -20px; /* Small negative margin to overlap slightly */
}

/* Logo styles */
.logo-container {
    padding: 2rem;
}

.logo {
    width: 100%;
    height: auto;
    max-width: 250px; /* Adjust this value based on your logo size */
}

/* Navigation styles */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.nav-item {
    padding: 1rem 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    width: fit-content;
    display: inline-block;
}

/* Hover effect with glow */
.nav-link:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1);
}

/* Dropdown styles */
.dropdown {
    list-style: none;
    padding-left: 1rem;
    margin: 0;
}

.dropdown-item {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;  /* Space between text and logo */
}

.dropdown-item .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item .mini-logo {
    width: 20px;  /* Small logo size */
    height: 20px;
    display: flex;
    align-items: center;
}

.dropdown-item .mini-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Projects item */
.has-dropdown {
    padding-bottom: 0;
}

.has-dropdown > .nav-link {
    display: inline-block;
    padding-bottom: 1rem;
}

/* Adjust hover effect for Projects */
.has-dropdown > .nav-link:hover::after {
    bottom: calc(1rem - 5px);  /* Keeps the adjusted position for Projects */
    /* The glow effect will be inherited from the general hover effect above */
}

/* Original hover effect remains the same for other items */
.nav-link:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: white;
}

/* Banner styles */
.banner {
    margin-bottom: 2rem;  /* Add space below the banner */
    padding-left: 3rem;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;  /* Removes any unwanted space below the image */
}

/* Sidebar footer styles */
.sidebar-footer {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
    font-size: 0.8rem;
}

.footer-link {
    color: white;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Content section styles */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-section h1 {
    color: white;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.content-section p {
    color: white;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.content-section em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile nav toggle button */
.mobile-nav-toggle {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Add these new styles */
.mobile-header {
    display: none; /* Hidden by default on desktop */
}

.desktop-only {
    display: block;
}

/* Mobile styles */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 250px;
        z-index: 999;
        transition: left 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    /* When sidebar is active */
    .sidebar.active {
        left: 0;
    }

    .logo-container {
        padding: 1rem;
    }

    .logo {
        max-width: 150px; /* Smaller logo for mobile */
    }

    .main-content {
        margin-left: 0;
        padding-top: 80px; /* Space for the fixed header */
    }

    .banner {
        margin-top: -80px; /* Adjust for the header padding */
    }

    /* Adjust content padding */
    .content-section {
        padding: 0 1rem;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: #1a1a1a;
        padding: 1rem;
        z-index: 998;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .desktop-only {
        display: none;
    }

    .mobile-header .logo-container {
        padding: 0;
    }

    .mobile-header .logo {
        max-width: 150px;
    }

    .mobile-nav-toggle {
        position: static; /* Override the fixed position */
    }

    .main-content {
        margin-left: 0;
        padding-top: 120px; /* Space for the fixed header */
    }

    .banner {
        margin-top: 0; /* Reset the margin */
        padding: 0;
        margin-left: -2rem;
        margin-right: -2rem;
    }

    .sidebar {
        padding-top: 2rem; /* Add some space at the top of the sidebar */
    }

    .sidebar .logo-container {
        padding: 1rem;
    }

    .sidebar .logo {
        max-width: 150px; /* Smaller logo for mobile */
    }

    .sidebar-footer {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 2rem;
        margin-bottom: 3rem;
    }

    .sidebar-nav {
        flex: 1;
    }
}

/* Update the project logo styles */
.project-logo {
    width: 100px;  /* Fixed width */
    height: 100px; /* Same as width to make it square */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto; /* Center the logo and keep bottom margin */
}

.project-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Update projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Show 2 items per row */
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px; /* Optional: limits the width for larger screens */
    margin-left: auto;
    margin-right: auto;
}

/* Update project card */
.project-card {
    background: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 2rem;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.4),
        0 0 40px rgba(255, 255, 255, 0.2);
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        padding: 0 1rem;
    }
}

.project-card h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    text-align: center;  /* Center the card title */
}

/* Optionally, if you want to center the card description too */
.project-card p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
    text-align: center;  /* Center the description */
}

/* Add these new styles */
.app-header {
    text-align: center;
    margin-bottom: 0; /* Remove bottom margin */
}

.app-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem; /* Reduced margin between logo and title */
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-logo img {
    max-width: 80%;  /* Match the project-logo image size */
    max-height: 80%; /* Match the project-logo image size */
    object-fit: contain;
}

.app-subtitle {
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* Add these new styles */
.info-container-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 2rem;
}

.info-container {
    background-color: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1);
    text-align: center; /* Centers all text content */
}

.info-list {
    list-style: disc;  /* Adds bullet points */
    padding-left: 1.2rem;  /* Makes space for bullets */
    margin: 0;
    color: white;
}

.info-list li {
    margin-bottom: 0.5rem;
    text-align: left;
}

.info-list li:last-child {
    margin-bottom: 0;
    text-align: left;
}

.info-container p {
    color: white;
    margin: 0 0 1rem 0;
    text-align: left;
}

.info-link {
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s ease;
    margin: 0 auto; /* Helps with centering */
}

.info-link:hover {
    opacity: 0.8;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .info-container-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Update/add these styles */
.app-header-layout {
    display: grid;
    grid-template-columns: 250px auto 250px;
    gap: 2rem;
    align-items: start;
    padding: 2rem;
}

.info-container-left {
    justify-self: start;
}

.info-container-right {
    justify-self: end;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .app-header-layout {
        margin: 0;
        padding: 2rem;
        grid-template-columns: 1fr;
        gap: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .info-container {
        width: 250px;
        margin: 0;
        text-align: center;
    }

    .info-container p {
        text-align: center;
    }

    .info-container-left {
        display: none;
    }

    .info-container-right {
        order: 1;
    }

    .app-header {
        order: 2;
        margin-top: 1rem;
    }
}

.app-header h1 {
    color: white;
    margin-bottom: 1rem;
}

/* Content containers */
.content-container {
    background-color: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .content-container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Finance app specific grid layout */
.finance-app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 2rem;
    max-width: none; /* Remove max-width constraint */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .finance-app-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

/* Project description styling */
.project-description {
    color: white;
    line-height: 1.6;
}

.project-description p {
    margin-bottom: 1.5rem;
}

.project-description p:last-child {
    margin-bottom: 0;
}

.project-timeline {
    margin-top: 2rem;
    font-style: italic;
}

/* Skills section styling */
.skills-section {
    color: white;
}

.skills-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.skills-list {
    padding-left: 1.5rem;
}

.skills-list > li {
    margin-bottom: 1.5rem;
}

.skills-list > li:last-child {
    margin-bottom: 0;
}

.skills-list ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.skills-list ul li {
    margin-bottom: 0.5rem;
}

.skills-list ul li:last-child {
    margin-bottom: 0;
}

/* Update project description styling */
.project-description h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.project-description {
    color: white;
    line-height: 1.6;
}

.project-description p {
    margin-bottom: 1.5rem;
}

.project-description p:last-child {
    margin-bottom: 0;
}

/* Standardize h2 styling for both containers */
.project-description h2,
.skills-section h2 {
    color: white;
    margin: 0 0 1.5rem 0; /* Remove top margin and standardize bottom margin */
    font-size: 1.5rem;
}

/* Documentation container styling */
.documentation-container.content-section {
    max-width: none;
    width: 100%;
    padding: 0;
}

.documentation-container {
    margin-top: 2rem;
}

.documentation-container .content-container {
    width: auto;
    margin: 0 2rem;
    position: relative; /* For absolute positioning of info container */
}

.documentation-container h2 {
    color: white;
    text-align: center;
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
}

.documentation-container .info-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    padding: 1rem;
    font-size: 0.9rem;
    color: white;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .documentation-container .content-container {
        margin: 0 1rem;
    }
    
    .documentation-container .info-container {
        position: static;
        width: auto;
        margin: 0 0 1.5rem 0;
        text-align: center;
    }
}
/* Documentation images styling */
.documentation-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.doc-image-container {
    margin: 0;
}

.doc-image {
    width: 100%;
    height: auto;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1);
}

figcaption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .documentation-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Add these styles for the logo links */
.logo-container a {
    display: block;
    text-decoration: none;
}

.logo-container a:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Add styling for the documentation intro text */
.documentation-intro {
    color: white;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: left;
    max-width: calc(100% - 300px); /* Dynamically calculate width based on container minus info container width + some spacing */
}

/* Adjust for smaller screens before mobile breakpoint */
@media (max-width: 1024px) {
    .documentation-intro {
        max-width: calc(100% - 270px); /* Slightly less spacing on medium screens */
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .documentation-intro {
        max-width: 100%; /* Full width on mobile */
    }
}

/* Add these styles for the info container */
.documentation-container .info-container {
    width: 250px;
    padding: 1rem;
    margin-left: auto; /* Push to right */
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    margin-right: 1.5rem;
    font-size: 0.9rem;
    color: white;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .documentation-container .info-container {
        width: auto;
        margin: 0 0 1.5rem 0;
        text-align: center;
    }
}

/* Documentation section styling */
.documentation-section {
    margin-top: 3rem;
}

.documentation-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.doc-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start; /* Align items at the top */
    margin-top: 3rem;
}

.doc-content-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.doc-text h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    margin-top: 0;
}
.doc-content-grid .first-content-grid h3 {
    padding-top: -2rem;
}

.doc-text {
    color: white;
    line-height: 1.6;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .doc-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Adjust existing documentation-images styles */
.documentation-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .doc-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .documentation-images {
        grid-template-columns: 1fr;
    }
}

/* Add styles for analytics section */
.analytics-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .analytics-images {
        grid-template-columns: 1fr;
    }
}

.doc-contact {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: white;
}

.doc-contact a {
    color: white;
    text-decoration: none;
}

.doc-contact a:hover {
    text-decoration: underline;
}

/* Keep bottom alignment only for the first grid (login/register) */
.first-content-grid {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    align-items: end;
}

/* Other grids should align at the top */
.doc-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start; /* Align items at the top */
    margin-top: 3rem;
}

/* Mobile adjustments remain the same */

.doc-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.doc-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .doc-columns {
        grid-template-columns: 1fr;
    }
    
    .doc-column {
        display: contents; /* This allows direct ordering of child elements */
    }
    
    .order-1 { order: 1; }
    .order-2 { order: 2; }
    .order-3 { order: 3; }
    .order-4 { order: 4; }
    .order-5 { order: 5; }
    .order-6 { order: 6; }
}

/* Mobile adjustments for first grid */
@media (max-width: 768px) {
    .first-content-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
}

.contact-content {
    max-width: 800px;
    margin: 2rem 0;
    color: white;
}

.contact-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-content ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.contact-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-email {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.contact-email a {
    color: white;
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}
/* Update contact email styles */
.contact-email {
    margin-top: 2rem;
    font-size: 1.1rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact-email {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Make headings and list items white */
.content-section h3,
.content-section li {
    color: white;
}

/* Style links */
.content-section a {
    color: white;
    text-decoration: underline;
}

.content-section a:hover {
    opacity: 0.8; /* Subtle hover effect */
}

.mobile-footer {
    display: none;
    text-align: center;
    padding: 2rem 1rem 0rem; /* Reduced bottom padding */
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.mobile-footer .footer-link {
    color: white;
    text-decoration: none;
}

.mobile-footer .footer-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .mobile-footer {
        display: block;
    }
}

.about-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.about-section:first-child {
    padding-top: 0;
    border-top: none;
}

.about-section ul {
    margin-bottom: 1.5rem;
}

.about-section li {
    line-height: 1.6;
}
