@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Turret+Road:wght@200;300;400;500;700;800&display=swap');

:root {
    --hue-color: 242;

    --skin-color: hsl(43, 96%, 52%);
    --mirage-color: hsl(210, 10%, 23%);
    --title-color: hsl(var(--hue-color), 8%, 95%);
    --text-color: hsl(var(--hue-color), 8%, 85%);
    --body-color: hsl(var(--hue-color), 19%, 5%);
    --box-color: hsl(var(--hue-color), 14%, 10%);
    --scroll-box-color: hsl(var(--hue-color), 12%, 38%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 26%);

    --body-font: 'Poppins', sans-serif;
    --signature-font: 'Turret Road', sans-serif;

    --biggest-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;

    --font-medium: 500;
    --font-bold: 600;

    --mb025: .25rem;
    --mb05: .5rem;
    --mb075: .75rem;
    --mb1: 1rem;
    --mb15: 1.5rem;
    --mb2: 2rem;
    --mb25: 2.5rem;
    --mb3: 3rem;

    --z-fixed: 10;
    --z-modal: 100;

}

/* ===== Light Mode ===== */
body.light-mode {
    --title-color: hsl(242, 30%, 12%);
    --text-color: hsl(242, 10%, 38%);
    --body-color: hsl(220, 16%, 94%);
    --box-color: hsl(0, 0%, 100%);
    --scroll-box-color: hsl(242, 12%, 78%);
    --scroll-thumb-color: hsl(242, 12%, 52%);
}
body.light-mode .sidebar {
    border-right-color: hsl(220, 12%, 82%);
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    z-index: var(--z-fixed);
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-color);
    background-color: var(--box-color);
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px hsla(242, 19%, 5%, 0.3);
    transition: color .3s, transform .3s, background-color .3s;
}
.theme-toggle:hover { color: var(--skin-color); transform: scale(1.15) rotate(20deg); }

