@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Montserrat:wght@700&display=swap');

:root {
  --blue-dark: #0b1f33;
  --blue-main: #143a5a;
  --blue-soft: #1f4d73;
  --accent: #2aa7a1;
  --gray-bg: #f4f6f8;
  --text-dark: #1e1e1e;
}

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

body {
    font-family: 'Lora', serif;
    background-color: var(--gray-bg);
    color: #333;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0; /* Increased padding for better centering */
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #000000; /* Changed to black for visibility */
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo img {
    height: 60px; /* Specific height for the logo image */
    width: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Align image vertically */
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem; /* Keeping the increased font size */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--blue-soft);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #333;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    font-family: 'Montserrat', sans-serif;
    color: #3399FF; /* Changed to blue */
}

/* Hero Section */
.hero-section {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: crossfade 9s infinite;
}

.hero-bg-slide:nth-child(1) {
    background-image: url('../img/product1.jpeg');
    animation-delay: 0s;
}

.hero-bg-slide:nth-child(2) {
    background-image: url('../img/giris2.jpeg');
    animation-delay: 3s;
}

.hero-bg-slide:nth-child(3) {
    background-image: url('../img/giris3.jpeg');
    animation-delay: 6s;
}
.hero-bg-slide:nth-child(4) {
    background-image: url('../img/giris4.jpeg');
    animation-delay: 6s;
}

@keyframes crossfade {
    0%, 33.33%, 100% {
        opacity: 0;
    }
    3%, 30% {
        opacity: 1;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 6rem;
    margin-bottom: 1rem;
    /* color: #12304e; /* Set hero title to blue */
    color: "white"; /* Set hero title to white for better contrast */
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    font-family: 'Lora', serif;
}

.btn-primary {
    background-color: transparent !important;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    transition: all 0.3s ease; /* Add transition for smooth animation */
}

.btn-primary:hover {
    background-color: transparent !important;
    color: #fff;
    border-color: #fff;  /*Light blue border on hover */
    transform: scale(1.05); /* Slightly enlarge the button */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); /* Subtle white glow */
}

/* Features Section */
.features-section {
    background-color: var(--gray-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background-color: #fff;
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.feature-icon svg {
    width: 50px;
    height: 50px;
}

.feature-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--blue-main);
}

.feature-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #007BFF;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.feature-link:hover {
    text-decoration: underline;
}

/* Products Section */
.products-section {
    background-color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.index-products-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust minmax for 3 items */
    max-width: 960px; /* Adjust based on desired spacing */
    margin: 0 auto; /* Center the grid */
}

@media (min-width: 992px) {
    .index-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.product-info {
    position: absolute; /* Change from absolute */
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9); /* Solid background for visibility */
    color: #333; /* Dark text for readability */
    padding: 1rem 1.5rem; /* Adjust padding */
    transform: translateY(100%); /* Always visible */
    transition: transform 0.3s ease; /* Remove transition */
}

.product-card:hover .product-info {
    transform: translateY(0); /* Ensure no movement on hover */
}

.product-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem; /* Slightly smaller for card view */
    margin-bottom: 0.25rem; /* Reduced margin */
    color: var(--blue-main);
}

.product-info p {
    font-size: 0.9rem; /* Smaller font size */
    margin-bottom: 0rem;
    color: #555;
}

/* Hide the button within product info */
.product-info .btn {
    display: none;
}

/* Common H2 for sections */
h2, .section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--blue-main);
    border-bottom: 3px solid var(--blue-main); /* Blue line */
    padding-bottom: 0.8rem; /* Space between text and line */
    display: block; /* Make it a block element again */
    width: fit-content; /* Make the block width fit its content */
    margin: 0 auto 4rem auto; /* Center the block and provide margin-bottom */
    text-align: center; /* Center the text within the block */
}

/* About and Quality sections existing paragraph styles */
.about-section p,
.quality-section p,
.about-section ul,
.quality-section ul { /* Added .quality-section ul */
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
    text-align: center;
}

