:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111115;
    --bg-tertiary: #15151c;
    --bg-card: #1a1a23;
    --bg-elevated: #20202a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-tertiary: #6b6b7a;
    --accent-orange: #f97316;
    --accent-purple: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #f97316 0%, #8b5cf6 100%);
    --border-light: rgba(255, 255, 255, 0.05);
    --font-sans: 'Inter', sans-serif;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-light);
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 1rem;
    color: white;
}

.logo-text h2 {
    font-size: 1.125rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.close-sidebar {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

.nav-menu {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-tertiary);
    color: var(--accent-orange);
    border-left: 2px solid var(--accent-orange);
}

.nav-group {
    margin-top: 0.25rem;
}

.nav-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
}

.nav-group-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-group-toggle i:first-child {
    width: 20px;
}

.nav-group-toggle i:last-child {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.nav-group-toggle.active i:last-child {
    transform: rotate(180deg);
}

.nav-group-menu {
    padding-left: 2rem;
    margin-top: 0.25rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-group-menu.show {
    display: flex;
}

.nav-item-sub {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-tertiary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8125rem;
}

.nav-item-sub:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-item-sub.active {
    color: var(--accent-orange);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-size: 0.7rem;
}

.availability-badge i {
    font-size: 0.5rem;
    color: #10b981;
}

.contact-info h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
}

.contact-link:hover {
    color: var(--accent-orange);
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.social-link {
    width: 28px;
    height: 28px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-orange);
    color: white;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    flex: 1;
    margin-left: 260px;
}

.top-header {
    background: var(--bg-secondary);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    flex: 1;
    max-width: 320px;
}

.header-search i {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.header-search input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    width: 100%;
    outline: none;
}

.header-search input::placeholder {
    color: var(--text-tertiary);
}

.emergency-btn {
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.emergency-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.content-wrapper {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========== HOMEPAGE STYLES ========== */
.hero {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}

.hero h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.hero p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat h3 {
    font-size: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.quick-access, .featured-projects {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 1.125rem;
}

.section-header a {
    color: var(--accent-orange);
    text-decoration: none;
    font-size: 0.75rem;
}

.section-subtitle {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.service-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border-light);
    transition: 0.2s;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-orange);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 1.25rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.service-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.project-image {
    height: 160px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image i {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-card h3 {
    padding: 1rem 1rem 0.25rem;
    font-size: 0.9375rem;
}

.project-card p {
    padding: 0 1rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.project-link {
    display: inline-block;
    margin: 0 1rem 1rem;
    color: var(--accent-orange);
    text-decoration: none;
    font-size: 0.75rem;
}

/* ========== SERVICE PAGE STYLES ========== */
.service-hero {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid var(--border-light);
}

.service-icon-large {
    width: 64px;
    height: 64px;
    background: var(--bg-tertiary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.service-icon-large i {
    font-size: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-hero p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    max-width: 600px;
    margin: 0 auto;
}

.service-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.service-description {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.service-description h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.service-description ul {
    list-style: none;
}

.service-description li {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.service-description li:last-child {
    border-bottom: none;
}

.service-description li i {
    color: var(--accent-orange);
    font-size: 1rem;
    margin-top: 0.125rem;
}

.service-description li strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.service-description li p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.service-cta {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    text-align: center;
    position: sticky;
    top: 80px;
}

.service-cta h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.service-cta p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
    transition: 0.2s;
}

.cta-button.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.cta-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .close-sidebar {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-search {
        max-width: 100%;
    }
    
    .emergency-btn span {
        display: none;
    }
    
    .services-grid {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
    }
    
    .service-card {
        min-width: 260px;
        flex-shrink: 0;
    }
    
    .projects-grid {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
    }
    
    .project-card {
        min-width: 280px;
        flex-shrink: 0;
    }
    
    .service-details {
        grid-template-columns: 1fr;
    }
    
    .service-cta {
        position: static;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
}
/* Service Tags */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.service-tags span {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    color: var(--text-tertiary);
    transition: var(--transition-fast);
}

.service-tags span:hover {
    background: var(--accent-orange);
    color: white;
}

/* Service Category Headers */
.service-category .section-header h2 {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
}

.service-category .section-header h2 i {
    color: var(--accent-orange);
}
/* Ensure all content stays within viewport */
body {
    overflow-x: hidden;
    width: 100%;
}

.content-wrapper {
    overflow-x: hidden;
    width: 100%;
}

/* Make sure all containers respect viewport */
.services-grid,
.projects-grid,
.service-details,
.service-description ul {
    overflow-x: hidden;
    width: 100%;
}

/* Prevent any overflow */
.service-description li {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-description li div {
    flex: 1;
    min-width: 0;
}

/* Ensure cards don't overflow */
.service-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}
/* Featured Badge */
.featured-badge {
    background: var(--accent-gradient);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

/* Featured Card */
.service-card.featured-card {
    border: 1px solid var(--accent-orange);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(249, 115, 22, 0.1) 100%);
}

.service-card.featured-card::before {
    opacity: 1;
    background: var(--accent-gradient);
}

/* Featured Category */
.service-category.featured {
    margin-bottom: 2rem;
}

/* Technology Stack Cards */
.technology-stack .service-card {
    transition: var(--transition-fast);
}

.technology-stack .service-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-orange);
}

/* Current Projects Tags */
.current-projects .service-tags {
    border-top: 1px solid var(--border-light);
    margin-top: 0;
    padding-top: 0.75rem;
}
/* Gallery Page Styles */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-elevated) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.gallery-image i {
    font-size: 3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-image i {
    transform: scale(1.1);
}

.gallery-overlay {
    padding: 1.25rem;
}

.gallery-overlay h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.gallery-tags span {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

.gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-orange);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.gallery-link:hover {
    gap: 0.75rem;
}

/* Gallery Stats */
.gallery-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.stat-card {
    text-align: center;
}

.stat-card i {
    font-size: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stat-card p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Gallery CTA */
.gallery-cta {
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-light);
}

.gallery-cta h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.gallery-cta p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Gallery Filter Animation */
.gallery-item {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Mobile Responsive */
@media (max-width: 768px) {
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-image {
        height: 160px;
    }
    
    .gallery-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .gallery-cta {
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .cta-button {
        width: 100%;
    }
}