/* Theme Variables */
:root[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --accent-primary: #3498db;
    --accent-secondary: #2980b9;
    --gallery-accent: #2c3e50;
    --header-bg: #ffffff;
    --footer-bg: #2c3e50;
    --footer-text: #ffffff;
    --card-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --lightbox-bg: rgba(0, 0, 0, 0.9);
}

:root[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-primary: #4dabf7;
    --accent-secondary: #339af0;
    --gallery-accent: #ffffff;
    --header-bg: #2d2d2d;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --card-shadow: 0 2px 4px rgba(0,0,0,0.2);
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --lightbox-bg: rgba(0, 0, 0, 0.95);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    color: white;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--accent-secondary);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: inherit;
}

/* Reset and base styles */
a {
    text-decoration: none;
    color: #2c3e50;
}

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

body {
    font-family: 'Fira Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: calc(100vh - 160px);
}

/* Navigation */
header {
    background-color: var(--header-bg);
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    cursor: pointer;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

#logo_clicker {
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

/* Hero Section */
.hero {
    background-color: var(--header-bg);
    color: var(--text-primary);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 2em;
    box-shadow: var(--card-shadow);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.02);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

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

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .contact-info {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
    }
}

/* Before/After Gallery */
.gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.gallery-slider {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y pinch-zoom;
}

.gallery-slide {
    flex: 0 0 100%;
    padding: 0 1rem;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    z-index: 10;
}

.gallery-arrow:hover {
    background: var(--accent-primary);
}

.gallery-arrow.prev {
    left: 0;
    
}

.gallery-arrow.next {
    right: 0;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.gallery-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    opacity: 0.5;
}

.gallery-indicator.active {
    background: var(--accent-primary);
    opacity: 1;
    transform: scale(1.2);
}

.gallery-indicator:hover {
    background: var(--accent-primary);
    opacity: 0.8;
}

.gallery-post {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.gallery-images {
    position: relative;
}

.desktop-images {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.mobile-image {
    display: none;
}

.image-container {
    position: relative;
    width: 50%;
    height: 400px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.image-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.mobile-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

.gallery-content {
    padding: 1.5rem;
}

.gallery-content h3 {
    font-size: 1.5rem;
    color: var(--gallery-accent);
    margin-bottom: 0.5rem;
}

.gallery-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.view-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: var(--accent-secondary);
}

/* Gallery Detail Page */
.gallery-detail {
    padding: 2rem 0;
}

.gallery-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-detail-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-detail-image:hover img {
    transform: scale(1.05);
}

.gallery-detail-image::after {
    content: attr(data-label);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.9rem;
}

/* Mobile Indicators */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    main {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-logo {
        max-width: 300px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding: 0 1rem;
    }

    .gallery-images {
        flex-direction: column;
    }

    .gallery-images img {
        width: 100%;
        height: 300px;
    }

    .gallery-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .image-overlay {
        display: none;
    }

    .gallery-indicators {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .gallery-indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ccc;
        cursor: pointer;
    }

    .gallery-indicator.active {
        background: #3498db;
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Projects Page */
.projects-page {
    padding: 4rem 0;
}

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

.project-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

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

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-thumbnail:hover {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.view-project {
    display: inline-block;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-project:hover {
    color: var(--accent-secondary);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lightbox-bg);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--overlay-bg);
    color: var(--text-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lightbox-arrow:hover {
    background: var(--accent-primary);
}

.lightbox-arrow.prev {
    left: 20px;
}

.lightbox-arrow.next {
    right: 20px;
}

/* Update gallery detail page to use lightbox */
.gallery-detail-image {
    cursor: pointer;
}

.gallery-detail-image img {
    transition: transform 0.3s ease;
}

.gallery-detail-image:hover img {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
} 

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: var(--bg-secondary);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.1s;
    z-index: 1001;
}

.mobile-menu.active .mobile-menu-close {
    opacity: 1;
    transform: scale(1);
}

.mobile-menu-close:hover {
    transform: scale(1.1);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-nav-links {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-links li {
    margin: 1rem 0;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active .mobile-nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }

.mobile-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.mobile-nav-links a:hover {
    color: var(--accent-primary);
}

.mobile-theme-toggle {
    margin-top: auto;
    padding: 1rem 0;
    border-top: 1px solid var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-theme-toggle {
    opacity: 1;
    transform: translateY(0);
}

.mobile-theme-toggle span {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 1290px) {
    #themeToggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        border: none;
        background: none;
        font-size: 1.5rem;
        color: var(--text-primary);
    }
    .nav-links {
        display: none;
    }
    #themeToggle {
        display: none;
    }
}

@media (max-width: 420px) {
    .logo {
        transform: scale(0.9);
    }
    .nav-container {
        padding: 1rem 1rem;
    }
}

/* Mobile Gallery Styles */
@media (max-width: 968px) {
    .gallery-container {
        padding: 0;
        margin: 0 -1rem;
    }

    .gallery-slider {
        padding: 0;
    }

    .gallery-slide {
        padding: 0;
    }

    .gallery-post {
        border-radius: 0;
        box-shadow: none;
    }

    .desktop-images {
        display: none;
    }

    .mobile-image {
        display: block;
        width: 100%;
        height: 300px;
    }

    .mobile-image img {
        border-radius: 0;
    }

    .gallery-content {
        padding: 1rem;
    }

    .gallery-content h3 {
        font-size: 1.3rem;
    }

    .gallery-content p {
        font-size: 1rem;
    }

    .gallery-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        opacity: 0.7;
        background: rgba(0, 0, 0, 0.5);
    }

    .gallery-arrow:hover {
        opacity: 1;
    }

    .gallery-indicators {
        margin-top: 1rem;
    }

    .gallery-indicator {
        width: 8px;
        height: 8px;
    }
}