:root {
    --primary-color: #6c63ff;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --light-text: #f5f5f5;
    --gray-text: #aaaaaa;
    --card-bg: #1e1e1e;
    --border-color: #2d2d2d;
    --transition: all .3s ease;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--primary-color) var(--dark-bg);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    background-color: var(--card-bg);
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    color: var(--light-text);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: transparent;
    color: var(--primary-color);
}

.dropdown-toggle::after {
    transition: transform .25s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.cv-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link.dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
}

a.links {
    color: var(--light-text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-text);
}

.link-underline {
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.link-underline::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.link-underline:hover {
    color: var(--primary-color);
}

.link-underline:hover::before {
    width: 100%;
}

section {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: .8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    background-color: #5651d8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 225, 0.3);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 2;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: .5rem;
    font-weight: 700;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-text p {
    margin-bottom: 1.5rem;
    color: var(--gray-text);
    font-size: 1.1rem;
    max-width: 800px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--light-text);
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(108, 99, 225, .5);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(108, 99, 225, 0.5);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 50px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    top: 5px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: 1;
}

.timeline-content {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.date {
    display: inline-block;
    padding: .3rem .8rem;
    background-color: rgba(108, 99, 225, 0.2);
    color: var(--primary-color);
    border-radius: 5px;
    font-size: .9rem;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.timeline-content h4 {
    color: var(--gray-text);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .8rem;
}

.skills li {
    font-size: .8rem;
    padding: .3rem .8rem;
    background-color: var(--darker-bg);
    border-radius: 20px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

#certifications .card-container {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.custom-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-header {
    background-color: rgb(28, 27, 27);
    border-bottom: 2px solid rgb(28, 28, 29);
}

.card-header h3 {
    margin-top: .8rem;
    margin-bottom: .8rem;
    font-size: 1.5rem;
    text-align: center;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.custom-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(108, 99, 225, .5);
}

.card-img {
    overflow: hidden;
}

.card-img img {
    transition: var(--transition);
    width: 100%;
}

.custom-card:hover .card-img img {
    transform: scale(1.05);
}

.card-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-info h3 {
    margin-bottom: .8rem;
    font-size: 1.4rem;
    color: rgb(115, 57, 239)
}

.card-info h4 {
    margin-bottom: .8rem;
    font-size: 1rem;
}

.card-info p {
    color: var(--gray-text);
    margin-bottom: 1rem;
    font-size: .95rem;
    flex-grow: 1;
}

.card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .8rem;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.card-tech span {
    font-size: .8rem;
    padding: .2rem .6rem;
    background-color: var(--darker-bg);
    border-radius: 20px;
}

.card-links {
    display: flex;
    gap: 1rem;
}

.card-links a {
    font-size: .9rem;
    color: var(--gray-text);
    transition: var(--transition);
}

.card-links a:hover {
    color: var(--primary-color);
}

.level {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .8rem;
    margin-left: 1rem;
}

.level.basic {
    background-color: var(--primary-color);
}

.level.medium {
    background-color: #4caf50;
}

.level.advanced {
    background-color: #ff9800;
}

footer {
    background-color: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    header {
        position: static;
    }

    #navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .hero-content,
    .nav-links {
        flex-direction: column;
    }
}