/* Global Styles */
:root {
    --primary-color: #008fd5;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.navbar {
    padding: 1rem;
    background: var(--light-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-light {
    background: var(--light-color) !important;
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.1);
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-nav {
    align-items: center;
}

.nav-item {
    margin: 0 0.5rem;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.flag-icon {
    width: 20px;
    height: auto;
    margin-right: 5px;
}

/* Navbar Responsive Fixes */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .navbar-nav {
        text-align: center;
        margin-left: 0;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .nav-link {
        display: inline-block;
    }
}

@media (min-width: 992px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }

    .navbar-expand-lg .navbar-toggler {
        display: none;
    }

    .nav-item:last-child {
        margin-left: 1rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Section Padding */
.section-padding {
    padding: 5rem 0;
}

/* About Section */
#hakkimizda img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Fairs Section */
#fuarlar {
    background-color: var(--light-color);
}

.fair-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

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

.fair-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.fair-card-content {
    padding: 1.5rem;
}

/* Contact Section */
#iletisim {
    background-color: white;
}

.form-control {
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

.contact-info {
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 10px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    .hero-section {
        height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .about-hero-section,
    .projects-hero-section,
    .contact-hero-section {
        height: 30vh;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .navbar {
        padding: 0.5rem;
    }

    .navbar-brand {
        margin-left: 0.5rem;
    }

    .navbar-brand img {
        max-height: 40px;
    }

    .navbar-toggler {
        margin-right: 0.5rem;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }

    .feature-card {
        margin-bottom: 2rem;
    }

    .about-hero-section,
    .projects-hero-section,
    .contact-hero-section {
        height: 25vh;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 40vh;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .about-hero-section,
    .projects-hero-section,
    .contact-hero-section {
        height: 20vh;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1rem;
    }

    .social-links {
        margin-top: 1rem;
    }

    .social-links .social-link {
        margin: 0 0.5rem;
    }

    .info-item {
        margin-bottom: 1rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        padding: 0.5rem 0;
    }
}

/* Fix for very small devices */
@media (max-width: 360px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .navbar-brand img {
        max-height: 35px;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for navigation on mobile */
.navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
}

@media (max-width: 992px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
}

/* Improve form elements on mobile */
@media (max-width: 768px) {
    input, textarea, select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    .form-control {
        padding: 0.5rem;
    }
}

/* Fix for hero sections background */
.hero-section,
.about-hero-section,
.projects-hero-section,
.contact-hero-section {
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0077b3;
    transform: translateY(-2px);
}

/* Hero section's project button special styles */
.hero-buttons .btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.hero-buttons .btn-primary:hover {
    transform: scale(1.1);
    padding: 0.9rem 2.2rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 143, 213, 0.4);
    letter-spacing: 0.5px;
}

.hero-buttons .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transform: scale(0);
    transition: all 0.4s ease;
}

.hero-buttons .btn-primary:hover::after {
    transform: scale(1);
}

/* Hero section's contact button special styles */
.hero-buttons .btn-outline-light {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid white;
}

.hero-buttons .btn-outline-light:hover {
    transform: scale(1.1);
    padding: 0.9rem 2.2rem;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    border-width: 2px;
}

.hero-buttons .btn-outline-light::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transform: scale(0);
    transition: all 0.4s ease;
}

.hero-buttons .btn-outline-light:hover::after {
    transform: scale(1);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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

/* About Page Styles */
.about-hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/about-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.about-hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-hero-section p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.about-image-container {
    position: relative;
    margin-bottom: 1rem;
}

.company-name-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
}

.company-name-overlay h3 {
    color: white;
    font-style: italic;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

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

.feature-card i {
    color: var(--primary-color);
}

.feature-card h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .about-hero-section {
        height: 30vh;
    }
    
    .about-hero-section h1 {
        font-size: 2rem;
    }
    
    .about-hero-section p {
        font-size: 1rem;
    }
}

/* Projects Page Styles */
.projects-hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/projects-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.projects-hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.projects-hero-section p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

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

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-content p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.project-content i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.project-content .location,
.project-content .date {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .projects-hero-section {
        height: 30vh;
    }
    
    .projects-hero-section h1 {
        font-size: 2rem;
    }
    
    .projects-hero-section p {
        font-size: 1rem;
    }
    
    .project-image img {
        height: 200px;
    }
}

/* Project Details Page Styles */
.project-main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.project-gallery {
    margin-top: 2rem;
}

.carousel {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.carousel-img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background-color: white;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-indicators {
    margin-bottom: 0.5rem;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
}

.carousel-indicators .active {
    opacity: 1;
}

.gallery-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumbnail:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .carousel-img {
        height: 300px;
    }

    .gallery-thumbnail {
        aspect-ratio: 3/2;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
        opacity: 1;
    }
}

.project-info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-info-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 30px;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--secondary-color);
}

.info-item p {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--dark-color);
}

.project-description-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-description-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.feature-list li i {
    color: var(--primary-color);
    margin-right: 0.8rem;
}

@media (max-width: 768px) {
    .project-main-image img {
        height: 300px;
    }
    
    .project-gallery img {
        height: 120px;
    }
    
    .project-info-card,
    .project-description-card {
        padding: 1.5rem;
    }
}

/* Contact Page Styles */
.contact-hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/contact-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-hero-section p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.contact-info-card,
.contact-form-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.contact-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
}

.contact-form-card form {
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.contact-form-card textarea {
    flex: 1;
    min-height: 150px;
}

.info-item {
    display: flex;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.info-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #333;
}

.info-item p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: auto;
    padding-top: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .contact-hero-section {
        height: 30vh;
    }
    
    .contact-hero-section h1 {
        font-size: 2rem;
    }
    
    .contact-hero-section p {
        font-size: 1rem;
    }
    
    .contact-info-card, .contact-form-card {
        padding: 1.5rem;
    }
}

/* Language Switcher Styles */
#languageSwitch {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem !important;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#languageSwitch:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#languageSwitch img {
    margin-right: 5px;
}

/* Back Button Section Styles */
.back-section {
    position: relative;
    margin: 0 0 3rem 0;
    padding-left: 20px;
}

.back-button {
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-button:hover {
    background-color: #f8f9fa;
    color: #495057;
    border-color: #ced4da;
    text-decoration: none;
}

/* Modal Carousel Styles */
.modal-dialog-centered.modal-lg {
    max-width: 900px;
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.9);
    border: none;
}

.modal-header {
    position: absolute;
    right: 0;
    z-index: 1050;
    border: none;
    background: none;
}

.btn-close {
    background-color: white;
    opacity: 0.8;
    padding: 0.5rem;
    margin: 0.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
}

#galleryModal .carousel-img {
    height: 80vh;
    object-fit: contain;
    padding: 20px;
}

#galleryModal .carousel-control-prev,
#galleryModal .carousel-control-next {
    width: 10%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#galleryModal:hover .carousel-control-prev,
#galleryModal:hover .carousel-control-next {
    opacity: 0.8;
}

#galleryModal .carousel-control-prev-icon,
#galleryModal .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 1.5rem;
    background-size: 40%;
}

.gallery-thumbnail {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.gallery-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumbnail:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    #galleryModal .carousel-img {
        height: 60vh;
    }

    .gallery-thumbnail img {
        height: 150px;
    }

    .modal-dialog-centered.modal-lg {
        margin: 1rem;
    }
} 