/* =============================================
   Deveci Vinc - Main Stylesheet
   ============================================= */

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

:root {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --dark: #1e293b;
  --darker: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --white: #ffffff;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #334155;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul { list-style: none; }

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

.section-padding { padding: 80px 0; }

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.btn-primary-custom {
  background: var(--primary);
  color: var(--white);
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

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

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 50px; height: 50px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ---------- Navbar ---------- */
.navbar-custom {
  background: var(--dark);
  padding: 0;
  transition: all 0.3s;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-custom.scrolled {
  background: var(--darker);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-custom .navbar-brand {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.5rem;
  padding: 15px 0;
}

.navbar-custom .navbar-brand span {
  color: var(--white);
}

.navbar-custom .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  padding: 20px 15px !important;
  transition: color 0.3s;
  font-size: 0.95rem;
}

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

.navbar-custom .navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}

.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-phone {
  color: var(--primary) !important;
  font-weight: 700;
}

.navbar-phone i {
  margin-right: 5px;
}

/* ---------- Hero Slider ---------- */
.hero-section {
  margin-top: 70px;
}

.hero-slide {
  position: relative;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(30,41,59,0.7));
}

.hero-slide .hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 20px;
}

.hero-slide h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-slide p {
  font-size: 1.15rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.hero-slide .btn-hero {
  background: var(--primary);
  color: var(--white);
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-slide .btn-hero:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(245,158,11,0.8);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }

.carousel-indicators [data-bs-target] {
  background-color: var(--primary);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* ---------- Counters ---------- */
.counter-section {
  background: var(--dark);
  padding: 60px 0;
  color: var(--white);
}

.counter-box {
  text-align: center;
  padding: 20px;
}

.counter-box .counter-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.counter-box h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.counter-box p {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  opacity: 0.8;
  margin-top: 5px;
}

/* ---------- Service Category Cards ---------- */
.service-categories {
  background: var(--light);
}

.category-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

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

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

.category-card:hover .category-img img {
  transform: scale(1.08);
}

.category-card .category-body {
  padding: 22px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-card .category-body h4 {
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  font-size: 1.05rem;
}

.category-card .category-arrow {
  width: 42px;
  height: 42px;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: all 0.3s;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.category-card:hover .category-arrow {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ---------- Services Feature Cards ---------- */
.services-section {
  background: var(--white);
}

.service-card {
  background: var(--light);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0,0,0,0.06);
  transition: all 0.3s;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.04);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  background: var(--white);
}

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

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

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

/* ---------- About ---------- */
.about-section {
  background: var(--white);
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.about-content .about-list {
  padding: 0;
}

.about-content .about-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.about-content .about-list li i {
  color: var(--primary);
  font-size: 1.2rem;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 20px 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(245,158,11,0.4);
}

.experience-badge h3 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.experience-badge p {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- Gallery ---------- */
.gallery-section {
  background: var(--light);
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .gallery-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(245,158,11,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: var(--white);
  font-size: 2rem;
}

/* ---------- Blog ---------- */
.blog-section {
  background: var(--white);
}

.blog-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-card .blog-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.blog-card .blog-date {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: var(--primary);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-card .blog-body {
  padding: 25px;
}

.blog-card .blog-body h5 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.blog-card .blog-body a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.blog-card .blog-body a:hover {
  color: var(--primary-dark);
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--dark), var(--darker));
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 30px;
}

.cta-section .btn-cta {
  background: var(--primary);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-section .btn-cta:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--darker);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer p { font-size: 0.9rem; }

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

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: all 0.3s;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-links a i {
  margin-right: 8px;
  color: var(--primary);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.footer-contact li i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 3px;
}

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

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

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

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 0 5px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: all 0.3s;
  animation: pulse 2s infinite;
}

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

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Page Header (Inner Pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--dark), var(--darker));
  padding: 120px 0 60px;
  text-align: center;
  color: var(--white);
  margin-top: 70px;
}

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

.page-header .breadcrumb {
  justify-content: center;
  margin-top: 10px;
}

.page-header .breadcrumb-item a {
  color: var(--primary);
}

.page-header .breadcrumb-item.active {
  color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
}

/* ---------- Contact Page ---------- */
.contact-info-card {
  background: var(--white);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  height: 100%;
  transition: all 0.3s;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contact-info-card .icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.5rem;
  color: var(--white);
}

.contact-info-card h5 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.contact-info-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}

.contact-form {
  background: var(--white);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form .form-control {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(245,158,11,0.15);
}

.contact-form textarea.form-control {
  min-height: 150px;
}

/* ---------- Blog Detail ---------- */
.blog-detail-section {
  padding: 80px 0;
}

.blog-detail-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
}

.blog-detail-content .blog-meta {
  color: var(--gray);
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.blog-detail-content .blog-meta i {
  color: var(--primary);
  margin-right: 5px;
}

.blog-detail-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.blog-detail-content strong {
  color: var(--dark);
}

.blog-sidebar .sidebar-card {
  background: var(--white);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}

.blog-sidebar .sidebar-card h5 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.blog-sidebar .popular-post {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.blog-sidebar .popular-post:last-child {
  border-bottom: none;
}

.blog-sidebar .popular-post .post-number {
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.blog-sidebar .popular-post a {
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.blog-sidebar .popular-post a:hover {
  color: var(--primary);
}

/* Comment form */
.comment-section {
  margin-top: 40px;
}

.comment-section h4 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

/* ---------- 404 ---------- */
.error-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
}

.error-section h1 {
  font-size: 8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.error-section p {
  font-size: 1.2rem;
  color: var(--gray);
  margin: 20px 0 30px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .category-card .category-body h4 { font-size: 0.95rem; }
}

@media (max-width: 991px) {
  .hero-slide { height: 420px; }
  .hero-slide h1 { font-size: 2rem; }
  .navbar-custom .nav-link { padding: 10px 15px !important; }
  .navbar-custom .navbar-collapse {
    background: var(--darker);
    padding: 15px;
    border-radius: 0 0 10px 10px;
    margin-top: 0;
  }
  .experience-badge { position: relative; bottom: 0; right: 0; margin-top: 20px; display: inline-block; }
  .category-card .category-img { height: 200px; }
  .about-image-wrapper { margin-bottom: 30px; }
}

@media (max-width: 767px) {
  .hero-slide { height: 380px; }
  .hero-slide h1 { font-size: 1.6rem; }
  .hero-slide p { font-size: 0.95rem; margin-bottom: 20px; }
  .hero-slide .btn-hero { padding: 11px 25px; font-size: 0.9rem; }
  .section-padding { padding: 50px 0; }
  .section-title { margin-bottom: 35px; }
  .section-title h2 { font-size: 1.5rem; }
  .counter-section { padding: 40px 0; }
  .counter-box h3 { font-size: 1.8rem; }
  .counter-box p { font-size: 0.8rem; letter-spacing: 0.5px; }
  .category-card .category-img { height: 180px; }
  .category-card .category-body { padding: 16px 18px; }
  .category-card .category-body h4 { font-size: 0.95rem; }
  .category-card .category-arrow { width: 36px; height: 36px; font-size: 0.95rem; }
  .service-card { padding: 30px 20px; }
  .service-card .service-icon { width: 65px; height: 65px; font-size: 1.6rem; }
  .about-content h2 { font-size: 1.5rem; }
  .gallery-item img { height: 200px; }
  .blog-card .blog-img { height: 170px; }
  .cta-section { padding: 50px 0; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-section .btn-cta { padding: 12px 30px; font-size: 1rem; }
  .page-header { padding: 100px 0 40px; }
  .page-header h1 { font-size: 1.6rem; }
  .footer { padding: 40px 0 0; }
  .footer h5 { font-size: 1rem; }
  .blog-detail-content h2 { font-size: 1.4rem; }
  .carousel-control-prev,
  .carousel-control-next { display: none; }
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; right: 20px; }
  .error-section h1 { font-size: 5rem; }
  .error-section p { font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero-slide { height: 340px; }
  .hero-slide h1 { font-size: 1.35rem; }
  .hero-slide p { font-size: 0.88rem; }
  .hero-slide .btn-hero { padding: 10px 20px; font-size: 0.85rem; }
  .navbar-custom .navbar-brand { font-size: 1.3rem; }
  .section-title h2 { font-size: 1.3rem; }
  .category-card .category-img { height: 160px; }
  .counter-box h3 { font-size: 1.5rem; }
  .info-card { padding: 25px 15px; }
  .blog-detail-content h2 { font-size: 1.2rem; }
  .error-section h1 { font-size: 4rem; }
}
