/* =============================== */
/*         GLOBAL STYLES           */
/* =============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: "Raleway", sans-serif;
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    background-color: #333;
}

::-webkit-scrollbar-thumb {
    background-color: #00ffbf;
    border-radius: 4px;
}

/* CSS Variables */
:root {
    --accent-color: #00ffbf;
    --text-dark: #333;
    --text-muted-dark: #666;
    --bg-light: #f8f9fa;
    --bg-dark: #2c2c2c;
}

/* Body and basic typography */
body {
    background-color: #2c2c2c;
    color: #f8f9fa;
    overflow-x: hidden;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Utility classes */
.text-accent {
    color: #00ffbf !important;
}

.section-padding {
    padding: 100px 0;
}

.section-light-bg {
    background-color: var(--bg-light);
}

.bg-light {
    background-color: #f2f2f2 !important;
}

/* Section titles styling */
.section-title {
    position: relative;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 4rem;
    padding-bottom: 1.5rem;
    letter-spacing: 2px;
    color: #00ffbf;
    text-transform: uppercase;
}

.section-title::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100px;
    height: 5px;
    transform: translateX(-50%);
    background-color: #00ffbf;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 50px;
    height: 3px;
    transform: translateX(-50%);
    background-color: #00ffbf;
    border-radius: 2px;
    opacity: 0.7;
}

.section-title:hover::before {
    width: 140px;
}

/* =============================== */
/*       SIDEBAR NAVIGATION        */
/* =============================== */

.custom-sidebar {
    width: 80px;
    background-color: #1d1d1d;
}

/* Sidebar vertical links */
a.vlink {
    color: #00ffbf;
    position: relative;
    height: 54px;
    width: 72px;
    text-align: center;
    line-height: 54px;
    display: block;
    font-size: 1.2rem;
}

a.vlink span {
    position: absolute;
    opacity: 0;
    transition: transform 400ms ease-out;
    margin-left: 24px;
    box-shadow: 2px 4px 3px 1px rgba(0, 0, 0, 0.2);
}

a.vlink span:before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #000;
    left: -12px;
    top: 33%;
}

a.vlink:hover {
    background: rgb(0, 0, 0);
}

a.vlink:hover span {
    opacity: 1;
    width: 120px;
    transform: translateX(12px);
    background: #000000;
    font-size: 16px;
    border-radius: 6px;
    border-left: 4px solid #000;
    padding: 0px 12px 0px 12px;
}

ul {
    background: rgb(29, 29, 29);
}

/* =============================== */
/*       MOBILE NAVIGATION         */
/* =============================== */

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 1080;
    background-color: #1d1d1d !important;
}

.navbar-brand {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: #f8f9fa !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(0, 255, 191, 0.2) !important;
    color: #00ffbf !important;
}

/* Offcanvas menu styling */
.offcanvas.bg-dark {
    background-color: #1d1d1d !important;
}

.offcanvas-header {
    border-bottom-color: rgba(255, 255, 255, 0.15) !important;
}

.offcanvas-title {
    color: #00ffbf !important;
}

.offcanvas .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.offcanvas-body .navbar-nav .nav-link {
    padding: 0.8rem 1.5rem;
    margin: 0.2rem 0;
    font-size: 1.1rem;
}

.offcanvas-body .navbar-nav .nav-link:hover,
.offcanvas-body .navbar-nav .nav-link.active {
    background-color: rgba(0, 255, 191, 0.2) !important;
    color: #00ffbf !important;
    transform: translateX(5px);
}

/* =============================== */
/*         HERO SECTION            */
/* =============================== */

.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px) brightness(0.6);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(44, 44, 44, 0.2) 0%,
            rgba(44, 44, 44, 0.7) 100%);
}

#typing-effect {
    font-size: 6vw;
    max-width: 900px;
    padding: 15px 30px;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

@media (min-width: 1280px) {
    #typing-effect {
        font-size: 76.8px;
    }
}

/* =============================== */
/*        ABOUT ME SECTION         */
/* =============================== */

#aboutMe {
    background-color: #2c2c2c;
    color: #f8f9fa;
}

#aboutMe .section-title {
    color: #f8f9fa;
}

#aboutMe .section-title::before {
    background-color: #00ffbf;
}

#aboutMe .section-title::after {
    background-color: #00ffbf;
}

