:root {
    --primary-color: #000000;
    --accent-color: #0f8cc6;
    --text-color: #333;
    --bg-main: #ffffff;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --card-bg: #ffffff;
    --transition: all .3s ease
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden
}

a {
    text-decoration: none;
    color: inherit
}

ul {
    list-style: none
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px)
    }

    100% {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: .2;
        transform: scale(1)
    }

    50% {
        opacity: .5;
        transform: scale(1.05)
    }
}

@keyframes floatHover {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-5px)
    }
}

@keyframes slide-logos {
    0% {
        transform: translateX(0%)
    }

    100% {
        transform: translateX(-50%)
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000
}

.logo {
    display: flex;
    align-items: center;
    height: 100%
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition)
}

.logo-img:hover {
    transform: scale(1.05)
}

.nav-links {
    display: flex;
    gap: 2rem
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
    position: relative
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width .3s ease
}

.nav-links a:hover::after {
    width: 100%
}

.nav-links a:hover {
    color: var(--accent-color)
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px
}

.burger div {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition)
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 10% 80px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    gap: 50px
}

.hero-content {
    flex: 1;
    max-width: 600px
}

.hero-content h3 {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--accent-color);
    margin-bottom: 10px
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2
}

.hero-content h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 20px;
    min-height: 40px;
    color: var(--text-color)
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: 30px;
    color: var(--text-color);
    opacity: .9
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    font-size: clamp(.9rem, 2vw, 1rem);
    text-align: center;
    cursor: pointer
}

.btn-primary {
    background: var(--accent-color);
    color: white
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .2)
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: slideInFromRight .7s ease-out .2s backwards;
    max-width: 450px
}

.hero-img::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 350px;
    max-height: 350px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    filter: blur(50px);
    z-index: 1;
    animation: pulseGlow 3s infinite
}

.hero-img img {
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
    position: relative;
    z-index: 2
}

.section {
    padding: 80px 10%
}

.bg-light {
    background: var(--bg-light)
}

.container {
    max-width: 1200px;
    margin: 0 auto
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px
}

.section-title::after {
    content: "";
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%)
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--text-color);
    opacity: .8;
    margin-top: 20px
}

.about-text {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.8
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px
}

.info-item {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition)
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1)
}

.info-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    min-width: 25px
}

.info-item span {
    font-size: clamp(.9rem, 2vw, 1rem)
}

.skills-container {
    max-width: 900px;
    margin: 0 auto
}

details.techpack {
    margin: 20px 0;
    border: 1px solid var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .991);
    transition: var(--transition)
}

details.techpack:hover {
    box-shadow: 0 5px 15px rgb(0, 136, 255)
}

details>summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 20px;
    font-weight: 600;
    background: var(--bg-light);
    position: relative;
    font-size: clamp(.95rem, 2.5vw, 1.05rem);
    color: var(--primary-color);
    transition: var(--transition)
}

details>summary::-webkit-details-marker {
    display: none
}

details>summary::after {
    content: "▼";
    position: absolute;
    right: 20px;
    transition: transform .3s ease;
    color: var(--accent-color);
    font-size: .8rem
}

details[open]>summary::after {
    transform: rotate(180deg)
}

details[open] summary {
    background: linear-gradient(90deg, rgba(15, 140, 198, .1), transparent);
    border-bottom: 2px solid var(--accent-color)
}

.tech-content {
    padding: 25px 20px
}

.logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 15px;
    justify-items: center
}

.logo {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--bg-light);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    position: relative;
    overflow: hidden;
    animation: floatHover 3s infinite ease-in-out
}

.logo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 140, 198, .1), rgba(0, 0, 0, .05));
    opacity: 0;
    transition: var(--transition)
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: none;
    transition: var(--transition);
    position: relative;
    z-index: 1
}

.logo:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 20px rgba(15, 140, 198, .2);
    animation: none
}

.logo:hover::before {
    opacity: 1
}

