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

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

body.fade-in {
    opacity: 1;
}

/* ===== Layout ===== */

.container {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar (Fixed) ===== */

.sidebar {
    width: 250px;
    background: #ffffff;
    padding: 40px 20px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

/* Push main content to the right */
.page-content {
    margin-left: 250px;
    width: 100%;
}

/* ===== Logo ===== */

.logo h2 {
    font-weight: 700;
    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;
}

/* ===== Navigation ===== */

nav ul {
    list-style: none;
}

nav ul li {
    padding: 15px 0;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: 0.3s;
}

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

nav ul li i {
    margin-right: 10px;
}

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

/* ===== Main ===== */

.main-content {
    padding: 60px;
}

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

/* ===== About Layout ===== */

.about-wrapper {
    display: flex;
    gap: 50px;
}

.about-left,
.about-right {
    flex: 1;
}

.about-left h3 span {
    color: #ff4d4d;
    line-height: 1.8;
}

.about-left p {
    margin-top: 5px; 
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.btn {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
}

.btn:hover {
    background: #e60000;
}

/* ===== Skills ===== */

.skill {
    margin-bottom: 25px;
}

.progress {
    height: 8px;
    background: #ddd;
    border-radius: 10px;
    margin-top: 8px;
}

.progress div {
    height: 100%;
    background: #ff4d4d;
    border-radius: 10px;
}

/* ===== Timeline ===== */

.timeline-section {
    display: flex;
    gap: 40px;
    margin-top: 60px;
}

.timeline-column {
    flex: 1;
}

.timeline-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

.timeline-box::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 20px;
    width: 2px;
    height: calc(100% - 40px);
    background: #ff4d4d;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

.timeline-item p{
    color: #666;
}

.timeline-item .circle {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: #ff4d4d;
    border-radius: 50%;
}

/* ===== Dark Mode ===== */
.dark-mode .timeline-item p {
    color: #d2d0d0;
}
.dark-mode {
    background: #1e1e1e;
    color: white;
}

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

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

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

.dark-mode .about-left p {
    color: #bbb;
}

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

.dark-mode .progress {
    background: #444;
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
    .about-wrapper {
        flex-direction: column;
    }

    .timeline-section {
        flex-direction: column;
    }
}

/* ===== Mobile Navbar ===== */

@media (max-width: 768px) {

    .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 {
        padding: 30px 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}