@charset "UTF-8";

:root {
    --primary-color: #FFFFFF;
    --secondary-color: #F8F9FA;
    --text-color: #212529;
    --text-light: #2A2A2A; /* Açık gri metinleri siyaha çeviriyoruz */
    --accent-color: #2A2A2A;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --border-color: #DEE2E6;
    /* Header adaptive glass variables */
    --header-bg-light: rgba(255, 255, 255, 0.12);
    --header-bg-dark:  rgba(30, 30, 30, 0.35);
    --header-border-light: rgba(255, 255, 255, 0.25);
    --header-border-dark:  rgba(255, 255, 255, 0.10);
}

html {
}

body {
    font-family: var(--font-sans);
    background-color: var(--primary-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 18px;
}

.content-section .word-style {
    padding-top: 120px;
    max-width: 960px;
    margin: 0 auto;
    padding-left: 80px;
    padding-right: 80px;
}

.word-style p {
    margin-bottom: 24px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 24px;
}

/* Responsive adjustments for content container */
@media (max-width: 768px) {
    .content-section .word-style {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: none;
    padding: 0 2rem;
    min-height: 60px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;

}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header .logo, .glass-header .logo {
    font-size: 1.8rem; /* Larger than nav links */  
    font-weight: 600 !important;
    text-decoration: none !important;
    letter-spacing: 0.5px !important;
    color: #FFFFFF;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--accent-color);
}

main {
    flex-grow: 1;
    padding: 0;
}

.content-section {
    padding: 4rem 0;
}

.content-section#features {
    /* Treat as its own full-page section */
    min-height: 100vh;            /* occupy full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;      /* vertically center the content */
    align-items: center;          /* horizontally center */
    padding: 100px 2rem 0;              /* side padding only */
    text-align: center;
}

.content-section#features .section-header {
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

/* Keypad and 3S Model Animation Positioning */
.section-title-wrapper {
    position: relative; /* Make it a positioning context */
    text-align: center; /* Center the h2 title */
    margin-bottom: 1rem;
    min-height: 100px; /* Ensure enough space for positioned elements */
}

.section-title-wrapper h2 {
    display: inline-block; /* Allow calculating width */
}

.keypad-arrow-group {
    position: absolute;
    top: 50%;
    /* Position it to the right of the centered title */
    left: calc(50% + 150px); /* Adjust 150px based on h2 width and desired gap */
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.keypad-container {
    width: 250px; /* Adjust size as needed */
    z-index: 5;
    position: relative; /* Ensure it's part of the flex flow */
}

#three-s-model {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}


#three-s-model h2, #three-s-model h3, #three-s-model h4 {
    text-align: left;
    margin-top: 0;      /* Removed top margin to bring it closer to the previous section */
    margin-bottom: 1em;   /* space below heading before next content */
}


/* Hero Section for Homepage */
.hero {
    position: relative;
    margin-top: 0;
    width: 100%;
    max-width: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
    color: #ffffff;
}

.hero-content h1, .hero-content .subtitle {
    color: #ffffff;
}

/* Hero adjustments */
.hero {
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
}


/* Video in Hero Section */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #FFFFFF;
    font-weight: 400;
}

/* Content styling */
.content-section h1, .content-section h2 {
font-size: 2.5rem;
font-weight: 700;
color: var(--text-color);
border-bottom: 3px solid var(--accent-color);
padding-bottom: 15px;
margin-bottom: 30px;
display: inline-block;
    margin-bottom: 30px;
    display: inline-block;
}

/* Remove border from specific heading */
#three-s-model h2 {
    border-bottom: none;
}

/* Ensure all paragraphs have consistent spacing */
p {
    margin-bottom: 24px;
}

.content-section h2 {
    font-size: 2rem;
}