@media screen and (max-width: 1024px) {
    :root {
        --biggest-font-size: 2rem;
        --h1-font-size: 1.5rem;
        --h2-font-size: 1.25rem;
        --h3-font-size: 1.125rem;
        --normal-font-size: .938rem;
        --small-font-size: .813rem;
        --smaller-font-size: .75rem;
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body, button, input { font-family: var(--body-font); font-size: var(--normal-font-size); }
    body { background-color: var(--body-color); color: var(--text-color); overflow-x: hidden; }
h1, h2, h3 { color: var(--title-color); font-weight: var(--font-bold); }
ul { list-style: none; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; }
    button, input { border: none; outline: none; }
.container { max-width: 1250px; margin-left: auto; margin-right: auto; }
.grid { display: grid; }
.button { 
    display: inline-flex; 
    align-items: center; 
    column-gap: .5rem; 
    background-color: var(--skin-color); 
    color: var(--title-color); 
    padding: 0.75rem 1.4rem; 
    border-radius: .25rem; 
    font-weight: var(--font-medium);
    position: relative;
    z-index: 1;
    transition: .4s;
}
    .button::after { 
        position: absolute; 
        content: ''; 
        left: 0; 
        top: 0; 
        width: 100%; 
        height: 100%; 
        background-color: var(--mirage-color); 
        z-index: -1;
        transform-origin: center; 
        transform: scale(0); 
        border-radius: .25rem;
        transition: .3s; 
    }
        .button:hover::after { transform: scale(1); }
.section { padding: 6.5rem 0 2rem; }
.section-title { text-align: center; font-size: var(--h1-font-size); margin-bottom: var(--mb3); }
    .section-title::before { content: attr(data-heading); display: block; font-size: var(--normal-font-size); font-weight: var(--font-medium); color: var(--skin-color); }
::-webkit-scrollbar { width: 0.6rem; background-color: var(--scroll-box-color); border-radius: .5rem; }
::-webkit-scrollbar-thumb { background-color: var(--scroll-thumb-color); border-radius: .5rem; }

/* Sidebar */

.sidebar { position: fixed; width: 100px; height: 100vh; background-color: var(--body-color); border-right: 1px solid var(--box-color); }
.nav-logo { position: absolute; left: 0; right: 0; top: 1.8rem; width: 40px; height: 40px; border-radius: 50%; background-color: var(--skin-color); text-align: center; margin: auto; }
.nav-logo-text { font-size: 1.125rem; color: var(--title-color); font-weight: var(--font-bold); line-height: 40px; }
.nav-menu { position: fixed; transform: rotate(-90deg) translateX(-100%); transform-origin: left top; width: 100vh; }
.menu { display: flex; }
.nav-list { display: flex; flex-direction: row-reverse; margin: -2px auto 0 auto; }
.nav-link { float: right; height: 100%; line-height: 100px; padding: 0 1rem; color: var(--title-color); font-weight: var(--font-medium); position: relative; transition: .4s; }
.nav-toggle {
    height: 32px;
    width: 36px;
    cursor: pointer;
    position: fixed;
    right: 1.5rem;
    top: 2rem;
    font-size: 1.2rem;
    border-radius: .25rem;
    background-color: var(--skin-color);
    color: var(--title-color);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.nav-close { font-size: 1.5rem; position: absolute; top: 1rem; right: 1.25rem; cursor: pointer; display: none; }
    .nav-link.active-link, .nav-link:hover { color: var(--skin-color); }
        .nav-link.active-link::after, .nav-link:hover::after {
            position: absolute;
            content: '';
            width: 6px;
            height: 6px;
            background-color: var(--skin-color);
            border-radius: 50%;
            bottom: 1.8rem;
            left: 0;
            right: 0;
            margin: auto;
        }
.btn-share { position: absolute; bottom: 1.8rem; left: 0; right: 0; text-align: center; cursor: pointer; }
.social-share { font-size: 1.5rem; }

/* Main - Home */

.main { margin-left: 100px; }
.home { background: var(--body-color); height: 100vh; }
.home-container { 
    position: relative; 
    height: 100%; 
    align-items: center;
    grid-template-columns: 1fr 400px;
    column-gap: 3rem;
}
.home-social { position: absolute; top: 1.8rem; left: 0; display: flex; align-items: center; column-gap: 3.5rem; }
.home-social-follow { font-weight: var(--font-medium); position: relative; }
    .home-social-follow::after { content: ''; position: absolute; width: 1rem; height: 2px; background-color: var(--text-color); right: -45%; top: 50%; }
.home-social-links { display: inline-flex; column-gap: 1rem; }
.home-social-link { font-size: 1.08rem; color: var(--text-color); transition: .4s; }
    .home-social-link:hover { transform: translateY(.25rem); }
.home-img { 
    display: block; 
    width: 400px; 
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--skin-color);
    box-shadow: 0 0 20px rgba(227, 21, 82, 0.3);
    justify-self: end;
    grid-row: 1;
    grid-column: 2;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-25px) translateX(5px);
    }
    100% {
        transform: translateY(0px) translateX(0px);
    }
}
.home-data {
    grid-row: 1;
    grid-column: 1;
}
.home-title { font-size: var(--biggest-font-size); }
.home-subtitle { font-size: var(--h3-font-size); font-weight: var(--font-medium); margin-bottom: var(--mb075); }
.home-description { max-width: 450px; margin-bottom: var(--mb2); }
.my-info { display: flex; column-gap: 1.8rem; position: absolute; left: 0; bottom: 1.8rem; }
.info-item { display: flex; align-items: center; }
.info-title, .info-subtitle { font-size: var(--small-font-size); }
    .info-title { font-weight: var(--font-medium); }
.info-icon { font-size: 1.8rem; color: var(--skin-color); margin-right: var(--mb075); }

/* Main - About */

.about-container { grid-template-columns: repeat(2, 1fr); column-gap: 4rem; align-items: center; }
.about-img { width: 480px; border-radius: .75rem; justify-self: center; }
.about-heading { font-size: var(--h3-font-size); margin-bottom: var(--mb075); }
.about-description { text-align: justify; padding-right: 6rem; margin-bottom: var(--mb2); }
.about-info { display: grid; grid-template-columns: repeat(3, 140px); column-gap: .5rem; margin-bottom: var(--mb3); }
.about-box { text-align: center; border-radius: .25rem; padding: 1rem 1.25rem; background-color: var(--box-color); }
.about-icon { font-size: 1.5rem; color: var(--skin-color); margin-bottom: var(--mb075); }
.about-title { font-size: var(--small-font-size); }
.about-subtitle { font-size: var(--small-font-size); }