.logo:hover img {
    filter: grayscale(0)
}

#companies {
    overflow: hidden
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px
}

.project-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 140, 198, .15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    transition: var(--transition);
    display: flex;
    flex-direction: column
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .14)
}

.project-preview {
    position: relative;
    background: #e7edf2;
    overflow: hidden
}

.project-browser-bar {
    height: 40px;
    background: #f8fafc;
    border-bottom: 1px solid rgba(15, 140, 198, .18);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px
}

.browser-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0
}

.browser-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block
}

.browser-dots i:nth-child(1) {
    background: #ff5f56
}

.browser-dots i:nth-child(2) {
    background: #ffbd2e
}

.browser-dots i:nth-child(3) {
    background: #27c93f
}

.project-domain {
    font-size: .82rem;
    color: #4f5b68;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.project-preview-open {
    margin-left: auto;
    color: var(--accent-color);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    transition: var(--transition)
}

.project-preview-open:hover {
    background: rgba(15, 140, 198, .12)
}

.project-frame {
    --preview-scale: .68;
    height: 250px;
    overflow: hidden;
    background: #fff
}

.project-frame iframe {
    width: calc(100% / var(--preview-scale));
    height: calc(100% / var(--preview-scale));
    border: 0;
    transform: scale(var(--preview-scale));
    transform-origin: top left;
    pointer-events: none
}

.preview-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: .72rem;
    font-weight: 600;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    padding: 5px 9px;
    border-radius: 999px;
    backdrop-filter: blur(2px)
}

.project-preview-mtn {
    background: #eef3f8
}

.mtn-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
    background: #fff
}

.mtn-shot {
    display: block;
    flex: 0 0 160px;
    scroll-snap-align: start;
    aspect-ratio: 10/16;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(15, 140, 198, .2)
}

.mtn-gallery::-webkit-scrollbar {
    height: 8px
}

.mtn-gallery::-webkit-scrollbar-thumb {
    background: rgba(15, 140, 198, .45);
    border-radius: 999px
}

.mtn-gallery::-webkit-scrollbar-track {
    background: rgba(15, 140, 198, .12);
    border-radius: 999px
}

.mtn-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease
}

.mtn-shot:hover img {
    transform: scale(1.04)
}

body.lightbox-open {
    overflow: hidden
}

.mtn-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 16, .9);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease
}

.mtn-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto
}

.mtn-lightbox-close,
.mtn-lightbox-nav {
    border: 0;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    transition: var(--transition)
}

.mtn-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.25rem;
    display: grid;
    place-items: center
}

.mtn-lightbox-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.1rem;
    display: grid;
    place-items: center;
    flex-shrink: 0
}

.mtn-lightbox-close:hover,
.mtn-lightbox-nav:hover {
    background: rgba(255, 255, 255, .26)
}

.mtn-lightbox-figure {
    width: min(90vw, 850px);
    max-height: 88vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.mtn-lightbox-figure img {
    width: 100%;
    max-height: calc(88vh - 56px);
    object-fit: contain;
    border-radius: 14px;
    background: #0b1118;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .45)
}

.mtn-lightbox-meta {
    color: #f3f7fb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .95rem;
    padding: 0 4px
}

#mtn-lightbox-counter {
    font-weight: 700;
    color: #99dcff
}

.project-content {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.project-content h3 {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--primary-color)
}

.project-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: .92rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(15, 140, 198, .08);
    transition: var(--transition)
}

.project-link:hover {
    color: var(--primary-color);
    background: rgba(15, 140, 198, .16)
}

.logo-slider-container {
    overflow: hidden;
    padding: 30px 0;
    margin: 40px 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, .05)
}

.logo-slider {
    display: inline-block;
    animation: slide-logos 12s linear infinite;
    white-space: nowrap
}

