/* =========================================
   1. Root, Base & Custom Scrollbar
========================================= */
:root {
    --bg-navy: #050810;
    --bg-surface: #0f1525;
    --bg-glass: rgba(15, 21, 37, 0.4);
    --border-glass: rgba(255, 255, 255, 0.05);
    --accent-orange: #f97316;
    --accent-orange-hover: #ea580c;
    --accent-blue: #3b82f6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box;  }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-navy); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-orange); }
::selection { background: var(--accent-orange); color: #fff; }

html { scroll-behavior: smooth; font-family: var(--font-main); color: var(--text-main); background-color: var(--bg-navy); }
body { overflow-x: hidden; line-height: 1.7; }
a, button { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* =========================================
   2. UI Elements & Utilities
========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section { padding: 120px 0; }
.bg-darker { background-color: #03050a; }
.pt-150 { padding-top: 150px; }
.text-center { text-align: center; }
.max-w-800 { max-width: 800px; margin: 0 auto; }
.w-50 { width: calc(50% - 10px); }
.w-100 { width: 100%; }

.gradient-text { background: linear-gradient(135deg, #fff 0%, var(--accent-orange) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.accent-orange { color: var(--accent-orange); }
.subtitle { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; color: var(--accent-orange); margin-bottom: 10px; }

.glass { background: var(--bg-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-glass); border-radius: 20px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); }
.glass-panel { background: rgba(255,255,255,0.02); border: 1px solid var(--border-glass); padding: 25px; border-radius: 12px; }

.badge { display: inline-block; padding: 8px 16px; background: rgba(249, 115, 22, 0.1); border: 1px solid rgba(249, 115, 22, 0.2); color: var(--accent-orange); border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 30px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; border-radius: 10px; font-weight: 600; border: none; font-size: 1rem; position: relative; overflow: hidden; }
.btn-primary { background: var(--accent-orange); color: #fff; }
.hover-glow:hover { transform: translateY(-3px); box-shadow: 0 0 25px rgba(249, 115, 22, 0.4); }
.btn-outline { background: transparent; border: 1px solid var(--border-glass); color: var(--text-main); }
.btn-outline:hover { background: var(--bg-surface); border-color: var(--text-muted); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* =========================================
   3. Custom Cursor & Scroll Progress
========================================= */
.cursor-dot, .cursor-outline { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 9999; pointer-events: none; }
.cursor-dot { width: 8px; height: 8px; background-color: var(--accent-orange); }
.cursor-outline { width: 40px; height: 40px; border: 2px solid rgba(249, 115, 22, 0.5); transition: width 0.2s, height 0.2s, background-color 0.2s; }
.cursor-hover { width: 60px; height: 60px; background-color: rgba(249, 115, 22, 0.1); border-color: transparent; }

.scroll-progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: transparent; z-index: 1001; }
.scroll-progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange)); width: 0%; }

/* =========================================
   4. Navbar
========================================= */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: var(--transition); background: transparent; border-bottom: 1px solid transparent; }
.navbar.scrolled { background: rgba(5, 8, 16, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-glass); padding: 15px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; }

/* =========================================
   5. Hero Section
========================================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg-glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(5, 8, 16, 0) 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1; }
.hero-bg-grid { position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: -2; background-size: 50px 50px; background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px); mask-image: linear-gradient(to bottom, black 40%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%); }
.hero h1 { font-size: 4.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1.5px; }
.hero-desc { font-size: 1.2rem; color: var(--text-muted); max-width: 650px; margin: 0 auto 40px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* =========================================
   6. Sections (About, Process, FAQ)
========================================= */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; font-weight: 700; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 15px; font-size: 1.05rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card { padding: 30px; text-align: center; }
.stat-card h3 { font-size: 2.5rem; color: var(--accent-orange); margin-bottom: 5px; }

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 20px; top: 0; height: 100%; width: 2px; background: var(--border-glass); }
.timeline-item { position: relative; margin-bottom: 40px; padding-left: 60px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-orange); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; border: 4px solid var(--bg-navy); }
.timeline-content { padding: 25px; }
.timeline-content h3 { margin-bottom: 10px; color: var(--accent-orange); }
.timeline-content p { color: var(--text-muted); }

