* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'SamsungsharpsansBold';
    src: url('./fonts/SAMSUNGSHARPSANS-BOLD.TTF') format('opentype');
    font-style: normal;
}

@font-face {
    font-family: 'SamsungSansLight';
    src: url('./fonts/SamsungSans-Light.ttf') format('opentype');
    font-style: normal;
}

@font-face {
    font-family: 'MagicalNordicPERSONAL';
    src: url('./fonts/MagicalNordic_PERSONAL_USE_ONLY.otf') format('opentype');
    font-style: normal;
}

@font-face {
    font-family: 'MagicalNordicSwashPERSONAL';
    src: url('./fonts/MagicalNordicSwash_PERSONAL_USE_ONLY.otf') format('opentype');
    font-style: normal;
}

@font-face {
    font-family: 'MillionDesign';
    src: url('./fonts/MillionDesign.ttf') format('opentype');
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    width: min(96%, 1200px);
    margin: 0 auto;
    padding: 2rem 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

p, a, li {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
}

#hizmetler, #iletisim {
    scroll-margin-top: 100px;
}

/* Header & Navigation */
.header {
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #1D1D1C;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    position: relative;
}

.logo {
    width: auto;
    height: 80px;
}

.logo-link {
    margin-top: -10px;
    margin-bottom: -10px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    padding-left: 50px;
}

.nav-menu {
    transition: right 0.3s ease;
    z-index: 999;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: lightgrey;
    text-decoration: none;
    font-size: 15px;
    padding: 1px 20px;
    border-bottom: 4px solid;
    transition: color 0.3s;
}

.nav-link:hover {
    color: white;
}

/* Hamburger Menü (Mobil görünüm için) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid grey;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hamburger:hover {
    background-color: rgba(0, 0, 0, 1);
    transform: scale(1.05);
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: whitesmoke;
    border-radius: 2px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:first-child {
    transform: translateY(8px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-line:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

/* Alt Menü (Sub-Menu) */
.alt-menu-container {
    position: relative;
}

.alt-menu-container .alt-menu {
    display: block;
    flex-direction: column;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    width: 13rem;
    max-height: 600px;
    overflow-y: auto;
    background-color: whitesmoke;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    border: 2px solid lightgrey;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, border-color 0.3s ease;
    z-index: 50;
}

.alt-menu-container:hover .alt-menu,
.alt-menu-container.acik .alt-menu {
    opacity: 1;
    visibility: visible;
    border-color: black;
}

.alt-menu li {
    display: block;
    width: 100%;
}

.alt-menu li a {
    font-family: SamsungSansLight, sans-serif;
    font-weight: 600;
    display: block;
    padding: 0.75rem 1rem;
    color: #1D1D1C;
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
}

.alt-menu li:last-child a {
    border-bottom: none;
}

.alt-menu li a:hover {
    background-color: #f3f4f6;
    color: black;
}

/* Ana İçerik Bölümleri */
.content-section {
    padding: 3rem 0;
}

.ilk {
    padding-top: 8rem;
}

.content-section ul {
    padding-left: 20px;
    list-style-type: disc;
}

.content-section ul li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    position: relative;
    padding-bottom: 70px;
    background-color: #444444;
    color: white;
    padding: 40px 20px;
    font-family: 'Arial', sans-serif;
    padding-left: 450px;
    padding-right: 450px;
}

footer a {
    font-size: 14px;
    text-decoration: none;
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 20px;
}

.footer-column h4 {
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-column.newsletter p {
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-column.newsletter {
    position: relative;
    padding-bottom: 80px;
}

.footer-column.newsletter .newsletter-input-wrapper {
    position: relative;
    width: 100%;
}

.footer-column.newsletter input {
    width: 100%;
    padding: 10px 40px 10px 10px;
    background-color: dimgray;
    color: white;
    border: none;
}

.footer-column.newsletter button {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.03);
    color: orange;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0 10px;
}

.footer-column.newsletter button:hover {
    color: darkorange;
}

.footer-column.newsletter .copyright {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 13px;
}

.en-alt-kisim {
    position: absolute;
    bottom: 0;
    left: 250px;
    right: 250px;
    width: auto;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.en-alt-kisim .sol-kisim,
.en-alt-kisim .sag-kisim {
    position: static;
    right: auto;
    bottom: auto;
}

.en-alt-kisim .sol-kisim img,
.en-alt-kisim .sag-kisim img {
    height: 20px;
    width: auto;
    display: block;
}

.sabit-buton {
    position: fixed;
    bottom: 1rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 100;
}

.sabit-buton img {
    width: 2rem;
    height: auto;
}

.sabit-buton:hover {
    transform: scale(1.1);
}

.sabit-buton.telefon {
    background-color: #8ac149;
    left: 1rem;
}

.sabit-buton.whatsapp {
    background-color: #25d366;
    right: 1rem;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Tablet Layout (481px to 1024px) */
@media (min-width: 481px) and (max-width: 1024px) {
    .header-container {
        padding: 1rem 2rem;
    }
    
    .nav-menu {
        position: static;
        background-color: transparent;
        width: auto;
        height: auto;
        padding-top: 0;
        transition: none;
    }

    .nav-list {
        flex-direction: row;
        gap: 2rem;
    }

    .hamburger {
        display: none;
    }

    .hero-content-1 {
        left: 4rem;
        top: 4rem;
    }

    .content-section .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }

    .contact-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 4rem;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }

    .footer-nav {
        flex-direction: row;
    }
}

/* Desktop Layout (1025px and up) */
@media (min-width: 1025px) {
    .header-container {
        padding: 1rem 2rem;
    }
    
    .nav-menu {
        position: static;
        background-color: transparent;
        width: auto;
        height: auto;
        padding-top: 0;
        transition: none;
    }

    .nav-list {
        flex-direction: row;
        gap: 2rem;
    }

    .hamburger {
        display: none;
    }

    .hero-content-1 {
        left: 10%;
        top: 20%;
        max-width: 500px;
    }

    .hero-content-2 {
        bottom: 10%;
        right: 10%;
        max-width: 500px;
    }

    .logo-on-image {
        left: 10%;
        bottom: 10%;
    }

    .content-section .container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 4rem;
    }

    .contact-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 4rem;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }

    .footer-nav {
        flex-direction: row;
    }
}

