html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}

.wrapper {
    min-height: calc(100vh - 60px);
}

/* HEADER */
header {
    background-color: #060047;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header .logo {
    font-size: 1.5em;
    font-weight: bold;
}

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

nav ul li {
    padding: 0 10px;
}

nav a {
    color: white;
    text-decoration: none;
}

/* SLIDER */
.slider {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

/* HAKKIMIZDA */
.content {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

/* PROJELER */
.projects {
    padding: 40px 20px;
    background-color: #ffffff;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    height: 350px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #eee;
}

.project-card h3 {
    padding: 15px;
    font-size: 1.2em;
    color: #333;
    margin: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background-color: white;
    width: 90%;
    max-width: 90vh;
    max-height: 90vh;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.modal-images {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-images img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1;
    border-radius: 8px;
}

.nav.left {
    left: 10px;
}

.nav.right {
    right: 10px;
}

.nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-description {
    margin-top: 20px;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 0px;
    top: -10px;
    font-size: 40px;
    cursor: pointer;
}

.close:hover {
    transform: scale(1.2);
    color: #000;
}

.about-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    gap: 40px;
}

.about-image {
    flex: 1 1 400px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1 1 500px;
}

.about-text h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.about-text p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 16px;
}

.social-icons {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.social-icons a img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.social-icons a img:hover {
    transform: scale(1.1);
}

/* FOOTER */
footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 15px 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid #444;
    }

    .slider {
        height: 250px;
    }

    .content {
        padding: 20px 10px;
    }

    footer {
        padding: 10px;
        font-size: 14px;
    }
}

/* Tab CSS */
.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background-color: #eee;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 8px;
    transition: background 0.3s;
}

.tab-button.active {
    background-color: #1a1a1a;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}