.logo-slider img {
    height: 60px;
    width: auto;
    margin: 0 40px;
    filter: none;
    opacity: 1;
    transition: var(--transition);
    display: inline-block;
    vertical-align: middle
}

.logo-slider img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1)
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0
}

.timeline::after {
    content: "";
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%
}

.timeline-item::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border: 4px solid var(--accent-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1
}

.left {
    left: 0;
    padding-right: 40px
}

.right {
    left: 50%;
    padding-left: 40px
}

.left::after {
    right: -12px
}

.right::after {
    left: -12px
}

.content {
    padding: 25px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, .1);
    transition: var(--transition)
}

.content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .15)
}

.content h3 {
    color: var(--primary-color);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 8px
}

.content h4 {
    color: var(--accent-color);
    font-size: clamp(.95rem, 2vw, 1.05rem);
    margin-bottom: 10px;
    font-weight: 500
}

.content p {
    font-size: clamp(.9rem, 2vw, 1rem);
    line-height: 1.6
}

.quick-contact {
    padding: 60px 10%;
    background: var(--bg-light)
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: var(--white);
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
    transition: var(--transition);
    justify-content: center
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.3rem
}

.contact-item span {
    font-size: clamp(.9rem, 2vw, 1rem);
    font-weight: 500
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
    color: var(--accent-color)
}

footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 5%
}

.footer-content {
    max-width: 800px;
    margin: 0 auto
}

.footer-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 15px
}

.footer-content p {
    margin-bottom: 30px;
    font-size: clamp(1rem, 2vw, 1.1rem);
    opacity: .9
}

.social-float {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, .1);
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    transition: var(--transition);
    backdrop-filter: blur(5px)
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, .3)
}

.social-link.github:hover {
    background: #333;
    border-color: #333
}

.social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5
}

.social-link.twitter:hover {
    background: #000000;
    border-color: #000000
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2
}

.social-link.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    border-color: transparent
}

.copyright {
    margin-top: 40px;
    opacity: .7;
    font-size: clamp(.85rem, 2vw, .95rem)
}

@media (max-width:768px) {
    .navbar {
        padding: 1rem 5%
    }

    .logo-img {
        height: 42px
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: .3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, .05);
        padding: 20px 0;
        gap: 0
    }

    .nav-links.active {
        right: 0
    }

    .nav-links li {
        padding: 15px 0
    }

    .burger {
        display: flex
    }

    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px)
    }

    .burger.toggle .line2 {
        opacity: 0
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px)
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 120px 5% 60px;
        gap: 40px
    }

    .hero-content {
        max-width: 100%
    }

    .hero-buttons {
        justify-content: center
    }

    .hero-img {
        max-width: 300px
    }

    .hero-img::before {
        max-width: 280px;
        max-height: 280px
    }

    .hero-img img {
        max-width: 280px
    }

    .section {
        padding: 60px 5%
    }

    .info-grid {
        grid-template-columns: 1fr
    }

    .logos {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 12px
    }

    .logo {
        width: 60px;
        height: 60px
    }

    .logo img {
        width: 35px;
        height: 35px
    }

    .logo-slider img {
        height: 45px;
        margin: 0 25px
    }

    .logo-slider {
        animation: slide-logos 20s linear infinite
    }

    .project-frame {
        height: 220px
    }

    .mtn-gallery {
        gap: 6px;
        padding: 8px
    }

    .mtn-shot {
        flex-basis: 145px
    }

    .mtn-lightbox {
        padding: 12px;
        gap: 8px
    }

    .mtn-lightbox-nav {
        width: 44px;
        height: 44px
    }

    .mtn-lightbox-figure {
        width: min(100%, 92vw)
    }

    .project-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px
    }

    .project-link {
        width: 100%;
        justify-content: center
    }

    .timeline::after {
        left: 20px
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px
    }

    .timeline-item::after {
        left: 11px
    }

    .left,
    .right {
        left: 0;
        padding-left: 60px
    }

    .contact-grid {
        grid-template-columns: 1fr
    }

    .social-float {
        gap: 12px
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px
    }
}

