:root {

    --bg: #ffffff;
    --text: #0f172a;
    --card: #f1f5f9;
    --border: #e2e8f0;
    --primary: #2563eb;
    --muted: #64748b;
    --primary-hover: #1d4ed8;

    --text-color: #1f2937;
    --muted-text: #5f6b7a;
    --card-bg: #ffffff;
    --card-border: #d9e1ea;
    --input-bg: #ffffff;
    --input-border: #c9d3df;
    --accent-color: #2563eb;


}



.card,
.project-card,
.about-card,
.contact-card {

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);

}

[data-theme="dark"] .card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .about-card,
[data-theme="dark"] .contact-card {

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

}

[data-theme="dark"] {

    --bg: #0b0f1a;
    --text: #e2e8f0;
    --card: #1e293b;
    --border: #334155;
    --muted: #64748b;
    --primary-hover: #3b82f6;

}

[data-theme="dark"] .btn:hover {

    background: var(--border);
    border-color: var(--border);
    color: var(--text);
    transform: translateY(-2px);

}

[data-theme="light"] body {

    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);

}


body {

    margin: 0;
    font-family: 'Segoe UI', sans-serif;

    transition:
        background-color 0.45s cubic-bezier(.4, 0, .2, 1),
        color 0.35s ease,
        opacity 0.25s ease;

    background-color: var(--bg);

    color: var(--text);

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);

    background-size: 40px 40px;

}



.card,
.project-card,
.about-card,
.contact-card {

    background: var(--card);

    transition:
        background-color 0.45s cubic-bezier(.4, 0, .2, 1),
        color 0.35s ease,
        border-color 0.35s ease,
        transform 0.25s ease;

}



.card,
.project-card,
.about-card,
.contact-card {

    border: 1px solid var(--border);

}



h1,
h2,
h3,
h4 {

    font-weight: 600;
    margin-bottom: 10px;

}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2rem;
}

p {
    color: var(--muted);
}



.container {

    max-width: var(--container);
    margin: auto;
    padding: 2rem;

}



.btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 18px;

    background: var(--card);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 10px;

    text-decoration: none;

    transition:
        background .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .2s ease,

}

.btn:hover {

    background: var(--border);
    border-color: var(--border);
    transform: translateY(-2px);

}



a {

    color: var(--text);
    text-decoration: none;

    transition: color 0.2s ease;

}



.grid {

    display: grid;
    gap: 24px;

}

.section {
    margin-top: 60px;
}



@media (max-width:768px) {

    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

}



@media (max-width:768px) {

    .container {
        text-align: center;
    }

    .hero {

        grid-template-columns: 1fr !important;
        justify-items: center;

    }

    .hero-text {

        max-width: 500px;
        margin: auto;

    }



    .services {
        grid-template-columns: 1fr;
    }

}



section {
    margin-top: 70px;
}



body.lang-changing {

    opacity: 0;

}

.whatsapp-wrapper {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 999999;
}

.whatsapp-float {

    position: fixed;

    bottom: 24px;
    right: 24px;

    width: 58px;
    height: 58px;

    background: #25D366;

    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    animation: whatsappPulse 2.5s infinite;
    z-index: 999999;

    cursor: pointer;

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}

@keyframes whatsappPulse {

    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }

}

.whatsapp-float:hover {

    animation: none;

    transform: translateY(-4px) scale(1.05);

    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);

}



.whatsapp-tooltip {

    position: absolute;

    right: 70px;

    background: var(--card);

    color: var(--text);

    padding: 8px 12px;

    border-radius: 8px;

    font-size: 13px;

    white-space: nowrap;

    opacity: 0;

    transform: translateX(10px);

    pointer-events: none;

    transition: all .25s ease;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

}





.whatsapp-float:hover .whatsapp-tooltip {

    opacity: 1;

    transform: translateX(0);

}



@media (max-width:768px) {

    .whatsapp-tooltip {
        display: none;
    }

}

.whatsapp-popup {

    position: fixed;

    bottom: 90px;
    right: 24px;

    width: 260px;

    padding: 16px;

    border-radius: 12px;

    background: var(--card);

    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);

    opacity: 0;
    transform: translateY(10px);

    pointer-events: none;

    transition: .35s;
    z-index: 999999;

}

.whatsapp-popup.show {

    opacity: 1;
    transform: translateY(0);

    pointer-events: auto;

}

.popup-content {

    position: relative;

}

#closePopup {

    position: absolute;

    top: 6px;
    right: 8px;

    border: none;
    background: none;

    font-size: 18px;
    cursor: pointer;

}

.popup-close {

    position: absolute;

    right: 0;
    top: -4px;

    font-size: 18px;

    cursor: pointer;

    opacity: .6;

}

.popup-text {

    font-size: 14px;

    margin-bottom: 12px;

    line-height: 1.4;

}

.popup-btn {

    display: block;

    margin-top: 10px;

    padding: 8px;

    border-radius: 8px;

    background: #25D366;

    color: white;

    text-align: center;

}

.popup-btn:hover {

    transform: translateY(-2px);

}



@media (max-width:768px) {

    .whatsapp-popup {

        right: 16px;
        left: 16px;

        max-width: none;

    }

}

section {
    margin-bottom: 80px;
    margin-top: 80px;
}

.lazy-project {

    opacity: 0;
    transform: translateY(20px);

}

.lazy-project.visible {

    opacity: 1;
    transform: translateY(0);

    transition:
        opacity .6s ease,
        transform .6s ease;

}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

.home-services {
    margin-top: 24px;
    margin-bottom: 16px;
    padding-bottom: 0;
}