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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    overflow-x: hidden;
}

/* Services Container */
.services-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar (reusing from dashboard) */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand h2 {
    color: #00d4ff;
    font-size: 1.5rem;
    font-weight: 700;
}

.brand .brand-logo {
    height: 80px;
    width: auto;
    max-width: 150px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: none;
}

.sidebar-toggle:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
}

.nav-link:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.nav-link.active {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.15);
    border-right: 3px solid #00d4ff;
}

.nav-link svg {
    flex-shrink: 0;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.language-switcher {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.lang-btn {
    color: #aaa;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.2);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 99, 99, 0.1);
    color: #ff6363;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: rgba(255, 99, 99, 0.2);
    transform: translateY(-1px);
}

/* Public Header (for non-logged users) */
.public-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand a {
    text-decoration: none;
}

.brand a .brand-logo {
    height: 65px;
    width: auto;
    max-width: 180px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav .nav-link {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.header-nav .nav-link:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.header-nav .nav-link.active {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.15);
}

.header-nav .nav-link.register {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #fff !important;
    border-radius: 25px;
    padding: 10px 20px;
}

.header-nav .nav-link.register:hover {
    background: linear-gradient(45deg, #0099cc, #00d4ff);
    transform: translateY(-2px);
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.mobile-nav-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content:not(.full-width) {
    margin-left: 280px;
}

/* Content Header (for logged users) */
.content-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-sidebar-toggle {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: none;
}

.mobile-sidebar-toggle:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.content-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
}

.page-subtitle {
    color: #ccc;
    font-size: 0.95rem;
}

/* Content Body */
.content-body {
    flex: 1;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
}

.main-content.full-width .content-body {
    padding: 0;
}

/* Services Hero */
.services-hero {
    text-align: center;
    padding: 80px 30px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.05) 100%);
    border-radius: 20px;
    margin-bottom: 60px;
}

.main-content.full-width .services-hero {
    margin: 0 0 60px 0;
    border-radius: 0;
    padding: 100px 30px;
}

.hero-content h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 8px;
}

.stat-label {
    color: #aaa;
    font-size: 1rem;
    font-weight: 500;
}

/* Services Grid */
.services-grid-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.main-content.full-width .services-grid-section {
    padding: 0 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.1);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.service-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

.service-header h3 {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
    flex: 1;
}

.service-description {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-features {
    margin-bottom: 25px;
}

.service-features h4 {
    color: #00d4ff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-features ul {
    list-style: none;
}

.service-features li {
    color: #ddd;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: bold;
}

.service-technologies {
    margin-bottom: 30px;
}

.service-technologies h4 {
    color: #00d4ff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.service-actions {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

/* Services CTA */
.services-cta {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 153, 204, 0.1) 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.main-content.full-width .services-cta {
    margin: 0 30px;
}

.cta-content h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-primary,
.cta-actions .btn-secondary {
    padding: 16px 30px;
    font-size: 1.05rem;
    min-width: 180px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 99, 99, 0.2);
    color: #ff6363;
}

.modal-body {
    padding: 40px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content:not(.full-width) {
        margin-left: 0;
    }

    .mobile-sidebar-toggle {
        display: block;
    }

    .header-nav {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 15, 35, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-nav.active {
        left: 0;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .mobile-nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .content-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .content-header h1 {
        font-size: 1.5rem;
    }

    .content-body {
        padding: 20px 15px;
    }

    .main-content.full-width .content-body {
        padding: 0;
    }

    .main-content.full-width .services-grid-section {
        padding: 0 20px;
    }

    .services-hero {
        padding: 60px 20px;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 40px;
    }

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

    .service-card {
        padding: 25px 20px;
    }

    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .service-icon {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }

    .service-actions {
        flex-direction: column;
    }

    .services-cta {
        padding: 40px 25px;
        margin: 0 20px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn-primary,
    .cta-actions .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .services-hero {
        padding: 40px 15px;
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-header h3 {
        font-size: 1.3rem;
    }

    .services-cta {
        padding: 30px 20px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 30px 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* Sidebar overlay for mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

/* Focus states for accessibility */
.nav-link:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.lang-btn:focus-visible,
.logout-btn:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}