/* CSS Custom Properties for Theme */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #000000;
    --border-color: #000000;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --overlay-color: rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-color: #000000;
    --text-color: #ffffff;
    --border-color: #ffffff;
    --shadow-color: rgba(255, 255, 255, 0.3);
    --overlay-color: rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bg-color);
    border-bottom: 2px solid var(--border-color);
    transition: var(--transition);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.navbar {
    padding: 1rem 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1002;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Slider Styles */
.hero-slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.swiper-container {
    height: 100%;
}

.swiper-slide {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    z-index: 2;
}

.slide-content {
    position: absolute;
    bottom: 10rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.slide-category {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.slide-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}


/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    width: 60px !important;
    height: 60px !important;
    border-radius: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    top: auto !important;
    bottom: 2rem !important;
    margin-top: 0 !important;
    z-index: 100 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.swiper-button-next {
    right: 2rem !important;
}

.swiper-button-prev {
    left: 2rem !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
}

/* Swiper Pagination */
.swiper-pagination {
    bottom: 2rem !important;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.swiper-pagination-bullet {
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: white !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    transform: scale(1.1);
}

/* Left Sidebar */
.left-sidebar {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.social-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--shadow-color);
}


/* Right Sidebar */
.right-sidebar {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-btn {
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 0;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px var(--shadow-color);
    color: var(--text-color);
    font-weight: 500;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.sidebar-btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 6px 16px var(--shadow-color);
}

/* Side Panels */
.side-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--bg-color);
    border-left: 3px solid var(--border-color);
    z-index: 1001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 16px var(--shadow-color);
}

.side-panel.active {
    right: 0;
}

.panel-header {
    padding: 2rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 10;
}

.panel-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.panel-content {
    padding: 2rem;
    height: calc(100vh - 80px); /* Full height minus header */
    overflow-y: auto;
    flex: 1;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0;
    border: 2px solid var(--border-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.category-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.category-link:hover {
    color: var(--accent-color);
}

/* About Content */
.about-content {
    text-align: center;
}

.about-photo {
    width: 200px;
    height: 200px;
    border-radius: 0;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--accent-color);
}

.about-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-color);
}