/* Main - Qualification */

.qualification-container { grid-template-columns: repeat(2 ,340px); column-gap: 3rem; justify-content: center; }
.qualification-title { font-size: var(--h3-font-size); font-weight: var(--font-medium); margin-bottom: var(--mb2); }
.timeline-item { position: relative; margin-bottom: var(--mb25); padding-left: 3rem; }
    .timeline-item:last-child { margin-bottom: 0; }
    .timeline-item::before { content: ''; width: 1px; position: absolute; left: 0.48rem; top: 0; height: 100%; background-color: var(--skin-color); }
.circle-dot { position: absolute; left: 0; top: 0; height: 1rem; width: 1rem; border: 2px solid var(--skin-color); border-radius: 50%; background-color: var(--skin-color); transition: .4s; }
    .timeline-item:hover .circle-dot { background-color: var(--body-color); }
.timeline-title { font-size: var(--normal-font-size); font-weight: var(--font-medium); margin-bottom: var(--mb025); }
.timeline-text { font-size: var(--smaller-font-size); margin-bottom: var(--mb1); }
.timeline-date { display: flex; align-items: center; column-gap: .4rem; font-size: var(--normal-font-size); color: var(--skin-color); }

/* CV Download Section */

.cv-download-section {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.cv-card {
    background: var(--box-color);
    padding: 2rem 2rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(227, 21, 82, 0.2);
}

.cv-title {
    font-size: var(--h2-font-size);
    color: var(--title-color);
    margin-bottom: var(--mb075);
    font-weight: var(--font-bold);
}

.cv-description {
    font-size: var(--small-font-size);
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cv-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.cv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: .25rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    transition: all .3s;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
    position: relative;
    z-index: 1;
}

.cv-button i {
    font-size: 1.2rem;
}

.cv-primary {
    background-color: var(--skin-color);
    color: var(--title-color);
}

.cv-primary::after {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--mirage-color);
    z-index: -1;
    transform-origin: center;
    transform: scale(0);
    border-radius: .25rem;
    transition: .3s;
}

.cv-primary:hover::after {
    transform: scale(1);
}

.cv-secondary {
    background: transparent;
    color: var(--skin-color);
    border: 1px solid var(--skin-color);
}

.cv-secondary:hover {
    background: rgba(227, 21, 82, 0.1);
}

/* Main - Skills */ 

.skills-container { grid-template-columns: 360px 320px; column-gap: 3rem; justify-content: center; }
.skills-header { display: flex; align-items: center; cursor: pointer; }
    .skills-header:not(:last-child) { margin-bottom: var(--mb25); }
.skills-icon, .skills-arrow { font-size: 2rem; color: var(--skin-color); }
    .skills-icon { margin-right: var(--mb075); }
    .skills-arrow { margin-left: auto; }
        .skills-active .skills-arrow { transform: rotate(-90deg); transition: .4s; }
.skills-title { font-size: var(--h3-font-size); font-weight: var(--font-medium); }
.skills-subtitle { font-size: var(--small-font-size); }
.skills-list { row-gap: 1.8rem; }
.skills-titles { display: flex; justify-content: space-between; margin-bottom: var(--mb05); }
.skills-name { font-size: var(--normal-font-size); font-weight: var(--font-medium); }
.skills-bar, .skills-percentage { height: 5px; border-radius: .25rem; }
    .skills-bar { background-color: var(--box-color); }
    .skills-percentage { display: block; background-color: var(--skin-color); }
.skills [data-content] { display: none; }
    .skills-active[data-content] { display: block; }

/* Main - Work */ 

.work-container { grid-template-columns: repeat(3, 330px); gap: 1.8rem; justify-content: center; padding-top: 1rem; }
.work-filters { display: flex; justify-content: center; align-items: center; column-gap: .75rem; margin-bottom: 2rem; }
.work-item { cursor: pointer; color: var(--title-color); padding: 0.25rem .75rem; font-weight: var(--font-medium); border-radius: .5rem; }
.work-card {
    background-color: var(--box-color);
    padding: 1.25rem;
    border-radius: .5rem;
    overflow: hidden;
    position: relative;
    transition: transform .35s cubic-bezier(.25,.8,.25,1), box-shadow .35s cubic-bezier(.25,.8,.25,1);
    cursor: pointer;
}

