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

body {
    font-family: 'Poppins', sans-serif;
    background: #f3f3f3;
}

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

/* Sidebar */

.sidebar {
    width: 250px;
    background: #ffffff;
    padding: 40px 20px;

}

.logo h2 {
    font-weight: 700;
    margin-bottom: 40px;
}

.logo span {
    color: #ff4d4d;
}

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:hover,
nav ul li.active {
    color: #ff4d4d;
}

/* Main */

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 80px;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

.hero-text h3 {
    font-weight: 400;
    margin-bottom: 15px;
}


.highlight-name {
    color: #ff4d4d;
    font-weight: 600;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: #ff4d4d;
}

.hero-text p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
    margin-top: 10px;      /* Space below heading */
    font-size: 15px;       /* Optional: slightly cleaner size */        
}

.btn {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.btn:hover {
    background: #e60000;
}

/* Image */

.hero-image {
    position: relative;
}

.image-box {
    position: relative;
}

.image-box img {
    width: 350px;
    border-radius: 10px;
}

/* Red corners */

.image-box::before,
.image-box::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    border: 5px solid #ff4d4d;
}

.image-box::before {
    top: -15px;
    left: -15px;
    border-right: none;
    border-bottom: none;
}

.image-box::after {
    bottom: -15px;
    right: -15px;
    border-left: none;
    border-top: none;
}

/* Sidebar Icons */
nav ul li i {
    margin-right: 10px;
}

/* Theme Buttons */
.theme-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
}

.theme-btn {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.theme-btn:hover {
    background: #ff4d4d;
    color: white;
}

/* Dark Mode */
.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 .main-content {
    background: #1e1e1e;
}

.dark-mode .hero-text p {
    color: #bbb;
}

.dark-mode .theme-btn {
    background: #2a2a2a;
    color: white;
}

/* Logo Red Corner Design */

.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;
}

/* Page Transition */

body {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

body.fade-in {
    opacity: 1;
}

@media (max-width: 1024px) and (min-width: 769px) {

    .main-content {
        padding: 60px 40px;
        align-items: flex-start;
    }

    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-text {
        max-width: 600px;
        margin-bottom: 50px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-image {
        margin-top: 20px;
    }

    .image-box img {
        width: 320px;
    }
}

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    @media (max-width: 768px) {

        /* Layout */
        .container {
            flex-direction: column;
        }

        /* Sidebar becomes top navbar */
        .sidebar {
            width: 100%;
            padding: 25px 0 15px 0;
            text-align: center;
        }

        /* Logo center */
        .logo {
            margin-bottom: 20px;
        }

        /* Nav horizontal */
        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;
            padding: 10px 0;
            gap: 6px;
        }

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

        /* Main Content */

        .main-content {
            padding: 50px 25px;
        }

        .hero {
            flex-direction: column;
            align-items: center;
            text-align: left;
            gap: 40px;
            /* clean spacing between text & image */
        }

        .hero-text {
            width: 100%;
        }

        .hero-text h1 {
            font-size: 30px;
            line-height: 1.2;
        }

        .hero-text h3 {
            font-size: 15px;
        }

        .hero-text p {
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 25px;
        }

        .btn {
            width: 100%;
            text-align: center;
        }

        /* Image */

        .hero-image {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .image-box img {
            width: 260px;
        }

        /* Theme Buttons Fix */

        .theme-buttons {
            position: fixed;
            top: 15px;
            right: 15px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 999;
        }

        .theme-btn {
            width: 40px;
            height: 40px;
        }
    }