/* ========================= */
/* RESET */
/* ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f3f3f3;
    color: #111;
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.fade-in {
    opacity: 1;
}

/* ========================= */
/* LAYOUT */
/* ========================= */
.container {
    display: flex;
    min-height: 100vh;
}

/* ========================= */
/* SIDEBAR (DESKTOP FIXED) */
/* ========================= */
.sidebar {
    width: 250px;
    background: #ffffff;
    padding: 40px 20px;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
}

.logo h2 {
    font-size: 28px;
    margin-bottom: 40px;
}

.logo span {
    color: #ff4d4d;
}

.logo-text {
    position: relative;
    display: inline-block;
    padding: 10px 15px;
}

.logo-text::before,
.logo-text::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    border: 4px solid #ff4d4d;
}

.logo-text::before {
    top: -5px;
    right: -5px;
    border-left: none;
    border-bottom: none;
}

.logo-text::after {
    bottom: -5px;
    left: -5px;
    border-top: none;
    border-right: none;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 0;
    font-size: 18px;
    color: #555;
    cursor: pointer;
    transition: 0.3s;
}

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

nav ul li:hover,
nav ul li.active {
    color: #ff4d4d;
}

/* ========================= */
/* MAIN CONTENT */
/* ========================= */
.main-content {
    margin-left: 250px;
    padding: 60px;
    min-height: 100vh;
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
}

/* ========================= */
/* PROJECT CARD */
/* ========================= */
.project-row {
    display: flex;
    gap: 20px;
    background: #ffffff;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 12px;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-row:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-img {
    width: 250px;
    height: 180px;
    background: #cccccc;
    border-radius: 6px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    display: block;
}

.project-text {
    flex: 1;
}

.project-text p {
    color: #666;
}

/* ========================= */
/* DARK MODE */
/* ========================= */
.dark-mode {
    background: #1e1e1e;
    color: #ffffff;
}

.dark-mode .project-text p {
    color: #d2d0d0;
}

.dark-mode .sidebar {
    background: #2a2a2a;
}

.dark-mode nav ul li {
    color: #ccc;
}

.dark-mode nav ul li.active,
.dark-mode nav ul li:hover {
    color: #ff4d4d;
}

.dark-mode .project-row {
    background: #333;
}

.dark-mode .project-img {
    background: #444;
}

/* ========================= */
/* MOBILE RESPONSIVE */
/* ========================= */
/* ========================= */
/* MOBILE RESPONSIVE */
/* ========================= */
@media (max-width: 768px) {

    .container {
        flex-direction: column;
    }

    .container {
        flex-direction: column;
    }

    /* Remove fixed sidebar */
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 25px 0 15px 0;
        text-align: center;
    }

    .page-content {
        margin-left: 0;
    }

    nav ul {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    nav ul li {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 14px;
        gap: 6px;
    }

    nav ul li i {
        font-size: 20px;
        margin: 0;
    }

    /* Main content full width */
    .main-content {
        margin-left: 0;
        padding: 30px 20px;
    }

    /* Stack project cards */
    .project-row {
        flex-direction: column;
    }

    .project-img {
        width: 100%;
        height: 200px;
    }
}
.project-text p {
    line-height: 1.8;      /* Makes text breathe */     /* Space below heading */
    font-size: 16px;       /* Optional: slightly cleaner size */
    color: #555;           /* Optional: softer readability */
}

.project-text h3 {
    line-height: 1.4;
}