/* =====================================================
   EMLAK SaaS - Ana Stil Dosyası
   Modern, Kurumsal, Responsive Tasarım
   ===================================================== */

/* === CSS VARIABLES === */
:root {
    --primary: #1a56db;
    --primary-dark: #1e3a5f;
    --secondary: #1e40af;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1f2937;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s ease;
}

/* === GLOBAL === */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* === BUTTONS === */
.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 0.025em;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-outline-primary-custom {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.65rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

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

/* === TOPBAR === */
.topbar {
    background: var(--gray-900);
    color: var(--gray-300);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar a { color: var(--gray-300); }
.topbar a:hover { color: var(--accent); }
.topbar .bi { font-size: 0.9rem; }

/* === NAVBAR === */
.navbar-main {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
    transition: var(--transition);
    z-index: 1050;
}

.navbar-main.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar-main .navbar-brand img { max-height: 50px; }

.navbar-main .nav-link {
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--primary);
}

.navbar-main .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.navbar-main .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
}

.navbar-main .dropdown-item {
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-main .dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
    padding-left: 1.5rem;
}

/* === HERO SLIDER === */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active { opacity: 1; z-index: 1; }

.hero-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-slide .slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 900px;
}

.hero-slide .slide-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-slide .slide-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
    min-width: 0;
    min-height: 0;
}

.hero-dot.active {
    background: var(--white);
    transform: scale(1.3);
}

.hero-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

/* === SECTION STYLES === */
.section-padding { padding: 5rem 0; }

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

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === SERVICE CARDS === */
.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    height: 100%;
}

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

.service-card .icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

.service-card:hover .icon-wrap {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* === COUNTER SECTION === */
.counter-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.counter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.counter-item {
    text-align: center;
    color: var(--white);
    padding: 1.5rem;
}

.counter-item .icon-wrap {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.counter-item .counter-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-item .counter-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* === LISTING CARDS === */
.listing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.listing-card .card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.listing-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.listing-card:hover .card-img-wrap img { transform: scale(1.1); }

.listing-card .badge-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.badge-sale { background: var(--primary); color: var(--white); }
.badge-rent { background: var(--success); color: var(--white); }
.badge-sold { background: var(--danger); color: var(--white); }
.badge-featured { background: var(--accent); color: var(--dark); }

.listing-card .card-img-wrap .fav-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.listing-card .fav-btn:hover { background: var(--danger); color: var(--white); }
.listing-card .fav-btn.active { background: var(--danger); color: var(--white); }

.listing-card .card-body { padding: 1.25rem; }

.listing-card .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.listing-card .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card .location {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.listing-card .features {
    display: flex;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.85rem;
    color: var(--gray-600);
}

.listing-card .features span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* === SUPPLIERS === */
.supplier-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.supplier-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.supplier-logo img {
    max-height: 60px;
    max-width: 180px;
    object-fit: contain;
}

/* === TESTIMONIALS === */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    height: 100%;
}

.testimonial-card .stars { color: var(--accent); margin-bottom: 1rem; }

.testimonial-card .quote {
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* === BLOG CARDS === */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.blog-card .card-img-wrap {
    height: 200px;
    overflow: hidden;
}

.blog-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-img-wrap img { transform: scale(1.1); }

.blog-card .card-body { padding: 1.25rem; }

.blog-card .card-date {
    color: var(--gray-400);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* === NEWSLETTER === */
.newsletter-section {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
    color: var(--white);
}

.newsletter-section h3 { color: var(--white); }

.newsletter-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius) 0 0 var(--radius);
    border: none;
    font-size: 1rem;
}

.newsletter-form .btn {
    padding: 0.85rem 2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* === FOOTER === */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 4rem 0 0;
}

.footer h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer a { color: var(--gray-400); }
.footer a:hover { color: var(--accent); padding-left: 5px; }

.footer ul { list-style: none; padding: 0; }

.footer ul li {
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer .social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
}

/* === PAGE HEADER (Breadcrumb) === */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 3rem 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.page-header h1 { color: var(--white); font-size: 2rem; }

.page-header .breadcrumb { margin-bottom: 0; }
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb-item.active { color: var(--white); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* === PORTFOLIO / PROJECT CARDS === */
.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img { transform: scale(1.1); }

.project-card .project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    transform: translateY(30px);
    transition: var(--transition);
}

.project-card:hover .project-overlay { transform: translateY(0); }

.project-card .project-overlay .badge {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.project-card .project-overlay h4 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.project-card .project-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-300);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 0 3rem;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-item .timeline-dot {
    position: absolute;
    top: 1rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }

.timeline-item .timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.timeline-item .year {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* === TEAM === */
.team-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.team-card .team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--gray-200);
    transition: var(--transition);
}

.team-card:hover .team-photo { border-color: var(--primary); }

/* === CONTACT === */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

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

/* === SCROLL ANIMATIONS === */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    border: none;
    font-size: 1.2rem;
}

.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
.back-to-top.show { display: flex; }

