/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* CSS Custom Properties - Updated Palette from Logo */
:root {
    --primary-color: #00A9E0;   /* Bright Blue from F & D */
    --secondary-color: #1A2954; /* Dark Navy from N */
    --accent-color: #00C4FF;    /* A more vibrant cyan for highlights */
    --light-accent: #f0f8ff;    /* Very light blue background */
    --text-dark: #1A2954;
    --text-light: #5a6482;      /* Lighter, softer text color */
    --gradient-primary: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    --shadow-light: 0 4px 12px rgba(0, 169, 224, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 169, 224, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
}

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

section {
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: 'Montserrat', sans-serif; /* New Modern Font */
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 70px;
}

/* Navbar Styles */
.navbar {
    background: white;
    box-shadow: var(--shadow-light);
    height: 70px;
    transition: all 0.3s ease;
    padding: 0 1rem;
}

.navbar-brand img {
    height: 45px;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    margin: 0 5px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

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

.nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    /* Force custom bars to avoid data-URL issues */
    background-image: none !important;
    width: 1.6em;
    height: 1.6em;
    position: relative;
}

.navbar-toggler-icon::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 2.5px;
    background-color: var(--secondary-color); /* bar color */
    border-radius: 2px;
    box-shadow: 0 -6px 0 0 var(--secondary-color), 0 6px 0 0 var(--secondary-color);
}

/* Improve toggler button visibility */
.navbar-toggler {
    border: 1px solid rgba(0,0,0,0.4); /* Siyah çerçeve görünümü */
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
}

.navbar-toggler:hover {
    background-color: var(--light-accent);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(26,41,84,0.25);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Hero Section */
#hero {
    background: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

/* Hero glow blob'ları — modern arka plan */
#hero::before,
#hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

#hero::before {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--accent-color), transparent 70%);
    top: -120px;
    right: -80px;
}

#hero::after {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    bottom: -140px;
    left: -60px;
    opacity: 0.25;
}

#hero > .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    background: var(--light-accent);
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    cursor: default;
    user-select: none;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-custom {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: white;
    text-decoration: none;
}

.hero-microcopy {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--text-light);
    font-size: 0.88rem;
    font-weight: 500;
}

.hero-microcopy span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-microcopy i {
    color: var(--primary-color);
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .hero-microcopy {
        justify-content: center;
        font-size: 0.82rem;
        gap: 6px 14px;
    }
}

.trust-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.trust-badges-hero {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.trust-badge-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    cursor: default;
    user-select: none;
}

.trust-badge-hero:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.tech-item {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 169, 224, 0.3);
}

.tech-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.tech-item h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
}

/* Projects Section - Horizontal Timeline */
.projects-section {
    padding: 80px 0;
    background: #fff;
    overflow-x: hidden;
}

.projects-container {
    position: relative;
    max-width: 1100px;
    margin: 60px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 20px;
}

.projects-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--light-accent) 8%,
        var(--light-accent) 92%,
        transparent 100%);
    border-radius: 2px;
}

.project-item {
    position: relative;
    width: 25%;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center !important;
    left: auto !important;
}

/* Tek/çift sıra — dikeyde değişken konum (timeline estetiği) */
.project-item:nth-child(odd) {
    transform: translateY(-70px);
}

.project-item:nth-child(even) {
    transform: translateY(70px);
}

/* Nokta: yatay çizginin tam üstünde */
.project-item::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 22px;
    height: 22px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 169, 224, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:nth-child(odd)::after {
    top: auto;
    bottom: -82px;
    transform: translate(-50%, 0);
}

.project-item:nth-child(even)::after {
    top: -82px;
    transform: translate(-50%, 0);
}

/* Noktadan daireye ince çizgi */
.project-item::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    background: var(--light-accent);
    z-index: 1;
    transform: translateX(-50%);
}

.project-item:nth-child(odd)::before {
    bottom: -70px;
    height: 60px;
}

.project-item:nth-child(even)::before {
    top: -70px;
    height: 60px;
}

.project-item:hover::after {
    transform: translate(-50%, 0) scale(1.2);
    box-shadow: 0 4px 14px rgba(0, 169, 224, 0.55);
}

.project-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    cursor: default;
    border: 4px solid white;
}

