:root {
    --primary-color: #497593;
    --secondary-color: #9ec9ba;
    --dark-color: #497593;
    --light-text: #9ec9ba;
    --background-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

body.no-scroll { /* Modal açıkken kaydırmayı engellemek için */
    overflow: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header_social, .footer_social {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style-type: none;
}

.footer_social {
    margin: 20px 0 0 0;
    justify-content: flex-start;
}

.header_social li, .footer_social li {
    margin: 0 0 0 10px;
}

.footer_social li {
    margin: 0 10px 0 0;
}

.header_social li a, .footer_social li a {
    width: 20px;
    height: 20px;
    display: block;
}

.header_social li a svg * {
    fill: var(--dark-color);
}

.footer_social li a svg * {
    fill: #fff;
}

section {
    scroll-margin-top: 100px;
}

.logo {
    width: 100px;
    height: 100px;
    display: block;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.hero-section {
    height: 80vh;
    background: url('spi-hero.jpg') no-repeat center / cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-section::before {
    width: 100%;
    height: 100%;
    background-color: rgba(73, 117, 147, 0.7);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .6;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 2rem;
    max-width: 900px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 300;
}

.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 600;
}

.about-us-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-us-container .text-content {
    flex: 1;
    text-align: left;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.text-content p {
    color: #000;
}

/* "Daha fazla oku" butonu için stil */
#readMoreBtn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin: 1.5rem 0;
    transition: background-color 0.3s ease;
}

#readMoreBtn:hover {
    background-color: #3f6077;
}

/* Gizlenecek içerik için stil */
.hidden-content {
    display: none;
}

.hidden-content.show-content {
    display: block;
}

.about-us-container .image-gallery {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.about-us-container .image-gallery img {
    width: clamp(250px, 45vw, 400px);
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-us-container p {
    margin-bottom: 1rem;
    color: #000;
}

/* Company Objectives List Styling */
.text-content ul {
    list-style-type: disc; /* Madde işaretleri için */
    margin-left: 20px;
    padding-left: 0;
    margin-top: 15px;
}

.text-content ul li {
    margin-bottom: 10px;
    text-align: left;
    color: #000;
}

#projects .card-grid .card {
    padding: 0;
    background-color: transparent;
    position: relative;
    align-items: center;
    justify-content: flex-start;
}

.card_img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
}

.card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#projects .card-grid .card h4 {
    font-size: 13px;
    padding: 10px 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
    border: 1px solid #e9ecef;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card h4 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.15rem;
}

.card p {
    color: var(--light-text);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* Team Section */
.team-grid {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.team-member {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--primary-color);
    object-fit: cover;
    object-position: top;
    margin-bottom: 15px;
    border: 5px solid var(--secondary-color);
}

.team-member h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.team-member p {
    margin: 5px 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* CV Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 700px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#cvContent h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

#cvContent p {
    margin-bottom: 10px;
    color: #333;
    line-height: 1.6;
    text-align: left;
}

#cvContent p strong {
    color: var(--dark-color);
}


.contact-info {
    text-align: center;
    font-size: 1.1rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
}

footer {
    background-color: var(--dark-color);
    color: var(--secondary-color);
    padding: 3rem 2rem;
    text-align: center;
}

footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

footer .footer-col {
    flex-basis: 30%;
    margin-bottom: 2rem;
    text-align: left;
    color: #fff;
}

.footer-logo {
    width: 100px;
    margin-bottom: 10px;
    display: block;
}

footer .footer-col h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

footer .footer-col ul {
    list-style: none;
}

footer .footer-col ul li {
    margin-bottom: 0.5rem;
}

footer .footer-col ul li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

footer .footer-col ul li a:hover {
    text-decoration: underline;
}

.footer-col.left {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

footer .footer-contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #fff;
}

/* Mobile menu specific styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--dark-color);
    border-radius: 3px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background-color: var(--background-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    padding-top: 5rem;
    z-index: 1000;
    right: -100%;
}

.mobile-overlay.active {
    display: block;
    right: 0;
}

.map, .map iframe {
    width: 100%;
}

/* Mobile Styles */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    .header_social {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        display: block; /* display: none'ı kaldırıp, blok olarak görünmesini sağla */
        position: fixed;
        top: 0;
        right: -100%; /* Kapalıyken menüyü ekranın dışına taşı */
        width: 70%;
        height: 100%;
        background-color: var(--background-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        padding-top: 5rem;
        z-index: 1000;
    }

    /* Menü açıldığında nav öğesinin stili */
    nav.active {
        right: 0; /* Menüyü görünür hale getir */
    }

    nav ul {
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 1.5rem;
    }

    nav ul li {
        margin: 1rem 0;
        width: 100%;
    }

    nav ul li a {
        font-size: 1.2rem;
        padding: 0.5rem 0;
        display: block;
    }

    /* mobile-overlay sınıfını sil */
    .mobile-overlay,
    .mobile-overlay.active {
        display: none;
    }

    .about-us-container {
        flex-direction: column;
    }
    .section {
        padding: 3rem 1rem;
    }
    .section-title {
        margin-bottom: 2rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-col {
        text-align: center;
        flex-basis: 100%;
    }
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    .close-button {
        top: 5px;
        right: 10px;
        font-size: 24px;
    }
}