.content-section p, .content-section li {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.content-section li {
    position: relative;
    padding-left: 25px;
}

.content-section li::before {
    content: '';
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232A2A2A' viewBox='0 0 16 16'%3e%3cpath d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
}

footer {
    text-align: center;
    padding: 3rem 0;
    background: var(--secondary-color);
    color: #FFFFFF;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

/* Homepage Specific Sections */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
    position: relative; /* For precise positioning */
    top: 2px; /* Move the text down by 2px */
}

.section-header p {
    font-size: 1.15rem;
    color: #FFFFFF;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: start; /* Align items to the top */
}

.keypad-arrow-group-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    left: 8rem; /* Shifted even further to the right */
}

.keypad-arrow-group-container .keypad-container {
    flex: 0 0 300px; /* Give keypad a fixed width */
}

.feature-item {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}

.feature-item h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

#approach {
    position: relative;
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
    padding: 6rem 2rem;
    overflow: hidden;
    text-align: center;
}

#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#approach .section-header {
    position: relative;
    z-index: 1;
}

#approach .section-header h2,
#approach .section-header p,
#approach .section-header a {
    color: var(--text-color);
}

#approach .section-header h2 {
    font-size: 2.5rem;
}

#approach .section-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto 0;
}


/* Services Page Specific Styles */
.page-subtitle {
    font-size: 1.2rem;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;

}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: var(--text-color);
}

.card-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #FFFFFF;
    margin: 0;
}

/* 3S Model Section - Final Layout */
#three-s-model {
    position: relative; /* Needed for absolute positioning of the animation */
    padding: 2rem 20px 80px; /* Reduced top padding */
}

#three-s-model .content-wrapper {
    max-width: 800px;  /* Set a max-width for the article-style layout */
    margin: 0 auto;    /* Center the content block horizontally */
    position: relative;  /* To ensure z-index works */
    z-index: 2;        /* Keep the text on top */
}

#s3-animation-bg {
    position: absolute;
    top: 50px;         /* Position relative to the top of the section */
    right: 2%;         /* Adjusted further to the right */
    width: 650px;      /* Increased size */
    height: 650px;     /* Increased size */
    z-index: 1;        /* Place the animation behind the text */
    pointer-events: none; /* Make the animation non-interactive */
}



/* Service Detail Page Specific Styles */
.service-detail .page-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: none; 
}

/* Back to services link */
.back-to-services {
    display: none;
    margin-bottom: 1rem;
    color: #e63946;
    text-decoration: none;
    font-weight: 600;
}

.service-detail-image {
    display: block; /* Elementin blok olarak davranmasını sağlar */
    width: 100%;    /* Genişliği %100 yapar */
    height: 50vh;   /* Yüksekliği ekranın yarısı kadar yapar */
    object-fit: cover; /* Videoyu alana sığdırır */
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
    margin-bottom: 2rem;
    background-color: #eee; /* Video yüklenmezse gri bir alan gösterir */
}

.back-to-services:hover {
    color: var(--accent-color);
}

.service-detail h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.benefit-box {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent-color);
    padding: 2rem 2.5rem;
    margin-top: 3rem;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
}

.benefit-box h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.benefit-box ul {
    padding-left: 0;
    list-style: none;
}

.benefit-box li {
    padding-left: 25px;
}

/* Fade effect for hero text */
.hero-content { transition: opacity 0.6s ease; }
.hero-content.fade-out { opacity: 0 !important; visibility: hidden; pointer-events: none; }

/* Final Overrides */
header {
    position: absolute;
    top: 0;
    margin: 0;
    padding: 0 2rem;
    min-height: 60px;
    /* font-size reset */
    /* header text color handled by elements */
    font-weight: 400;
    display: block;
    text-align: center;
    /* line-height default */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: none;

    z-index: 100;
}

/* Color Resets for Light Sections */
.content-section p, .content-section li,
footer,
.section-header p,
.page-subtitle,
.card-content p,
.back-to-services { color: var(--text-light); }


/* Glass Header Override */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1300px;
    padding: 2px 24px;
    background: var(--header-bg-light);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border: 1px solid var(--header-border-light);
}