.project-circle:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-hover);
}

.project-circle h5 {
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
    word-break: break-word;
    line-height: 1.3;
}

/* Services Section */
.services-section {
    background: var(--secondary-color);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background-image:
        radial-gradient(ellipse at 15% 20%, rgba(0, 169, 224, 0.18), transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(0, 196, 255, 0.12), transparent 55%),
        linear-gradient(var(--secondary-color), var(--secondary-color));
}

.services-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.services-section > .container {
    position: relative;
    z-index: 1;
}

.services-section h2 {
    color: white;
}

.services-section .lead {
    color: rgba(255,255,255,0.75);
}

.service-card {
    background: #fff;
    color: var(--text-dark);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

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

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background: var(--light-accent);
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.product-logo {
    height: 60px;
    max-height: 60px;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    width: auto;
    transition: all 0.3s ease;
    align-self: center;
}

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

.product-card h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
}

.product-card p {
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1;
}

.product-card ul {
    margin-bottom: 20px;
}

.product-card ul li {
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.product-card .btn {
    margin-top: auto;
    align-self: center;
    min-width: 140px;
}

/* Stats Section */
.stats-section {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 0;
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-logo-container {
    background: var(--light-accent);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
}

.about-logo {
    max-width: 570px;
    height: auto;
    width: 100%;
    display: block;
    margin: 0 auto;
}

.about-section h2 {
    color: var(--text-dark);
    font-weight: 700;
}

.about-section p, .about-section ul li {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
    background: var(--secondary-color);
    color: white;
    padding: 80px 0;
}

.contact-info {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-info h4 {
    color: white;
    font-weight: 600;
}

.contact-info i {
    color: var(--accent-color);
    width: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.contact-item:hover {
    background: rgba(0, 196, 255, 0.1);
    border-color: rgba(0, 196, 255, 0.3);
    color: white;
    transform: translateX(4px);
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
    width: 22px;
    flex-shrink: 0;
}

.contact-item span {
    font-size: 0.95rem;
    word-break: break-word;
}

.contact-map iframe {
    display: block;
    width: 100%;
    filter: grayscale(0.15) contrast(1.05);
    transition: filter 0.3s ease;
}

.contact-map iframe:hover {
    filter: grayscale(0) contrast(1);
}

.contact-form .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.contact-form .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.contact-form .form-control:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(0, 196, 255, 0.25);
}

.contact-form .btn {
    background: var(--gradient-primary);
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 196, 255, 0.3);
}

/* Footer */
.footer {
    background: #111a36;
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.footer-main {
    padding-bottom: 30px;
}

.footer-logo {
    height: 42px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-about {
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: rgba(0, 169, 224, 0.15);
    border: 1px solid rgba(0, 169, 224, 0.35);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
}

.footer-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.25s ease, padding-left 0.25s ease;
    display: inline-block;
}

.footer-links a::before {
    content: '›';
    margin-right: 6px;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
}

.footer-contact i {
    color: var(--accent-color);
    width: 18px;
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-contact a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: color 0.25s ease;
}

.footer-contact a:hover {
    color: white;
}

.footer-contact a:hover i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin-top: 10px;
}

@media (max-width: 767px) {
    .footer {
        padding: 40px 0 0;
        text-align: left;
    }
    .footer-main { padding-bottom: 20px; }
    .footer-title { margin-bottom: 12px; }
}

/* Carousel Styles */
.service-carousel-container, .product-carousel-container {
    position: relative;
    padding: 0;
    overflow: hidden;
}

/* Birleşik kontrol grubu — oklar + noktalar tek pill */
.carousel-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 32px auto 0;
    padding: 6px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 169, 224, 0.2);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(26, 41, 84, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Hizmetler bölümü (koyu arka plan) için uyarlama */
.services-section .carousel-controls {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Kontrolleri ortala */
.service-carousel-container,
.product-carousel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-carousel-container > .service-carousel,
.product-carousel-container > .product-carousel {
    width: 100%;
}

.carousel-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.services-section .carousel-btn {
    color: rgba(255, 255, 255, 0.9);
}

.carousel-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    background: transparent;
    color: var(--primary-color);
    transform: none;
}

.services-section .carousel-btn:disabled:hover {
    color: rgba(255, 255, 255, 0.9);
}

.carousel-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0 6px;
    flex-wrap: nowrap;
}

/* Segmented progress bars (Instagram-story tarzı) */
.indicator {
    width: 32px;
    height: 4px;
    border: none;
    padding: 0;
    border-radius: 2px;
    background: rgba(0, 169, 224, 0.22);
    transition: background 0.25s ease, width 0.3s ease, opacity 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.services-section .indicator {
    background: rgba(255, 255, 255, 0.22);
}

.indicator:hover {
    background: rgba(0, 169, 224, 0.5);
}

.services-section .indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.indicator.active {
    width: 44px;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px rgba(0, 169, 224, 0.4);
}

.services-section .indicator.active {
    background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.85));
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

.service-slide, .product-slide {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s ease-in-out;
}

.service-slide.active, .product-slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideInFromRight 0.6s ease-in-out;
}

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

