/* Elsa Mühendislik Website Styles */
/* Color scheme: Dark Green (#2E5E3A) and Yellow (#F4D03F) inspired by Istanbul University */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-top: 120px; /* Compensate for fixed header */
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1B4D3E 0%, #2E5E3A 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.left-menu,
.right-menu {
    display: flex;
    gap: 0;
    flex: 1;
}

.left-menu {
    justify-content: flex-end;
    margin-right: 30px;
}

.right-menu {
    justify-content: flex-start;
    margin-left: 30px;
}

.left-menu .nav-item,
.right-menu .nav-item {
    position: relative;
}

.left-menu .nav-item > a,
.right-menu .nav-item > a {
    display: block;
    padding: 15px 20px;
    color: #F4D03F;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.left-menu .nav-item:hover > a,
.left-menu .nav-item.active > a,
.right-menu .nav-item:hover > a,
.right-menu .nav-item.active > a {
    color: #F4D03F;
    background-color: rgba(244, 208, 63, 0.1);
    border-bottom-color: #F4D03F;
}

.left-menu .dropdown-menu,
.right-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2E5E3A;
    min-width: 280px;
    list-style: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.left-menu .nav-item:hover .dropdown-menu,
.right-menu .nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.left-menu .dropdown-item a,
.right-menu .dropdown-item a {
    display: block;
    padding: 12px 20px;
    color: #F4D03F;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.left-menu .dropdown-item:hover a,
.right-menu .dropdown-item:hover a {
    background-color: #1B4D3E;
    border-left-color: #F4D03F;
    padding-left: 25px;
}

.logo-container {
    text-align: center;
    flex: 0 0 auto;
}

.logo {
    max-height: 140px;
    width: auto;
}

.site-title {
    color: #F4D03F;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 5px;
}

/* Navigation Styles */
.main-nav {
    background-color: #F4D03F;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none; /* Hide desktop navigation */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 15px 20px;
    color: #1B4D3E;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-item:hover > a,
.nav-item.active > a {
    background-color: #1B4D3E;
    color: #F4D03F;
    border-bottom-color: #F4D03F;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2E5E3A;
    min-width: 280px;
    list-style: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item a {
    display: block;
    padding: 12px 20px;
    color: #F4D03F;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover a {
    background-color: #1B4D3E;
    border-left-color: #F4D03F;
    padding-left: 25px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #1B4D3E;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 60vh;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(30, 77, 62, 0.7), rgba(30, 77, 62, 0.7));
    padding: 60px 0;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #F4D03F;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Slider Styles */
.slider-container {
    position: relative;
    max-width: 100%;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 77, 62, 0.8);
    color: #F4D03F;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: rgba(30, 77, 62, 1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    text-align: center;
    padding: 20px 0;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2E5E3A;
}

/* Split Banner Section */
.split-banner {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: 120px; /* Reduced from 100vh to 120px */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.split-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.split-left {
    background: linear-gradient(135deg, #1B4D3E 0%, #2E5E3A 100%);
    color: #00E5CC;
}

.split-right {
    background: linear-gradient(135deg, #2E5E3A 0%, #1B4D3E 100%);
    color: #FFFFFF;
}

.split-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.split-section a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.split-section a:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.split-left a:hover h2 {
    color: #FFFFFF;
    text-shadow: 0 0 10px #00E5CC;
}

.split-right a:hover h2 {
    color: #F4D03F;
    text-shadow: 0 0 10px #FFFFFF;
}

.split-section::after {
    content: '';
    position: absolute;
    top: 20%;
    bottom: 20%;
    right: 0;
    width: 1px;
    background: rgba(255,255,255,0.3);
}

.split-right::after {
    display: none;
}

/* Content Sections */
.content-section {
    background: white;
    padding: 40px 30px;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section-title {
    color: #1B4D3E;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #F4D03F;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.card-header {
    background: #2E5E3A;
    color: #F4D03F;
    padding: 20px;
    text-align: center;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-content {
    padding: 20px;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Card Number Icons */
.card-number.tree-icon,
.card-number.leaf-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.card-number.tree-icon {
    color: #F4D03F; /* Yellow color for tree */
}

.card-number.leaf-icon {
    color: #2E5E3A; /* Green color for leaf */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2E5E3A;
    color: #F4D03F;
}

.btn-primary:hover {
    background: #1B4D3E;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #F4D03F;
    color: #1B4D3E;
}

.btn-secondary:hover {
    background: #F1C40F;
    transform: translateY(-2px);
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 15px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1B4D3E 0%, #2E5E3A 100%);
    color: #F4D03F;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #F4D03F;
}

.footer-section p,
.footer-section li {
    color: #E8F5E8;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #E8F5E8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #F4D03F;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2E5E3A;
    color: #E8F5E8;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #1B4D3E;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2E5E3A;
}

textarea.form-control {
    height: 120px;
    resize: vertical;
}

/* Google Maps */
.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 30px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .left-menu,
    .right-menu {
        display: none;
    }
    
    .main-nav {
        display: block; /* Show navigation on mobile */
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #F4D03F;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    body {
        padding-top: 140px; /* Increased padding for mobile header */
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-item > a {
        padding: 15px 20px;
        border-bottom: 1px solid #E8E8E8;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #1B4D3E;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .slider-nav {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .content-section {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .split-banner {
        height: 120px; /* Reduced from 100vh to 120px on mobile */
        flex-direction: row; /* Keep horizontal layout on tablets */
    }
    
    .split-section h2 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .slider-container {
        margin: 10px 0;
    }
    
    .slide img {
        height: 250px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .split-banner {
        height: 100px; /* Reduced height on small screens */
    }
    
    .split-section h2 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Decorative Elements */
.decorative-left,
.decorative-right {
    position: fixed;
    top: 0;
    height: 100%;
    width: 150px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.decorative-left {
    left: 0;
}

.decorative-right {
    right: 0;
}

.decorative-left i,
.decorative-right i {
    font-size: 48px;
    color: #2E5E3A;
}

/* Background Pattern with Transparent Plane Trees */
body {
    position: relative;
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3C!-- Transparent plane trees (Çınar) with rounded crowns --%3E%3Cpath d='M50 120 L45 100 Q40 80 50 60 Q60 80 55 100 L50 120 Z' fill='rgba(46, 94, 58, 0.05)'/%3E%3Ccircle cx='50' cy='50' r='30' fill='rgba(46, 94, 58, 0.05)'/%3E%3Cpath d='M120 110 L115 90 Q110 70 120 50 Q130 70 125 90 L120 110 Z' fill='rgba(46, 94, 58, 0.05)'/%3E%3Ccircle cx='120' cy='40' r='25' fill='rgba(46, 94, 58, 0.05)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
}

/* Print Styles */
@media print {
    .header, .main-nav, .footer, .whatsapp-widget {
        display: none;
    }
    
    .main-content {
        max-width: none;
        padding: 0;
    }
}