/* Services Page Specific Styles */

/* Hero Section */
.services-hero {
    position: relative;
    min-height: 60vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.services-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.services-hero .cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.services-hero .floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.services-hero .floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(0, 255, 255, 0.3);
    animation: floatIcon 8s ease-in-out infinite;
}

.services-hero .floating-icon:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.services-hero .floating-icon:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.services-hero .floating-icon:nth-child(3) {
    bottom: 30%;
    left: 25%;
    animation-delay: 4s;
}

.services-hero .floating-icon:nth-child(4) {
    top: 40%;
    right: 10%;
    animation-delay: 6s;
}

.services-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.services-hero .hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.services-hero .cyber-text {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.services-hero .subtitle {
    display: block;
    font-size: 2rem;
    color: var(--accent-color);
    margin-top: 0.5rem;
}

.services-hero .hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Filters */
.hero-filters {
    margin-top: 2rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 25px;
    padding: 12px 50px 12px 20px;
    color: white;
    font-size: 1rem;
    width: 300px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    position: absolute;
    right: 5px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.category-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 25px;
    padding: 12px 20px;
    color: white;
    font-size: 1rem;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.category-select option {
    background: var(--bg-primary);
    color: white;
}

/* Services Grid */
.services-grid {
    padding: 80px 0;
    background: var(--bg-primary);
}

/* Services Grid Container */
.services-grid .container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
    justify-content: center !important;
    align-items: stretch !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 2rem !important;
    width: 100% !important;
}

/* Cotización Section Styles */
.cotizacion-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.9), rgba(0, 188, 212, 0.1));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cotizacion-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2300bcd4" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.1;
    z-index: 1;
}

.cotizacion-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.cotizacion-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cotizacion-btn {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    border: none;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

.cotizacion-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.6);
    background: linear-gradient(135deg, #0097a7, #00838f);
    color: white;
    text-decoration: none;
}

.cotizacion-btn i {
    font-size: 1.1rem;
}

/* Dynamic Services Section Styles */
.dynamic-services-section {
    padding: 4rem 0;
    background: rgba(26, 35, 126, 0.05);
    position: relative;
}

.dynamic-services-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dynamic-services-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 1rem;
}

.dynamic-services-section .section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    width: 80%;
    margin: 0 auto;
    background: #000000;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 2fr;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 188, 212, 0.3);
    min-height: auto;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 188, 212, 0.3);
}

.service-image {
    position: relative;
    background: linear-gradient(135deg, #1a237e, #00bcd4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 300px;
}

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

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

.service-icon {
    font-size: 4rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.service-description {
    margin-bottom: 1.5rem;
}

.service-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0;
}

.service-features {
    margin-bottom: 1.5rem;
}

.service-features h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #cccccc;
}

.service-features li i {
    color: #00bcd4;
    font-size: 0.8rem;
}

.service-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.service-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-label {
    font-size: 0.9rem;
    color: #cccccc;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00bcd4;
}

.service-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cccccc;
    font-size: 0.9rem;
}

.service-duration i {
    color: #00bcd4;
}

.service-category .category-tag {
    background: rgba(0, 188, 212, 0.1);
    color: #00bcd4;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 188, 212, 0.3);
    white-space: nowrap;
}

.service-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.service-actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.service-actions .btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.service-actions .btn-outline:hover {
    background: #ffffff;
    color: #000000;
}

.service-actions .btn-primary {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: white;
    border: 2px solid transparent;
}

.service-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0097a7, #00838f);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #1a237e;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.no-services {
    text-align: center;
    padding: 4rem 2rem;
}

.no-services-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-services-content i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-services-content h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.no-services-content p {
    color: #999;
    margin-bottom: 2rem;
}

/* Service Sections Styles */
.service-section {
    flex: 1 1 calc(33.333% - 1.5rem);
    min-width: 300px;
    max-width: 400px;
    background: #1a237e;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.2);
    margin: 0 !important;
    display: block;
}

