* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #212529;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.75) 50%, rgba(200, 200, 200, 0.75) 100%),
        #d8d9da;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40vh;
    background:
        linear-gradient(135deg, rgba(63, 160, 253, 0.92), rgba(60, 138, 252, 0.85)),
        url('keyboard.jpeg') center top / cover no-repeat;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.cv-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 1rem;
}

.cv-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.cv-header {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.cv-photo {
    position: relative;
}

.cv-photo::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -1px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca, #6610f2);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.5;
    }
}

.cv-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    box-shadow:
        0 10px 30px rgba(13, 110, 253, 0.3),
        0 0 0 4px rgba(255, 255, 255, 1);
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #0d6efd, #6610f2) border-box;
}

.cv-photo:hover {
    transform: scale(1.04);
}

.linkedin-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.linkedin-badge img {
    width: 25px;
    height: 25px;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
    border: none;
    background: transparent;
}

.cv-intro {
    flex: 1;
    min-width: 0;
}

.cv-intro h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: #293037;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cv-subtitle {
    font-size: 1.25rem;
    color: #495057;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.cv-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

.cv-main {
    margin-bottom: 2rem;
}

.cv-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1.75rem;
    text-align: center;
}

.cv-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.cv-highlight-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(102, 16, 242, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(13, 110, 253, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cv-highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.cv-highlight-item:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 25px rgba(13, 110, 253, 0.2),
        0 0 0 1px rgba(13, 110, 253, 0.2);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12) 0%, rgba(102, 16, 242, 0.08) 100%);
}

.cv-highlight-item:hover::before {
    left: 100%;
}

.cv-highlight-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.cv-highlight-item span {
    font-size: 0.95rem;
    color: #6c757d;
}

.cv-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: white;
}

.cv-contact {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.3), transparent) 1;
}

.cv-contact p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.cv-contact a {
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
}

.cv-contact a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    transition: width 0.3s ease;
}

.cv-contact a:hover::after {
    width: 100%;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
}

footer a {
    color: #6c757d;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .cv-header {
        flex-wrap: nowrap;
        justify-content: flex-start;
        text-align: left;
    }

    .cv-description {
        text-align: left;
    }

    .cv-content {
        padding: 3rem;
    }
}

@media (max-height: 800px) and (min-width: 768px) {
    .cv-container {
        min-height: auto;
        padding: 1.5rem 1rem;
    }

    .cv-header {
        margin-bottom: 1.75rem;
    }

    .cv-main {
        margin-bottom: 1.5rem;
    }

    .cv-description {
        margin-bottom: 1.25rem;
    }

    .cv-highlights {
        gap: 1rem;
    }

    .cv-highlight-item {
        padding: 0.85rem;
    }
}

@media (max-width: 767px) {
    body::before {
        height: 30vh;
    }

    .cv-container {
        min-height: auto;
        padding: 2rem 1rem;
    }

    .cv-header {
        gap: 1.5rem;
    }

    .cv-photo img {
        width: 100px;
        height: 100px;
    }

    .linkedin-badge {
        bottom: 2px;
        right: 2px;
        width: 25px;
        height: 25px;
    }

    .linkedin-badge img {
        width: 18px;
        height: 18px;
    }

    .cv-content {
        padding: 1.5rem;
    }
    
    .cv-intro h1 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .cv-subtitle {
        font-size: 1.1rem;
    }

    .cv-tagline {
        font-size: 1rem;
    }

    .cv-description {
        font-size: 1rem;
    }

    .cv-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        position: relative;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

.legal-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #212529;
}

.legal-container h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #212529;
}

.legal-container h3 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #212529;
}

.legal-container p,
.legal-container ul,
.legal-container li {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 1rem;
}

.legal-container ul {
    padding-left: 2rem;
}

.legal-container a {
    color: #0d6efd;
    text-decoration: none;
}

.legal-container a:hover {
    text-decoration: underline;
}

.legal-container img {
    margin: 1rem 0;
    max-width: 100%;
}

.legal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.legal-footer a {
    color: #6c757d;
    text-decoration: none;
}

.legal-footer a:hover {
    text-decoration: underline;
}
