/* ==============================================
   Semi-Vertical Cabinets Page - Responsive CSS
================================================= */

/* ---------- Hero Section ---------- */
.semi-vertical-hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(248,250,252,0.95) 0%, rgba(244,247,252,0.98) 100%),
                url('https://images.unsplash.com/photo-1578916170144-9bb7d8c06f6b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=40');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.semi-vertical-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(59,175,218,0.1) 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
    z-index: 1;
}

.hero-content-box {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    text-align: center;
    padding: 4rem;
    border-radius: 32px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 25px 60px rgba(11,60,93,0.1), 0 0 0 1px rgba(255,255,255,0.2), inset 0 0 0 1px rgba(255,255,255,0.5);
    animation: fadeInUp 0.8s ease-out;
}

.hero-content-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, rgba(59,175,218,0.2), rgba(11,60,93,0.1), rgba(59,175,218,0.2));
    border-radius: 34px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--deep-navy) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 15px rgba(11,60,93,0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--secondary-grey);
    line-height: 1.7;
    margin: 0 auto 2.5rem;
    max-width: 700px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(11,60,93,0.1);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(59,175,218,0.2);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-grey);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- Overview Section ---------- */
.overview-section {
    padding: 6rem 0;
    background: var(--white);
}

.overview-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--deep-navy);
    margin-bottom: 1.5rem;
    position: relative;
}

.overview-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--accent-blue), var(--glacier-blue));
    border-radius: 2px;
}

.overview-content .lead,
.overview-content p {
    font-size: 1.3rem;
    color: var(--grey-text);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

.features-list {
    margin-top: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-item:hover {
    background-color: rgba(59,175,218,0.05);
    border-color: rgba(59,175,218,0.1);
    transform: translateX(5px);
}

.feature-item i {
    color: var(--accent-blue);
    font-size: 1.2rem;
    min-width: 24px;
}

.feature-item span {
    color: var(--grey-text);
    font-weight: 500;
}

/* Overview Image */
.overview-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.overview-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.overview-image img {
    width: 100%;
    display: block;
    height: auto;
}

.design-angle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.design-angle i {
    color: var(--accent-blue);
    font-size: 2rem;
    transform: rotate(45deg);
}

.design-angle span {
    font-weight: 700;
    color: var(--deep-navy);
    font-size: 1.1rem;
}

/* ---------- Variants Section ---------- */
.variants-section {
    padding: 6rem 0;
    background: var(--white);
}

.variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.variant-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    border: 1px solid rgba(255,255,255,0.2);
}

.variant-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--hover-shadow);
}

.variant-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.variant-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.variant-card:hover .variant-header img {
    transform: scale(1.05) rotate(-1deg);
}

.variant-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-blue);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(59,175,218,0.3);
}

.variant-body {
    padding: 2rem;
    flex-grow: 1;
}

.variant-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 1rem;
}

.variant-desc {
    color: var(--grey-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 72px;
}

.variant-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(11,60,93,0.1);
}

.spec-item {
    text-align: center;
}

.spec-item i {
    color: var(--accent-blue);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.spec-item span {
    font-size: 0.85rem;
    color: var(--secondary-grey);
    font-weight: 500;
}

/* Variant Footer */
.variant-footer {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(11,60,93,0.1);
    background: linear-gradient(45deg, rgba(248,250,252,0.9) 0%, rgba(241,245,249,0.9) 100%);
}

/* Buttons */
.btn-outline-primary {
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59,175,218,0.3);
}

.btn-link {
    color: var(--deep-navy);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--accent-blue);
}

/* ==========================================
   Media Queries - Fully Responsive
=========================================== */
@media (max-width: 1200px) {
    .variants-grid { grid-template-columns: repeat(2,1fr); }
    .hero-title { font-size: 3rem; }
}

@media (max-width: 992px) {
    .overview-content h2 { font-size: 2.4rem; }
 .features-grid{ grid-template-columns: repeat(2,1fr); }
    .hero-content-box { padding: 3rem 2rem; }
}

@media (max-width: 768px) {
    .semi-vertical-hero-section { padding: 100px 15px 60px; background-attachment: scroll; }
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-stats { flex-direction: column; gap: 1.5rem; padding-top: 2rem; margin-top: 2rem; }
    .stat-value { font-size: 2rem; }
    .overview-image { transform: none; margin-top: 3rem; }
    .design-angle { position: relative; bottom: auto; right: auto; margin-top: 1rem; display: inline-flex; }
    .variants-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .variant-footer { flex-direction: column; gap: 1rem; }
    .btn-outline-primary, .btn-link { width: 100%; text-align: center; }
 
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .overview-content h2 { font-size: 1.8rem; }
    .features-grid{ grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
    .variant-desc { min-height: auto; }
    .specs-table th, .specs-table td { font-size: 0.85rem; padding: 1rem; }
    .technical-features { padding: 1.5rem; }
    .sticky-btn { width: 45px; height: 45px; font-size: 1rem; }
}

@media (max-width: 480px) {
    .hero-content-box { padding: 2rem 1.5rem; border-radius: 24px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .stat-value { font-size: 1.8rem; }
    .variant-specs { grid-template-columns: repeat(3,1fr); }
    .variant-specs span { font-size: 0.8rem; }
}

/* ---------- Animations ---------- */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.6s ease forwards; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes borderGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Stagger Animation Delays */
.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }

.variant-card:nth-child(1) { animation-delay: 0.1s; }
.variant-card:nth-child(2) { animation-delay: 0.2s; }
.variant-card:nth-child(3) { animation-delay: 0.3s; }
.variant-card:nth-child(4) { animation-delay: 0.4s; }
