/* Universal styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Fixed Dark Theme Colors & Global Body Setup */
body {
    background-color: #111;
    background-image: linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
    color: #fff;
    display: flex;
    justify-content: flex-start; /* Aligns content to start */
    align-items: center; /* Vertically centers the content */
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* HAMBURGER BUTTON STYLES (for mobile) */
.hamburger {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    width: 30px;
    height: 22px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: orange;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger animation when active */
aside.active + .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

aside.active + .hamburger span:nth-child(2) {
    opacity: 0;
}

aside.active + .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ASIDE (SIDEBAR) STYLES */
aside {
    width: 240px;
    height: 100vh;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1a1a1a; /* Solid dark background for sidebar */
    backdrop-filter: none; /* Ensure no blur on sidebar */
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: left 0.3s ease;
}

.logo {
    margin-bottom: 2rem;
}
.logo img {
    width: 50px;
    height: auto;
}

nav ul {
    list-style: none;
    width: 100%;
}
nav ul li {
    margin: 1rem 0;
}
nav ul li a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.2rem 0;
    transition: color 0.3s;
}
nav ul li a.active,
nav ul li a:hover {
    color: orange;
    background: none;
}

nav hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
    width: 100%;
}

.socials {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}
.socials a {
    color: #ccc;
    font-size: 1.2rem;
    transition: color 0.3s;
}
.socials a:hover {
    color: orange;
}

/* MAIN CONTENT AREA STYLES (Specific to index.html's .main) */
.main {
    flex: 1;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px); /* Frosted glass effect for the main content area */
    width: 100%;
    transition: transform 0.3s ease;
    
    margin-left: 260px; /* Pushes content to the right of the sidebar */
    margin-right: 20px; /* Add a small margin on the right for overall balance */

    display: flex;
    justify-content: space-between;
    align-items: center;

    /* Landing Page Animation */
    opacity: 0; /* Start invisible */
    transform: translateY(20px); /* Start slightly below */
    animation: fadeInSlideUp 1s ease-out forwards; /* Apply animation */
    animation-delay: 0.5s; /* Delay for better effect after sidebar is stable */
}

.content h1 {
    color: orange;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.content h1 span {
    color: orange;
    font-family: 'Courier New', cursive;
}

.content h2 {
    color: orange;
    font-size: 2rem;
    height: 40px; /* Fixed height to prevent layout shift during typing */
}

.content p {
    margin: 1rem 0;
    color: #aaa;
}

.btn {
    padding: 0.8rem 1.5rem;
    background-color: orange;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: #e4a126;
}

.profile-img {
    border-radius: 10px;
    max-height: 400px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.typing {
    display: inline;
    border-right: 2px solid orange;
    white-space: nowrap;
    overflow: hidden;
}

/* Wrapper for spacing the download button - KEEPING for layout consistency if needed, but no specific styles for the removed Uiverse.io button */
.download-button-wrapper {
    margin-top: 25px; /* Creates space between the two buttons */
    display: inline-block; /* Allows margin to apply correctly */
    text-decoration: none; /* Ensure no underline from the link */
}

/* Custom hover effect for Download CV button (retained from previous request, if you decide to use a simple button here) */
.btn-download-alt {
    background-color: #FF7F50; /* A slightly different orange/coral shade for distinction */
    transition: all 0.3s ease;
    display: inline-flex; /* Align text and icon */
    align-items: center;
    gap: 8px; /* Space between text and icon */
}

.btn-download-alt:hover {
    background-color: #FF6347; /* Darker shade on hover */
    transform: scale(1.05); /* Slightly scales up the button */
    box-shadow: 0 0 20px rgba(255, 99, 71, 0.6); /* Adds a subtle glow */
}

/* Keyframe for initial animation */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE STYLES for Global and Index Page */
@media (max-width: 768px) {
    body {
        padding-left: 2rem; /* Re-introduce padding for mobile */
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .hamburger {
        display: flex;
    }

    aside {
        left: -240px; /* Hide sidebar off-screen */
        height: 100%;
        box-shadow: none;
        background: #1a1a1a; /* Solid dark background for mobile sidebar */
    }

    aside.active {
        left: 0; /* Show sidebar */
    }

    /* Push main content aside when sidebar is open */
    body.sidebar-open .main {
        transform: translateX(240px);
    }

    .main {
        margin-left: 0; /* REMOVED: desktop margin on mobile */
        margin-right: 0; /* REMOVED: desktop margin on mobile */
        padding: 2rem 1.5rem; /* Adjusted padding for a more refined look */
        max-width: 500px; /* Constrain max width for better mobile readability */
        width: calc(100% - 4rem); /* width accounts for 2rem padding on each side */
        margin: 0 auto; /* Center the main container on mobile */
        flex-direction: column; /* Stack content vertically */
        text-align: center; /* Center text content */
    }

    .content {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .content h1 {
        font-size: 2rem;
    }

    .content h2 {
        font-size: 1.5rem;
        height: auto;
        min-height: 30px;
    }

    .content p {
        font-size: 0.9rem;
    }

    .profile-img {
        max-width: 65%; /* Slightly smaller image for better balance */
        margin-top: 0;
    }

    .btn {
        width: auto;
        margin-top: 1rem;
    }

    /* Adjust download button wrapper on mobile if needed */
    .download-button-wrapper {
        margin-top: 15px; /* Slightly less space on mobile, adjust as desired */
    }
}