/* Page-specific styles - FIXED VERSION */

/* Page Header */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #0B0F14 0%, #1E293B 100%);
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.page-header-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-header-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #94A3B8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Page - COMPLETELY REDESIGNED */
.services-section {
    padding: 4rem 0;
    background: #0B0F14;
}

/* Services Grid - FIXED */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Service Detail Cards - COMPLETELY REDESIGNED */
.service-detail-card {
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid #374151;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 500px; /* Fixed height for consistency */
    max-height: 600px; /* Prevent excessive height */
}

.service-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #00B4FF;
}

.service-detail-card .service-image {
    height: 200px; /* Fixed image height */
    overflow: hidden;
    position: relative;
}

.service-detail-card .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-detail-card:hover .service-image img {
    transform: scale(1.05);
}

.service-detail-card .service-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: calc(100% - 200px); /* Remaining height after image */
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-header .service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.service-price {
    background: rgba(0, 180, 255, 0.2);
    color: #00B4FF;
    border: 1px solid rgba(0, 180, 255, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.service-summary {
    color: #94A3B8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
    /* Limit text to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-description {
    color: #94A3B8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
    /* Limit text to 4 lines */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto; /* Push to bottom */
}

.service-actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    min-height: 44px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Projects Page */
.projects-section {
    padding: 4rem 0;
    background: #0B0F14;
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid #374151;
    color: #94A3B8;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 80px;
    font-size: 0.875rem;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #00B4FF;
    color: #00B4FF;
    background: rgba(0, 180, 255, 0.1);
    transform: translateY(-2px);
}

.filter-btn:focus {
    outline: 2px solid #00B4FF;
    outline-offset: 2px;
}

.no-projects {
    text-align: center;
    padding: 4rem 2rem;
    color: #94A3B8;
    font-size: 1.125rem;
    grid-column: 1 / -1;
}

/* Contact Page */
.contact-section {
    padding: 4rem 0;
    background: #0B0F14;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-container,
.contact-info-container {
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid #374151;
    border-radius: 1rem;
    padding: 2rem;
}

.contact-form-container h3,
.contact-info-container h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #94A3B8;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #1E293B;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00B4FF;
    box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.1);
    background: #2D3748;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* === Basit ve stabil checkbox (native) === */

/* === Basit/native checkbox: temiz görünüm === */
.checkbox-label{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:0;
  border:0;
  outline:0 !important;             /* büyük mavi çerçeveyi kapat */
}
.checkmark{ display:none !important; }  /* varsa eski kutuyu gizle */

.checkbox-label input[type="checkbox"]{
  appearance:auto;                   /* tarayıcı native kutu */
  -webkit-appearance:auto;
  -moz-appearance:auto;
  width:18px;
  height:18px;
  margin:0;
  vertical-align:middle;
  accent-color:#00B4FF;              /* tik rengi */

  /* arkadaki koyu kareyi kesinlikle kaldır */
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  outline:none !important;
}

/* Link rengi: visited dahil her zaman mavi */
.checkbox-text a,
.checkbox-text a:visited{
  color:#00B4FF !important;
  text-decoration:none;
}
.checkbox-text a:hover{ text-decoration:underline; }



.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    min-height: 48px;
}

/* Contact Info */
.contact-info-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.75rem;
    border: 1px solid rgba(71, 85, 105, 0.3);
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    border-color: #00B4FF;
    background: rgba(0, 180, 255, 0.05);
    transform: translateY(-2px);
}

.contact-info-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #00B4FF 0%, #47E3FF 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    color: white;
}

.contact-info-content h3 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-info-content p,
.contact-info-content a {
    color: #94A3B8;
    font-size: 0.875rem;
    text-decoration: none;
    line-height: 1.4;
    word-break: break-word;
}

.contact-info-content a:hover {
    color: #00B4FF;
}

.whatsapp-link {
    color: #10B981 !important;
}

.whatsapp-link:hover {
    color: #059669 !important;
}

.instagram-link {
    color: #E1306C !important;
}

.instagram-link:hover {
    color: #C13584 !important;
}

/* Map Section */
.map-section {
    padding: 4rem 0;
    background: #1E293B;
}

.map-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-placeholder {
    height: 400px;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.map-placeholder-content {
    max-width: 300px;
    padding: 2rem;
}

.map-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #00B4FF;
}