#aboutMe .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #d1d1d1;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #00ffbf;
    box-shadow: 0 0 15px rgba(0, 255, 191, 0.4), 0 0 30px rgba(0, 255, 191, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 191, 0.6), 0 0 40px rgba(0, 255, 191, 0.4);
}



/* =============================== */
/*        MY STORY SECTION         */
/* =============================== */

#myStory {
    background-color: #f2f2f2;
    color: #333;
}

#myStory .section-title {
    color: #333;
}

#myStory .section-title::before {
    background-color: #00ffbf;
}

#myStory .section-title::after {
    background-color: #00ffbf;
}

#myStory .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

/* =============================== */
/*        CAREER SECTION           */
/* =============================== */

.career-timeline-section {
    background-color: #e7e7e7;
    color: #333;
}

#career .section-title {
    color: #333;
}

#career .section-title::before {
    background-color: #00ffbf;
}

#career .section-title::after {
    background-color: #00ffbf;
}

/* Timeline styling */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: "";
    position: absolute;
    width: 4px;
    background-color: #bbbbbb;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
}

.timeline-item-left {
    left: 0;
    padding-right: 70px;
}

.timeline-item-right {
    left: 50%;
    padding-left: 70px;
}

.timeline-dot {
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: #00ffbf;
    border-radius: 50%;
    z-index: 1;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px rgba(0, 255, 191, 0.4);
    transition: all 0.3s ease;
}

.timeline-item-left .timeline-dot {
    right: -12.5px;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item-right .timeline-dot {
    left: -12.5px;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.timeline-item:hover .timeline-dot {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 0 4px #00ffbf, 0 0 15px #00ffbf;
}

/* Career card styling */
.career-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 1rem 1.5rem;
    min-height: 100px;
}

.career-logo {
    max-width: 55%;
    object-fit: contain;
}

.career-logo.bg-white {
    background-color: white !important;
    padding: 8px;
    border-radius: 5px;
}

.career-card .card-body {
    padding: 1.5rem;
}

.career-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.career-dates {
    font-size: 0.95rem;
    color: #777;
    font-weight: 500;
}

.career-description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}

.career-gif {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
}

/* =============================== */
/*        SKILLS SECTION           */
/* =============================== */

/* Skills Section Container */
#skills {
    background-color: #2c2c2c;
    color: #f8f9fa;
}

#skills .section-title {
    color: #f8f9fa;
}

#skills .section-title::before,
#skills .section-title::after {
    background-color: #00ffbf;
}

/* Skills Category Styling */
.skill-category {
    text-align: center;
    margin-bottom: 3rem;
}

.skill-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f8f9fa;
    margin-bottom: 2rem;
    line-height: 1.3;
    letter-spacing: 1px;
    text-decoration: underline;
    text-decoration-color: #00ffbf;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

/* Professional Skills Grid Layout */
.skills-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Individual Skill Item */
.skill-item-professional {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 350px;
    border: 1px solid rgba(0, 255, 191, 0.2);
}

/* Skill Icon Container */
.skill-icon-pro {
    width: 60px;
    height: 60px;
    background-color: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.skill-icon-pro img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

/* Skill Information */
.skill-info {
    flex: 1;
    min-width: 0;
}

.skill-name-pro {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8f9fa;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

/* Progress Bar Styling */
.skill-level {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ffbf 0%, #00d4aa 100%);
    border-radius: 4px;
    position: relative;
}

.skill-percentage {
    font-size: 0.85rem;
    font-weight: 500;
    color: #00ffbf;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

/* Progress Bar Width Classes */
.skill-progress-75 { width: 75%; }
.skill-progress-85 { width: 85%; }
.skill-progress-60 { width: 60%; }
.skill-progress-55 { width: 55%; }
.skill-progress-50 { width: 50%; }
.skill-progress-70 { width: 70%; }
.skill-progress-35 { width: 35%; }
.skill-progress-45 { width: 45%; }
.skill-progress-25 { width: 25%; }
.skill-progress-28 { width: 28%; }

/* Skills Note Section */
.skills-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(0, 255, 191, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 191, 0.2);
}

.skills-note p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Light Background Adjustments */
#skills.bg-light .skill-item-professional {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 255, 191, 0.3);
}

#skills.bg-light .skill-name-pro {
    color: #333;
}

