/* 
   Theme: Kadir Mert Premium Corporate
   Colors: Midnight Blue & Gold
*/

:root {
    --primary-color: #000000;
    /* Black */
    --secondary-color: #dc2626;
    /* Vivid Red */
    --text-color: #1a1a1a;
    --bg-light: #ffffff;
    --white: #ffffff;
    --dark-overlay: rgba(0, 0, 0, 0.9);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;

    /* Light mode colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1a1a1a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #020617;
}

/* Dark mode colors */
body.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --card-bg: #1e293b;
    --header-bg: #0f172a;
    --footer-bg: #000000;
    --primary-color: #f1f5f9;
    --text-color: #f1f5f9;
    --bg-light: #0f172a;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

/* Header */
.header {
    background: var(--white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

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

.navbar a {
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    display: inline-block;
}

.navbar a:hover,
.navbar a.active {
    color: var(--secondary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown>a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    top: 100%;
    left: 0;
    padding: 10px 0;
    border-radius: 5px;
    border-top: 3px solid var(--secondary-color);
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: all 0.3s;
    margin-left: 0;
    /* Reset margin for dropdown items */
}

.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
    padding-left: 20px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

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

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin-left: 1rem;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(var(--dark-overlay), var(--dark-overlay)), url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 85vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--secondary-color);
    font-style: italic;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Services */
.services {
    padding: 5rem 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border-top: 3px solid transparent;
    transition: var(--transition);
}

.service-card:hover {
    border-top-color: var(--secondary-color);
    transform: translateY(-5px);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.learn-more {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* About/CTA */
.about-cta {
    background: var(--primary-color);
    padding: 5rem 0;
    color: var(--white);
    text-align: left;
}

.about-content h2 {
    color: var(--white);
    font-size: 2.5rem;
}

.about-content strong {
    color: var(--secondary-color);
}

.features {
    margin: 2rem 0;
}

.features li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: #020617;
    color: #94a3b8;
    padding: 4rem 0 0;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer h3 {
    color: var(--white);
    font-size: 1.5rem;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-bottom {
    background: #000;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .navbar {
        display: none;
        /* simple hide for now, js will toggle */
    }

    .mobile-toggle {
        display: block;
        cursor: pointer;
    }

    .mobile-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--primary-color);
        margin: 5px 0;
    }
}

/* Status Bar */
.top-bar {
    background: #0f172a;
    color: #fff;
    padding: 10px 0;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

body.dark-mode .top-bar {
    background: #000000;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.status-dot.open {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.status-dot.closed {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

/* Search Modal */
.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-left: 1rem;
}

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.search-form {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.search-form input {
    width: 100%;
    padding: 15px;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid var(--secondary-color);
    background: transparent;
    color: #fff;
    outline: none;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* Theme Toggle Button - In Top Bar */
.top-bar .theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #fff;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.top-bar .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(20deg);
}

.top-bar .theme-toggle i {
    transition: transform 0.3s ease;
    color: #fff !important;
}

body.dark-mode .top-bar .theme-toggle i {
    color: #fff !important;
}

body.dark-mode .top-bar .theme-toggle i::before {
    content: "\f185";
    /* fa-sun */
}

/* Update components for dark mode */
.header {
    background: var(--header-bg);
    transition: background 0.3s ease;
}

.service-card {
    background: var(--card-bg);
    transition: background 0.3s ease, transform 0.3s ease;
}

.dropdown-content {
    background-color: var(--card-bg);
    transition: background 0.3s ease;
}

.dropdown-content a {
    color: var(--text-primary);
}

.dropdown-content a:hover {
    background-color: var(--bg-secondary);
}