.glass-header nav ul {
    display: flex;
    gap: 24px;
}

.glass-header nav a {
    text-decoration: none;
}

.glass-header.dark {
    background: var(--header-bg-dark);
    border-color: var(--header-border-dark);
}

/* Adaptive text for header */
/* Default state for header text (dark text for light backgrounds) */
.glass-header .logo,
.glass-header nav a,
.subpage .glass-header .logo, /* Ensure subpage header text is dark */
.subpage .glass-header nav a {
    color: #333; /* A slightly darker color for better contrast */
    transition: color 0.3s ease-in-out;
}

/* State for dark backgrounds (like hero video), text becomes white */
.glass-header.dark .logo,
.glass-header.dark nav a {
    color: #fff;
}

.glass-header nav a:hover,
.glass-header nav a.active {
    color: var(--accent-color) !important; /* Ensure this rule takes precedence */
}


/* Disable blur on small screens */
@media (max-height: 800px), (max-width: 600px){
  .glass-header{
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
}

/* Layout fix overrides */
.feature-item,
.benefit-box,
.service-detail-image{
    width:100%;
    max-width:none;
    position:relative;
    left:auto;
    top:auto;
    transform:none;
}



/* Cards centering */
.features-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}
.feature-item{
    width: auto;
    max-width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero .subtitle {
        font-size: 1.1rem;
    }
    nav {
        flex-direction: column;
        gap: 1.5rem;
    }
    main {
        padding: 2rem 0;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .section-header h2 {
        font-size: 2rem;
    }
}

/* 3D Model Viewer Styles */
model-viewer#arch-model {
    width: 100%;
    height: 450px;
    margin: 2rem auto 3rem;
    border-radius: 10px;
    background-color: transparent;
    --poster-color: transparent; /* Hides the loading poster */
}

/* Arrow Animation for 'Neden ARCH?' Section */
.arrow-wrapper {
  display: flex;
  flex-direction: column; /* Stack arrow and text vertically */
  align-items: flex-start; /* Align to the start of the flex container */
  gap: 4px; /* Adjust gap for vertical layout */
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.5s;
  margin-left: 24px; /* Add some space between the keypad and the arrow */
}

.arrow-icon {
  width: 100px;
  height: 20px;
  transform: rotate(2deg);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.arrow-text {
  font-family: var(--font-sans);
  font-size: 18px;
  color: #333;
  white-space: nowrap;
  transform: translateY(-2px);
}

.arrow-wrapper:hover .arrow-icon {
  filter: brightness(1.3);
  transform: rotate(4deg) scale(1.05);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .section-title-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .arrow-wrapper {
    flex-direction: row; /* Keep it row-like on mobile for better alignment */
    align-items: center;
    gap: 6px;
    margin-left: 0; /* Reset margin for stacked layout */
    margin-top: 16px; /* Add space above the arrow on mobile */
  }

  .arrow-icon {
    width: 80px;
  }

  .arrow-text {
    font-size: 16px;
    white-space: normal;
  }
}

/* Contact Page Styles */
.contact-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

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

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

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

.info-item .icon {
    font-size: 1.5rem;
    margin-top: -4px;
}

.info-item a, .info-item p {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.6;
}

.info-item a:hover {
    text-decoration: underline;
}

.contact-form form {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(42, 42, 42, 0.15);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1a1a1a;
}

@media (max-width: 992px) {
    .contact-body {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.hidden {
    display: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFFFF;
    font-size: 1rem;
    z-index: 10;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

.scroll-indicator .arrow {
    width: 18px;
    height: 18px;
    border-right: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    transform: rotate(45deg);
    margin-bottom: 8px;
    animation: arrow-bounce 2s infinite;
}

@keyframes arrow-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(10px) rotate(45deg);
    }
    60% {
        transform: translateY(5px) rotate(45deg);
    }
}

