html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

/* Blob sizes, colors, positions, and individual delays */
.blob1 {
    width: 500px;
    height: 500px;
    background: rgb(0, 233, 238);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob2 {
    width: 400px;
    height: 400px;
    background: rgb(202, 111, 237);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

/* Combined movement + scale animation */
@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(100px, 50px) scale(1.5);
    }
    75% {
        transform: translate(-50px, 100px) scale(1.1);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 233, 238, 0.2);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0rem 2rem;
    display: flex;
    justify-content: right;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: rgb(255, 255, 255);
}

/*contact me buttons frame*/
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/*contact me buttons*/
.contact-text-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 233, 238, 0.15);
    border: 1px solid rgb(0, 233, 238);
    border-radius: 20px;
    font-size: 0.95rem;
    color: rgb(0, 233, 238);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.5s ease;
}

/*contact me buttons general hover*/
.contact-text-btn:hover {
    background: rgb(0, 233, 238);
    color: #000;
    transition: all 0.25s ease;
}

/*contact me buttons linkedin hover ++*/
/*.contact-text-btn.linkedin:hover {*/
/*    background: rgb(10, 102, 194);*/
/*    border: 1px solid rgb(10, 102, 194);*/
/*    color: #fff;*/
/*    transition: all 0.25s ease;*/
/*}*/

/*!*contact me buttons telegram hover ++*!*/
/*.contact-text-btn.telegram:hover {*/
/*    background: rgb(0, 136, 204);   !* Telegram blue *!*/
/*    border: 1px solid rgb(0, 136, 204);*/
/*    color: #fff;                    !* white text for contrast *!*/
/*    transition: all 0.25s ease;*/
/*}*/

/*!*contact me buttons whatsapp hover ++*!*/
/*.contact-text-btn.whatsapp:hover {*/
/*    background: rgb(37, 211, 102); */
/*    !*border: 1px solid rgb(37, 211, 102);*!*/
/*    color: #fff;             */
/*    transition: all 0.25s ease;*/
/*}*/

/*!*contact me buttons gmail hover --*!*/
/*.contact-text-btn.gmail:hover {*/
/*    background: rgb(0, 233, 238);*/
/*    color: #000;*/
/*    transition: all 0.25s ease;*/
/*}*/

/*!*contact me buttons github hover +/-*!*/
/*.contact-text-btn.github:hover {*/
/*    background: rgb(36, 41, 46);  */
/*    border: 1px solid rgb(36, 41, 46);*/
/*    color: #fff;              */
/*    transition: all 0.25s ease;*/
/*}*/

/*contact me buttons disabled*/
.contact-text-btn.disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: auto;
}

/*contact me buttons disabled hover*/
.contact-text-btn.disabled:hover {
    background: rgba(0, 233, 238, 0.15);
    color: rgb(0, 233, 238);
}

/* Main Content */
main {
    margin-top: 40px;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid rgb(0, 233, 238);
    object-fit: cover;
    animation: fadeIn 0.7s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero h1 {
    font-size: 3.5rem;
    color: rgb(0, 233, 238);
}

.hero-slogan {
    font-size: 1.0rem;
    color: rgb(191, 191, 191);
    margin: 1rem;
    font-style: italic;
    max-width: 800px;
}

.hero-title {
    font-size: 2.4rem;
    color: rgb(191, 191, 191);
}

.hero-skill {
    font-size: 1.2rem;
    color: rgb(191, 191, 191);
}

.hero-skill span {
    margin: 0.3rem;
    color: rgb(255, 255, 255);
    font-weight: bold;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 1rem 0;
}

.nav-btn {
    padding: 0.5rem 1rem;
    background: rgba(0, 233, 238, 0.1);
    border: 1px solid rgb(0, 233, 238);
    color: rgb(0, 233, 238);
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.5s ease;
    cursor: pointer;

    width: 10rem;
    text-align: center;
}

.nav-btn:hover {
    background: rgb(0, 233, 238);
    color: #000;
    transition: all 0.25s ease;
}

#overview,
#experience,
#skills {
    scroll-margin-top: 100px;
}