.map-placeholder h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-placeholder p {
    color: #94A3B8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* KVKK Page */
.content-section {
    padding: 4rem 0;
    background: #0B0F14;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.content-text {
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid #374151;
    border-radius: 1rem;
    padding: 3rem;
}

.content-text h2 {
    color: white;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00B4FF;
}

.content-text h2:first-child {
    margin-top: 0;
}

.content-text p {
    color: #94A3B8;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
    font-size: 0.95rem;
}

.content-text ul {
    color: #94A3B8;
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.7;
}

.content-text li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-info {
    background: rgba(30, 41, 59, 0.7);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #00B4FF;
    margin: 1.5rem 0;
}

.update-info {
    background: rgba(71, 227, 255, 0.1);
    border: 1px solid rgba(71, 227, 255, 0.3);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.update-info p {
    color: #47E3FF !important;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.update-info p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1E293B 0%, #0B0F14 100%);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cta-content p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: #94A3B8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
.animate-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-element.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #1E293B;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-left: 4px solid #10B981;
}

.notification-error {
    border-left: 4px solid #EF4444;
}

.notification-info {
    border-left: 4px solid #00B4FF;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
    
    .service-detail-card {
        min-height: 450px;
        max-height: 550px;
    }
}

@media (max-width: 768px) {
    /* Page Header */
    .page-header {
        padding: 6rem 0 3rem;
        min-height: 300px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    /* Service Cards */
    .service-detail-card {
        min-height: 400px;
        max-height: 500px;
    }
    
    .service-detail-card .service-content {
        padding: 1.25rem;
    }
    
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .service-header .service-title {
        font-size: 1.1rem;
        min-width: auto;
    }
    
    .service-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .service-actions .btn {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    /* Contact Page */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-container,
    .contact-info-container {
        padding: 1.5rem;
    }
    
    /* Category Filter */
    .category-filter {
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    /* Content Pages */
    .content-text {
        padding: 2rem;
    }
    
    .content-text h2 {
        font-size: 1.25rem;
    }
    
    .content-text p,
    .content-text li {
        font-size: 0.9rem;
    }
    
    /* CTA Actions */
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Notifications */
    .notification {
        right: 1rem;
        left: 1rem;
        top: 1rem;
        max-width: none;
    }
    
    /* Map */
    .map-placeholder {
        height: 300px;
    }
    
    .map-placeholder-content {
        padding: 1rem;
    }
    
    .map-placeholder-icon {
        font-size: 2rem;
    }
    
    .map-placeholder h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    /* Page Header */
    .page-header {
        padding: 5rem 0 2rem;
        min-height: 250px;
    }
    
    .page-header-content {
        padding: 0 1rem;
    }
    
    /* Services Grid */
    .services-grid {
        padding: 0 0.5rem;
    }
    
    /* Service Cards */
    .service-detail-card {
        min-height: 380px;
        max-height: 450px;
    }
    
    .service-detail-card .service-image {
        height: 160px;
    }
    
    .service-detail-card .service-content {
        padding: 1rem;
        height: calc(100% - 160px);
    }
    
    .service-header .service-title {
        font-size: 1rem;
    }
    
    .service-summary {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .service-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 3;
    }
    
    .service-actions .btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Contact Info Items */
    .contact-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }
    
    .contact-info-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    /* Content */
    .content-text {
        padding: 1.5rem;
    }
    
    .content-text h2 {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .content-text p,
    .content-text li {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    /* Form Elements */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Category Filter */
    .category-filter {
        gap: 0.5rem;
        padding: 0;
    }
    
    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-width: 60px;
    }
    
    /* Sections */
    .services-section,
    .projects-section,
    .contact-section,
    .content-section,
    .cta-section,
    .map-section {
        padding: 3rem 0;
    }
    
    /* Map */
    .map-placeholder {
        height: 250px;
    }
    
    .map-placeholder-icon {
        font-size: 1.5rem;
    }
    
    .map-placeholder h3 {
        font-size: 1.1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-detail-card,
    .contact-form-container,
    .contact-info-container,
    .content-text {
        border-width: 2px;
        border-color: #64748b;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 2px;
    }
    
    .filter-btn {
        border-width: 2px;
    }
}

/* Print styles */
@media print {
    .page-header {
        padding: 2rem 0;
        background: none !important;
        color: #000 !important;
    }
    
    .page-header-content h1,
    .content-text h2 {
        color: #000 !important;
    }
    
    .content-text p,
    .content-text li {
        color: #333 !important;
    }
    
    .service-detail-card,
    .contact-info-item,
    .content-text {
        background: none !important;
        border: 1px solid #ccc !important;
    }
    
    .btn,
    .filter-btn,
    .whatsapp-link,
    .instagram-link {
        display: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .animate-element,
    .service-detail-card,
    .contact-info-item,
    .filter-btn,
    .btn {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus styles for better accessibility */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.filter-btn:focus,

/* Loading states */
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success states */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Error states */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Loading spinner for services */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #94A3B8;
    font-size: 1rem;
    grid-column: 1 / -1;
}

.loading-spinner::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 180, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00B4FF;
    animation: spin 1s ease-in-out infinite;
    margin-left: 0.75rem;
}

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