.contact-info {
    text-align: left;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-info i {
    color: var(--accent-color);
    width: 20px;
    font-weight: bold;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Styles */
.mobile-menu-header {
    display: none;
}

.nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    /* Mobile Menu Container - %80 width, slides from right */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -80%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-color);
        border-left: 2px solid var(--border-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        padding: 1.5rem;
        border-bottom: 2px solid var(--border-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: var(--bg-color);
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-menu-header h2 {
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--text-color);
        margin: 0;
        flex: 1;
    }
    
    .mobile-close-btn {
        background: none;
        border: none;
        color: var(--text-color);
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.8rem;
        transition: var(--transition);
        padding: 0.3rem;
        flex-shrink: 0;
    }
    
    .mobile-close-btn:hover {
        color: var(--accent-color);
    }
    
    .mobile-close-btn i {
        font-size: 0.9rem;
    }
    
    /* Mobile Menu List */
    .nav-list {
        flex-direction: column;
        padding: 0;
        gap: 0;
        list-style: none;
        margin: 0;
        width: 100%;
        text-align: left;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        text-decoration: none;
        color: var(--text-color);
        transition: var(--transition);
        width: 100%;
        text-align: left;
        box-sizing: border-box;
    }
    
    .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
        color: var(--accent-color);
    }
    
    .nav-link.active {
        background-color: var(--accent-color);
        color: white;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    /* Show hamburger toggle */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
    }
    
    .nav-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        margin: 3px 0;
        transition: var(--transition);
        border-radius: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Desktop navigation hidden on mobile */
    .nav-container {
        justify-content: space-between;
    }
    
    .nav-logo h1 {
        font-size: 1.1rem;
    }
    
    /* Hide desktop menu on mobile */
    .nav-menu:not(.active) .nav-list {
        display: none;
    }
    
    .nav-menu:not(.active) .mobile-menu-header {
        display: none;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-content {
        bottom: 8rem;
    }
    
    .left-sidebar {
        left: 1rem;
        gap: 1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle {
        padding: 0.4rem 0.8rem;
    }
    
    .theme-text {
        font-size: 0.7rem;
    }
    
    .right-sidebar {
        right: 1rem;
    }
    
    .sidebar-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .side-panel {
        width: 100%;
        right: -100%;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    
    .swiper-pagination {
        bottom: 2rem !important;
    }
    
    .swiper-pagination-bullet {
        width: 50px !important;
        height: 50px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-logo h1 {
        font-size: 1.2rem;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-content {
        padding: 0 1rem;
        bottom: 7rem;
    }
    
    .left-sidebar {
        left: 0.5rem;
    }
    
    .right-sidebar {
        right: 0.5rem;
    }
    
    .panel-header {
        padding: 1.5rem;
    }
    
    .panel-content {
        padding: 1.5rem;
        height: calc(100vh - 70px); /* Mobile: full height minus smaller header */
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-out-right {
    animation: slideOutRight 0.3s ease-in;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* Page Overlay */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: 996; /* Below header */
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

/* Page Content */
.page-content {
    position: fixed;
    top: -100%; /* Start from top */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px); /* Full height minus header */
    background-color: var(--bg-color);
    z-index: 997; /* Below header (header is 1000) */
    transition: top 0.4s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.page-content.active {
    top: 80px !important; /* Slide down below header */
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Services and About pages - slide from right */
.page-content.services-page,
.page-content.about-page {
    top: 85px; /* Start slightly below header */
    right: -100%; /* Start from right side */
    left: auto;
    height: calc(100vh - 85px); /* Full height minus header + margin */
    z-index: 990; /* Much lower than header (header is 1000) */
    transition: right 0.4s ease;
}

.page-content.services-page.active,
.page-content.about-page.active {
    right: 0 !important; /* Slide to left edge */
    top: 85px !important;
}

.page-header {
    padding: 0 2rem 1rem 2rem;
    margin: 0;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.page-close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: var(--transition);
}

.page-close-btn:hover {
    color: var(--accent-color);
}

.page-body {
    flex: 1;
    padding: 0 2rem 2rem 2rem;
    margin: 0;
    overflow-y: auto;
}

.page-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.page-close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: var(--transition);
}

.page-close-btn:hover {
    color: var(--accent-color);
}

.page-body {
    flex: 1;
    padding: 0 2rem 2rem 2rem;
    margin: 0;
    overflow-y: auto;
}

/* Services Page Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

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

.service-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-card:hover .service-image {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-color);
    line-height: 1.6;
}

.services-info {
    margin-top: 3rem;
}

.services-info h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

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

/* Services page info items */
.services-info .info-item {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.services-info .info-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.services-info .info-item p {
    color: var(--text-color);
}

.info-action {
    margin-left: auto;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 0;
    border: 2px solid var(--accent-color);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.action-btn i {
    color: white;
}

.action-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.action-btn:hover i {
    color: var(--accent-color);
}

.status-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    transition: var(--transition);
}

.status-indicator.open {
    background-color: #4CAF50;
}

.status-indicator.closed {
    background-color: #f44336;
}

.status-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Portfolio Page Styles */
.portfolio-filter {
    display: flex;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    width: 100% !important;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #000 #f0f0f0;
}

.portfolio-filter::-webkit-scrollbar {
    height: 6px;
}

.portfolio-filter::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.portfolio-filter::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 3px;
}

.filter-btn {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 1rem 2rem;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    flex: 1;
    text-align: center;
    border-right: none;
}

.filter-btn:last-child {
    border-right: 2px solid var(--border-color);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 3rem;
    width: 100%;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    border-color: var(--accent-color);
    transform: scale(1.02);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.portfolio-image img.grayscale-image {
    filter: grayscale(100%);
}

.portfolio-image:hover img.grayscale-image {
    filter: grayscale(100%);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    font-size: 0.9rem;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-color);
    font-weight: 500;
}

/* Contact Page Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2,
.contact-form h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.info-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 40px;
    text-align: center;
}

.info-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.info-text p {
    color: var(--text-color);
    margin: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--text-color);
}

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

.social-contact h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.social-contact .social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-contact .social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.social-contact .social-link:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.social-contact .social-link i {
    font-size: 2rem;
}

.social-contact .social-link span {
    font-weight: 500;
}

/* Blog Styles */
.blog-container {
    padding: 1rem;
    max-width: 100%;
    margin: 0;
}

.blog-post {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.blog-cover {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.blog-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-post:hover .blog-cover img {
    transform: scale(1.05);
}

.blog-overlay {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
}

.blog-category {
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    flex-grow: 1;
}

.blog-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    align-self: flex-start;
    font-size: 0.8rem;
}

.blog-cta:hover {
    color: var(--accent-dark);
    transform: translateX(3px);
}

.blog-cta i {
    transition: var(--transition);
    font-size: 0.7rem;
}

.blog-cta:hover i {
    transform: translateX(2px);
}

/* Blog Detail Overlay */
.blog-detail-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 1002;
    transition: right 0.4s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.blog-detail-overlay.active {
    right: 0;
}

.blog-detail-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.blog-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.blog-detail-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-detail-close:hover {
    color: var(--accent-color);
    background-color: var(--bg-light);
}

.blog-detail-content {
    flex: 1;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.blog-detail-cover {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail-description {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.blog-detail-category {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-detail-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Mobile Responsive for Pages */
@media (max-width: 768px) {
    .page-content {
        top: -100%; /* Mobile: start from top */
        height: calc(100vh - 70px); /* Mobile: full height minus smaller header */
    }
    
    .page-content.active {
        top: 70px !important; /* Mobile: slide down below header */
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Services and About pages - slide from right on mobile */
    .page-content.services-page,
    .page-content.about-page {
        top: 75px; /* Mobile: start slightly below smaller header */
        height: calc(100vh - 75px); /* Mobile: full height minus header + margin */
    }
    
    .page-content.services-page.active,
    .page-content.about-page.active {
        right: 0 !important; /* Mobile: slide to left edge */
        top: 75px !important;
    }
    
    .page-body {
        padding: 0 1rem 1rem 1rem;
        margin: 0;
    }
    
    .page-header {
        padding: 0 1rem 0.5rem 1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    /* Blog Mobile Styles */
    .blog-container {
        padding: 0.5rem;
    }
    
    .blog-post {
        margin-bottom: 1rem;
    }
    
    .blog-cover {
        height: 120px;
    }
    
    .blog-content {
        padding: 0.8rem;
    }
    
    .blog-title {
        font-size: 0.9rem;
    }
    
    .blog-excerpt {
        font-size: 0.8rem;
    }
    
    .blog-cta {
        font-size: 0.75rem;
    }
    
    /* Blog Detail Mobile Styles */
    .blog-detail-header {
        padding: 1rem;
    }
    
    .blog-detail-title {
        font-size: 1.2rem;
    }
    
    .blog-detail-content {
        padding: 1rem;
    }
    
    .blog-detail-cover {
        height: 200px;
        margin-bottom: 1.5rem;
    }
    
    .blog-detail-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .blog-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-image {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-contact .social-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Portfolio Detail Mobile Styles */
    .portfolio-detail-section {
        top: 70px; /* Smaller header height on mobile */
        height: calc(100vh - 70px);
    }
    
    .portfolio-detail-header {
        padding: 0.5rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        min-height: 50px;
    }
    
    .portfolio-detail-header-content {
        width: 100%;
    }
    
    .portfolio-detail-title {
        font-size: 1.5rem;
    }
    
    .portfolio-detail-description {
        font-size: 1rem;
    }
    
    .portfolio-detail-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.2rem;
    }
    
    .portfolio-detail-main-slider {
        height: calc(100vh - 70px - 50px); /* Mobile: full height minus header and title area */
        min-height: 300px;
        flex-direction: column;
    }
    
    .portfolio-detail-main-image {
        flex: 3;
        height: 60%;
    }
    
    .portfolio-detail-sidebar {
        flex: 1;
        height: 40%;
        border-left: none;
        border-top: 2px solid var(--border-color);
        padding: 0;
    }
    
    .portfolio-detail-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        height: fit-content;
    }
    
    .portfolio-detail-grid-item {
        aspect-ratio: 1;
    }
    
    .portfolio-detail-nav-next,
    .portfolio-detail-nav-prev {
        width: 40px !important;
        height: 40px !important;
    }
    
    .portfolio-detail-nav-next::after,
    .portfolio-detail-nav-prev::after {
        font-size: 16px !important;
    }
    
}

/* Portfolio Detail Styles */
.portfolio-detail-section {
    position: fixed;
    top: 80px; /* Header height */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px); /* Full height minus header */
    background-color: var(--bg-color);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.4s ease;
    overflow-y: auto;
}

.portfolio-detail-section.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.portfolio-detail-header {
    background-color: white;
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    min-height: 60px;
}

.portfolio-detail-header-content {
    flex: 1;
    min-width: 0;
}

.portfolio-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: black;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.portfolio-detail-description {
    font-size: 1.1rem;
    color: black;
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

.portfolio-detail-close {
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    transition: var(--transition);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.portfolio-detail-close:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.portfolio-detail-main-slider {
    width: 100%;
    height: calc(100vh - 80px - 60px); /* Full height minus header and title area */
    min-height: 400px;
    position: relative;
    display: flex;
    gap: 0;
}

.portfolio-detail-main-image {
    flex: 2;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.portfolio-detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: var(--transition);
}

.portfolio-detail-sidebar {
    flex: 1;
    height: 100%;
    background-color: var(--bg-color);
    border-left: 2px solid var(--border-color);
    padding: 0;
    overflow-y: auto;
}

.portfolio-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    height: fit-content;
}

.portfolio-detail-grid-item {
    position: relative;
    cursor: pointer;
    border: none;
    overflow: hidden;
    transition: var(--transition);
    aspect-ratio: 1;
}

.portfolio-detail-grid-item:hover {
    transform: scale(1.02);
}

.portfolio-detail-grid-item.active {
    border: 3px solid var(--accent-color);
}

.portfolio-detail-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-detail-grid-item:hover img {
    transform: scale(1.05);
}

/* Overlay for unselected images */
.portfolio-detail-grid-item:not(.active)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    z-index: 1;
}

.portfolio-detail-grid-item.active::after {
    background-color: rgba(0, 0, 0, 0);
}

.portfolio-detail-nav-next,
.portfolio-detail-nav-prev {
    display: none; /* Hide navigation arrows since we're using grid */
}


/* Loading Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* black background */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

/* Portfolio Loading - Only covers portfolio grid */
.portfolio-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.portfolio-loading.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 0;
    margin-top: 1rem;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background-color: #fff;
    width: 0%;
    transition: width 0.3s ease;
}

/* Camera lens spinner */
.loading-lens {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 1rem;
    box-shadow: inset 0 0 0 6px rgba(255,255,255,0.15);
}
.loading-lens::before, .loading-lens::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: lensRotate 1.2s linear infinite;
}
.loading-lens::before {
    box-shadow: 0 -32px 0 0 #fff, 22px -22px 0 0 rgba(255,255,255,0.7), 32px 0 0 0 rgba(255,255,255,0.5), 22px 22px 0 0 rgba(255,255,255,0.3), 0 32px 0 0 rgba(255,255,255,0.2), -22px 22px 0 0 rgba(255,255,255,0.15), -32px 0 0 0 rgba(255,255,255,0.1), -22px -22px 0 0 rgba(255,255,255,0.05);
}
.loading-lens::after {
    inset: 12px;
    box-shadow: inset 0 0 0 6px rgba(255,255,255,0.25);
}
@keyframes lensRotate {
    to { transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.portfolio-item.loading {
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item.loading .portfolio-image {
    display: none;
}

.portfolio-item.loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Portfolio Detail Overlay */
.portfolio-detail-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.9) !important;
    z-index: 99999 !important;
    display: none !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.portfolio-detail-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

.portfolio-detail-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    margin: auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-detail-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.3s ease;
}

.portfolio-detail-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.portfolio-detail-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
    background: white;
}

.portfolio-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.portfolio-detail-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.portfolio-detail-swiper-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portfolio-detail-swiper {
    flex: 1;
    width: 100%;
}

.portfolio-detail-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.portfolio-detail-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.portfolio-detail-nav-next,
.portfolio-detail-nav-prev {
    color: white;
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.portfolio-detail-nav-next:hover,
.portfolio-detail-nav-prev:hover {
    background: rgba(0, 0, 0, 0.9);
}

.portfolio-detail-thumbs-container {
    height: 120px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 15px;
}

.portfolio-detail-thumbs {
    height: 100%;
}

.portfolio-detail-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.portfolio-detail-thumb:hover,
.portfolio-detail-thumb.swiper-slide-thumb-active {
    opacity: 1;
}

.portfolio-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-detail-container {
        width: 95%;
        height: 95%;
    }
    
    .portfolio-detail-title {
        font-size: 2rem;
    }
    
    .portfolio-detail-description {
        font-size: 1rem;
    }
    
    .portfolio-detail-header {
        padding: 20px 20px 15px;
    }
    
    .portfolio-detail-thumbs-container {
        height: 100px;
        padding: 10px;
    }
    
    .portfolio-detail-thumb {
        width: 60px;
        height: 60px;
    }
}
