/* Preloader Styles */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.skeleton-text {
    height: 1em;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 2rem;
    width: 70%;
    margin-bottom: 1rem;
}

.skeleton-card {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.skeleton-img {
    width: 100%;
    height: 200px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Hide content while loading */
body.loading #main-content {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* Preloader fade out */
#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* General Styles */
:root {
    --primary-color: #5cb85c;
    --secondary-color: #4cae4c;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #6c757d;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --container-padding: 15px;
    --icon-contrast: brightness(1.5) contrast(1.2);
}

/* Prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Container adjustments */
.container, .container-fluid {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Row adjustments */
.row {
    margin-left: calc(-0.5 * var(--container-padding));
    margin-right: calc(-0.5 * var(--container-padding));
}

.row > * {
    padding-left: calc(0.5 * var(--container-padding));
    padding-right: calc(0.5 * var(--container-padding));
}

/* Hero Section Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(5deg); }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    overflow: visible;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 0 3rem;
    margin-top: 0;
    z-index: 1;
    min-height: auto;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-section .btn {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-section .btn-success {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 500;
}

.hero-section .btn-outline-success {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
    padding: 0.8rem 2rem;
    font-weight: 500;
}

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

.hero-section .badge {
    animation: fadeInUp 0.6s ease-out 0.1s both;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.hero-section .img-fluid {
    transition: var(--transition);
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hero-section .img-fluid:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        padding: 7rem 0 4rem;
        margin-top: 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .btn {
        display: inline-block;
        width: auto;
        margin: 0.5rem;
        padding: 0.6rem 1.5rem;
    }
    
    .hero-section .btn-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-section .d-flex.flex-wrap {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-section .img-container {
        margin-top: 2.5rem;
    }
    
    /* Ensure hero content is above any absolute positioned elements */
    .hero-content {
        position: relative;
        z-index: 10;
    }
}

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .hero-section {
        padding: 6rem 0 3rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* Animation Delays */
[data-aos="fade-up"] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(20px);
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Success Stories Section */
.testimonial-item {
    position: relative;
    padding: 30px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 25px;
    position: relative;
    padding-left: 30px;
}

.testimonial-content p::before {
    content: '"\201C';
    font-family: Georgia, serif;
    font-size: 60px;
    color: var(--primary-color);
    position: absolute;
    left: -15px;
    top: -20px;
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-info h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.author-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 0;
}

/* Circular Buttons */
.btn-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    background: white;
    color: var(--primary-color);
    border: 1px solid #eee;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-circle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(92, 184, 92, 0.3);
}

.btn-circle i {
    font-size: 1.2rem;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--dark-color) !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1rem;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(92, 184, 92, 0.9), rgba(41, 128, 185, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section p.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Hizmetler */
#hizmetler {
    padding: 100px 0;
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(92, 184, 92, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: var(--icon-contrast);
    transition: var(--transition);
}

/* Neden Shopify */
#neden-shopify {
    padding: 100px 0;
}

.feature-box {
    margin-bottom: 2rem;
}

.feature-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.feature-box h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Referanslar */
#referanslar {
    padding: 100px 0;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* İletişim */
#iletisim {
    padding: 100px 0;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 20px;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    padding-left: 0;
}

/* Responsive Düzenlemeler */
/* Services Section */
#hizmetler .card {
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
    height: 100%;
}

#hizmetler .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

#hizmetler .icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

/* Pricing Section */
#fiyatlandirma .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

#fiyatlandirma .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

#fiyatlandirma .card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

#fiyatlandirma .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

#fiyatlandirma .price span {
    font-size: 1rem;
    font-weight: 400;
}

#fiyatlandirma .list-group-item {
    border: none;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

#fiyatlandirma .list-group-item i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 1399.98px) {
    .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 991.98px) {
    :root {
        --container-padding: 15px;
    }
    
    .hero-section {
        text-align: center;
        padding: 30px 0;
        margin-top: 0;
        min-height: auto;
        display: block;
        position: relative;
        z-index: 1;
        overflow: visible;
    }
    
    /* Mobile image styling */
    .hero-section .mobile-hero-img {
        margin: -20px -15px 20px -15px;
        border-radius: 0 !important;
        max-width: 100vw;
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-section .container {
        padding-top: 0;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    :root {
        --container-padding: 15px;
    }
    
    .container {
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }
    
    #hizmetler .col-md-6,
    #fiyatlandirma .col-md-6 {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    #hizmetler .card,
    #fiyatlandirma .card {
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
        position: relative;
        z-index: 2;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    /* Contact section fixes */
    #iletisim {
        position: relative;
        z-index: 10;
        overflow: visible;
    }
    
    #iletisim .container {
        position: relative;
        z-index: 10;
    }
    
    #iletisim .btn,
    #iletisim a[href^="tel:"],
    #iletisim a[href^="mailto:"] {
        position: relative;
        z-index: 20;
        pointer-events: auto;
    }
    
    #iletisim .bg-pattern,
    #iletisim .position-absolute {
        z-index: 1;
    }
    
    /* Ensure buttons are clickable */
    .btn {
        position: relative;
        z-index: 20;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}