#skills.bg-light .skill-bar {
    background-color: rgba(0, 0, 0, 0.1);
}

#skills.bg-light .skills-note {
    background-color: rgba(0, 255, 191, 0.08);
}

/* =============================== */
/*        CONTACT SECTION          */
/* =============================== */

#contact {
    color: #333;
}

#contact .section-title {
    color: #333;
}

#contact .section-title::before,
#contact .section-title::after {
    background-color: #00ffbf;
}

#contact .lead {
    color: #444;
}

#contact .text-muted {
    color: #666 !important;
}

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

/* Contact button styling */
.contact-btn {
    min-width: 180px;
}

/* Stack buttons vertically on mobile */
@media (max-width: 575.98px) {
    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* =============================== */
/*       RESPONSIVE DESIGN         */
/* =============================== */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .section-title {
        font-size: 3.5rem;
        margin-bottom: 3.5rem;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 3rem;
        margin-bottom: 3rem;
    }

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

    #aboutMe .lead,
    #myStory .lead {
        font-size: 1rem;
    }

    /* Skills responsive */
    .skill-category {
        margin-bottom: 2rem;
    }

    .skill-category-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .skills-category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-item-professional {
        max-width: 100%;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 40px 0;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
        padding-bottom: 1rem;
    }

    .section-title::before {
        width: 80px;
        height: 4px;
    }

    .section-title::after {
        width: 40px;
        height: 2px;
        bottom: -6px;
    }

    #typing-effect {
        font-size: 10vw;
        padding: 10px 15px;
    }

    /* About Me responsive */
    .profile-img {
        width: 180px;
        height: 180px;
        margin-bottom: 1.5rem !important;
    }

    /* My Story responsive */
    #myStory .col-md-5 {
        order: 1 !important;
    }

    #myStory .col-md-7 {
        order: 2 !important;
        text-align: center !important;
    }

    /* Career Timeline responsive */
    .timeline::after {
        left: 20px;
        margin-left: 0;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline-item-left,
    .timeline-item-right {
        left: 0;
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline-item-left .timeline-dot,
    .timeline-item-right .timeline-dot {
        left: 10px;
        right: unset;
    }

    .timeline-item:hover .timeline-content {
        transform: translateY(-5px);
    }

    /* Skills responsive */
    .skill-category {
        margin-bottom: 1.5rem;
    }

    .skill-category-title {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .skills-category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-item-professional {
        max-width: 100%;
        padding: 1rem;
    }

    .skill-icon-pro {
        width: 50px;
        height: 50px;
        margin-right: 1rem;
    }

    .skill-icon-pro img {
        width: 30px;
        height: 30px;
    }

    /* CV responsive */
    .cv-pdf-viewer {
        height: 400px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {

    /* Career Timeline responsive */
    .timeline-item {
        padding-left: 45px;
    }

    .timeline-item-left,
    .timeline-item-right {
        padding-left: 45px;
    }

    .timeline::after {
        left: 15px;
    }

    .timeline-item-left .timeline-dot,
    .timeline-item-right .timeline-dot {
        left: 5px;
        width: 20px;
        height: 20px;
        border-width: 3px;
    }

    .career-logo {
        width: 150%;
    }

    .career-gif {
        width: 90px;
    }

    .career-title {
        font-size: 1.2rem;
    }

    .career-description {
        font-size: 0.85rem;
    }
}

/* =============================== */
/*    RESPONSIVE DESIGN UPDATES    */
/* =============================== */

/* Skills Section Responsive Design */
@media (max-width: 991.98px) {
    .skills-category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
    }
    
    .skill-item-professional {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .skills-category-grid {
        gap: 1rem;
    }
    
    .skill-item-professional {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
    }
    
    .skill-icon-pro {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .skill-info {
        width: 100%;
    }
    
    .skill-level {
        justify-content: center;
    }
    
    .skill-percentage {
        min-width: 70px;
    }
}

@media (max-width: 575.98px) {
    .skill-item-professional {
        padding: 1rem;
    }
    
    .skill-icon-pro {
        width: 50px;
        height: 50px;
    }
    
    .skill-icon-pro img {
        width: 30px;
        height: 30px;
    }
    
    .skill-name-pro {
        font-size: 1rem;
    }
    
    .skill-percentage {
        font-size: 0.8rem;
        min-width: 60px;
    }
}