/* Touch-friendly carousel improvements */
.service-carousel-container, .product-carousel-container {
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

/* (Eski absolute-positioning carousel-btn kuralları kaldırıldı —
   yeni pill kontrol grubu kullanılıyor) */

/* Animation Styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobilde yatay scroll içindeki kartlar ve hassas bölümler
   animasyonla gizli kalmasın — anında görünür olsun */
@media (max-width: 767px) {
    .service-card.animate-on-scroll,
    .product-card.animate-on-scroll,
    .item-card.animate-on-scroll,
    .item-card .animate-on-scroll,
    .project-item.animate-on-scroll,
    .stat-card.animate-on-scroll,
    .tech-item.animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Son güvenlik: reduced-motion tercihi veya hata durumunda görünür kal */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

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

/* Responsive Design */
@media (max-width: 991px) {
    #about .row { text-align: center; }
    .about-section .list-unstyled { display: inline-block; text-align: left; }
    .about-logo-container { min-height: 250px; margin-top: 20px; }
    .about-logo { max-width: 300px; }
    
    /* Tablet improvements */
    .service-card, .product-card {
        margin-bottom: 20px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .tech-item {
        padding: 20px 15px;
    }
}

@media (max-width: 767px) {
    .navbar { height: auto; }
    .hero-title { font-size: 2.5rem; }
    .stat-number { font-size: 2rem; }
    .services-section, .products-section, .about-section, .contact-section, .projects-section { padding: 40px 0; }
    .stats-section { padding: 30px 0; }
    
    /* Projects 2x2 grid on mobile */
    .projects-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        max-width: 100%;
        margin: 20px 0;
        padding: 0;
        align-items: stretch;
    }
    .projects-container::before { display: none; }
    .project-item {
        width: 100%;
        padding: 0;
        left: auto !important;
        text-align: center !important;
        display: flex;
        justify-content: center;
        transform: none !important;
    }
    .project-item::after,
    .project-item::before { display: none !important; }
    .project-circle {
        width: 100%;
        max-width: 160px;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 20px;
        padding: 16px;
    }
    .project-circle h5 { font-size: 1rem; }
    
    /* Mobile navigation improvements */
    .navbar-nav {
        text-align: center;
        padding: 20px 0;
    }
    
    .nav-link {
        padding: 10px 20px !important;
        margin: 5px 0;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(0, 169, 224, 0.1);
    }
    
    /* Mobile hero improvements */
    .hero-content {
        text-align: center;
    }
    
    .trust-badges-hero {
        justify-content: center;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 300px;
    }
    
    .tech-item {
        padding: 25px 20px;
    }
    
    /* Mobile Services Section Improvements */
    .service-card {
        padding: 25px 20px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    .service-card i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .service-card h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Mobile Products Section Improvements */
    .product-card {
        padding: 25px 20px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    .product-logo {
        height: 50px;
        max-height: 50px;
        max-width: 150px;
        margin-bottom: 15px;
    }
    
    .product-card h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .product-card p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .product-card ul li {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .product-card .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    /* Mobile contact form improvements */
    .contact-form .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile stats improvements */
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Mobil: tüm slaytları tek yatay scroll şerite dönüştür */
@media (max-width: 767px) {
    .service-carousel-container,
    .product-carousel-container {
        padding: 0;
        overflow: visible;
    }

    .service-carousel,
    .product-carousel {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 16px;
        gap: 16px;
        padding: 8px 16px 16px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .service-carousel::-webkit-scrollbar,
    .product-carousel::-webkit-scrollbar { display: none; }

    .service-slide,
    .product-slide,
    .service-slide .card-list-container,
    .product-slide .card-list-container {
        display: contents !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .item-card {
        flex: 0 0 82%;
        max-width: 82%;
        box-sizing: border-box;
        scroll-snap-align: center;
        margin: 0 !important;
    }

    /* Mobilde carousel kontrollerini tamamen gizle */
    .arrow-left,
    .arrow-right,
    .carousel-prev,
    .carousel-next,
    .carousel-controls,
    .service-carousel-container .carousel-indicators,
    .product-carousel-container .carousel-indicators {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .hero-badge { font-size: 0.9rem; padding: 8px 16px; }
    h2.fw-bold { font-size: 1.9rem; }
    .btn-custom, .btn-lg { padding: 12px 20px; font-size: 1rem; }
    #hero .d-flex { flex-direction: column; }
    #hero .btn { width: 100%; }
    
    /* Extra small mobile Services */
    .service-card { 
        padding: 20px 15px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    .service-card i {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }
    
    .service-card h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Extra small mobile Products */
    .product-card { 
        padding: 20px 15px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    .product-logo {
        height: 45px;
        max-height: 45px;
        max-width: 130px;
        margin-bottom: 12px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .product-card h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .product-card p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .product-card ul li {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .product-card .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 110px;
    }
    
    /* Touch improvements */
    .service-card, .product-card {
        touch-action: manipulation;
    }
    
    /* Section spacing for small screens */
    .services-section, .products-section {
        padding: 30px 0;
    }
    
    /* Better mobile section titles */
    .services-section h2, .products-section h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .services-section .lead, .products-section .lead {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

/* Mobile-specific improvements for better visibility */
@media (max-width: 480px) {
    /* Ultra small screens */
    .service-card, .product-card {
        padding: 18px 12px;
        margin-bottom: 12px;
    }
    
    .service-card i {
        font-size: 2rem;
    }
    
    .product-logo {
        height: 40px;
        max-height: 40px;
        max-width: 120px;
    }
    
    .service-card h4, .product-card h4 {
        font-size: 1rem;
    }
    
    .service-card p, .product-card p {
        font-size: 0.85rem;
    }
    
    .product-card ul li {
        font-size: 0.8rem;
    }
    
    .product-card .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    /* Section titles for very small screens */
    .services-section h2, .products-section h2 {
        font-size: 1.6rem;
    }
    
    .services-section .lead, .products-section .lead {
        font-size: 0.95rem;
    }
}

/* Mobilde kart gölge/dokunma etkileri */
@media (max-width: 767px) {
    .service-card {
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    }

    .product-card {
        box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    }

    .service-card:active, .product-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Utility */
.btn-loading { display: none; }
.btn-loading.d-none { display: none; }
.btn-loading:not(.d-none) { display: inline-flex; align-items: center; }
.counter-value { display: inline-block; }
.custom-alert { animation: slideInRight 0.3s ease-in-out; }
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
[role="button"] { cursor: pointer; }

/* ============================================
   MODERN ENHANCEMENTS
   ============================================ */

/* Yumuşak smooth scrolling ve focus */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Kart hover'ları için daha modern shadow */
.service-card, .product-card, .tech-item {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s ease;
}

/* Hero badge pulse effect */
.hero-badge {
    position: relative;
    overflow: hidden;
}
.hero-badge::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Section başlıklarında alt çizgi aksanı */
section h2.fw-bold {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
section h2.fw-bold::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}
.about-section h2.fw-bold::after {
    left: 0;
    transform: none;
}

/* Stat kartları için modern görünüm */
.stat-card {
    position: relative;
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
}
.stat-number {
    background: linear-gradient(45deg, #fff, rgba(255,255,255,0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buton modern touch */
.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Modern scroll-reveal için body padding-smooth */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobil navbar kompakt dropdown paneli (sağ üstten açılır) */
@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute !important;
        top: calc(100% + 8px);
        right: 12px;
        left: auto;
        width: min(280px, calc(100vw - 24px));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 10px;
        border-radius: 14px;
        box-shadow: 0 12px 32px rgba(26, 41, 84, 0.18),
                    0 2px 8px rgba(0, 0, 0, 0.06);
        border: 1px solid rgba(0, 169, 224, 0.12);
        display: block !important;
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
        transform-origin: top right;
        transition: opacity 0.22s ease,
                    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.22s ease;
        visibility: hidden;
        pointer-events: none;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        opacity: 1;
        transform: translateY(0) scale(1);
        visibility: visible;
        pointer-events: auto;
    }
    .navbar-nav {
        padding: 0 !important;
        gap: 2px;
    }
    .nav-link {
        font-size: 1rem;
        padding: 10px 16px !important;
        margin: 0 !important;
        border-radius: 8px;
        text-align: left;
    }
    .nav-link:hover,
    .nav-link.active {
        background: var(--light-accent);
    }
    .nav-link::after { display: none; }
}

/* Mobil hero — tek bölüm temiz görünüm */
@media (max-width: 767px) {
    #hero {
        min-height: auto;
        padding-top: 110px;
        padding-bottom: 50px;
    }
    #hero::before {
        width: 300px;
        height: 300px;
        top: -80px;
        right: -60px;
        opacity: 0.45;
    }
    #hero::after {
        width: 260px;
        height: 260px;
        bottom: -80px;
        opacity: 0.3;
    }
    .hero-title { font-size: clamp(2rem, 8vw, 2.75rem); }
    .hero-badge { font-size: 0.85rem; padding: 8px 14px; margin-bottom: 1.5rem; }

    /* Tech-grid mobilde gizli (glow arka plan ile yerini tuttu) */
    .hero-illustration { display: none !important; }

    /* Contact bölümü mobil polish */
    .contact-info { padding: 20px; }

    /* Stat sayıları mobilde daha canlı */
    .stat-number { font-size: 2.25rem; }
}

/* Ürün kart yükseklikleri eşitleme */
.product-card {
    min-height: 100%;
}

/* Tablet için projeler — yatay timeline kompakt */
@media (max-width: 991px) and (min-width: 768px) {
    .projects-container {
        padding: 60px 10px;
    }
    .project-item:nth-child(odd) { transform: translateY(-50px); }
    .project-item:nth-child(even) { transform: translateY(50px); }
    .project-item:nth-child(odd)::after { bottom: -60px; }
    .project-item:nth-child(even)::after { top: -60px; }
    .project-item:nth-child(odd)::before { bottom: -50px; height: 42px; }
    .project-item:nth-child(even)::before { top: -50px; height: 42px; }
    .project-circle {
        width: 130px;
        height: 130px;
        padding: 15px;
    }
    .project-circle h5 { font-size: 1rem; }
}

/* Daha yumuşak sayfa geçişleri için scroll behavior enhance */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* Yüksek çözünürlüklü ekranlarda kart keskinliği */
.service-card, .product-card {
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   FLOATING ACTION BUTTONS
   ============================================ */
.fab-whatsapp,
.fab-scroll-top {
    position: fixed;
    right: 20px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1040;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                opacity 0.3s ease,
                visibility 0.3s ease;
    text-decoration: none;
}

.fab-whatsapp {
    bottom: 20px;
    background: #25D366;
    color: white;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    animation: fab-pulse 2.5s infinite;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
    color: white;
}

.fab-scroll-top {
    bottom: 84px;
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 18px rgba(0, 169, 224, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.fab-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-scroll-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 24px rgba(0, 169, 224, 0.55);
}

@keyframes fab-pulse {
    0%, 100% {
        box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4),
                    0 0 0 0 rgba(37, 211, 102, 0.45);
    }
    50% {
        box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4),
                    0 0 0 14px rgba(37, 211, 102, 0);
    }
}

@media (max-width: 576px) {
    .fab-whatsapp,
    .fab-scroll-top {
        width: 48px;
        height: 48px;
        right: 14px;
        font-size: 1.3rem;
    }
    .fab-whatsapp { bottom: 14px; }
    .fab-scroll-top { bottom: 72px; }
}
