:root {
    --primary-color: #1A365D; /* Lacivert (Navy Blue) */
    --primary-light: #2563EB; /* Açık Mavi (Hover ve vurgular için) */
    --accent-color: #25D366; /* WhatsApp Yeşili */
    --accent-yellow: #EAB308; /* Altın Sarısı */
    --text-dark: #1E293B; /* Koyu gri başlıklar */
    --text-light: #64748B; /* Gri alt metinler */
    --bg-dark: #F1F5F9; /* bg-light alanları için çok açık gri */
    --bg-navy: #FFFFFF; /* Ana arka plan bembeyaz */
    --pure-white: #FFFFFF; /* Saf beyaz */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-navy); /* Tüm site lacivert ağırlıklı */
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-dark); /* Koyu temada bg-light siyah olur */
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: var(--bg-navy);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--pure-white);
    border-color: var(--pure-white);
}

.btn-outline-white:hover {
    background-color: var(--pure-white);
    color: var(--text-dark);
}

/* Topbar */
.topbar {
    background-color: var(--primary-color);
    color: var(--pure-white);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left span {
    margin-right: 20px;
}

.topbar-left i {
    margin-right: 5px;
    color: var(--accent-yellow);
}

.topbar-right a {
    color: var(--pure-white);
    margin-left: 15px;
}

.topbar-right a:hover {
    color: var(--accent-yellow);
}

/* Header */
.header {
    background-color: var(--bg-navy);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo span {
    color: var(--accent-yellow);
}

.logo img {
    height: 65px;
    width: auto;
    display: block;
    object-fit: contain;
    background-color: rgba(255,255,255,0.8); /* Logonun koyu temada görünmesi için */
    padding: 5px;
    border-radius: 4px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 10px;
    background-color: rgba(255,255,255,0.8);
    padding: 10px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-yellow);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-yellow);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    height: calc(100vh - 120px);
    background-image: url('image/img_29.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(11,17,32,0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--pure-white);
    max-width: 800px;
}

.hero-title {
    font-size: 60px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-title span {
    color: var(--accent-yellow);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-light);
    border-radius: 8px;
    z-index: -1;
}

.about-text {
    flex: 1;
}

.section-subtitle {
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-features {
    margin-bottom: 30px;
}

.about-features li {
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features i {
    color: var(--accent-yellow);
}

/* Stats Section */
.stats {
    position: relative;
    background-image: url('image/img_15.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--pure-white);
    text-align: center;
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 17, 32, 0.85); /* Lacivert overlay */
}

.stats-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-box {
    padding: 20px;
}

.stat-icon {
    font-size: 40px;
    color: var(--accent-yellow);
    margin-bottom: 15px;
}

.stat-number-wrapper {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
}

.stat-number-wrapper span {
    font-size: 36px;
    color: var(--accent-yellow);
    font-family: var(--font-heading);
    font-weight: 800;
}

.stat-text {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Founder Section */
.founder {
    background-color: var(--bg-navy);
}

.founder-container {
    display: flex;
    align-items: stretch;
    background-color: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.founder-img {
    flex: 1;
    max-width: 450px;
    min-height: 400px;
}

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

.founder-info {
    flex: 2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.founder-role {
    color: var(--accent-yellow);
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 500;
}

.founder-bio {
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.8;
}

.founder-signature {
    margin-top: 20px;
    border-top: 2px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.signature-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    font-size: 20px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-navy);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-bottom-color: var(--primary-light);
}

.service-icon {
    font-size: 50px;
    color: var(--primary-light);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    color: var(--accent-yellow);
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* ISG Section */
.isg-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.isg-content {
    flex: 1;
}

.isg-content h3 {
    color: var(--primary-light);
    margin-bottom: 20px;
    font-size: 26px;
}

.isg-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.isg-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.isg-list i {
    color: var(--bg-dark);
    font-size: 20px;
    background-color: var(--accent-yellow);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.isg-image-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.isg-img-placeholder {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.isg-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.isg-img-placeholder:hover img {
    transform: scale(1.05);
}

/* Projects */
.section-header {
    margin-bottom: 50px;
}

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

.project-card {
    background: var(--bg-navy);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
}

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

.project-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 17, 32, 0.8); /* Lacivert overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

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

/* Admin modunda overlay'i gizle ki resme tıklanabilsin */
.admin-mode .project-overlay {
    display: none !important;
}

.project-info {
    padding: 20px;
    text-align: center;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--primary-light);
}

.project-info p {
    color: var(--text-light);
    font-size: 14px;
}

/* Gallery Section */
.gallery {
    background-color: #ffffff;
}
.gallery .section-title {
    color: var(--bg-navy);
}
.gallery .section-subtitle {
    color: var(--accent-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

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

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: var(--pure-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    animation: bounce 2s infinite;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
}

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

/* Firebase Anti-Flash */
.editable, .editable-img {
    opacity: 0;
}
.editable.loaded, .editable-img.loaded {
    opacity: 1;
    transition: opacity 0.4s ease-in;
}

/* Admin Image Edit Button */
#admin-img-edit-btn {
    position: absolute;
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 6px;
    z-index: 10005;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: none;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    border: 2px solid var(--bg-navy);
}
#admin-img-edit-btn:hover {
    background-color: #ffcc00;
}
#admin-img-edit-btn i {
    font-size: 16px;
}

/* Admin Text Edit Toolbar */
#admin-text-toolbar {
    position: absolute;
    background-color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 6px;
    z-index: 10006;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--accent-yellow);
}
#admin-text-toolbar input[type="color"] {
    border: none;
    width: 25px;
    height: 25px;
    padding: 0;
    cursor: pointer;
    background: none;
    border-radius: 50%;
    overflow: hidden;
}
#admin-text-toolbar button {
    background: none;
    border: none;
    color: var(--pure-white);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.2s;
}
#admin-text-toolbar button:hover {
    color: var(--accent-yellow);
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-col h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-light);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--accent-yellow);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--accent-yellow);
    font-size: 18px;
    margin-top: 5px;
}