.about-section ul,
.quality-section ul { /* Added .quality-section ul */
    list-style: disc;
    padding-left: 20px; /* Indent bullet points */
    margin-bottom: 1.5rem; /* Space after the list */
    text-align: left; /* Align text within the list items to the left */
}

.about-section ul li,
.quality-section ul li { /* Added .quality-section ul li */
    margin-bottom: 0.5rem;
}

/* Existing contact section (from index.html before merge, now renamed) */
.contact-section {
    text-align: center;
    padding: 6rem 0;
}

.contact-section p {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    color: #555;
    text-align: center;
}

/* Common button style */
.btn {
    background-color: transparent;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block; /* Ensure it respects margin/padding */
    border: 1px solid #fff; /* Add a white border */
}

.btn:hover {
    background-color: #fff;
    color: #333;
}

.faaliyet-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.faaliyet-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--blue-main);
}

.faaliyet-card p {
    color: #555;
}

/* Cards (for Faaliyet Alanları page) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    color: var(--blue-main);
    font-size: 1.4rem;
}

.project-card p {
    color: #555;
}

/* Contact Info Section (for index.html) */
.contact-info-section {
    background-color: var(--gray-bg);
    color: #020617;
    padding: 5rem 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-align: left;
}

.contact-text .section-intro {
    font-size: 1.1rem;
    color: #555; /* A slightly lighter, more subtle color */
    margin-bottom: 2rem; /* Add some space below it */
    text-align: left;
    font-style: italic; /* Make it stand out as an intro text */
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: #334155;
}

.contact-item .icon {
    font-size: 1.1rem;
    margin-top: 3px;
    color: var(--accent); /* This might be orange, let's keep it blue for consistency */
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background-color: #fff;
    color: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.social-links a:hover {
    background-color: var(--accent);
    color: #fff;
}

.map-placeholder {
    background-color: #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #64748b;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Footer */
.site-footer {
    background-color: var(--blue-dark);
    color: #ecf0f1;
    padding: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.footer-info p {
    margin: 0;
    font-size: 1rem;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    margin-left: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Responsive */
@media (min-width: 992px) {
    .contact-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .nav-links li {
        margin-left: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        right: 0;
        top: 100%;
        background-color: #ffffff;
        width: 100%;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
    }
    
    .nav-links a {
        padding: 1rem;
        text-align: center;
        display: block;
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-toggle {
        display: block;
    }

    .home-content h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Contact Page Specific Styles */
.contact-page-section .section-title {
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form-container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-form-container h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--blue-main);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Lora', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #007BFF;
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-info-block {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-info-block h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--blue-main);
}

.contact-info-block .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #555;
}

.contact-info-block .contact-item .icon {
    font-size: 1.2rem;
    color: var(--accent);
}

.contact-info-block .social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.8rem;
}

.contact-info-block .social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.contact-info-block .social-links a:hover {
    background-color: var(--blue-main);
}

.map-container {
    border-radius: 8px;
    margin-top: 2rem;
}

.about-card p {
    text-align: left;
}

/* About Page Feature Sections */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 3rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2); /* Always present subtle blue shadow */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 123, 255, 0.6); /* More intense blue shadow on hover */
}

.about-feature.reverse {
    flex-direction: row-reverse;
}

.about-feature-icon {
    background-color: #ffffff; /* White background instead of blue */
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-feature-icon img { /* Styling for the new image logo */
    width: 60px;
    height: 60px;
    object-fit: contain; /* Ensures the image fits without cropping */
}

.about-feature-text {
    padding: 2rem;
    flex: 1;
}

.about-feature-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--blue-main);
}

.about-feature-text p {
    color: #555;
    font-size: 1rem;
    text-align: left;
}

@media (max-width: 768px) {
    .about-feature, .about-feature.reverse {
        flex-direction: column;
        gap: 0;
    }

    .about-feature-icon {
        padding: 2rem 0;
        width: 100%;
    }

    .about-feature-text {
        padding: 2rem;
    }
}