/* Large Desktop Optimization (1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: 1440px;
    }
}

/* --- Mobile & Tablet (991px ve altı) --- */
@media (max-width: 991px) {
    /* Genel mobil ayarları */
    body {
        font-size: 16px;
    }

    #hakkimizda, #hizmetler, #iletisim {
        scroll-margin-top: 100px;
    }

    .header-container {
        padding: 0px 10px;
    }

    .logo {
        height: 60px;
    }

    .logo-link {
        padding-left: 20px;
    }

    /* Hamburger Menü */
    .hamburger {
        display: flex;
    }

    /* Navigasyon menüsü */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -250px; 
        width: 250px;
        height: 100%;
        background-color: #1D1D1C;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }

    /* Navigasyon listesi */
    .nav-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem; /* Daha iyi dikey boşluk */
        padding: 2rem 0; /* Boşluk ekle */
        height: 100%;
        justify-content: center; /* Dikeyde ortala */
    }

    /* Navigasyon linkleri */
    .nav-link {
        font-size: 16px;
        color: lightgrey;
        text-decoration: none;
        padding: 10px 20px;
        border-bottom: none;
    }
    
    /* Alt menü */
    .alt-menu-container .alt-menu {
        position: static;
        width: 100%;
        border: none;
        box-shadow: none;
        background-color: transparent;
        margin-top: 1rem;
        padding-left: 20px;
        opacity: 0;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, height 0.3s ease;
    }

    .alt-menu-container.acik .alt-menu {
        opacity: 1;
        visibility: visible;
        height: auto;
        overflow: auto;
    }
    
    .alt-menu li a {
        color: lightgrey;
        border-bottom: none;
        font-size: 14px;
        padding: 8px 15px; /* Alt linklere padding ekle */
    }
    
    .alt-menu li {
        margin-bottom: 5px;
    }
    
    .alt-menu li:last-child {
        margin-bottom: 90px;
    }

    /* Footer */
    footer {
        padding: 12px 35px;
        padding-bottom: 30px;
        margin: 0 auto;
        max-width: 100%;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
        margin-bottom: 12px;
    }

    .footer-column h4 {
        font-size: 11px;
    }

    .footer-column ul {
        padding: 0;
        padding-bottom: 20px;
    }

    .footer-column li {
        font-size: 10px;
    }

    .footer-column.newsletter {
        grid-column: span 2;
        padding-bottom: 30px;
        position: relative;
    }

    .footer-column.newsletter p {
        font-size: 10px;
    }

    .footer-column.newsletter input {
        width: 100%;
        padding: 6px 120px 6px 6px;
        box-sizing: border-box;
        margin-bottom: 20px;
    }

    .footer-column.newsletter button {
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        padding: 0 8px;
        background-color: rgba(0, 0, 0, 0.03);
        color: orange;
        border: none;
        cursor: pointer;
        max-height: 35px;
    }

    .footer-column .copyright {
        position: static;
        font-size: 8px;
        text-align: center;
        margin-top: 20px;
    }

    .en-alt-kisim {
        position: static;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px 12px 15px;
        box-sizing: border-box;
        width: 100%;
        gap: 10px;
        margin-top: 20px;
    }

    .en-alt-kisim .sol-kisim,
    .en-alt-kisim .sag-kisim {
        position: static;
        right: auto;
        bottom: auto;
    }

    .en-alt-kisim .sol-kisim img,
    .en-alt-kisim .sag-kisim img {
        height: 10px;
    }
}