/* === LIGHTBOX === */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active { display: flex; }

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* === RESPONSIVE - TABLET (max 991px) === */
@media (max-width: 991px) {
    .hero-slider { height: 60vh; min-height: 450px; }
    .hero-slide .slide-content h1 { font-size: 2.25rem; }
    .hero-slide .slide-content p { font-size: 1.05rem; }
    .section-padding { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2.5rem; }

    /* Navbar mobile */
    .navbar-main { padding: 0.5rem 0; }
    .navbar-main .navbar-brand img { max-height: 40px; }
    .navbar-main .nav-link { padding: 0.75rem 0.5rem !important; font-size: 1rem; }
    .navbar-main .nav-link.active::after { display: none; }
    .navbar-main .dropdown-menu {
        border: none; box-shadow: none; background: var(--gray-50);
        padding: 0 0 0 1rem; margin: 0;
    }
    .navbar-main .dropdown-item { padding: 0.5rem 1rem; }

    /* Cards responsive */
    .listing-card .card-img-wrap { height: 200px; }
    .project-card { height: 280px; }

    /* Timeline mobile */
    .timeline::before { left: 30px; }
    .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 60px; padding-right: 0; }
    .timeline-item .timeline-dot { left: 22px !important; right: auto !important; }

    /* Team cards */
    .team-card { padding: 1.5rem; }
    .team-card .team-photo { width: 120px; height: 120px; }

    /* Counter */
    .counter-section { padding: 3rem 0; }
    .counter-item { padding: 1rem; }
    .counter-item .counter-number { font-size: 2.5rem; }

    /* Footer */
    .footer { padding: 3rem 0 0; }
    .footer .col-lg-3, .footer .col-lg-4 { margin-bottom: 2rem; }
}