/* Accent underline that slides in on hover */
.work-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: var(--skin-color);
    transition: width .4s ease;
    border-radius: 0 0 .5rem .5rem;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .3);
}

.work-card:hover::after { width: 100%; }

.portfolio-item-details { display: none; }

.work-img {
    border-radius: .5rem;
    margin-bottom: var(--mb1);
    display: block;
    width: 100%;
    transition: transform .4s ease;
    transform-origin: center;
}

/* Gentle zoom on image */
.work-card:hover .work-img { transform: scale(1.06); }

.work-title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb05);
    transition: color .3s ease;
}

.work-card:hover .work-title { color: var(--skin-color); }

.work-button { color: var(--skin-color); font-size: var(--small-font-size); display: flex; align-items: center; column-gap: .25rem; cursor: pointer; }
.work-button-icon { font-size: 1rem; transition: .4s; }
    .work-button:hover .work-button-icon { transform: translateX(.25rem); }
.active-work { background-color: var(--skin-color); color: var(--title-color); }

.portfolio-popup { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-color: rgba(0, 0, 0, .5); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 0 1rem;
    opacity: 0;
    visibility: hidden; 
    z-index: var(--z-modal); 
    transition: .4s; 
}
.portfolio-popup.open { opacity: 1; visibility: visible; }
.portfolio-popup-inner { background-color: var(--box-color); width: 900px; border-radius: .5rem; padding: 2.5rem; position: relative; }
.portfolio-popup-content { grid-template-columns: repeat(2, 1fr); align-items: center; column-gap: 3rem; }
.portfolio-popup-close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.5rem; color: var(--skin-color); cursor: pointer; }
.portfolio-popup-img { border-radius: .5rem; }
.portfolio-popup-subtitle { font-size: var(--smaller-font-size); margin-bottom: var(--mb025); }
.details-title { font-size: var(--h3-font-size); font-weight: var(--font-medium); margin-bottom: var(--mb1); }
.details-description { font-size: var(--small-font-size); margin-bottom: var(--mb2); }
.details-info li { margin-bottom: var(--mb075); text-transform: capitalize; font-size: var(--small-font-size); }
    .details-info li:last-child { margin-bottom: 0; }
    .details-info li span { font-weight: normal; }
    .details-info li a { text-transform: lowercase; color: var(--skin-color); }

/* Main - Services */ 

.services-container { grid-template-columns: repeat(3, 250px); justify-content: center; column-gap: 1.8rem; }
.services-content {
    position: relative;
    background-color: var(--box-color);
    padding: 6rem 0 2rem 2.5rem;
    border-radius: .25rem;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.25,.8,.25,1), box-shadow .35s cubic-bezier(.25,.8,.25,1);
}

/* Left accent bar that grows on hover */
.services-content::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 0;
    background: var(--skin-color);
    border-radius: .25rem 0 0 .25rem;
    transition: height .4s ease;
}

/* Glow circle behind icon */
.services-content::after {
    content: '';
    position: absolute;
    top: 1.8rem; left: 2rem;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--skin-color);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity .35s ease, transform .35s ease;
    z-index: 0;
}

.services-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
}

.services-content:hover::before { height: 100%; }

.services-content:hover::after {
    opacity: .12;
    transform: scale(1);
}

.services-icon {
    display: block;
    font-size: 1.8rem;
    color: var(--skin-color);
    margin-bottom: var(--mb1);
    position: relative;
    z-index: 1;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

.services-content:hover .services-icon {
    transform: scale(1.25) rotate(-6deg);
}

.services-title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb1);
    font-weight: var(--font-medium);
    transition: color .3s ease;
}

.services-content:hover .services-title { color: var(--skin-color); }

.services-button { color: var(--skin-color); font-size: var(--small-font-size); display: flex; align-items: center; column-gap: .25rem; cursor: pointer; }
.services-button-icon { font-size: 1rem; transition: .4s; }
    .services-button:hover .services-button-icon { transform: translateX(.25rem); }
