/* Flatris Modern 2025 Styles - Brand Consistent Palette (Teal/Site Theme) */

:root {
    --primary-glow: rgba(10, 106, 110, 0.4);
    /* Teal glow - #0A6A6E */
    --secondary-glow: rgba(102, 165, 173, 0.3);
    /* Lighter teal - #66a5ad */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --brand-accent: #0A6A6E;
    /* Main Accent from main.css */
    --brand-dark: #04202c;
    /* Dark background from main.css */
    --brand-surface: #5d969e;
    /* Surface color from main.css */
}

/* Hero Content */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 0;
        overflow-wrap: break-word;
    }
}

@media (max-width: 767px) {
    .v2-metallic-text {
        font-size: 2rem;
        letter-spacing: 0;
        overflow-wrap: break-word;
    }
}

@media (max-width: 420px) {
    .v2-metallic-text {
        font-size: 1.8rem;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 1.5rem;
    margin-top: 2rem;
}

.bento-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 250px;
}

.bento-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-accent);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 20px rgba(10, 106, 110, 0.2);
}

.bento-item i {
    color: var(--brand-accent);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    display: block;
}

.bento-item h5 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.bento-item p {
    margin-bottom: 0;
    flex-grow: 1;
    color: rgba(255, 255, 255, 0.8);
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.wide {
    grid-column: span 2;
}

/* Frameless Features (Cleaner look next to sidebar) */
.frameless-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.frameless-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 10px;
    transition: transform 0.3s ease;
}

.frameless-item:hover {
    transform: translateY(-5px);
}

.frameless-item i {
    font-size: 2rem;
    color: var(--brand-accent);
    background: rgba(10, 106, 110, 0.1);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    transition: 0.3s;
    margin-bottom: 0.5rem;
}

.frameless-item:hover i {
    background: var(--brand-accent);
    color: #fff;
    box-shadow: 0 10px 20px rgba(10, 106, 110, 0.3);
}

.frameless-item h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.frameless-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
}

.frameless-item.wide {
    grid-column: span 2;
}

@media (max-width: 576px) {
    .frameless-features {
        grid-template-columns: 1fr;
    }

    .frameless-item.wide {
        grid-column: span 1;
    }
}

/* Vertical Features Layout */
.features-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-row-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-row-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-accent);
    box-shadow: 20px 0 40px rgba(0, 0, 0, 0.2);
}

.feature-row-item .feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(10, 106, 110, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.3s;
}

.feature-row-item:hover .feature-icon {
    background: var(--brand-accent);
    transform: scale(1.1);
}

.feature-row-item .feature-icon i {
    font-size: 2.5rem;
    color: var(--brand-accent);
    margin: 0;
}

.feature-row-item:hover .feature-icon i {
    color: #fff;
}

.feature-row-item h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.feature-row-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .feature-row-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        text-align: left;
    }
}

/* Hero Section Enhancement */
.service-hero-modern {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-hero-modern img {
    width: 100%;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-hero-modern:hover img {
    transform: scale(1.05);
}

.hero-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem 3rem;
    background: linear-gradient(to top, rgba(4, 32, 44, 1), rgba(4, 32, 44, 0.8), transparent);
    color: white;
}

.hero-overlay-text h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

/* Pricing Card 2025 */
.pricing-card-modern {
    background: rgba(102, 165, 173, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 165, 173, 0.15);
    border-radius: 32px;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.pricing-card-modern.featured {
    background: rgba(10, 106, 110, 0.08);
    border-color: var(--brand-accent);
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.pricing-card-modern:hover {
    transform: translateY(-10px);
    border-color: var(--brand-accent);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), 0 0 30px rgba(10, 106, 110, 0.1);
}

.price-tag {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin: 1.5rem 0;
    letter-spacing: -1px;
}

.price-tag span {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Premium Primary Button for Pricing */
.pricing-card-modern .btn-primary {
    background: var(--brand-accent);
    color: #fff;
    border-radius: 100px;
    font-weight: 700;
    padding: 15px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 10px 20px rgba(10, 106, 110, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.pricing-card-modern .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
}

.pricing-card-modern .btn-primary:hover::before {
    left: 100%;
}

.pricing-card-modern .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    background: #0d8387;
    box-shadow: 0 15px 30px rgba(10, 106, 110, 0.45);
}

/* List Items Styling */
.features-list li {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.features-list li i {
    color: var(--brand-accent) !important;
    margin-right: 0.75rem;
}

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card-modern.featured {
        transform: scale(1);
        margin: 2rem 0;
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.large,
    .bento-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Gallery Interactive Styling */
.gallery-img {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.glightbox-container {
    z-index: 10000;
}