/* ===== RESET & BASE ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: #000000 url("photos/webpage/bg2.png") no-repeat center center;
    background-size: cover;
    color: #d8d8d8;
    overflow-x: hidden;
}

.modal-open {
    overflow: hidden;
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(21, 22, 26, 0.7);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
    /* Bu satırı ekle */
}

.logo {
    top: 0;
    left: 0;
    width: 360px;
    height: 100px;
}

/* ===== NAVIGATION ===== */
nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: #d8d8d8;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav a:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: #f3d791;
    transform: scale(1.15);
}

.about_header {
    color: #f3d791;
    font-weight: 700;
    background: rgba(22, 23, 25, 0.9);
    display: inline-block;
    padding: 12px 18px;
    border-radius: 16px;
    margin-bottom: 2px;
}

.about_text {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    padding: 18px 10%;
    background: rgba(21, 22, 26, 0.9);
    border-radius: 16px;
    margin: 18px auto;
    max-width: 900px;
    width: fit-content
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 50px;
    text-align: center;
    scroll-margin-top: 100px;
}

.section.hero {
    padding-top: 20px;
}

.section.hero img {
    background: rgba(21, 22, 26, 0.9);
    width: 35%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.section.about {
    padding: 0;
}

.section.about img {
    width: 100%;
    height: auto;
    display: block;
}

.section.contact {
    padding: 0;
}

/* ===== PROJECTS ===== */
.projects {
    color: #f3d791;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.projects_header {
    color: #f3d791;
    background: rgba(22, 23, 25, 0.9);
    display: inline-block;
    padding: 12px 18px;
    border-radius: 16px;
}

.card {
    background: rgba(21, 22, 26, 0.9);
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 20px;
    flex: 1;
    max-width: 400px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
    height: fit-content;
    /* İçeriğe göre boyutlan */
}

.card p{
    color: #d8d8d8;
}

.card:hover {
    transform: translateY(-5px) scale(1.03);
    background: rgba(255, 215, 0, 0.15);
    border-color: #f3d791;
}

.contact_header {
    color: #f3d791;
    background: rgba(22, 23, 25, 0.9);
    display: inline-block;
    padding: 12px 18px;
    border-radius: 16px;
}

.contact_cont {
    color: #f3d791;
    font-size: 15px;
    padding: 18px 10%;
    background: rgba(21, 22, 26, 0.9);
    border-radius: 16px;
    margin: auto;
    text-align: left;
    gap: 2px;
    flex-direction: column;
    display: flex;
    max-width: 900px;
    margin: 18px auto;
}

.contact-text {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-text:hover {
    background: rgba(255, 215, 0, 0.1);
}

.contact-text i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    color: #d8d8d8;
    font-size: 16px;
    transition: all 0.3s ease;
}

.address br {
    display: none;
}

.contact-text:hover i {
    color: #f3d791;
    border-color: #f3d791;
    background: rgba(255, 215, 0, 0.15);
}

/* ===== FOOTER ===== */
footer {
    background: rgba(21, 22, 26, 1);
    padding: 15px 50px;
    text-align: left;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    margin-top: 5%;
    position: relative;
    background: url("photos/webpage/bgmodal2.png") rgba(21, 22, 26, 0.9);
    width: 75%;
    max-width: 1000px;
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.gallery {
    width: 100%;
    height: 420px;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
    position: relative;
    padding: 30px 25px;
    box-sizing: border-box;
}

.modal img {
    max-height: 100%;
    max-height: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Kırpmadan sığdır */
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #d8d8d8;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}

.close:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #f3d791;
    border-color: #f3d791;
    transform: scale(1.1);
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    gap: 20px;
    flex-shrink: 0;
    border-radius: 0 0 12px 12px;
}

.controls button {
    display: flex;
    background: transparent;
    border: 2px solid rgba(255, 215, 0, 0.3);
    align-items: center;
    justify-content: center;
    color: #d8d8d8;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.controls button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex: 1;
}

.dot {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.dot.active {
    background: #f3d791;
    border-color: #f3d791;
}

.dot:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: #f3d791;
}

.controls button:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #f3d791;
    border-color: #f3d791;
    transform: scale(1.15);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .section {
        padding: 0;
        scroll-margin-top: 120px;
    }

    header {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
        padding: 15px 20px;
        gap: 15px;
    }

    .logo {
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        font-size: 14px;
        padding: 6px 10px;
    }

    .projects {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 400px;
        /* Masaüstündeki gibi sınırla */
        flex: none;
    }

    footer {
        padding: 15px 20px;
        text-align: center;
    }

    /* Modal Mobile */
    .modal-content {
        width: 92%;
        padding: 20px;
        padding-top: 50px;
        margin-top: 10%;
    }

    .gallery {
        height: 300px;
    }

    .modal img {
        width: 100%;
        height: auto;
        max-height: 350px;
    }

    .controls {
        gap: 20px;
    }

    .controls button {
        width: 44px;
        height: 44px;
    }

    .controls button svg {
        width: 20px;
        height: 20px;
    }

    .close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 18px;

    }

    /* Contact Responsive */
    .contact_cont {
        padding: 15px 5%;
    }

    .contact-text {
        flex-wrap: wrap;
        gap: 10px;
    }

    .contact-text i {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .contact-text p {
        word-break: break-word;
    }

    .address .br-768 {
        display: inline;
    }
     .contact-form-container {
        padding: 20px 15px;
        margin: 20px 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-header {
        font-size: 20px;
    }

    .submit-btn {
        width: 100%;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    .section.hero {
        padding: 0;
    }

    .section.about {
        padding: 0;
    }

    .section.contact {
        padding: 0;
    }

    .logo {
        text-align: center;
        justify-content: center;
        align-items: center;
        width: 45%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    nav a {
        font-size: 13px;
        padding: 5px 8px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .section h1 {
        font-size: 24px;
    }

    .modal-content {
        margin-top: 15%;
        padding: 15px;
        padding-top: 45px;
    }

    .card {
        width: 100%;
        max-width: 250px;
        /* Çok küçük ekranlarda tam genişlik */
        flex: none;
    }

    .gallery {
        height: 300px;
    }

    .modal img {
        width: 100%;
        height: auto;
    }

    .close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .controls button {
        width: 40px;
        height: 40px;
    }

    .controls button svg {
        width: 18px;
        height: 18px;
    }

    /* Contact Responsive */
    .contact_cont {
        padding: 12px 5%;
    }

    .contact-text {
        flex-wrap: wrap;
        gap: 8px;
    }

    .contact-text i {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .contact-text p {
        font-size: 14px;
        word-break: break-word;
    }
    .contact-form-container {
        padding: 15px 12px;
        margin: 15px 10px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .form-group label {
        font-size: 13px;
    }
}

/* ===== TABLET RESPONSIVE (768px - 875px) ===== */
@media (max-width: 875px) and (min-width: 769px) {
    header {
        padding: 15px 30px;
        gap: 10px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 14px;
        padding: 6px 10px;
    }

    .logo {
        width: 280px;
        height: auto;
    }

    .section {
        padding: 80px 30px;
    }

    .section.hero img {
        width: 50%;
    }

    .projects {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 400px;
        flex: none;
    }

    .about_text {
        padding: 18px 5%;
        font-size: 18px;
    }

    .modal-content {
        width: 85%;
    }

    .gallery {
        height: 380px;
    }

    /* Contact Responsive */
    .contact_cont {
        padding: 15px 5%;
    }

    .contact-text i {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .contact-text p {
        word-break: break-word;
    }
}

@media (max-width: 960px) and (min-width: 875px) {
    nav {
        gap: 15px;
    }

    nav a {
        font-size: 14px;
        padding: 6px 10px;
    }

    /* Contact Responsive */
    .contact_cont {
        padding: 15px 5%;
    }

    .contact-text {
        gap: 12px;
    }

    .contact-text i {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .contact-text p {
        word-break: break-word;
    }
}

@media (max-width: 533px) {
    .address .br-533 {
        display: inline;
    }
}
/* ===== CONTACT FORM ===== */
.contact-form-container {
    background: rgba(21, 22, 26, 0.9);
    border-radius: 16px;
    padding: 30px;
    max-width: 900px;
    margin: 30px auto;
}

.form-header {
    color: #f3d791;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group.full-width {
    width: 100%;
    margin-bottom: 20px;
}

.form-group label {
    color: #f3d791;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    color: #d8d8d8;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(216, 216, 216, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f3d791;
    background: rgba(255, 215, 0, 0.05);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-group select option {
    background: #1a1b1f;
    color: #d8d8d8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 2px solid rgba(255, 215, 0, 0.5);
    color: #f3d791;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    margin-top: 10px;
}

.submit-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: #f3d791;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    font-size: 14px;
}

.thank-you-message {
    display: none;
    background: rgba(46, 125, 50, 0.2);
    border: 2px solid rgba(46, 125, 50, 0.5);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    text-align: center;
}

.thank-you-message i {
    color: #4caf50;
    font-size: 48px;
    margin-bottom: 15px;
}

.thank-you-message p {
    color: #d8d8d8;
    font-size: 16px;
    margin: 0;
}



.modal,
.modal-content,
.modal img,
.controls,
.controls button {
    touch-action: manipulation;
}