/* FAQ Accordion */
.faq-item { background: var(--bg-surface); border: 1px solid var(--border-glass); border-radius: 12px; margin-bottom: 15px; overflow: hidden; transition: var(--transition); }
.faq-header { padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.faq-header i { transition: transform 0.3s; color: var(--accent-orange); }
.faq-content { padding: 0 25px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; color: var(--text-muted); }
.faq-item.active { border-color: var(--accent-orange); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.faq-item.active .faq-header i { transform: rotate(180deg); }
.faq-item.active .faq-content { padding: 0 25px 20px 25px; max-height: 500px; }

/* =========================================
   7. Grids & Cards (Services, Why Us, Blog)
========================================= */
.services-grid, .why-grid, .blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card, .why-card { padding: 40px 30px; transition: var(--transition); }
.service-card:hover, .why-card:hover { transform: translateY(-5px); border-color: rgba(249, 115, 22, 0.4); background: rgba(255,255,255,0.02); }
.service-icon { font-size: 2.5rem; color: var(--accent-blue); margin-bottom: 20px; }
.service-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Portfolio Slider */
.portfolio-slider { padding-bottom: 50px; }
.portfolio-img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.5s; }
.portfolio-card:hover .portfolio-img { transform: scale(1.1); }
.tech-tags { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.tech-tag { font-size: 0.8rem; background: rgba(255,255,255,0.05); padding: 4px 10px; border-radius: 20px; color: var(--accent-blue); }

/* Blog Elements */
.blog-card { border-radius: 16px; overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border-glass); transition: var(--transition); }
.blog-card:hover { transform: translateY(-5px); border-color: var(--accent-orange); }
.blog-img { width: 100%; height: 220px; object-fit: cover; }
.blog-info { padding: 25px; }
.blog-date { font-size: 0.85rem; color: var(--accent-orange); margin-bottom: 10px; display: block; }
.blog-info h3 { margin-bottom: 10px; font-size: 1.2rem; }
.blog-info p { color: var(--text-muted); font-size: 0.95rem; }

.blog-detail-wrapper h1 { font-size: 2.5rem; margin-bottom: 20px; }
.blog-detail-wrapper img { width: 100%; border-radius: 16px; margin-bottom: 30px; max-height: 450px; object-fit: cover; }
.blog-detail-wrapper .content p { margin-bottom: 20px; font-size: 1.1rem; color: #d1d5db; }

/* Skeleton Loading */
.skeleton-card { width: 100%; height: 400px; background: linear-gradient(90deg, var(--bg-surface) 25%, #1a2235 50%, var(--bg-surface) 75%); background-size: 200% 100%; animation: skeletonLoading 1.5s infinite; border-radius: 16px; }
@keyframes skeletonLoading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* =========================================
   8. Contact Form
========================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; }
.contact-info p { color: var(--text-muted); margin-bottom: 40px; font-size: 1.1rem; }
.contact-details p { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; gap: 15px; }
.contact-details i { color: var(--accent-orange); font-size: 1.3rem; }
.contact-form { padding: 40px; }
.input-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); }
input, select, textarea { width: 100%; padding: 16px; background: rgba(0,0,0,0.2); border: 1px solid var(--border-glass); border-radius: 10px; color: white; font-family: inherit; transition: var(--transition); font-size: 1rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-orange); background: rgba(0,0,0,0.4); box-shadow: 0 0 15px rgba(249, 115, 22, 0.1); }
select option { background: var(--bg-navy); }
.form-status { margin-top: 15px; font-size: 0.95rem; text-align: center; }

/* =========================================
   9. Footer & Utilities
========================================= */
.footer { border-top: 1px solid var(--border-glass); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 1.8rem; margin-bottom: 15px; }
.footer-brand p { color: var(--text-muted); }
.footer-links h4 { margin-bottom: 20px; font-size: 1.1rem; }
.footer-links a { display: block; color: var(--text-muted); margin-bottom: 10px; }
.footer-links a:hover { color: var(--accent-orange); padding-left: 5px; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-glass); }
.social-icons a:hover { background: var(--accent-orange); border-color: var(--accent-orange); transform: translateY(-3px); }
.footer-bottom { text-align: center; border-top: 1px solid var(--border-glass); padding: 20px 0; color: var(--text-muted); font-size: 0.9rem; }

.to-top-btn { position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; border-radius: 50%; background: var(--accent-orange); color: white; border: none; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4); }
.to-top-btn.visible { opacity: 1; visibility: visible; }
.to-top-btn:hover { transform: translateY(-5px); background: white; color: var(--accent-orange); }

/* =========================================
   10. Responsive Media Queries
========================================= */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .input-row { flex-direction: column; gap: 0; }
    .w-50 { width: 100%; }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-navy); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border-glass); }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
    .cursor-dot, .cursor-outline { display: none; } /* Mobilde imleci gizle */
    * { cursor: auto; }
}