.service-section-content {
    padding: 2rem;
    color: white;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.service-icon {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.service-title-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #00bcd4;
}

.service-body {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.service-image-container {
    flex-shrink: 0;
    width: 200px;
}

.service-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.service-info {
    flex: 1;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.service-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.service-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-label {
    font-size: 0.9rem;
    color: #b0bec5;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00bcd4;
}

.service-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b0bec5;
}

.service-category .category-tag {
    background: rgba(0, 188, 212, 0.2);
    color: #00bcd4;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 188, 212, 0.3);
}

.service-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.featured-badge {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #1a237e;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Responsive Styles for Service Sections */
@media (max-width: 1024px) {
    .services-grid .container {
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .service-section {
        width: calc(50% - 0.75rem);
        min-width: 280px;
    }
    
    .service-body {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .service-image-container {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .services-grid .container {
        gap: 1rem;
        padding: 1rem;
    }
    
    .service-section {
        width: 100%;
        min-width: auto;
        max-width: none;
        margin: 1rem 0;
    }
    
    .service-section-content {
        padding: 1rem;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .service-title-area {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .service-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .service-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .service-actions .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .cotizacion-section {
        padding: 3rem 0;
    }
    
    .cotizacion-content {
        padding: 1rem;
    }
    
    .cotizacion-content h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .cotizacion-btn {
        font-size: 1.1rem;
        padding: 0.8rem 2rem;
    }
    
    /* Dynamic Services Responsive */
    .dynamic-services-section .section-header h2 {
        font-size: 2rem;
    }
    
    .service-item {
        width: 95%;
        grid-template-columns: 1fr;
    }
    
    .service-image {
        height: 200px;
        min-height: 200px;
    }
    
    .service-details {
        padding: 1.5rem;
    }
    
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .service-header h3 {
        font-size: 1.5rem;
        min-width: unset;
    }
    
    .service-features ul {
        grid-template-columns: 1fr;
    }
    
    .service-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .service-actions {
        flex-direction: column;
    }
    
    .service-actions .btn {
        flex: none;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .service-item {
        width: 90%;
        grid-template-columns: 1fr 1.8fr;
    }
    
    .service-image {
        min-height: 250px;
    }
    
    .service-header h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .service-section {
        width: 98%;
        margin: 1rem auto;
    }
    
    .service-section-content {
        padding: 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .price-amount {
        font-size: 1.3rem;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.service-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-image:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

/* Modal Service Image */
.service-modal-image {
    margin: 1.5rem 0;
    text-align: center;
}

.modal-service-image {
    width: 100%;
    max-width: 500px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.modal-service-image:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-primary);
}

.featured-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: var(--bg-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.service-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
}

.service-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.price-amount {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.service-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.service-category {
    margin: 0.5rem 0;
    flex-shrink: 0;
}

.category-tag {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.service-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    flex-shrink: 0;
}

.service-actions .btn {
    flex: 1;
    min-width: 130px;
    padding: 0.9rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    color: var(--bg-primary);
}

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

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: rgba(0, 255, 255, 0.3);
}

.no-results h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination-section {
    padding: 2rem 0;
    background: var(--bg-primary);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--accent-color);
    color: var(--bg-primary);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: 'Orbitron', monospace;
    color: white;
    margin: 0;
}

.close {
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.modal-body {
    padding: 2rem;
    color: var(--text-secondary);
}

/* Animations */
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

/* Contact Modal Styles */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.contact-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideIn 0.3s ease-out;
}

.contact-modal-header {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
    padding: 20px 25px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-modal-header h3 i {
    margin-right: 10px;
    color: #00bcd4;
}

.contact-modal-close {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.contact-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.contact-modal-body {
    padding: 25px;
    background: #1a1a1a;
    border-radius: 0 0 15px 15px;
}

.service-info {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
}

.service-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-modal .form-group {
    margin-bottom: 20px;
}

.contact-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.contact-modal .form-group input,
.contact-modal .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #444444;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #2d2d2d;
    color: #ffffff;
    box-sizing: border-box;
}

.contact-modal .form-group input:focus,
.contact-modal .form-group textarea:focus {
    outline: none;
    border-color: #00bcd4;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
    transform: translateY(-2px);
    background: #333333;
}

.contact-modal .form-group input::placeholder,
.contact-modal .form-group textarea::placeholder {
    color: #888888;
}

.contact-modal .form-group input:hover,
.contact-modal .form-group textarea:hover {
    border-color: #666666;
    background: #333333;
}

.contact-modal .form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.contact-modal .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444444;
}

.contact-modal .form-actions .btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.contact-modal .form-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.contact-modal .form-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.contact-modal .form-actions .btn-primary {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: white;
}

.contact-modal .form-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0097a7, #00838f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.contact-modal .form-actions .btn i {
    margin-right: 8px;
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Success/Error Messages */
.contact-modal .alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-modal .alert-success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
}

.contact-modal .alert-error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
}

/* Loading State */
.contact-modal .btn.loading {
    position: relative;
    color: transparent;
}

.contact-modal .btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .services-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .services-hero .subtitle {
        font-size: 1.5rem;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        width: 100%;
    }
    
    .category-select {
        min-width: auto;
    }
    
    .services-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-actions {
        flex-direction: column;
    }
    
    .service-actions .btn {
        min-width: auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    /* Contact Modal Responsive */
    .contact-modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 95vh;
    }
    
    .contact-modal-header {
        padding: 15px 20px;
    }
    
    .contact-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .contact-modal-body {
        padding: 20px;
    }
    
    .contact-modal .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-modal .form-actions .btn {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }
}