/* === RESPONSIVE - MOBILE (max 767px) === */
@media (max-width: 767px) {
    body { font-size: 15px; line-height: 1.6; }

    /* Hero */
    .hero-slider { height: 55vh; min-height: 380px; }
    .hero-slide .slide-content { width: 92%; }
    .hero-slide .slide-content h1 { font-size: 1.6rem; margin-bottom: 0.75rem; }
    .hero-slide .slide-content p { font-size: 0.95rem; margin-bottom: 1.25rem; }
    .hero-slide .slide-content .btn { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
    .hero-arrows { padding: 0 0.75rem; }
    .hero-arrow { width: 38px; height: 38px; font-size: 1rem; }
    .hero-controls { bottom: 1rem; }
    .hero-dot { width: 8px; height: 8px; padding: 0; }
    .hero-dot.active { transform: scale(1.15); }

    /* Topbar hide */
    .topbar { display: none; }

    /* Navbar mobile optimized */
    .navbar-main { padding: 0.4rem 0; }
    .navbar-toggler { padding: 0.25rem 0.5rem; font-size: 1.1rem; border: 1px solid var(--gray-300); }
    .navbar-main .navbar-brand img { max-height: 35px; }

    /* Sections */
    .section-padding { padding: 2.5rem 0; }
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.5rem; }
    .section-header p { font-size: 0.95rem; }

    /* Service cards */
    .service-card { padding: 1.5rem 1.25rem; }
    .service-card .icon-wrap { width: 60px; height: 60px; font-size: 1.5rem; margin-bottom: 1rem; }
    .service-card h4 { font-size: 1.05rem; }
    .service-card p { font-size: 0.9rem; }

    /* Counter */
    .counter-section { padding: 2rem 0; }
    .counter-item { padding: 0.75rem 0.5rem; }
    .counter-item .icon-wrap { font-size: 1.75rem; margin-bottom: 0.5rem; }
    .counter-item .counter-number { font-size: 2rem; }
    .counter-item .counter-label { font-size: 0.85rem; }

    /* Listing cards */
    .listing-card .card-img-wrap { height: 180px; }
    .listing-card .card-body { padding: 1rem; }
    .listing-card .price { font-size: 1.25rem; }
    .listing-card .card-title { font-size: 0.95rem; }
    .listing-card .features { gap: 0.5rem; font-size: 0.8rem; flex-wrap: wrap; }
    .listing-card .badge-type { font-size: 0.7rem; padding: 0.25rem 0.5rem; }

    /* Blog cards */
    .blog-card .card-img-wrap { height: 160px; }
    .blog-card .card-body { padding: 1rem; }
    .blog-card .card-title { font-size: 1rem; }

    /* Project/Portfolio cards */
    .project-card { height: 240px; }
    .project-card .project-overlay { padding: 1.25rem 1rem; transform: translateY(0); }
    .project-card .project-overlay h4 { font-size: 1rem; }

    /* Page header */
    .page-header { padding: 2rem 0; }
    .page-header h1 { font-size: 1.5rem; }

    /* Testimonials */
    .testimonial-card { padding: 1.25rem; }
    .testimonial-card .quote { font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
    .testimonial-card .author-avatar { width: 40px; height: 40px; font-size: 1rem; }

    /* Contact */
    .contact-info-card { padding: 1rem; gap: 0.75rem; }
    .contact-info-card .icon { width: 42px; height: 42px; font-size: 1.1rem; }

    /* Suppliers */
    .supplier-logo { height: 60px; padding: 0.5rem; }
    .supplier-logo img { max-height: 45px; max-width: 140px; }

    /* Newsletter */
    .newsletter-section { padding: 2.5rem 0; }
    .newsletter-section h3 { font-size: 1.3rem; }
    .newsletter-form .input-group { flex-direction: column; align-items: stretch; }
    .newsletter-form .input-group .form-control { border-radius: var(--radius) !important; margin-bottom: 0.5rem; width: 100% !important; flex: none; padding: 0.75rem 1rem; }
    .newsletter-form .btn { border-radius: var(--radius) !important; width: 100%; }

    /* Footer */
    .footer { padding: 2.5rem 0 0; text-align: center; }
    .footer h5 { margin-bottom: 1rem; padding-bottom: 0.5rem; }
    .footer h5::after { left: 50%; transform: translateX(-50%); }
    .footer .col-lg-3, .footer .col-md-6 { margin-bottom: 1.5rem; }
    .footer .social-links { justify-content: center; display: flex; }
    .footer-bottom { margin-top: 2rem; padding: 1rem 0; font-size: 0.8rem; }

    /* Back to top */
    .back-to-top { bottom: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1rem; }

    /* Lightbox */
    .lightbox-overlay img { max-width: 95%; }

    /* Listing detail page */
    .listing-detail-price { font-size: 1.5rem; }
    .listing-detail-features .feature-item { padding: 0.5rem 0; gap: 0.5rem; font-size: 0.9rem; }

    /* Cookie banner */
    .cookie-banner { font-size: 0.85rem; }
    .cookie-banner .container { flex-direction: column; gap: 0.75rem; text-align: center; }

    /* Forms mobile */
    .form-control, .form-select { font-size: 16px !important; padding: 0.6rem 0.75rem; }
    .form-label { font-size: 0.9rem; }

    /* Buttons mobile - larger touch targets */
    .btn { padding: 0.65rem 1.25rem; font-size: 0.95rem; }
    .btn-sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
    .btn-primary-custom { padding: 0.65rem 1.5rem; }

    /* Timeline mobile */
    .timeline-item { margin-bottom: 2rem; padding-left: 50px; }
    .timeline-item .timeline-content { padding: 1rem; }
    .timeline-item .year { font-size: 0.8rem; padding: 0.2rem 0.6rem; }

    /* Team */
    .team-card .team-photo { width: 100px; height: 100px; margin-bottom: 1rem; }
    .team-card { padding: 1.25rem; }
}

/* === RESPONSIVE - SMALL MOBILE (max 480px) === */
@media (max-width: 480px) {
    .hero-slider { height: 45vh; min-height: 300px; }
    .hero-slide .slide-content h1 { font-size: 1.35rem; }
    .hero-slide .slide-content p { font-size: 0.85rem; }
    .hero-slide .slide-content .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
    .hero-dot { width: 6px; height: 6px; padding: 0; }
    .hero-dot.active { transform: scale(1.1); }
    .hero-controls { bottom: 0.75rem; gap: 4px; }

    .section-header h2 { font-size: 1.3rem; }
    .counter-item .counter-number { font-size: 1.75rem; }

    .listing-card .card-img-wrap { height: 160px; }
    .project-card { height: 200px; }
    .blog-card .card-img-wrap { height: 140px; }

    /* Two column counter on very small */
    .counter-item { padding: 0.5rem; }
    .counter-item .icon-wrap { font-size: 1.5rem; }
}

/* === TOUCH FRIENDLY === */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .listing-card:hover { transform: none; box-shadow: var(--shadow); }
    .service-card:hover { transform: none; }
    .blog-card:hover { transform: none; }
    .team-card:hover { transform: none; }
    .project-card:hover img { transform: none; }
    .project-card .project-overlay { transform: translateY(0); }
    .btn-primary-custom:hover { transform: none; }
    .contact-info-card:hover { transform: none; }

    /* Larger touch targets */
    .fav-btn { width: 44px; height: 44px; }
    a, button, .btn, .nav-link { min-height: 44px; }
}

/* === iOS FIXES === */
@supports (-webkit-touch-callout: none) {
    .hero-slider { height: -webkit-fill-available; }
    body { -webkit-text-size-adjust: 100%; }
    input, select, textarea { font-size: 16px !important; }
}

/* === SAFE AREA (Notch devices) === */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer-bottom { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
    .cookie-banner { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
    .back-to-top { bottom: calc(1rem + env(safe-area-inset-bottom)); }
}

/* === PRINT === */
@media print {
    .topbar, .navbar-main, .footer, .back-to-top, .cookie-banner,
    .hero-arrows, .hero-controls, .newsletter-section { display: none !important; }
    .section-padding { padding: 1rem 0; }
    body { color: #000; font-size: 12pt; }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* === FORM STYLES === */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 86, 219, 0.15);
}

.form-label { font-weight: 600; color: var(--gray-700); margin-bottom: 0.5rem; }

/* === LISTING DETAIL === */
.listing-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.listing-detail-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.listing-detail-features .feature-item:last-child { border-bottom: none; }

/* === LOADING === */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
