/* ============================================
   EGEMEN TİCARET - STYLE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #0071BC;
    --blue-dark: #005a96;
    --blue-light: #e8f4fd;
    --green: #4CAF50;
    --green-dark: #388E3C;
    --red: #E53935;
    --text: #222;
    --text-light: #555;
    --bg: #fff;
    --bg-alt: #f5f8fa;
    --shadow: 0 2px 16px rgba(0,0,0,0.08);
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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


/* ============ NAVBAR ============ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

#navbar.scrolled {
    background: #fff;
    border-bottom-color: #e0e0e0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.nav-logo img {
    height: 260px;
    width: auto;
    margin: -85px 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text);
    font-size: 15px;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--blue);
}

.nav-link-phone {
    display: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s, transform 0.2s;
}

.nav-phone:hover {
    background: var(--green-dark);
    transform: scale(1.03);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}


/* ============ HERO ============ */
.hero {
    margin-top: 90px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #e8f4fd 0%, #d3ecfa 50%, #c5e7f9 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 550px;
    pointer-events: none;
}

.hero-bg-img {
    width: 100%;
    height: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 550px;
}

.hero-line1 {
    display: block;
    background: linear-gradient(135deg, #0071BC 0%, #00A6E0 50%, #48C9E8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-line2 {
    display: block;
    color: #0a3d62;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-light);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-desc strong {
    color: var(--blue);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}


/* ============ WATER WAVES ============ */
.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 5;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
}

.wave1 {
    animation: waveMove 7s linear infinite;
    opacity: 0.6;
}

.wave2 {
    animation: waveMove 5s linear infinite reverse;
    opacity: 0.7;
    bottom: -5px;
}

.wave3 {
    animation: waveMove 9s linear infinite;
    bottom: -8px;
}

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


/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.25s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76,175,80,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.btn-outline:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-2px);
}


/* ============ SECTION HEADERS ============ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}


/* ============ PRODUCTS ============ */
.products {
    padding: 80px 0;
    background: var(--bg-alt);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.product-img {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
}

.product-img img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px 24px 24px;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.product-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.product-cta {
    display: inline-block;
    color: var(--blue);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.product-cta:hover {
    color: var(--blue-dark);
}

/* ============ WATER QUALITY ============ */
.water-quality {
    padding: 80px 0;
    background: var(--bg);
    text-align: center;
}

.water-quality .section-header h2 {
    font-weight: 400;
    font-size: 38px;
}

.water-quality .section-header h2 strong {
    color: var(--blue);
    font-weight: 700;
}

.quality-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    margin-top: 56px;
}

.quality-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quality-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(200,230,255,0.3));
}

/* Outer rotating water ring */
.quality-circle::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top: 4px solid #5ba8d6;
    border-right: 4px solid #89c4e4;
    border-bottom: 4px solid #a8d8f0;
    border-left: 4px solid #3a8fc2;
    animation: waterSpin 8s linear infinite;
}

/* Inner glow ring */
.quality-circle::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top: 3px solid #b0ddf3;
    border-left: 3px solid #7ec4e6;
    animation: waterSpin 6s linear infinite reverse;
}

@keyframes waterSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Extra splash decoration */
.quality-item:nth-child(1) .quality-circle::before {
    border-width: 5px 3px 4px 6px;
}
.quality-item:nth-child(2) .quality-circle::before {
    border-width: 3px 6px 5px 4px;
    animation-duration: 10s;
}
.quality-item:nth-child(3) .quality-circle::before {
    border-width: 6px 4px 3px 5px;
    animation-duration: 7s;
}

.quality-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 2;
}

.quality-value {
    font-size: 44px;
    font-weight: 800;
    color: var(--blue-dark);
    line-height: 1;
    margin: 2px 0;
    position: relative;
    z-index: 2;
}

.quality-sub {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}


/* ============ ABOUT ============ */
.about {
    padding: 80px 0;
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.about-text > p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-light);
    border-radius: 12px;
}

.feature h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature p {
    font-size: 14px;
    color: var(--text-light);
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    max-height: 480px;
    border-radius: var(--radius);
}


/* ============ CONTACT ============ */
.contact {
    padding: 80px 0;
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: var(--blue);
    color: #fff;
}

.contact-card {
    padding: 0;
}

.contact-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.85);
}

.contact-phone {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 8px;
    transition: opacity 0.2s;
}

.contact-phone:hover {
    opacity: 0.85;
}

.contact-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.contact-map {
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
}


/* ============ FOOTER ============ */
.footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.6);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    font-size: 13px;
}


/* ============ FLOATING BUTTON ============ */
.float-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99;
    width: 60px;
    height: 60px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(76,175,80,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse-ring 2s infinite;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(76,175,80,0.5);
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(76,175,80,0.4); }
    70% { box-shadow: 0 0 0 16px rgba(76,175,80,0); }
    100% { box-shadow: 0 0 0 0 rgba(76,175,80,0); }
}


/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quality-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {

    /* --- NAVBAR --- */
    .nav-container {
        height: 70px;
    }

    .nav-logo img {
        height: 160px;
        margin: -50px 0;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px 24px 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        gap: 0;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        padding: 14px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 16px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link-phone {
        display: block;
        background: var(--green);
        color: #fff;
        text-align: center;
        border-radius: 50px;
        padding: 12px 0;
        margin-top: 8px;
        font-weight: 600;
        border-bottom: none;
    }

    .nav-phone {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* --- HERO --- */
    .hero {
        margin-top: 70px;
        min-height: auto;
        padding: 0;
    }

    .hero-content {
        padding: 40px 20px 120px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-desc {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .hero-bg {
        width: 60%;
        right: -10px;
        opacity: 0.3;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }

    .waves {
        height: 50px;
    }

    /* --- SECTIONS --- */
    .section-header h2,
    .about-text h2 {
        font-size: 26px;
    }

    .section-header p {
        font-size: 15px;
    }

    .products,
    .water-quality,
    .about,
    .contact {
        padding: 50px 0;
    }

    /* --- PRODUCTS --- */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-img {
        height: 160px;
        padding: 12px;
    }

    .product-img img {
        max-height: 130px;
    }

    .product-info {
        padding: 14px 16px 18px;
    }

    .product-info h3 {
        font-size: 15px;
    }

    .product-info p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    /* --- WATER QUALITY --- */
    .water-quality .section-header h2 {
        font-size: 26px;
    }

    .quality-grid {
        gap: 24px;
    }

    .quality-circle {
        width: 150px;
        height: 150px;
    }

    .quality-value {
        font-size: 32px;
    }

    .quality-label {
        font-size: 12px;
    }

    .quality-sub {
        font-size: 11px;
    }

    /* --- ABOUT --- */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        max-height: 260px;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    /* --- CONTACT --- */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 28px 24px;
    }

    .contact-phone {
        font-size: 22px;
    }

    .contact-map {
        min-height: 280px;
    }

    .contact-map iframe {
        min-height: 280px;
    }

    /* --- FOOTER --- */
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    /* --- FLOAT BTN --- */
    .float-btn {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .quality-grid {
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 28px;
    }
}
