/* 
* Teknisyenim.com - Premium Services Website
* Version: 1.0.0
* Date: 2024
*/

/* -------------------------------------------------------------------------- */
/*                               RESET & BASE                                 */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/*                               NORMALIZE / RESET                            */
/* -------------------------------------------------------------------------- */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

main {
    display: block;
}

 {
    font-size: 2em;
    margin: 0.67em 0;
}

hr {h1
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

h1 {
    color: #ffffff !important;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

a {
    background-color: transparent;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

img {
    border-style: none;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

details {
    display: block;
}

summary {
    display: list-item;
}

template {
    display: none;
}

[hidden] {
    display: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

:root {
    --primary-color: #0056b3;
    /* Deep Blue - Trust */
    --primary-dark: #003d82;
    --primary-light: #e3f2fd;
    --secondary-color: #f39c12;
    /* Orange - Energy/Action */
    --secondary-hover: #e67e22;
    --text-main: #333333;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 30px;
    --font-heading: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

section {
    position: relative;
    overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/*                               UTILITIES                                    */
/* -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.bg-light {
    background-color: var(--bg-light);
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section-title {
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* -------------------------------------------------------------------------- */
/*                               HEADER & NAV                                 */
/* -------------------------------------------------------------------------- */
/* Header styles are critical and inlined in HTML, adding non-critical enhancements here */
header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

/* -------------------------------------------------------------------------- */
/*                               HERO SECTION                                 */
/* -------------------------------------------------------------------------- */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.4));
    z-index: 1;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------------------------------------- */
/*                               SERVICES                                     */
/* -------------------------------------------------------------------------- */
.service-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    transition: var(--transition-normal);
}

.service-card:hover .icon-box {
    background: var(--primary-color) !important;
    transform: rotateY(180deg);
}

.service-card:hover .icon-box svg {
    stroke: white;
}

/* -------------------------------------------------------------------------- */
/*                               DETAILS & CONTENT                            */
/* -------------------------------------------------------------------------- */
.detail-section h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 20px;
}

.detail-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.check-list li {
    position: relative;
    padding-left: 25px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* -------------------------------------------------------------------------- */
/*                               WHY US CARD ANIMATION                        */
/* -------------------------------------------------------------------------- */
.why-us div[style*="max-width: 250px"] {
    transition: var(--transition-normal);
}

.why-us div[style*="max-width: 250px"]:hover {
    transform: scale(1.1);
}

/* -------------------------------------------------------------------------- */
/*                               FAQ ACCORDION                                */
/* -------------------------------------------------------------------------- */
.faq-item {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

details>summary {
    list-style: none;
    position: relative;
}

details>summary::-webkit-details-marker {
    display: none;
}

details>summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-weight: 300;
}

details[open]>summary::after {
    content: '-';
}

details[open]>summary {
    color: var(--primary-color) !important;
    background: rgba(0, 86, 179, 0.05);
}

details>p {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* -------------------------------------------------------------------------- */
/*                               FOOTER                                       */
/* -------------------------------------------------------------------------- */
footer a {
    transition: var(--transition-fast);
}

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

.social-links a {
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--secondary-color) !important;
    transform: rotate(360deg);
}

/* -------------------------------------------------------------------------- */
/*                               ANIMATIONS                                   */
/* -------------------------------------------------------------------------- */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

/* -------------------------------------------------------------------------- */
/*                               RESPONSIVE                                   */
/* -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 36px;
    }

    .section-heading {
        font-size: 28px;
    }

    .row {
        flex-direction: column !important;
    }

    /* Force column on tablet */

    /* Revert image/text order for specific sections if needed */
    #beyaz-esya .row {
        flex-direction: column !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-inner {
        height: 60px;
    }

    .nav-menu {
        top: 60px;
        padding: 20px 0;
    }

    .hero {
        min-height: 500px;
        padding-top: 60px;
    }

    .klima-grid {
        grid-template-columns: 1fr !important;
    }

    .mixed-services .row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .stat-item span:first-child {
        font-size: 24px !important;
    }
}

/* -------------------------------------------------------------------------- */
/*                               LOCAL SEO TAGS DESIGN                        */
/* -------------------------------------------------------------------------- */
.area-tag {
    display: inline-block;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.area-tag:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color) !important;
    transform: scale(1.05);
}

/* -------------------------------------------------------------------------- */
/*                               FORM ELEMENTS (If specific)                  */
/* -------------------------------------------------------------------------- */
input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    font-family: inherit;
}

input:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* Hizmet bölgeleri butonlarının içindeki yazı rengi */
.detayli-bolgeler li, 
.area-tag, 
#detayli-bolgeler a {
    color: #003d82 !important; /* Koyu mavi yaparak kontrastı artırdık */
    font-weight: 600; /* Yazıyı biraz kalınlaştırmak okunurluğu artırır */
}