.services-modal {
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-color: rgba(0, 0, 0, .5); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 0 1rem;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden; 
    transition: .4s;
}
.active-modal { opacity: 1; visibility: visible; }
.services-modal-content { width: 500px; position: relative; background-color: var(--box-color); padding: 4.5rem 2.5rem 2.5rem; border-radius: .5rem; }
.services-modal-close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.5rem; color: var(--skin-color); cursor: pointer; }
.services-modal-title, .services-modal-description { text-align: center; }
    .services-modal-title { font-size: var(--h3-font-size); font-weight: var(--font-medium); margin-bottom: var(--mb1); }
    .services-modal-description { font-size: var(--small-font-size); padding: 0 3.5rem; margin-bottom: var(--mb2); }
.services-modal-services { row-gap: var(--mb075); }
.services-modal-service { display: flex; align-items: center; column-gap: .5rem; }
.services-modal-icon { color: var(--skin-color); font-size: 1.1rem; }
.services-modal-info { font-size: var(--small-font-size); }

/* Main - Testimonials */

@media screen and (min-width: 992px) {
    .testimonials-container { width: 750px; margin-left: auto !important; margin-right: auto !important; }
}

.testimonial-card { background-color: var(--box-color); padding: 1.8rem 2rem; border-radius: .5rem; margin-bottom: 3rem; }
.testimonial-quote { display: inline-flex; font-size: 1.5rem; color: var(--skin-color); margin-bottom: var(--mb1); }
.testimonial-description { margin-bottom: var(--mb1); font-size: var(--small-font-size); text-align: justify; }
.testimonial-date { font-size: var(--normal-font-size); margin-bottom: var(--mb2); }
.testimonial-profile { display: flex; align-items: center; column-gap: 1rem; }
.testimonial-profile-img { width: 60px; height: 60px; border-radius: 3rem; }
.testimonial-profile-name { font-size: var(--h3-font-size); font-weight: var(--font-medium); color: var(--title-color); }
.testimonial-profile-detail { font-size: var(--small-font-size); display: block; }
.testimonial-profile-data { display: flex; flex-direction: column; row-gap: .4rem; }

/* Swiper */

.swiper-pagination-bullet { background-color: var(--box-color); }
.swiper-pagination-bullet-active { background-color: var(--skin-color); }

/* Main - Clients */

.clients-subtitle { text-align: center; color: var(--text-color); font-size: var(--small-font-size); margin-bottom: 2rem; }

.clients-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.clients-marquee {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    width: max-content;
    animation: marquee-scroll 18s linear infinite;
}

.clients-marquee:hover { animation-play-state: paused; }

.client-card {
    background-color: var(--box-color);
    border-radius: .5rem;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-width: 160px;
    flex-shrink: 0;
    transition: transform .3s, box-shadow .3s;
    cursor: default;
}

.client-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.client-logo { width: 90px; height: 90px; object-fit: contain; border-radius: .3rem; }
.client-placeholder { opacity: .35; filter: grayscale(1); }
.client-name { font-size: var(--small-font-size); color: var(--title-color); font-weight: var(--font-medium); text-align: center; }

/* Main - Contact */

.contact-container { grid-template-columns: 300px 340px; column-gap: 3rem; justify-content: center; align-items: center; }
.contact-info { display: grid; row-gap: 1rem; }
.contact-card { background-color: var(--box-color); padding: 1rem; border-radius: .5rem; text-align: center; }
.contact-card-icon { font-size: 1.8rem; color: var(--title-color); margin-bottom: var(--mb025); }
.contact-card-title, .contact-card-data { font-size: var(--small-font-size); }
    .contact-card-title { font-weight: var(--font-medium); }
    .contact-card-data { display: block; margin-bottom: var(--mb075); }
.contact-button { color: var(--skin-color); font-size: var(--small-font-size); display: flex; align-items: center; justify-content: center; column-gap: .25rem; cursor: pointer; }
.contact-button-icon { font-size: 1rem; transition: .4s; }
    .contact-button:hover .contact-button-icon { transform: translateX(.25rem); }