.footer-bottom {
    background-color: #000;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-container, .founder-container, .isg-container {
        flex-direction: column;
    }
    .founder-img {
        max-width: 100%;
        height: 350px;
        min-height: 350px;
        flex: none;
    }
    .founder-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }
    .founder-info {
        padding: 30px;
    }
    .about-image::before {
        display: none;
    }
    .hero-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .topbar {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.5);
        transition: 0.3s;
    }
    .nav-links.active {
        left: 0;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-buttons {
        flex-direction: column;
    }
}

/* Admin Panel Styles */
#admin-control-bar {
    font-family: var(--font-heading);
    font-size: 14px;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 10001; 
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-navy);
    margin: 10% auto; 
    padding: 40px; 
    border: 1px solid var(--primary-light);
    width: 350px; 
    border-radius: 12px; 
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.modal-content h2 {
    color: var(--pure-white);
    margin-bottom: 25px;
}

.modal-content input {
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    border-radius: 6px; 
    border: 1px solid rgba(255,255,255,0.1);
    background-color: var(--bg-dark);
    color: var(--pure-white);
    outline: none;
}

.modal-content input:focus {
    border-color: var(--primary-light);
}

.close-btn {
    color: var(--text-light); 
    float: right; 
    font-size: 28px; 
    font-weight: bold; 
    cursor: pointer;
    margin-top: -20px;
    margin-right: -10px;
}

.close-btn:hover { 
    color: var(--pure-white); 
}

/* Inline Edit Highlights (Only when Admin is logged in) */
.admin-mode .editable {
    border: 1px dashed rgba(255,255,255,0.4);
    cursor: text;
    position: relative;
    border-radius: 4px;
    padding: 2px;
    transition: all 0.2s;
}

.admin-mode .editable:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--accent-yellow);
}

.admin-mode .editable:focus {
    background-color: rgba(0,0,0,0.5);
    border-color: var(--accent-yellow);
    outline: none;
}

/* Image animations in admin mode removed as per request */