/* Section Styles */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    margin-bottom: 1rem;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    color: rgb(0, 233, 238);
    position: relative;
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgb(0, 233, 238);
}

/* Overview Section */
.overview-content {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 233, 238, 0.2);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    margin: 0 0 2rem 0;
}

.overview-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #ddd;
    white-space: pre-line;
}

.languages {
    margin: 2rem 0;
}

.languages h3,
.domains h3 {
    color: rgb(0, 233, 238);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.domains {
    margin-top: 2rem;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge {
    padding: 0.5em 1.0rem;
    background: rgba(0, 233, 238, 0.15);
    border: 1px solid rgb(0, 233, 238, 0.5);
    border-radius: 50px;
    font-size: 1rem;
    color: rgb(0, 233, 238);
    cursor: default;
    transition: all 0.25s ease;
}

.badge:hover {
    background: rgb(0, 233, 238, 0.3);
    transition: all 0.25s ease;
}

/* Experience Section */
.experience-wrapper {
    display: flex;
    gap: 3rem;
    position: relative;
}

.year-nav {
    position: sticky;
    top: 100px;
    width: 150px;
    height: fit-content;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 233, 238, 0.2);
    flex-shrink: 0;
    flex: 0 0 auto;
}

.timeline {
    flex: 1 1 0;
}

.experience-card {
    width: 100%; /* make each card fill the timeline container */
    position: relative;
    padding: 0rem 0rem 2rem 0rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 233, 238, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    border-color: rgb(0, 233, 238);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 1.5rem;
    cursor: pointer;
}

.company-logo {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    object-fit: contain;
    flex-shrink: 0;
}

.card-info {
    flex: 1;
}

.company-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: rgb(0, 233, 238);
    margin-bottom: 0.3rem;
}

.job-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #aaa;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.expand-icon {
    color: rgb(0, 233, 238);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.expand-icon svg {
    transition: transform 0.3s ease;
    transform-origin: 50% 50%; /* keep centered rotation */
    transform: rotate(0deg);   /* default rotation */
}

.card.expanded .expand-icon svg {
    transform: rotate(180deg); /* rotated when expanded */
}

.card-body {
    overflow: hidden;
    padding: 0 1.5rem; /* horizontal padding stays */
}

.card.expanded .card-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.description-wrapper {
    height: 0;
    transition: height 0.4s ease;
}

.description {
    color: #ddd;
    line-height: 1.8;
    white-space: pre-line;
}

/* Skills Section */
.skills-grid {
    display: grid;
    gap: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 233, 238, 0.2);
}

.skill-category h3 {
    color: rgb(0, 233, 238);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(0, 233, 238, 0.2);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: rgb(0, 233, 238);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
}

.footer-link:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer-text {
    color: #aaa;
    font-size: 0.9rem;
}

@media (max-width: 640px) {

    header {
        position: fixed;
        top: 0;
        width: 100%;
        padding: 1rem 0rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 0rem;
    }

    #hero {
        padding: 3rem 1rem;
    }

    .contact-buttons {
        justify-content: center;
    }

    .hero-avatar {
        width: 200px;
        height: 200px;
        margin: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-slogan {
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 1.0rem;
    }

    .hero-skill {
        font-size: 1.0rem;
    }

    .hero-skill span {
        font-weight: bold;
    }

    .nav-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .overview-content {
        padding: 1rem;
    }

    .overview-text {
        font-size: 0.85rem;
    }

    .card-header {
        text-align: left;
        padding: 1rem;
        align-items: normal;
    }

    .card-header .expand-icon{
        align-items: start;
    }

    .job-meta {
        flex-direction: column;
        font-size: 0.85rem;
        gap: 0.3rem;
    }

    .card.expanded .card-body {
        padding: 1rem;
    }

    .description {
        color: #ddd;
        line-height: 1.8;
        white-space: pre-line;
        font-size: 0.85rem;
    }

    .company-logo {
        width: 70px;
        height: 70px;
    }

    .section-title {
        font-size: 2rem;
    }

    .skill-category h3 {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }

    .badge-container {
        gap: 0.7rem;
    }


    .badge {
        padding: 0.3em 0.8rem;
        font-size: 1rem;
    }
}