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

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

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

/* ============================================
   HERO SLIDER SECTION
   ============================================ */

.slider {
    height: 500px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.5), rgba(255, 0, 0, 0.2));
    pointer-events: none;
    z-index: 1;
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
    width: 100%;
    filter: brightness(0.6) contrast(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 2;
    width: 50px;
    height: 50px;
    background: var(--color-red);
    border-radius: var(--radius-full);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all var(--transition-base);
    border: 2px solid var(--color-red-light);
    box-shadow: var(--shadow-red);
}

.carousel-control-prev {
    left: var(--space-xl);
}

.carousel-control-next {
    right: var(--space-xl);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-red-lg);
}

/* ============================================
   SEARCH SECTION
   ============================================ */

.search-section {
    width: 100%;
    padding: var(--space-3xl) var(--space-md);
    background: var(--color-black);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 0, 0, 0.05) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.05) 2px, transparent 2px);
    background-size: 100px 100px;
    opacity: 0.3;
    pointer-events: none;
}

.search-header {
    width: 100%;
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.search-header h1 {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    color: var(--color-white);
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
    margin: 0;
}

.search-header h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--color-red);
    margin: var(--space-md) auto 0;
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
    padding: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

.search-card {
    display: block;
    text-decoration: none;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.search-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 30, 30, 0.8);
    border-color: var(--color-red);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 0, 0, 0.2);
}

.search-card .box i {
    font-size: 3rem;
    color: var(--color-red);
    margin-bottom: var(--space-md);
    transition: all var(--transition-base);
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.4));
}

.search-card:hover .box i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.8));
    color: var(--color-white);
}

.search-card span {
    display: block;
    font-family: var(--font-secondary);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-md);
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-header h1 {
    text-align: center;
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    color: var(--color-white);
    margin: var(--space-3xl) 0 var(--space-xl);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.services-container {
    padding: 0 var(--space-md) var(--space-3xl);
}

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

.card-icon {
    margin-bottom: var(--space-lg);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 3rem;
    color: var(--color-red);
    transition: all var(--transition-base);
}

.card:hover .card-icon i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.6));
}

.services-container {
    width: 100%;
    min-height: 50vh;
    background: var(--color-black-light);
    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(260px, 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);
    min-height: 520px;
    position: relative;
}

.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);
}

.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 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);
    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;
}

.services .card .price {
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 0, 0, 0.1);
    text-align: center;
    border-top: 1px solid rgba(255, 0, 0, 0.3);
}

.services .card .price span {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--font-black);
    color: var(--color-red);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Global .btn classes handle the standard appearance */
.services .card .button {
    padding: var(--space-lg);
    text-align: center;
    margin-top: auto;
    /* Push to bottom */
}

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

/* ============================================
   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;
    }

    .slider,
    .carousel-item img {
        height: 400px;
    }

    .search-header h1 {
        font-size: var(--text-4xl);
    }

    .row {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-lg);
    }

    .search-card .box {
        height: 250px;
    }

    .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) {

    .slider,
    .carousel-item img {
        height: 350px;
    }

    .search-section {
        padding: var(--space-2xl) var(--space-md);
    }

    .search-header h1 {
        font-size: var(--text-3xl);
    }

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

    .search-card .box {
        height: 220px;
    }

    .search-card .box i {
        font-size: 48px;
    }

    .search-card .box span {
        font-size: var(--text-xl);
    }

    .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);
    }

    .slider,
    .carousel-item img {
        height: 300px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev {
        left: var(--space-md);
    }

    .carousel-control-next {
        right: var(--space-md);
    }

    .search-header h1 {
        font-size: var(--text-2xl);
    }

    .search-card .box {
        height: 200px;
    }

    .search-card .box i {
        font-size: 40px;
    }

    .services .card .price span {
        font-size: var(--text-2xl);
    }
}