.input-container { position: relative; margin-top: 1rem; margin-bottom: 1.9rem; }
.input { 
    width: 100%; 
    border: 2px solid var(--text-color); 
    background-color: transparent; 
    padding: 0.6rem 1.2rem; 
    color: var(--title-color); 
    font-weight: var(--font-medium); 
    font-size: var(--normal-font-size); 
    letter-spacing: .5px; 
    border-radius: .5rem;
    outline: none; 
    transition: .4s; 
}
textarea.input { padding: 0.8rem 1.2rem; min-height: 140px; border-radius: .5rem; resize: none; font-family: var(--body-font); }
    .input-container label {
        position: absolute;
        top: 50%;
        left: 1rem;
        transform: translateY(-50%);
        padding: 0 .4rem;
        color: var(--text-color);
        font-size: 1rem;
        font-weight: var(--font-medium);
        pointer-events: none;
        z-index: 15;
        transition: .5s;
    }
        
        .input-container.textarea label { top: 1rem; transform: translateY(0); }
    .input-container span { 
        position: absolute; 
        top: 0; 
        left: 25px; 
        transform: translateY(-50%); 
        font-size: var(--small-font-size); 
        padding: 0 .4rem; 
        pointer-events: none; 
        z-index: var(--z-fixed); 
        color: transparent; 
    }
        .input-container span::before, .input-container span::after { 
            content: '';
            position: absolute;
            width: 10%;
            opacity: 0;
            height: 5px;
            background-color: var(--body-color);
            top: 50%;
            transform: translateY(-50%);
            transition: .4s;
        }
            .input-container span::before { left: 50%; }
            .input-container span::after { right: 50%; }
            .input-container.focus label { top: 0; transform: translateY(-50%); left: 25px; font-size: var(--smaller-font-size); }
                .input-container.focus span::before, .input-container.focus span::after  { width: 50%; opacity: 1; }

/* ===== WhatsApp Float Button ===== */
.wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: var(--z-fixed);
    width: 3.4rem;
    height: 3.4rem;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform .3s, box-shadow .3s;
    animation: wa-pulse 2.5s infinite;
}
.wa-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
    animation: none;
}
.wa-float-tooltip {
    position: absolute;
    right: calc(100% + .75rem);
    background: var(--box-color);
    color: var(--title-color);
    font-size: var(--smaller-font-size);
    white-space: nowrap;
    padding: .35rem .75rem;
    border-radius: .4rem;
    box-shadow: 0 2px 8px hsla(242, 19%, 5%, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity .25s, transform .25s;
}
.wa-float:hover .wa-float-tooltip {
    opacity: 1;
    transform: translateX(0);
}
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45); transform: scale(1); }
    50%       { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.7);  transform: scale(1.07); }
}

/* Map */

.contact-map {
    margin-top: 3rem;
    border-radius: .75rem;
    overflow: hidden;
    border: 2px solid var(--box-color);
    box-shadow: 0 4px 20px hsla(242, 19%, 5%, 0.3);
}

.contact-map iframe {
    display: block;
    width: 100%;
    border-radius: .75rem;
    filter: grayscale(20%) contrast(1.05);
    transition: filter .3s;
}

.contact-map:hover iframe { filter: grayscale(0%) contrast(1); }

body.light-mode .contact-map { border-color: hsl(220, 12%, 82%); }

/* Footer */

