/* ============================================
   DURAKATHANA - DIRECTORIES PAGE STYLES
   Dark Techy Red, Black, White Theme
   ============================================ */

/* Import Global Design System */
@import url('./global-design-system.css');

/* HEADER & NAVIGATION MOVED TO common-layout.css */

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-container {
    width: 100%;
    min-height: 100vh;
    background: var(--color-black);
    padding: var(--space-3xl) var(--space-xl);
    font-family: var(--font-primary);
    position: relative;
}

.services-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    pointer-events: none;
}

.services {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.services .card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
    border: 2px solid rgba(255, 0, 0, 0.2);
    height: 100%;
    /* Ensure full height in grid */
    min-height: 450px;
    /* Consistent minimum height */
    position: relative;
    justify-content: space-between;
    /* Push button to bottom */
}

.services .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-red), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.services .card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.services .card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-red-lg);
    border-color: var(--color-red);
    background: rgba(31, 31, 31, 0.9);
}

.services .card:hover::before {
    opacity: 1;
}

.services .card:hover::after {
    opacity: 1;
}

.services .card i {
    margin-top: var(--space-2xl);
    color: var(--color-red);
    transition: all var(--transition-base);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
}

.services .card:hover i {
    color: var(--color-red-light);
    transform: scale(1.15) rotateY(360deg);
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.8));
}

.services .card h6 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-white);
    margin: var(--space-lg) var(--space-md);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.services .card p {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-gray-200);
    padding: 0 var(--space-lg);
    margin-bottom: var(--space-lg);
    flex-grow: 1;
    text-align: center;
}

/* Global .btn classes handle the standard appearance */
.card-link {
    text-decoration: none;
    display: block;
    width: 100%;
    margin-bottom: var(--space-md);
}

.services .card .button {
    padding: var(--space-lg);
    text-align: center;
    margin-top: auto;
    /* Push to bottom */
}

/* FOOTER MOVED TO common-layout.css */

.card-icon {
    margin: 0 auto var(--space-lg);
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.1);
    transition: all var(--transition-base);
}

/* Specificity fix for icons */
.services .card .card-icon i {
    font-size: 2.5rem;
    color: var(--color-red);
    transition: all var(--transition-base);
    margin-top: 0 !important;
    /* Override generic rule */
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.4));
}

.card:hover .card-icon {
    background: rgba(255, 0, 0, 0.2);
    border-color: var(--color-red);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    transform: scale(1.1);
}

.card:hover .card-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8));
    color: var(--color-white);
}

footer .socials i {
    font-size: var(--text-xl);
    margin-right: var(--space-md);
    color: var(--color-white);
    transition: all var(--transition-fast);
}

footer .socials i:hover {
    color: var(--color-red);
    transform: translateY(-3px);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8));
}

footer div[style*="color: white"] {
    background: rgba(0, 0, 0, 0.5);
    padding: var(--space-lg) 0;
    margin-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

footer div[style*="color: white"] p {
    color: var(--color-gray-300);
    font-size: var(--text-sm);
    margin: 0;
}

footer div[style*="color: white"] a {
    color: var(--color-red);
    font-weight: var(--font-semibold);
    transition: all var(--transition-fast);
}

footer div[style*="color: white"] a:hover {
    color: var(--color-red-light);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media only screen and (max-width: 1100px) {
    header .header-content {
        padding: var(--space-md) var(--space-lg);
    }

    nav {
        position: fixed;
        left: -100%;
        top: 0;
        z-index: var(--z-modal);
        width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, var(--color-black) 0%, var(--color-black-lighter) 100%);
        transition: left var(--transition-slow);
        box-shadow: var(--shadow-xl), var(--shadow-red);
        overflow-y: auto;
        border-right: 2px solid var(--color-red);
    }

    #nav_check:checked~nav {
        left: 0;
    }

    nav .logo {
        display: block;
        padding: var(--space-xl) var(--space-lg);
        border-bottom: 2px solid rgba(255, 0, 0, 0.3);
    }

    nav .logo h4 {
        font-size: var(--text-3xl);
        color: var(--color-white);
    }

    nav ul {
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-sm);
    }

    nav ul li a {
        font-size: var(--text-lg);
        padding: var(--space-md) var(--space-lg);
        border-radius: var(--radius-md);
    }

    .hamburger {
        display: flex;
    }

    .services {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .services .card {
        min-height: auto;
    }

    footer .single-box {
        margin-bottom: var(--space-2xl);
    }
}

@media only screen and (max-width: 768px) {
    .services-container {
        padding: var(--space-2xl) var(--space-md);
    }

    .services .card h6 {
        font-size: var(--text-xl);
    }

    .services .card p {
        font-size: var(--text-sm);
    }
}

@media only screen and (max-width: 480px) {
    .logo h4 {
        font-size: var(--text-2xl);
    }

    .services .card h6 {
        font-size: var(--text-lg);
    }
}