@media (max-width:480px) {
    .hero {
        padding: 100px 5% 40px
    }

    .logo-img {
        height: 38px
    }

    .hero-img {
        max-width: 250px
    }

    .hero-img::before {
        max-width: 240px;
        max-height: 240px
    }

    .hero-img img {
        max-width: 240px
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 25px;
        width: 100%
    }

    .section {
        padding: 50px 5%
    }

    details>summary {
        padding: 15px;
        font-size: .9rem
    }

    .tech-content {
        padding: 20px 15px
    }

    .logos {
        grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
        gap: 10px
    }

    .logo {
        width: 55px;
        height: 55px
    }

    .logo img {
        width: 32px;
        height: 32px
    }

    .content {
        padding: 20px
    }

    .project-frame {
        height: 190px
    }

    .mtn-gallery {
        gap: 5px;
        padding: 7px
    }

    .mtn-shot {
        flex-basis: 132px;
        border-radius: 7px
    }

    .mtn-lightbox {
        padding: 10px;
        gap: 6px
    }

    .mtn-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px
    }

    .mtn-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem
    }

    .mtn-lightbox-figure img {
        border-radius: 10px
    }

    .mtn-lightbox-meta {
        font-size: .85rem
    }

    .project-domain {
        font-size: .76rem
    }

    .preview-badge {
        font-size: .66rem;
        padding: 4px 8px
    }
}

.theme-toggle {
    margin-left: 15px;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition)
}

.theme-toggle:hover {
    background: var(--accent-color);
    color: #fff
}

body.dark {
    --primary-color: #ffffff;
    --text-color: #e6e6e6;
    --bg-main: #0f1115;
    --bg-light: #141821;
    --white: #161a20;
    --card-bg: #161a20
}

body {
    background: var(--bg-main)
}

body.dark .navbar {
    background: var(--card-bg)
}

body.dark .hero {
    background: linear-gradient(135deg, #0f1115 0%, #161a20 100%)
}

body.dark .info-item,
body.dark .content,
body.dark .contact-item,
body.dark details.techpack,
body.dark .logo,
body.dark .logo-slider-container,
body.dark .project-card {
    background: var(--card-bg)
}

body.dark .project-card {
    border-color: #273247;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35)
}

body.dark .project-preview {
    background: #0f1115
}

body.dark .project-browser-bar {
    background: #1a202b;
    border-bottom-color: #2c3748
}

body.dark .project-domain {
    color: #b9c1cc
}

body.dark .project-frame {
    background: #0f1115
}

body.dark .project-link {
    background: rgba(15, 140, 198, .15)
}

body.dark .project-preview-mtn {
    background: #0f1115
}

body.dark .mtn-gallery {
    background: #111824
}

body.dark .mtn-shot {
    border-color: #2c3748
}
/* =======================
   BOUTON DEVIS FLOTTANT
======================= */
.devis-fab {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 2000;
    transition: var(--transition);
}

.devis-fab:hover {
    transform: scale(1.1);
}

/* =======================
   PANNEAU FORMULAIRE
======================= */
.devis-panel {
    position: fixed;
    right: 25px;
    bottom: 100px;
    width: 340px;
    max-width: calc(100% - 40px);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    z-index: 2000;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

/* Etat ouvert */
.devis-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.devis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid var(--bg-light);
}

.devis-header h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.devis-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.devis-form {
    padding: 18px;
}

.devis-form .form-group {
    margin-bottom: 12px;
}

.devis-form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
    opacity: 0.8;
}

.devis-form input,
.devis-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--bg-light);
    background: var(--white);
    color: var(--text-color);
    font-family: inherit;
}

.devis-form input:focus,
.devis-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Dark mode compat */
body.dark .devis-form input,
body.dark .devis-form textarea {
    background: #0f1115;
    border-color: #242a36;
}
