/* 
* Sinem Immobilien und Consulting - Ana CSS Dosyası
* Responsive ve mobil uyumlu tasarım
*/

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

:root {
  --primary-color: #1e4e7a;
  --secondary-color: #d4a04b;
  --accent-color: #e74c3c;
  --dark-color: #2c3e50;
  --light-color: #f0f4f8;
  --gray-color: #6c757d;
  --white-color: #ffffff;
  --bg-gradient: linear-gradient(135deg, var(--primary-color) 0%, #2c7bb6 100%);
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Playfair Display', serif;
}

/* Responsive görüntü ve iframe'ler için */
img, iframe, video, object {
  max-width: 100%;
  height: auto;
}

/* Genel Stiller */
body {
  font-family: var(--font-primary);
  color: var(--dark-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

.btn-primary {
  background: var(--bg-gradient);
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(30, 78, 122, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1a4368 0%, #246a9f 100%);
  border-color: #1a4368;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(30, 78, 122, 0.4);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white-color);
}

.btn-secondary:hover {
  background-color: #c09665;
  border-color: #c09665;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

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

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

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-title h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--bg-gradient);
}

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

/* Header */
.navbar {
  padding: 15px 0;
  transition: all 0.3s ease;
  background-color: var(--white-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.navbar-nav .nav-link {
  color: var(--dark-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

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

.navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
  width: 30px;
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 24px;
  height: 17px;
  background-image: none;
  position: relative;
  border-bottom: 1px solid var(--dark-color);
  transition: all 300ms linear;
}

.navbar-toggler-icon:after, 
.navbar-toggler-icon:before {
  width: 24px;
  position: absolute;
  height: 1px;
  background-color: var(--dark-color);
  top: 0;
  left: 0;
  content: '';
  z-index: 2;
  transition: all 300ms linear;
}

.navbar-toggler-icon:after {
  top: 8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
  transform: translateY(8px) rotate(-45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  border-color: transparent;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: var(--bg-gradient);
  color: var(--white-color);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* Hizmetler */
.services-section {
  background-color: var(--light-color);
}

.service-card {
  background-color: var(--white-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: all 0.3s ease;
  border-bottom: 3px solid var(--secondary-color);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

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

.service-content {
  padding: 25px;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-content p {
  color: var(--gray-color);
  margin-bottom: 20px;
}

/* Hakkımızda */
.about-section {
  position: relative;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  padding: 30px;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
}

.about-features {
  margin-top: 30px;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.about-feature-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.about-feature-text h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.about-feature-text p {
  color: var(--gray-color);
  margin-bottom: 0;
}

/* İletişim */
.contact-section {
  background-color: var(--light-color);
}

.contact-info {
  background-color: var(--white-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-info-text p {
  color: var(--gray-color);
  margin-bottom: 0;
}

.contact-form {
  background-color: var(--white-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
  margin-bottom: 20px;
}

.form-control {
  height: 50px;
  border-radius: 5px;
  border: 1px solid #e1e1e1;
  padding: 10px 15px;
  margin-bottom: 20px;
}

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

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.map-container {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 50px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 70px 0 0;
}

.footer-logo img {
  max-height: 50px;
  margin-bottom: 20px;
}

.footer-about p {
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

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

.footer-contact-item {
  display: flex;
  margin-bottom: 15px;
}

.footer-contact-icon {
  color: var(--secondary-color);
  margin-right: 15px;
  flex-shrink: 0;
}

.footer-contact-text {
  color: rgba(255, 255, 255, 0.8);
}

.footer-social {
  display: flex;
  margin-top: 20px;
}

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

.footer-social a:hover {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  margin-top: 50px;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-image {
    width: 100%;
    opacity: 0.3;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  
  .hero-content p {
    margin: 0 auto 30px;
  }
  
  .about-image {
    margin-bottom: 30px;
  }
  
  .contact-info {
    margin-bottom: 30px;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero-section {
    height: 70vh;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .footer {
    padding: 50px 0 0;
  }
  
  .footer-widget {
    margin-bottom: 30px;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 50px 0;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .hero-section {
    height: 60vh;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  /* Mobil görünümde taşma sorununu önlemek için ek düzeltmeler */
  .container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
  }
  
  .row {
    margin-right: -15px;
    margin-left: -15px;
  }
}
