/* Universal styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

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: center;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 2rem;
    position: relative;
}

/* HAMBURGER BUTTON STYLES */
.hamburger {
    display: none;
    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);
}


/* SIDEBAR STYLES (Desktop and Base) */
aside {
    width: 240px;
    height: 100vh;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1a1a1a;
    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;
}

/* ABOUT CONTAINER STYLES */
.about-container {
    max-width:auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    padding: 2rem;
    transition: transform 0.3s ease;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s ease-out forwards;
    animation-delay: 0.5s;
}

/* Position the main content for desktop */
body {
    padding-left: 260px;
    justify-content: flex-start;
}

h2 {
    color: orange;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.info-item strong {
    color: orange;
    display: block;
    margin-bottom: 0.5rem;
}

.section {
    margin-top: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.skill-box:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.07);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.skill-header i {
    font-size: 1.5rem;
    color: orange;
}

.skill-header span {
    color: #eee;
    font-weight: 500;
}

.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: orange;
    border-radius: 6px;
    transition: width 1.5s ease-in-out;
}

.skill-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid orange;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: orange;
    color: #000;
}

.skill-group {
    display: none;
}

.skill-group.active {
    display: block;
}

.timeline-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.timeline-box {
    flex: 1;
    min-width: 300px;
}

.timeline {
    position: relative;
    margin-top: 1rem;
    padding-left: 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: orange;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.02);
}

.timeline-item::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: orange;
    border-radius: 50%;
    left: -2px;
    top: 5px;
}

.timeline-item h4 {
    color: orange;
    margin-bottom: 0.3rem;
}

.timeline-item p {
    color: #ccc;
    margin: 0;
}

.lang-hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.lang-box,
.hobbies-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.lang-box:hover,
.hobbies-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

.lang-box h3,
.hobbies-box h3 {
    color: orange;
    margin-bottom: 0.8rem;
}

.lang-box ul,
.hobbies-box ul {
    padding-left: 1.2rem;
    color: #ccc;
}

.lang-box li,
.hobbies-box li {
    margin-bottom: 0.4rem;
}

.back-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.6rem 1.2rem;
    background-color: orange;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
}

.back-text {
    margin-left: 0;
    transition: margin-left 0.3s;
}

.back-btn:hover {
    background-color: #eaa31f;
}

.back-btn:hover .back-text {
    margin-left: 6px;
}

/* Keyframe for initial animation - renamed to be more specific */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
    body {
        padding-left: 2rem;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .hamburger {
        display: flex;
    }

    aside {
        left: -240px;
        height: 100%;
        box-shadow: none;
        background: #1a1a1a
    }

    aside.active {
        left: 0;
    }

    .about-container {
        margin-left: 0;
        padding: 1.5rem;
        transform: translateX(0);
        transition: transform 0.3s ease;
    }

    body.sidebar-open .about-container {
        transform: translateX(240px);
    }

    .info-grid, .skills-grid, .timeline-section, .lang-hobbies-grid {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* Button Grouping for Layout */
.button-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Download CV Button Style (similar to your existing buttons) */
.download-cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.5rem;
    background-color: orange;
    color: #111;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.download-cv-btn i {
    color: #111;
    font-size: 1rem;
}

.download-cv-btn:hover {
    background-color: #eaa31f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
}

/* Adjustments for existing back-btn to fit in group */
.back-btn {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Responsive adjustments for buttons */
@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .download-cv-btn,
    .back-btn {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
    }

    .back-btn:hover .back-text {
        margin-left: 0;
    }
}