/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #043377;
    --secondary-color: #043377;
    --text-gray: #666666;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--white);
    padding-top: 100px; /* Header yüksekliği için padding */
}

/* Ana sayfa için padding'i sıfırla */
body.homepage {
    padding-top: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-top: 1rem;
    letter-spacing: 0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.7;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(4, 51, 119, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(4, 51, 119, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

.logo-img {
    max-height: 80px;
    width: auto;
    max-width: 350px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item a {
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    color: var(--white);
}

.nav-item a:hover {
    opacity: 0.8;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.nav-item a:hover::after {
    width: 100%;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-select {
    padding: 0.5rem 1rem;
    border: 1px solid #e1e6ff;
    border-radius: 0;
    background-color: transparent;
    color: var(--white);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.lang-select:hover {
    border-color: var(--white);
}

.lang-select:focus {
    border-color: var(--white);
}

.lang-select option {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 0;
    text-align: center;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/bg.jpg') no-repeat center center;
    background-size: cover;
    transform: scale(1.1);
    animation: zoomOut 3s ease-out forwards;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(4, 51, 119, 0.5), rgba(4, 51, 119, 0.5));
    z-index: -1;
}

@keyframes zoomOut {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--white);
    min-height: 3rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--white);
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    min-height: 2.5rem;
}

/* Typewriter Effect */
#typewriter-title::after,
#typewriter-subtitle::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--white);
}

#typewriter-title.completed::after,
#typewriter-subtitle.completed::after {
    display: none;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Scroll Down Arrow */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 3rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.8;
}

.scroll-down:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid #e1e6ff;
    border-radius: 0;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Cards */
.card {
    background-color: var(--white);
    border: 1px solid #e1e6ff;
    border-radius: 0;
    padding: 2rem;
    transition: var(--transition);
}

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

.card-title {
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Service Cards Layout */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-content {
    flex: 1;
}

.service-button {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 1rem;
}

/* Service Image Styles */
.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

/* Service Detail Page Image Styles */
.service-content .service-image {
    height: auto;
    overflow: visible;
}

/* Homepage Service Cards - Fixed Height */
.service-card .service-image {
    height: 200px;
    overflow: hidden;
}

.service-card .service-image img {
    width: 100%;
    height: 200px !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Announcement Images */
.announcement-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    border-radius: 8px;
}

.card:hover .announcement-image img {
    transform: scale(1.05);
}

/* Article Images */
.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    border-radius: 8px;
}

.card:hover .article-image img {
    transform: scale(1.05);
}

.service-img {
    width: 100%;
    height: 200px !important;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    border-radius: 8px;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Section */
.section {
    padding: 4rem 0;
    margin-top: -2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e1e6ff, transparent);
    opacity: 0.6;
}

/* Contact Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e1e6ff;
    border-radius: 0;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(4, 51, 119, 0.1);
}

/* Contact form submit button alignment */
#contactForm .btn {
    display: block;
    margin-left: auto;
    margin-right: 0;
    width: auto;
    min-width: 120px;
    font-size: 1.125rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-logo {
    max-height: 60px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}

.footer-description {
    text-transform: capitalize;
}

.footer-text {
    font-size: 12px;
}

/* Override footer-section style for footer-bottom */
.footer-bottom p {
    color: #ffffff !important;
    opacity: 1 !important;
}

.footer-section a:hover {
    color: var(--white);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ffffff !important;
}

.footer-bottom p {
    color: #ffffff !important;
    margin: 0;
}

.footer .footer-bottom p {
    color: #ffffff !important;
}

footer .footer-bottom p {
    color: #ffffff !important;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Mobile Controls */
.mobile-controls {
    display: none;
    align-items: center;
    gap: 15px;
}

.mobile-header-lang {
    position: relative;
}

.mobile-header-lang-select {
    background: none;
    border: 1px solid #e1e6ff;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 8px;
    outline: none;
    border-radius: 0;
    transition: var(--transition);
}

.mobile-header-lang-select:hover {
    border-color: var(--white);
}

.mobile-header-lang-select option {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-item a {
    display: block;
    padding: 15px 0;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.mobile-nav-item a:hover,
.mobile-nav-item a.active {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-language-selector {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e1e6ff;
    border-radius: 0;
    background-color: transparent;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    outline: none;
}

.mobile-lang-select option {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Liste elemanları için genel padding - tüm görünümler */
ul li {
    padding-left: 1.5rem !important;
    margin-left: 1rem !important;
}

ol li {
    padding-left: 1.5rem !important;
    margin-left: 1rem !important;
}

/* Servis içeriği liste elemanları için özel stil */
.service-content ul li {
    padding-left: 2rem !important;
    margin-bottom: 0.5rem !important;
    margin-left: 1.25rem !important;
}

.service-content ol li {
    padding-left: 2rem !important;
    margin-bottom: 0.5rem !important;
    margin-left: 1.25rem !important;
}

/* Card içindeki liste elemanları için özel stil */
.card ul li {
    padding-left: 2rem !important;
    margin-bottom: 0.5rem !important;
    margin-left: 1.25rem !important;
}

.card ol li {
    padding-left: 2rem !important;
    margin-bottom: 0.5rem !important;
    margin-left: 1.25rem !important;
}

/* Grid içindeki liste elemanları için özel stil */
.grid ul li {
    padding-left: 2rem !important;
    margin-left: 1.25rem !important;
}

.grid ol li {
    padding-left: 2rem !important;
    margin-left: 1.25rem !important;
}

/* Container içindeki tüm liste elemanları */
.container ul li {
    padding-left: 0rem !important;
    margin-left: 1.25rem !important;
}

.container ol li {
    padding-left: 0rem !important;
    margin-left: 1.25rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        display: none;
    }
    
    /* Mobil görünümde logo boyutu küçültme */
    .logo-img {
        max-height: 50px !important;
        max-width: 250px !important;
    }
    
    /* Header padding'ini mobilde azalt */
    .header-content {
        padding: 8px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .scroll-down {
        font-size: 2rem;
    }
    
    /* Grid düzenlemesi mobilde */
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    /* Liste elemanları için mobil padding */
    .grid ul {
        padding-left: 0rem;
        margin-bottom: 2rem;
    }
    
    .grid ul li {
        margin-bottom: 0.75rem;
        line-height: 1.6;
    }
    
    /* Mobil görünümde liste elemanları için ek boşluk */
    ul li {
        padding-left: 2rem !important;
        margin-left: 1.5rem !important;
    }
    
    ol li {
        padding-left: 2rem !important;
        margin-left: 1.5rem !important;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

/* Contact information icons */
.mb-4 p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
}

.mb-4 p i {
    color: var(--primary-color);
    width: 1.2rem;
    flex-shrink: 0;
    text-align: center;
    margin-top: 0.2rem;
    font-size: 1rem;
}

.mb-4 p span {
    flex: 1;
    line-height: 1.6;
}

/* İletişim sayfası için özel stiller */
.contact-info-box {
    border: 1px solid #e1e6ff;
    border-radius: 0;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(4, 51, 119, 0.08);
    transition: var(--transition);
}

.contact-info-box:hover {
    box-shadow: 0 4px 16px rgba(4, 51, 119, 0.12);
    transform: translateY(-2px);
}

.contact-form-box {
    border: 1px solid #e1e6ff;
    border-radius: 0;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(4, 51, 119, 0.08);
    transition: var(--transition);
}

.contact-form-box:hover {
    box-shadow: 0 4px 16px rgba(4, 51, 119, 0.12);
    transform: translateY(-2px);
}

/* Footer adres hizalama */
.footer-section p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
}

.footer-section p i {
    color: rgba(255,255,255,0.8);
    width: 1.2rem;
    flex-shrink: 0;
    text-align: center;
    margin-top: 0.2rem;
    font-size: 1rem;
}



/* Team Photo Styles */
.team-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e1e6ff;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.team-photo:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(4, 51, 119, 0.2);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
}

.team-photo:hover img {
    transform: scale(1.1);
}

/* Lightbox Styles for Team Photos */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-info {
    text-align: center;
    color: #ffffff;
    margin-top: 1.5rem;
}

.lightbox-info h3 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.lightbox-info p {
    margin: 0.3rem 0;
    font-size: 1rem;
    color: #ffffff;
    opacity: 1;
}

.lightbox-info p:first-of-type {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile responsive for team photos */
@media (max-width: 768px) {
    .team-photo {
        width: 120px;
        height: 120px;
        margin: 0 auto 1rem;
        border-width: 2px;
    }
    
    .lightbox-content {
        width: 95%;
        padding: 10px;
    }
    
    .lightbox-close {
        top: 5px;
        right: 15px;
        font-size: 28px;
    }
    
    /* Service images responsive */
    .service-image {
        height: 180px;
    }
    
    .service-card .service-image {
        height: 180px;
    }
    
    .service-card .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Text muted utility class */
.text-muted {
    color: #6c757d !important;
    opacity: 1;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
    display: block;
}