* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(-45deg, #1e2167, #6b6be4, #000021, #9c97f1);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
    font-family: 'Poppins', sans-serif;
}

@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

header {
    position: sticky;
    top: 0px;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 80px;
    background: rgba(18, 18, 62, 0.85); 
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px rgba(30,33,103,0.15);
    transition: background 0.3s, box-shadow 0.3s;
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    list-style: none;
    margin: 0 23px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #6b6be4;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav ul li a:hover {
    color: rgb(152, 146, 244);
    font-size: 1.04rem;
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

main hr {
    border: 0;
    background-color: #9c97f1;
    height: 1.01rem;
    margin: 60px 84px;
}

.left {
    font-size: 1.4rem;
    font-weight: bold;
}

.firstSection {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 120px 0;
}

.firstSection>div {
    width: 40%;
}

.leftSection {
    font-size: 3rem;
}

.leftSection .buttons {
    padding: 50px 0;
}

.leftSection .btn {
    padding: 12px;
    background: #1e2167;
    color: white;
    border-image: linear-gradient(90deg, #6b6be4, #9c97f1) 1;
    border-width: 2px;
    border-style: solid;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.leftSection .btn:hover {
    background: #6b6be4;
    color: #fff;
    transform: scale(1.08);
}

.rightSection img {
    width: 90%;
    height: auto;
    transition: transform 0.4s;
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(107,107,228,0.2);
}

.rightSection img:hover {
    transform: scale(1.05);
}

.purple {
    color: rgb(107, 107, 228);
}

.text-gray {
    color: gray;
}

#element {
    color: rgb(107, 107, 228);
}

.secondSection {
    max-width: 80vw;
    margin: auto;
    height: auto;
    margin-bottom: 40px; 
}

.secondSection h1 {
    position: relative;
    display: inline-block;
    animation: fadeIn 1s;
}

.secondSection h1::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #6b6be4, #9c97f1);
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}

.secondSection .box {
    display: flex;
    justify-content: center;
    gap: 32px;
    background: none;
    width: 100%;
    margin: 56px 0;
    height: auto;
}

.secondSection .vertical {
    flex: 1;
    background: rgba(30,33,103,0.85);
    border-radius: 18px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 8px 32px rgba(107,107,228,0.18);
    padding: 32px 20px 24px 20px;
    position: relative;
    transition: box-shadow 0.3s, transform 0.3s, border 0.3s;
    min-width: 220px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.secondSection .vertical:hover {
    box-shadow: 0 16px 40px rgba(107,107,228,0.28);
    transform: translateY(-10px) scale(1.05);
    border: 2px solid #6b6be4;
}

.image-top {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b6be4 40%, #9c97f1 100%);
    box-shadow: 0 4px 16px rgba(107,107,228,0.18);
    margin-bottom: 18px;
    object-fit: cover;
    transition: transform 0.3s;
}
.vertical:hover .image-top {
    transform: scale(1.15) rotate(-8deg);
}

.vertical-tittle {
    font-size: 1.15rem;
    font-weight: 600;
    color: #9c97f1;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 0.5px;
}

.vertical-desc {
    color: #d1d1e9;
    font-size: 0.98rem;
    text-align: center;
    margin-bottom: 0;
    line-height: 1.6;
    min-height: 80px;
}

/* Responsive for mobile */
@media (max-width: 900px) {
    .secondSection .box {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .secondSection .vertical {
        max-width: 95vw;
        width: 100%;
    }
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 23px 122px;
    justify-content: center;
    min-height: 80px;
}

.footer ul {
    list-style: none;
}

.footer>div {
    width: 450px;
}

.footer-rights {
    text-align: center;
    color: gray;
    padding: 30px 0;
    width: 100%;
    clear: both;
}

.footer-social {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 10px 0 0 0;
}

.footer-social li {
    margin: 0 10px;
}

.footer-social a {
    display: inline-block;
    transition: transform 0.3s;
}

.footer-social img {
    width: 24px;
    height: 24px;
}

.footer-social a:hover {
    transform: scale(1.1);
}

@media (max-width: 1200px) {
    .firstSection {
        flex-direction: column;
        text-align: center;
        margin: 80px 0;
    }

    .firstSection>div {
        width: 90%;
    }

    .leftSection {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .rightSection img {
        width: 60%;
        margin-top: 20px;
        border-radius: 50%;
        box-shadow: 0 4px 24px rgba(107,107,228,0.3);
    }

    .secondSection .box {
        flex-direction: column;
        align-items: center;
    }

    .secondSection .vertical {
        height: auto;
        margin: 20px 0;
    }

    .vertical-tittle,
    .vertical-desc {
        width: 80%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .leftSection {
        font-size: 2rem;
    }

    .secondSection h1 {
        font-size: 1.5rem;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .footer>div {
        width: 80%;
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .leftSection {
        font-size: 1.5rem;
    }

    .leftSection .btn {
        font-size: 16px;
        padding: 8px;
    }

    .secondSection .vertical-tittle {
        font-size: 12px;
    }

    .secondSection .vertical-desc {
        font-size: 8px;
    }
}

.menu-icon {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: white;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
        position: absolute;
        right: 20px;
        top: 25px;
    }

    nav ul {
        display: none;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: rgb(18, 18, 62);
        padding: 20px 0;
        z-index: 1000;
    }

    nav ul.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 15px 0 !important;
    }

    .right {
        width: 100%;
    }
}



@media (max-width: 768px) {
    .firstSection {
        flex-direction: column;
        text-align: center;
    }

    .rightSection {
        order: -1;
        display: flex;
        justify-content: center;
    }

    .rightSection img {
        width: 70%;
        margin-top: 20px;
    }

    .work-experience {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 90%;
        max-width: 600px;
        margin-top: 30px;
    }

    .secondSection {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 10px;
    }

    .secondSection .box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 90%;
        margin-top: -334px;
    }

    .secondSection .vertical {
        width: 100%;
        border-left: none;
        border-bottom: 2px solid white;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .image-top {
        display: block;
        margin: 0 auto;
        position: relative;
        top: -15px;
    }

    .vertical-tittle,
    .vertical-desc {
        position: static;
        text-align: center;
        width: 99%;
    }

    .work-experience-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 20px;
    }

    .secondSection h1 {
        margin-bottom: 20px;
    }

    .secondSection .work-experience-list {
        list-style: none;
        padding: 0;
        text-align: center;
        margin-top: 20px;
    }

    .secondSection .work-experience-list li {
        background: #1e2167;
        margin: 10px 0;
        padding: 15px;
        border-radius: 8px;
    }
}


.work-experience {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px;
}

.work-experience .experience-item {
    width: 18%;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
}

.work-experience .experience-item:hover {
    box-shadow: 0 8px 24px rgba(107,107,228,0.2);
    transform: translateY(-5px) scale(1.03);
}

.experience-item {
    background: rgba(30,33,103,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(107,107,228,0.2);
}

.vertical {
    background: rgba(30,33,103,0.7);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(107,107,228,0.2);
    padding: 16px;
}

@media (max-width: 768px) {
    .work-experience-container {
        display: flex;
        flex-direction: column;
        align-items: center;

    }

    .work-experience {
        display: block;
        padding: 10px;
        width: 100%;
        order: 1;
        margin-top: 20px;
    }

    .work-experience .experience-item {
        width: 100%;
        margin-bottom: 20px;
        padding: 15px;
        background: #1a1a2e;
        border-radius: 10px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    .experience-item h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .experience-item p {
        font-size: 14px;
        line-height: 1.6;
    }

    .secondSection {
        order: 2;
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    .secondSection h1 {
        margin-bottom: 361px;
    }

    .work-experience-list {
        list-style: none;
        padding: 0;
        width: 90%;
    }

    .work-experience-list li {
        background: #1e2167;
        margin: 10px 0;
        padding: 15px;
        border-radius: 8px;
    }
}