/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --light: #ffffff;
    --light-bg: #f8f9fa;
    --light-gray: #e9ecef;
    --text: #2b2d42;
    --text-light: #6c757d;
    --success: #4cc9f0;
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}


/* ==========================================================================
   BASE
   ========================================================================== */
::selection {
    background-color: #ED1C24;
    color: white;
}

#typing::after {
    content: " ";
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}


/* ==========================================================================
   CUSTOM SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}


/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    position: fixed;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: -20px;
}

.logo::after {
    content: '';
    position: relative;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    bottom: 5px;
    right: -5px;
    animation: pulse 2s infinite;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
    border-radius: 2px;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    z-index: 1001;
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    top: 10%;
    right: 5%;
    opacity: 0.1;
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    width: 100%;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    transform: none;
    margin-top: -20rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #ED1C24, #C11016);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s ease-in-out infinite alternate;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #F83589, #A00303);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s ease-in-out infinite alternate;
    margin-top: -20px;
}

.hero p.subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary);
}

.hero p {
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 17px;
}

.profile-img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow:
        var(--shadow),
        0 0 0 8px white,
        0 0 30px rgba(67, 97, 238, 0.3);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow:
        var(--shadow-hover),
        0 0 0 8px white,
        0 0 50px rgba(67, 97, 238, 0.4);
}

/* Mobile profile image (hidden on desktop, shown in the 768px media query) */
.mobile-profile-img {
    display: none;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow);
    margin: 2rem auto;
}


/* ==========================================================================
   GENERAL SECTIONS
   ========================================================================== */
section {
    padding: 6rem 5%;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: var(--secondary);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}


/* ==========================================================================
   SUMMARY SECTION
   ========================================================================== */
.summary {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.summary::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--primary-light);
    border-radius: 50%;
    top: -75px;
    right: -75px;
    opacity: 0.1;
}

.summary:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-item {
    background: var(--light);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    box-shadow: var(--shadow);
}

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--light) 0%, #f0f4ff 100%);
}

.skill-item i {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.skill-item div {
    font-weight: 600;
    color: var(--secondary);
}


/* ==========================================================================
   EXPERIENCE / TIMELINE SECTION
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 25px;
    background: var(--light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    top: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.timeline-content:hover::before {
    transform: scaleX(1);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--light);
    border: 4px solid var(--primary);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(67, 97, 238, 0.3);
}

.timeline-item:hover::after {
    background-color: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.5);
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.timeline-duration {
    font-weight: 500;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-style: italic;
}

.timeline-title {
    font-weight: 700;
    margin: 10px 0;
    font-size: 1.4rem;
    color: var(--secondary);
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

/* ----- Primary (CTA) button ----- */
.cta-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(130deg, var(--primary), var(--accent));
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
    font-size: 1.1rem;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.cta-button:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.4);
}

.cta-button:hover:before {
    opacity: 1;
}

.cta-button:hover:after {
    width: 300px;
    height: 300px;
}

.cta-button:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
    transition: 0.1s;
}

.cta-button i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* ----- WhatsApp button ----- */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    font-size: 1.1rem;
    margin-left: 15px;
}

.whatsapp-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #128C7E, #25D366);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.whatsapp-button:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.whatsapp-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-button:hover:before {
    opacity: 1;
}

.whatsapp-button:hover:after {
    width: 300px;
    height: 300px;
}

.whatsapp-button:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    transition: 0.1s;
}

.whatsapp-button i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* ----- Contact buttons container ----- */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}


/* ==========================================================================
   SOCIAL LINKS
   ========================================================================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
    margin-top: -30px;
}

.social-links a {
    color: var(--text);
    font-size: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
    text-decoration: none;
}

.social-links a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.social-links a:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.social-links a:hover {
    color: white;
    transform: translateY(-10px) rotate(5deg);
    box-shadow: 0 15px 25px rgba(67, 97, 238, 0.3);
}

.social-links a:hover:before {
    opacity: 1;
}

.social-links a:hover:after {
    width: 100px;
    height: 100px;
}

.social-links a:active {
    transform: translateY(-5px) scale(0.95);
    transition: 0.1s;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    padding: 4rem 5% 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 180px;
}

footer::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
}


/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* Floating elements */
.floating {
    animation: float 6s ease-in-out infinite;
}


/* ==========================================================================
   ACCA PROGRESS & ACHIEVEMENTS
   ========================================================================== */
.progress-box {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    max-width: 1050px;
    margin: 2rem auto 0;
}

.acca-progress {
    flex: 3.5;
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    text-align: center;
    transition: 0.4s ease;
}

.acca-progress:hover {
    transform: translateY(-5px);
}

.acca-achievements:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.acca-achievements {
    flex: 8.5;
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    text-align: center;
    transition: 0.4s ease;
}

.progress-text {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-weight: 600;
}

.progress-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
}


/* ==========================================================================
   RESPONSIVE: TABLET (max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .profile-img {
        width: 300px;
        height: 300px;
    }

    .timeline::before {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
}


/* ==========================================================================
   RESPONSIVE: MOBILE (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 100;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        min-height: auto;
        padding-bottom: 17rem;
    }

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

    section {
        padding: 4rem 5%;
    }

    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .profile-img {
        display: none;
    }

    .mobile-profile-img {
        display: block;
    }

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

    .whatsapp-button {
        margin-left: 0;
        margin-top: 15px;
    }

    .progress-box {
        flex-direction: column;
        width: 100%;
    }

    .acca-progress,
    .acca-achievements {
        width: 100%;
        flex: none;
    }
}


/* ==========================================================================
   CURSOR LINE EFFECT
   ========================================================================== */
#cursor-line {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2147483647;
}