/* Kutuların (butonların) görünümü */
.detayli-bolgeler li, 
.area-tag {
    background-color: #ffffff !important;
    border: 1px solid #ddd !important; /* Hafif bir çerçeve kontrast için şart */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Çok hafif gölge */
}

#detayli-bolgeler h2 {
    color: #1a1a2e !important; /* Tam koyu renk */
}

/* Mahalle listesi başlıklarını (Atakum Teknik Servis vb.) koyulaştır */
#detayli-bolgeler h4, 
#detayli-bolgeler b, 
#detayli-bolgeler strong {
    color: #003d82 !important; /* Lacivert yaparak netleştirdik */
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
    border-bottom: 2px solid #f39c12; /* Altına ince bir turuncu çizgi çekerek vurguladık */
}

/* Mahalle isimlerini (küçük yazıları) koyulaştır */
#detayli-bolgeler li, 
#detayli-bolgeler p {
    color: #222222 !important; /* Açık gri yerine tam koyu gri/siyah yaptık */
    font-size: 0.95rem;
    line-height: 1.8; /* Satır arasını açtık ki yazılar birbirine girmesin */
}

/* Alt kısımdaki "Listelenen mahalleler dışında..." notunu belirginleştir */
#detayli-bolgeler small, 
#detayli-bolgeler .not-text {
    color: #444444 !important;
    font-style: italic;
}

/* Markalar ve uyarı yazısını koyulaştırır */
#markalar p, 
p[style*="color: #999"] {
    color: #555555 !important; /* Daha koyu bir gri */
    font-weight: 500;
}

/* Kart içindeki başlıkları kontrast dostu koyu turuncu yapar */
.info-card h3 {
    color: #d35400 !important; /* Koyu turuncu/kahverengi tonu */
}

/* Kart içindeki metinlerin rengini netleştirir */
.info-card p {
    color: #333333 !important;
}

/* Footer başlıklarını tam beyaz yapar */
#iletisim h4 {
    color: #ffffff !important;
}

/* Footer içindeki telefon linkini daha canlı ve okunur yapar */
#iletisim a[href^="tel:"] {
    color: #ffb84d !important; /* Daha parlak bir sarımsı turuncu */
    font-weight: bold;
}

/* Hero içeriğinin zıplamasını engelleyen kesin çözüm */
.hero-content {
    display: block !important;
    min-height: 250px; /* Yazının kaplayacağı alanı önceden rezerve eder */
    padding-top: 20px;
    margin-top: 0 !important;
    overflow: hidden;
}

.hero-content h1 {
    margin: 0 0 20px 0 !important; /* Başlığın dış boşluğunu sabitleyip kaymayı önler */
    line-height: 1.2 !important;
}

/* Hemen Ara butonu kontrast düzeltme */
.cta-button {
    color: #000000 !important; /* Yazıyı tam siyah yaparak kontrastı tavan yaptırdık */
    font-weight: 800 !important; /* Yazıyı kalınlaştırarak okunurluğu artırdık */
    text-transform: uppercase; /* Harfleri büyütmek de kontrast algısını iyileştirir */
}

/* Eğer butonun üzerine gelince renk değişiyorsa onu da sağlama alalım */
.cta-button:hover {
    color: #ffffff !important;
    background-color: #d35400 !important; /* Koyu turuncu */
}