.footer { padding-top: 2rem; }
.footer-bg { background-color: var(--box-color); padding: 3rem 0 1.5rem; }
.footer-container { 
    grid-template-columns: repeat(3, 1fr); 
    column-gap: 3rem; 
    align-items: start;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Info Section */
.footer-info { }
.footer-title { 
    font-size: var(--h2-font-size); 
    margin-bottom: var(--mb05); 
    color: var(--title-color);
}    
.footer-subtitle { 
    font-size: var(--small-font-size); 
    color: var(--text-color);
    margin-bottom: var(--mb05);
}
.footer-description {
    font-size: var(--small-font-size);
    color: var(--text-color);
    line-height: 1.6;
}

/* Quick Links Section */
.footer-quick-links { }
.footer-section-title {
    font-size: var(--h3-font-size);
    color: var(--title-color);
    margin-bottom: var(--mb1);
}
.footer-links { 
    display: flex; 
    flex-direction: column;
    row-gap: 0.75rem;
}
.footer-link { 
    font-size: var(--normal-font-size);
    color: var(--text-color);
    transition: .3s;
}
    .footer-link:hover { 
        color: var(--skin-color); 
        padding-left: 0.5rem;
    }

/* Social Media Section */
.footer-social-section { }
.footer-socials { 
    display: flex; 
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-social { 
    font-size: 1.5rem; 
    color: var(--text-color);
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}
    .footer-social:hover { 
        color: var(--skin-color); 
        border-color: var(--skin-color);
        transform: translateY(-5px);
    }

/* Footer Copyright */
.footer-copy { 
    font-size: var(--smaller-font-size); 
    text-align: center; 
    color: var(--text-color);
    padding-top: 2rem;
}
    .footer-copy a { 
        font-family: var(--signature-font);
        color: var(--title-color);
    } 
        .footer-copy a:hover { color: var(--skin-color); }

/* Media Queries */

@media screen and (max-width: 1408px) {
    .container { margin-left: var(--mb25); margin-right: var(--mb25); }
}

@media screen and (max-width: 1216px) {
    .about-container { column-gap: 2.5rem; }
    .about-description { padding-right: 0; }
    .work-container { grid-template-columns: repeat(2, 330px); gap: 3rem; }
}

@media screen and (max-width: 1024px) {
    .container { margin-left: var(--mb15); margin-right: var(--mb15); }
    .sidebar { width: 280px; z-index: 999; transform: translateX(-100%); }
    .show-sidebar { transform: translateX(0); }
    /* Dim overlay behind the open sidebar */
    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s;
    }
    .sidebar-overlay.show { opacity: 1; pointer-events: auto; }
    .nav-logo, .btn-share { display: none; }
    .nav-menu { height: 100%; width: 100%; transform: rotate(0deg) translateX(0); display: flex; justify-content: center; }
    .nav-list { flex-direction: column; height: 100%; justify-content: center; align-items: center; }
    .nav-link { padding: 1rem 0; line-height: 1.5; }
        .nav-link.active-link::after, .nav-link:hover::after { bottom: 0; }
    .nav-close { display: block; }
    .nav-toggle { display: flex; }

    .main { margin-left: 0; }

    .about-container { grid-template-columns: 1fr; row-gap: 2.5rem; }
    .about-img { width: 100%; max-width: 350px; }
    .about-data { text-align: center; }
    .about-info { justify-content: center; }
    .about-box { padding: 0.75rem .5rem; }
    .about-description { padding: 0 4rem; text-align: center; }

    .qualification-container { grid-template-columns: repeat(2, 290px); }
    .cv-card {
        padding: 1.75rem 1.5rem;
        max-width: 350px;
    }
    .cv-button {
        max-width: 180px;
        padding: 0.7rem 1.25rem;
    }
    
    .skills-container { grid-template-columns: 340px 300px; }
    .skills-list { row-gap: 1.7rem; }

    .work-card { padding: 1rem; }
    .work-img { margin-bottom: var(--mb075); }
    .work-title { margin-bottom: var(--mb025); }

    .services-container { grid-template-columns: repeat(3, 220px); }

    .testimonial-card { padding: 1.25rem 1.5rem; }

    .client-card { min-width: 150px; padding: 1.25rem 1rem; }

    .portfolio-item-details { margin-bottom: var(--mb15); }
    .details-info li { margin-bottom: var(--mb05); }
    .details-title { margin-bottom: var(--mb075); }

    /* Prevent theme toggle from overlapping nav-toggle on tablets */
    .theme-toggle { right: 4.5rem; }
}

@media screen and (max-width: 768px) {
    .about-img { width: 250px; }
    .qualification-container { grid-template-columns: 1fr; row-gap: 3rem; }
    .skills-container { grid-template-columns: 1fr; row-gap: 3rem; }
    .work-container { grid-template-columns: repeat(2, 1fr); }

    .services-container { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .services-content { padding: 3.5rem .5rem 1.25rem 1.5rem; }
    .services-icon { font-size: 1.5rem; }
    /* Fix services modal width so it doesn't overflow phone screens */
    .services-modal-content { width: min(500px, calc(100vw - 2rem)); }

    .client-card { min-width: 130px; }
    .client-logo { width: 70px; height: 70px; }

    /* Contact: single fluid column instead of fixed 360px */
    .contact-container { grid-template-columns: 1fr; row-gap: 3rem; }
    
    .footer-container { 
        grid-template-columns: repeat(2, 1fr); 
        row-gap: 3rem; 
        column-gap: 2rem;
    }
    .footer-social-section {
        grid-column: 1 / -1;
    }
    .footer-bg { padding: 2rem 0 1.5rem; }
    .footer-copy { padding-top: 1.5rem; }

    /* Fix portfolio popup width for tablets/phones */
    .portfolio-popup-inner { width: min(420px, calc(100vw - 2rem)); padding: 2.8rem 1.5rem 2.5rem; }
    .portfolio-popup-content { grid-template-columns: 1fr; row-gap: 1.6rem; }
    .details-title { font-size: var(--normal-font-size); }
    .portfolio-popup-close { top: .5rem;  }
}

@media screen and (max-width: 576px) {
    /* Nav toggle moves to left, so restore theme toggle to top-right */
    .nav-toggle { right: initial; left: 1.5rem; }
    .theme-toggle { right: 1.5rem; }

    /* Reduce top padding on all sections for phones */
    .section { padding: 4.5rem 0 1.5rem; }

    .home { background-image: none; height: initial; align-items: initial; padding: 7rem 0 2rem; }
    .home-container {
        grid-template-columns: 1fr;
        row-gap: 1.5rem;
        justify-items: center;
    }
    .home-img {
        grid-row: 1;
        grid-column: 1;
        display: block;
        width: 220px;
        height: 220px;
        justify-self: center;
    }
    .home-data {
        grid-row: 2;
        grid-column: 1;
        text-align: center;
    }
    .home-description { max-width: 100%; }
    .my-info { display: none; }
    .home-social {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        column-gap: 1.5rem;
        margin-bottom: 0.5rem;
        order: -1;
    }
    .home-social-follow { display: none; }
    .home-social-links { flex-direction: row; column-gap: 1rem; }
    .home-social-link { font-size: 1.2rem; }

    .about-img { width: 100%; max-width: 280px; }
    .about-info { grid-template-columns: repeat(3, 1fr); }
    .about-description { padding: 0; }

    /* Services: single column on phones */
    .services-container { grid-template-columns: 1fr; }
    .services-content { padding: 4rem 1.5rem 1.5rem 1.5rem; }
    .services-modal-content { padding: 4.5rem 1.5rem 2.5rem; width: calc(100vw - 2rem); }
    .services-modal-description { padding: 0; }

    /* Portfolio popup — full-width on phones */
    .portfolio-popup-inner { width: calc(100vw - 2rem); padding: 2.5rem 1rem 1.5rem; }

    /* Fluid single-column grids */
    .work-container, .contact-container { grid-template-columns: 1fr; }

    .cv-card {
        padding: 1.5rem 1.25rem;
    }
    .cv-title {
        font-size: var(--h3-font-size);
    }
    .cv-description {
        font-size: var(--smaller-font-size);
    }
    .cv-button {
        max-width: 100%;
        padding: 0.7rem 1.25rem;
    }

    .footer-container { 
        grid-template-columns: 1fr;
        row-gap: 2.5rem;
    }
    .footer-info,
    .footer-quick-links,
    .footer-social-section {
        text-align: center;
    }
    .footer-socials {
        justify-content: center;
    }

}

@media screen and (max-width: 350px) {
    .container { margin-left: var(--mb1); margin-right: var(--mb1); }
    .home-img { width: 180px; height: 180px; }
    .home-title { font-size: var(--h1-font-size); }
    .home-subtitle { font-size: var(--normal-font-size); }
    
    .about-info { grid-template-columns: repeat(2, 1fr); row-gap: .5rem; }
    .work-container, .skills-container, .qualification-container, .contact-container { grid-template-columns: 1fr; }
    .skills-title { font-size: var(--normal-font-size); }
    .work-item { font-size: var(--smaller-font-size); }
    .work-filters { column-gap: .25rem; flex-wrap: wrap; row-gap: .5rem; }
    .services-container { grid-template-columns: 1fr; }
    .services-content { padding: 3.5rem 1rem 1.25rem 1rem; }
    .section-title { font-size: var(--h2-font-size); }
}