/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
    /* Color Palette - Logo matching (Teal & Green Accent) */
    --teal-primary: #174254;
    --teal-dark: #0f2b37;
    --teal-light: #eef5f8;
    --green-accent: #4a8d56;
    --green-hover: #3e7a49;
    --green-light: #e8f5eb;
    --green-soft: #5db06c;
    --white: #FFFFFF;

    /* Page background (very light, palette-aligned, slightly deeper) */
    --page-bg-1: #e8f1f5;
    --page-bg-2: #e7f7ed;
    
    --text-dark: #233138;
    --text-light: #596D76;
    --border-soft: rgba(23, 66, 84, 0.08);
    
    --font-main: 'Outfit', sans-serif;
    
    /* Shadows */
    --shadow-soft: 0 10px 40px rgba(23, 66, 84, 0.04);
    --shadow-hover: 0 15px 45px rgba(74, 141, 86, 0.12);
    --shadow-glow: 0 0 20px rgba(23, 66, 84, 0.3);
    
    /* Timings */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--page-bg-1) 0%, var(--page-bg-2) 60%, var(--teal-light) 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.accent-gradient {
    background: linear-gradient(120deg, var(--teal-primary), var(--green-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Scroll Indicator Bar
   ========================================================================== */
.scroll-progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(to right, var(--teal-primary), var(--green-accent));
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 900;
    border-bottom: 1px solid var(--border-soft);
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-soft);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-item {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--orange-accent);
    transition: var(--transition-smooth);
}

.nav-item:hover, .nav-item.active {
    color: var(--orange-accent);
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.btn-call-nav {
    background-color: var(--teal-primary);
    color: var(--white);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 24px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-call-nav:hover {
    background-color: var(--orange-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-orange);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger-menu span {
    width: 24px;
    height: 3px;
    background-color: var(--teal-primary);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero Section & Parallax Elements
   ========================================================================== */
.hero {
    position: relative;
    padding: 150px 0 100px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--teal-light);
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--green-soft), transparent);
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--teal-primary), transparent);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--teal-primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(74, 141, 86, 0.1);
    color: var(--green-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
}

.hero-image-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-smooth);
}

.hero-image-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

.hero-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: top;
}

.glass-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.5);
    animation: float 3s ease-in-out infinite;
}

.glass-badge i {
    font-size: 2rem;
}

.glass-badge strong {
    display: block;
    font-size: 1.25rem;
    color: var(--teal-primary);
}

.glass-badge span {
    font-size: 0.875rem;
    color: var(--text-light);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Button & Helper Utility Integration */
.btn-primary {
    background-color: var(--green-accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--green-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-outline {
    background-color: transparent;
    color: var(--teal-primary);
    border: 2px solid var(--teal-primary);
}

.btn-outline:hover {
    background-color: var(--teal-primary);
    color: var(--white);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.125rem;
    border-radius: 50px;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(74, 141, 86, 0.3);
}

.highlight {
    color: var(--green-accent);
}

.text-green {
    color: var(--green-accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition-smooth);
    cursor: pointer;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    padding: 80px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-soft);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background-color: var(--teal-light);
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--green-accent);
}

.stat-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--white);
    color: var(--teal-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-soft);
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--teal-primary);
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==========================================================================
   Services Section (Dynamic Staggered Bars)
   ========================================================================== */
.services-section {
    padding: 120px 0;
    background-color: var(--white);
}

.section-subtitle-motion {
    font-weight: 800;
    color: var(--green-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-title-motion {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--teal-primary);
    margin-bottom: 16px;
}

.section-desc-motion {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.services-grid-motion {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-motion-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding: 24px 40px;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.service-motion-bar:hover {
    transform: translateX(12px) scale(1.01);
    border-color: var(--green-accent);
    box-shadow: var(--shadow-hover);
}

.service-bar-main {
    display: flex;
    align-items: center;
    gap: 30px;
}

.icon-sphere {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--teal-light);
    color: var(--teal-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition-smooth);
}

.service-motion-bar:hover .icon-sphere {
    background-color: rgba(74, 141, 86, 0.1);
    color: var(--green-accent);
    transform: rotate(15deg) scale(1.1);
}

.service-bar-info h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--teal-primary);
    margin-bottom: 6px;
}

.service-bar-info p {
    color: var(--text-light);
    font-size: 0.98rem;
    max-width: 700px;
}

.btn-bar-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--teal-primary);
    color: var(--white);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.service-motion-bar:hover .btn-bar-action {
    background-color: var(--green-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Scroll-Responsive Call to Action Section
   ========================================================================== */
.cta-responsive {
    position: relative;
    padding: 100px 0;
    background-color: var(--teal-primary);
    overflow: hidden;
    color: var(--white);
}

.cta-scroll-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(74, 141, 86, 0.15) 0%, transparent 60%);
    pointer-events: none;
    transform: scale(0.8);
    transition: transform 1s ease;
}

