/* AnySmart Website - Home Page CSS */
/* Modern Material Design Style */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Root Variables */
:root {
    --primary-blue: #03a9f4;
    --light-gray: #e9e9e9;
    --dark-gray: #666666;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--white);
    background-color: #ffffff;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(3, 169, 244, 0.35), rgba(2, 136, 209, 0.35)), url('../Shared/assets/images/CPT_BG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    padding: 5rem 0 0.5rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0.3;
}

.hero-container {
    text-align: center;
    z-index: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.company-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* Services Section */
.services-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Main Panels Grid - Top 2 Large Panels */
.main-panels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Secondary Panels Grid - Bottom Smaller Panels */
.secondary-panels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Service Card Base Styles */
.service-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px var(--shadow-hover);
}

/* Main Card Styles */
.main-card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 350px;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0288d1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 6px 12px rgba(3, 169, 244, 0.3);
}

.card-icon .material-icons {
    font-size: 40px;
    color: var(--white);
}

.card-title {
    font-size: 2rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-description {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--dark-gray);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.card-action {
    width: 48px;
    height: 48px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.service-card:hover .card-action {
    background: var(--primary-blue);
    transform: translateX(8px);
}

.card-action .material-icons {
    font-size: 24px;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.service-card:hover .card-action .material-icons {
    color: var(--white);
}

/* Secondary Card Styles */
.secondary-card {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 220px;
    background: var(--light-gray);
}

.secondary-card:hover {
    background: var(--white);
}

.card-icon-small {
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px var(--shadow);
    transition: all 0.3s ease;
}

.secondary-card:hover .card-icon-small {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0288d1 100%);
}

.card-icon-small .material-icons {
    font-size: 28px;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

.secondary-card:hover .card-icon-small .material-icons {
    color: var(--white);
}

.card-title-small {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-description-small {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--dark-gray);
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .secondary-panels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 0;
        overflow-x: hidden;
        width: 100%;
    }

    .hero-section {
        max-height: 25vh;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-container {
        padding: 1rem 1rem;
        width: 100%;
    }

    .company-name {
        font-size: clamp(2rem, 8vw, 3rem);
        letter-spacing: -1px;
        padding-top: 5rem;
    }

    .tagline {
        font-size: clamp(0.9rem, 3vw, 1rem);
        letter-spacing: 1px;
        margin-top: -0.5rem;
    }

    .services-section {
        padding: 2rem 1.5rem;
        margin: 0;
        max-width: 100%;
    }

    .services-container {
        gap: 1.5rem;
    }

    .main-panels-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .secondary-panels-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .main-card {
        padding: 2rem 1.5rem;
        min-height: auto;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    }

    .secondary-card {
        padding: 1.5rem 1.25rem;
        min-height: auto;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 1rem;
        row-gap: 0.5rem;
        align-items: start;
    }

    .card-icon-small {
        grid-row: 1 / 3;
        grid-column: 1;
        margin-bottom: 0;
        flex-shrink: 0;
        align-self: center;
    }

    .card-title-small {
        grid-row: 1;
        grid-column: 2;
    }

    .card-description-small {
        grid-row: 2;
        grid-column: 2;
    }

    .secondary-card-content {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .card-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1.5rem;
    }

    .card-icon .material-icons {
        font-size: 32px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .card-action {
        width: 44px;
        height: 44px;
    }

    .card-action .material-icons {
        font-size: 22px;
    }

    .card-icon-small {
        width: 48px;
        height: 48px;
    }

    .card-icon-small .material-icons {
        font-size: 24px;
    }

    .card-title-small {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .card-description-small {
        font-size: 0.9rem;
    }

    /* Adjust card hover effects for mobile */
    .service-card:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 18vh;
        max-height: 22vh;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-container {
        padding: 0.5rem 1rem;
    }

    .company-name {
        font-size: 2rem;
        letter-spacing: 0;
        margin-bottom: 1rem;
        padding-top: 8rem;
    }

    .tagline {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        margin-top: -0.75rem;
    }

    .services-section {
        padding: 1.5rem 1.25rem;
        margin: 0;
        max-width: 100%;
    }

    .main-card,
    .secondary-card {
        padding: 1.5rem 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .secondary-card {
        column-gap: 0.875rem;
        row-gap: 0.4rem;
    }

    .card-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }

    .card-icon .material-icons {
        font-size: 28px;
    }

    .card-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .card-description {
        font-size: 0.95rem;
    }

    .card-icon-small {
        width: 44px;
        height: 44px;
    }

    .card-icon-small .material-icons {
        font-size: 22px;
    }

    .card-title-small {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }

    .card-description-small {
        font-size: 0.85rem;
    }
}

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

.service-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.main-card:nth-child(1) {
    animation-delay: 0.1s;
}

.main-card:nth-child(2) {
    animation-delay: 0.2s;
}

.secondary-card:nth-child(1) {
    animation-delay: 0.3s;
}

.secondary-card:nth-child(2) {
    animation-delay: 0.4s;
}

.secondary-card:nth-child(3) {
    animation-delay: 0.5s;
}

.secondary-card:nth-child(4) {
    animation-delay: 0.6s;
}
