/* Mimardekor - Modern Dark Theme CSS */

:root {
    /* Color Palette */
    --primary-dark: #0B0B0C;
    --secondary-dark: #1A1A1B;
    --accent-gold: #C9A96A;
    --accent-gold-light: #D4B578;
    --accent-gold-dark: #B8975A;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B9;
    --text-muted: #8A8A8B;
    --border-color: #2A2A2B;
    --hover-overlay: rgba(0, 0, 0, 0.7);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-logo h2 {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

.loading-bar {
    width: 200px;
    height: 3px;
    background-color: var(--secondary-dark);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 2.2rem;
}

h4 {
    font-size: 1.8rem;
}

h5 {
    font-size: 1.4rem;
}

h6 {
    font-size: 1.2rem;
}

.text-gold {
    color: var(--accent-gold) !important;
}

/* Navigation */
.navbar {
    background-color: rgba(11, 11, 12, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(11, 11, 12, 0.98);
    padding: 0.5rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary) !important;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.brand-text {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 0.5rem 1rem !important;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.navbar-actions .btn {
    background-color: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.navbar-actions .btn:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 30px;
    border-radius: 0;
    transition: all var(--transition-fast);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 169, 106, 0.3);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.btn-outline-primary:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-dark);
    color: var(--text-primary);
    border: 2px solid var(--secondary-dark);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 1rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--secondary-dark);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.portfolio-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 11, 12, 0.8), rgba(201, 169, 106, 0.8));
    opacity: 0;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.portfolio-category {
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.portfolio-area {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Forms */
.form-control {
    background-color: var(--secondary-dark);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 0;
    padding: 12px 15px;
    transition: all var(--transition-fast);
}

.form-control:focus {
    background-color: var(--secondary-dark);
    border-color: var(--accent-gold);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 106, 0.25);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--secondary-dark);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-brand h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer h5 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--accent-gold);
    margin-right: 10px;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-dark);
    color: var(--accent-gold);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: var(--border-color);
    margin: 2rem 0 1rem;
}

.copyright {
    color: var(--text-muted);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--accent-gold);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-gold-light);
    transform: translateY(-3px);
}

/* Modals */
.modal-content {
    background-color: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    color: var(--text-primary);
}

.btn-close {
    filter: invert(1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .portfolio-item {
        margin-bottom: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-normal);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all var(--transition-normal);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all var(--transition-normal);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .back-to-top {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
}

/* Dropdown Styles */
.navbar-nav .nav-item.dropdown {
    position: relative;
}

.navbar-nav .nav-item.dropdown .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-nav .nav-item.dropdown .nav-link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-item.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    background: rgba(26, 26, 27, 0.98) !important;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    position: absolute;
    top: 100%;
    left: 0;
}

.navbar-nav .nav-item.dropdown:hover .dropdown-menu,
.navbar-nav .nav-item.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover bridge to prevent dropdown from closing */
.navbar-nav .nav-item.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 999;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: var(--text-primary) !important;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    display: block;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    margin: 0.25rem 0.5rem;
}

.dropdown-item:hover {
    background-color: rgba(201, 169, 106, 0.15) !important;
    color: var(--accent-gold) !important;
    transform: translateX(5px);
}

.dropdown-item.active {
    background-color: rgba(201, 169, 106, 0.2) !important;
    color: var(--accent-gold) !important;
    font-weight: 600;
}

/* Mobile Dropdown */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item.dropdown .nav-link i {
        transform: none !important;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent !important;
        border: none;
        box-shadow: none;
        padding-left: 2rem;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: none !important;
        transition: all 0.3s ease !important;
        display: none;
    }
    
    .navbar-nav .nav-item.dropdown.show .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        color: var(--text-secondary) !important;
        margin: 0.1rem 0;
        transform: none !important;
    }
    
    .dropdown-item:hover {
        background-color: rgba(201, 169, 106, 0.1) !important;
        color: var(--accent-gold) !important;
    }
    
    .dropdown-item.active {
        color: var(--accent-gold) !important;
        font-weight: 600;
    }
}