/* Active Class based on scroll */
.cta-responsive.scrolled-in .cta-scroll-bg {
    transform: scale(1.2);
}

.cta-container {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-container h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.cta-container p {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-responsive {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}

.btn-call {
    background-color: var(--white);
    color: var(--teal-primary);
}

.btn-call:hover {
    background-color: var(--teal-light);
    transform: translateY(-3px);
}

.btn-wa {
    background-color: #25D366;
    color: var(--white);
}

.btn-wa:hover {
    background-color: #20BA56;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--teal-dark);
    color: var(--white);
    padding: 80px 0 0;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo {
    height: 46px;
    background-color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.footer-brand p {
    opacity: 0.7;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.footer-animation-strip {
    width: 150px;
    overflow: hidden;
}

.heart-pulse-svg {
    width: 100%;
    height: 30px;
}

.pulse-line-animated {
    stroke: var(--green-accent);
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawPulse 3s infinite linear;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: var(--green-accent);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.footer-links ul li a:hover {
    color: var(--green-accent);
    opacity: 1;
    padding-left: 6px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    opacity: 0.7;
    font-size: 0.95rem;
}

.accent-icon {
    color: var(--green-accent);
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    font-size: 0.88rem;
    opacity: 0.6;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials {
    display: flex;
    gap: 16px;
}

.socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.socials a:hover {
    background-color: var(--green-accent);
    color: var(--white);
}

/* ==========================================================================
   Floating Action Buttons (Scroll Triggered)
   ========================================================================== */
.floating-scroll-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
    transform: translateY(120px); /* Initially off-screen */
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

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

.float-btn {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    position: relative;
    transition: var(--transition-smooth);
}

.float-btn:hover {
    transform: scale(1.1) translateY(-2px);
}

.float-label {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

.float-label-short {
    display: none;
}

/* Hover durumunda rengi beyaz kalsın */
.float-btn:hover .float-label {
    color: var(--white);
}

.float-whatsapp {
    background-color: #25D366;
}

.float-phone {
    background-color: var(--green-accent);
    width: auto;
    padding: 0 24px;
    border-radius: 40px;
    flex-direction: row;
    gap: 10px;
    font-size: 24px;
}

.pulsating-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    z-index: -1;
    animation: rippleRing 2s infinite;
}

.float-whatsapp .pulsating-ring { border: 2px solid #25D366; }
.float-phone .pulsating-ring { 
    border: 2px solid var(--green-accent); 
    border-radius: 40px;
}

@keyframes rippleRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    will-change: transform, opacity;
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-scale { transform: scale(0.92); }

.revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Delay modifiers for elements */
.revealed[data-delay="100"] { transition-delay: 0.1s; }
.revealed[data-delay="150"] { transition-delay: 0.15s; }
.revealed[data-delay="200"] { transition-delay: 0.2s; }
.revealed[data-delay="300"] { transition-delay: 0.3s; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image-wrapper {
        max-width: 560px;
        margin: 0 auto;
    }
    .hero-image-card {
        transform: none;
    }
    .hero-subtitle {
        margin: 0 auto 32px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-motion-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .service-bar-main {
        width: 100%;
    }
    .service-bar-action {
        width: 100%;
    }
    .btn-bar-action {
        width: 100%;
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-bottom: 1px solid var(--border-soft);
        padding: 30px 24px;
        box-shadow: var(--shadow-soft);
        display: none;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .btn-call-nav {
        display: none;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero {
        padding: 130px 0 80px;
        min-height: auto;
    }

    .hero-img {
        height: 420px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .services-grid-motion {
        gap: 16px;
    }

    .service-motion-bar {
        padding: 18px 22px;
    }

    .service-bar-main {
        gap: 16px;
    }

    .icon-sphere {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .service-bar-info h3 {
        font-size: 1.05rem;
        line-height: 1.25;
        margin-bottom: 4px;
    }

    .service-bar-info p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .hero-features {
        gap: 16px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-container h2 {
        font-size: 2.4rem;
    }

    .cta-container p {
        font-size: 1.05rem;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 18px;
    }

    .header {
        padding: 16px 0;
    }

    .logo-img {
        height: 34px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-img {
        height: 320px;
    }

    .feature-item {
        width: 100%;
        justify-content: center;
    }

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

    .section-title-motion {
        font-size: 2.1rem;
    }

    .service-motion-bar {
        padding: 16px 18px;
    }

    .service-bar-info h3 {
        font-size: 1rem;
        line-height: 1.25;
    }

    .service-bar-info p {
        font-size: 0.86rem;
        line-height: 1.4;
    }

    .cta-container h2 {
        font-size: 2rem;
    }

    .floating-scroll-actions {
        right: 16px;
        bottom: 16px;
        gap: 10px;
    }

    .float-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .float-phone {
        padding: 0 16px;
        font-size: 20px;
    }

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

    .float-label-full {
        display: none;
    }

    .float-label-short {
        display: inline-block;
    }
}
