/* Girit Yazılım - Frontend Styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --text: #334155;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #ffffff;
    --footer-bg: #0f172a;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #f1f5f9;
    --text: #cbd5e1;
    --text-light: #94a3b8;
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --border: #334155;
    --navbar-bg: rgba(15, 23, 42, 0.95);
    --card-bg: #1e293b;
    --footer-bg: #020617;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    overflow-x: hidden;
}

.page-transition {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Navbar */
.navbar-girit {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    transition: var(--transition);
}

.navbar-girit .navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary) !important;
}

.navbar-girit .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

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

.theme-toggle {
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

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

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(37, 99, 235, 0.6) 100%);
}

.hero-slide.default-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 700px;
}

.hero-content .subtitle {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.btn-hero {
    background: var(--accent);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    border: none;
}

.btn-hero:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .section-title { color: var(--secondary); }

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Cards */
.service-card, .project-card, .reference-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    overflow: hidden;
}

.service-card:hover, .project-card:hover, .project-card-link:hover .project-card {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.project-card-link {
    color: inherit;
}

.project-card-title {
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1.5rem;
}

.integration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    margin: 0.25rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    padding: 6rem 0 4rem;
    margin-top: -1px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.breadcrumb-girit {
    background: transparent;
    padding: 0;
    margin-top: 1rem;
}

.breadcrumb-girit .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.breadcrumb-girit .breadcrumb-item.active {
    color: white;
}

/* FAQ */
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Contact */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    width: 48px;
    height: 48px;
    background: var(--bg-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-submit-btn {
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-submit-btn.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.contact-alert {
    border-radius: 12px;
    font-weight: 500;
}

.form-control, .form-select {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-primary-girit {
    background: var(--primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

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

/* Footer */
.footer-girit {
    background: var(--footer-bg);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
}

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

.footer-girit a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.social-links a:hover {
    background: var(--primary);
    color: white !important;
}

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

.project-img {
    border-radius: 12px;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.reference-logo {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

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

.content-area {
    line-height: 1.8;
}

.content-area h2, .content-area h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

@media (max-width: 768px) {
    .hero-slider { min-height: 500px; height: 80vh; }
    .section { padding: 3rem 0; }
}
