/* ========================================
   MODERN KGTECH WEBSITE - CSS
   ======================================== */

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Kolory z logo - gradient zielony */
    --primary-color: #05957a;
    --primary-light: #5ab888;
    --secondary-color: #2d7a6e;
    --accent-color: #3dd9b3;

    /* Neutralne */
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;

    /* Cienie */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);

    /* Gradienty */
    --gradient-primary: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(90, 184, 136, 0.95) 0%, rgba(5, 149, 122, 0.95) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: url("assets/img/bg.jpg") no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
    position: relative;
}

/* Decorative lines from page.kgtech.pl */
.lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.lines__left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 468px;
    height: 468px;
    background: url("assets/img/line-left.svg") no-repeat;
    background-size: cover;
}

.lines__right {
    position: absolute;
    top: 0;
    right: 0;
    width: 468px;
    height: 468px;
    background: url("assets/img/line-right.svg") no-repeat;
    background-size: cover;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER - STICKY WITH ANIMATION
   ======================================== */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.95);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    transition: padding 0.3s ease;
}

header.scrolled .container {
    padding: 0.7rem 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-text small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
}

.logo img {
    height: 40px;
    transition: height 0.3s ease;
}

header.scrolled .logo img {
    height: 35px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

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

nav a.cta-nav {
    background: var(--gradient-primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

nav a.cta-nav::after {
    display: none;
}

nav a.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* ========================================
   HERO SECTION - MODERN GRADIENT
   ======================================== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
    color: white;
    z-index: 1;
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#hero h1 small {
    display: block;
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: 1rem;
    opacity: 0.95;
}

#hero h1 small i {
    margin-right: 0.5rem;
}

.hero-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.hero-services span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.95;
}

.hero-services i {
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.cta-button.primary {
    background-color: white;
    color: var(--primary-color);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.cta-button.secondary {
    background-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.cta-button.secondary:hover {
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    animation: bounce 2s infinite;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
    background: white;
    padding: 4rem 0;
    box-shadow: var(--shadow-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

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

.stat-item i,
.stat-icon {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-style: normal;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* ========================================
   SECTIONS - GENERAL
   ======================================== */
section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

section:not(#hero) {
    background-color: var(--bg-white);
}

section:nth-child(even):not(#hero) {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.section-intro {
    max-width: 700px;
    margin: 1.5rem auto 0;
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Scroll reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-item i,
.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    font-style: normal;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-category {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-category:hover::before {
    transform: scaleX(1);
}

.service-category:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.service-category:hover .category-icon {
    transform: rotate(10deg) scale(1.1);
}

.category-icon i,
.category-icon {
    font-size: 2rem;
    color: white;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-category h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.service-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.service-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-item.featured {
    background: linear-gradient(135deg, rgba(90, 184, 136, 0.1) 0%, rgba(5, 149, 122, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--primary-light);
    position: relative;
}

.service-item .external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-item .external-link:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.project-card:hover::before {
    opacity: 0.03;
}

.project-card.featured {
    border: 2px solid var(--primary-light);
    box-shadow: var(--shadow-lg);
}

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

.project-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.project-icon i,
.project-icon {
    color: white;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.project-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.badge {
    background: linear-gradient(135deg, rgba(90, 184, 136, 0.15) 0%, rgba(5, 149, 122, 0.15) 100%);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--primary-light);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.project-link:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

/* ========================================
   REFERENCES SECTION
   ======================================== */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.reference-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.reference-stars {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1;
}

.reference-quote {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-color);
}

.reference-quote p {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.05rem;
}

.reference-author {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.reference-author strong {
    color: var(--text-color);
    font-size: 1.1rem;
}

.reference-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cta-box {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--gradient-overlay);
    border-radius: 20px;
    color: white;
}

.cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
}

.contact-left h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.contact-row:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.contact-row .icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.contact-row strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.contact-row p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-row a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-row a:hover {
    color: var(--primary-light);
}

.email-links {
    margin: 0;
    line-height: 1.8;
}

.email-links a {
    display: inline-block;
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.company-data,
.service-area {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.company-data h4,
.service-area h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.company-data p,
.service-area p {
    margin-bottom: 0.7rem;
    color: var(--text-color);
}

.small-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.service-area ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-area li {
    padding: 0.7rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
}

.service-area li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* Map Section */
.map-section {
    margin-top: 4rem;
    text-align: center;
}

.map-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.map-container {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 12px;
}

.map-directions {
    margin-top: 1.5rem;
}

.directions-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.directions-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: white;
}

.footer-section p {
    margin-bottom: 0.7rem;
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-light);
    transform: translateX(3px);
}

.footer-small {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.7rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Messenger Button */
.messenger-button {
    position: fixed !important;
    bottom: 100px !important;
    right: 30px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00B2FF 0%, #006AFF 100%) !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 106, 255, 0.4) !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.messenger-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 106, 255, 0.6);
}

.messenger-button svg {
    width: 32px;
    height: 32px;
}

/* Facebook Messenger customization */
.fb-customerchat iframe {
    bottom: 90px !important;
    right: 20px !important;
}

@media (max-width: 768px) {
    .messenger-button {
        width: 50px;
        height: 50px;
        bottom: 80px;
        right: 20px;
    }

    .messenger-button svg {
        width: 26px;
        height: 26px;
    }

    .fb-customerchat iframe {
        bottom: 80px !important;
        right: 10px !important;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 20px;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    #hero {
        min-height: 90vh;
        padding-top: 100px;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero h1 small {
        font-size: 1rem;
    }

    .hero-services {
        gap: 1rem !important;
        font-size: 0.9rem !important;
    }

    .hero-services span {
        flex: 0 0 auto;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

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

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

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

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .map-container iframe {
        height: 300px;
    }

    .directions-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        gap: 0.7rem;
    }

    .logo img {
        height: 32px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-text small {
        font-size: 0.65rem;
    }

    #hero h1 {
        font-size: 1.6rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .project-card {
        padding: 2rem;
    }

    .reference-card {
        padding: 1.5rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}
