/* ============================================
   TROLEX PRODUCTS PRIVATE LIMITED
   home.css — Homepage-Specific Styles
   ============================================ */

:root {
    --font-display: 'Barlow Condensed', 'Segoe UI', sans-serif;
    --font-body: 'Barlow', 'Segoe UI', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --glow-cyan: rgba(0, 212, 255, 0.6);
    --glow-cyan-soft: rgba(0, 212, 255, 0.15);
    --glow-blue: rgba(20, 120, 181, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-border-strong: rgba(0, 212, 255, 0.3);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-white);
    margin: 0;
    padding: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse 80% 80% at 0% 50%, rgba(10, 61, 98, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 100% 30%, rgba(12, 90, 138, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 70% 80%, rgba(0, 180, 255, 0.04) 0%, transparent 50%),
        linear-gradient(155deg, #f0f7ff 0%, #e8f4ff 30%, #f8fbff 55%, #f0f7ff 80%, #ffffff 100%);
    overflow: hidden;
    padding-top: 70px;
    padding-bottom: 0;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px var(--container-padding) 20px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content {
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 180, 255, 0.08);
    border: 1px solid rgba(0, 180, 255, 0.2);
    padding: 6px 14px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--nav-blue-light);
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(42px, 5.5vw, 72px);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-title .line-1 {
    display: block;
    color: var(--nav-blue-dark);
    text-shadow: 0 0 40px rgba(0, 180, 255, 0.1);
}

.hero-title .highlight {
    display: block;
    background: linear-gradient(120deg, var(--nav-blue-light) 0%, var(--accent-cyan) 40%, var(--nav-blue-bright) 70%, var(--nav-blue-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s linear infinite;
    filter: drop-shadow(0 0 20px rgba(0, 180, 255, 0.2));
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 480px;
    font-weight: 400;
    border-left: 2px solid rgba(0, 180, 255, 0.3);
    padding-left: 16px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--nav-blue-light), var(--nav-blue-bright));
    color: white;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 3px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(20, 120, 181, 0.35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(20, 120, 181, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--nav-blue-dark);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 3px;
    border: 1.5px solid rgba(20, 120, 181, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--nav-blue-light);
    color: var(--nav-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(10, 61, 98, 0.15);
}

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-frame {
    position: relative;
    z-index: 2;
    width: 95%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 180, 255, 0.15),
        0 20px 50px rgba(10, 61, 98, 0.15),
        0 0 60px rgba(0, 150, 220, 0.08);
    transition: box-shadow 0.4s ease;
}

.hero-image-frame:hover {
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.3),
        0 25px 60px rgba(10, 61, 98, 0.2),
        0 0 80px rgba(0, 180, 255, 0.15);
}

.hero-image-frame img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    filter: brightness(0.95) contrast(1.05) saturate(0.95);
    transition: filter 0.4s ease;
}

.hero-image-frame:hover img {
    filter: brightness(1) contrast(1.05) saturate(1);
}

.floating-card {
    position: absolute;
    backdrop-filter: blur(16px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
    transition: transform 0.3s ease;
}

.floating-card:hover { transform: translateY(-4px) !important; }

.floating-card.card-1 {
    top: 5%;
    right: -8%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(20, 120, 181, 0.2);
    padding: 10px 14px;
    box-shadow:
        0 0 0 1px rgba(20, 120, 181, 0.08),
        0 15px 40px rgba(10, 61, 98, 0.12),
        0 0 20px rgba(20, 120, 181, 0.06);
    animation: floatCard1 7s ease-in-out infinite;
    animation-delay: 2s;
    min-width: 100px;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card.card-1 .icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, rgba(20, 120, 181, 0.15), rgba(10, 61, 98, 0.1));
    border: 1px solid rgba(20, 120, 181, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nav-blue-light);
    font-size: 14px;
    flex-shrink: 0;
}

.floating-card.card-1 .info h4 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.floating-card.card-1 .info p {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--nav-blue-light);
    letter-spacing: 0.5px;
}





.facility-preview-grid.two-cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .facility-preview-grid.two-cards {
        grid-template-columns: 1fr;
    }
}





/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background:
        linear-gradient(90deg, rgba(10, 61, 98, 0.03) 0%, transparent 30%, transparent 70%, rgba(10, 61, 98, 0.03) 100%),
        linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 50%, #f8fbff 100%);
    padding: 36px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 180, 255, 0.08);
    border-bottom: 1px solid rgba(0, 180, 255, 0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: var(--nav-blue-dark);
    padding: 12px 30px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(0, 180, 255, 0.2), transparent);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.5vw, 48px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--nav-blue-dark) 0%, var(--nav-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-light {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 100, 180, 0.03) 0%, transparent 60%),
        linear-gradient(180deg, #f8fbff 0%, #f0f7ff 100%);
}

.section-white {
    background: linear-gradient(180deg, #f0f7ff 0%, #f8fbff 100%);
}

.section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid rgba(0, 180, 255, 0.2);
    color: var(--nav-blue-light);
    padding: 4px 14px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--nav-blue-dark);
    margin-bottom: 12px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title .highlight {
    background: linear-gradient(120deg, var(--nav-blue-light), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
}

/* ============================================
   FEATURE CARDS — FLEX LAYOUT 3 PER ROW
   ============================================ */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.feature-card {
    flex: 1 1 calc(33.333% - 11px);
    min-width: 260px;
    max-width: calc(33.333% - 11px);
    position: relative;
    background: var(--bg-blue);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 100, 180, 0.05), rgba(0, 60, 120, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 12px;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--nav-blue-bright));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgb(0, 179, 255);
    box-shadow:
        0 15px 40px rgba(0, 149, 255, 0.1),
        0 0 30px rgba(0, 150, 220, 0.05);
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after { opacity: 1; }

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(0, 140, 255, 0.05), rgba(0, 122, 243, 0.03));
}

.feature-card:hover .feature-title {
    color: rgb(0, 179, 255);
}

.feature-card:hover .feature-desc {
    color: var(--text-secondary);
    font-weight: 500;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--bg-light), #e0f2fe);
    border: 1px solid rgba(0, 150, 220, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    transition: all 0.4s ease;
    color: var(--nav-blue-light);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.feature-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
    transition: color 0.3s ease;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--nav-blue-light);
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: var(--accent-cyan);
    transform: translateX(4px);
}

/* FIX: Learn More hover visibility */
.feature-card:hover .feature-link {
    color: var(--nav-blue-light);
}

.feature-card:hover .feature-link:hover {
    color: var(--accent-cyan);
}

/* ============================================
   FACILITY PREVIEW
   ============================================ */
.facility-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.facility-preview-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 6px 20px rgba(10, 61, 98, 0.1),
        0 0 0 1px rgba(10, 61, 98, 0.05);
    transition: all 0.4s ease;
    cursor: pointer;
    height: 320px;
}

.facility-preview-item:hover {
    transform: translateY(-4px);
    box-shadow:
        0 15px 40px rgba(10, 61, 98, 0.15),
        0 0 0 1px rgba(0, 180, 255, 0.2),
        0 0 30px rgba(0, 150, 220, 0.08);
}

.facility-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.9) saturate(0.9);
}

.facility-preview-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.95) saturate(0.95);
}

.facility-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 61, 98, 0.95) 0%, rgba(10, 61, 98, 0.5) 60%, transparent 100%);
    padding: 24px 16px 14px;
    color: white;
    border-bottom: 2px solid rgba(0, 180, 255, 0.15);
    transition: all 0.3s ease;
}

.facility-preview-item:hover .facility-preview-overlay {
    border-bottom-color: rgba(0, 180, 255, 0.4);
}

.facility-preview-overlay h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
    color: white;
}

.facility-preview-overlay p {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.why-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 28px 22px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 180, 255, 0.15);
    box-shadow:
        0 15px 40px rgba(10, 61, 98, 0.1),
        0 0 25px rgba(0, 150, 220, 0.05);
}

.why-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--bg-light), #e0f2fe);
    border: 1px solid rgba(0, 150, 220, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--nav-blue-light);
    margin: 0 auto 16px;
    transition: all 0.4s ease;
}

.why-card:hover .why-icon {
    background: linear-gradient(135deg, var(--nav-blue-light), var(--nav-blue-bright));
    border-color: rgba(0, 180, 255, 0.4);
    color: white;
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.15);
}

.why-card h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.why-card p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background:
        radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0, 100, 180, 0.08) 0%, transparent 70%),
        linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 50%, #f8fbff 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-top: 1px solid rgba(0, 180, 255, 0.08);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: var(--nav-blue-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    line-height: 1.05;
}

.cta-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.btn-large {
    padding: 14px 36px;
    font-size: 13px;
    letter-spacing: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 30px var(--container-padding) 20px;
    }
    .hero-image-frame { width: 92%; }
    .floating-card.card-1 { right: -4%; }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 30px var(--container-padding) 20px;
    }
    .hero-content { order: 1; align-items: center; }
    .hero-image { order: 2; }
    .hero-image-frame { width: 80%; }
    .hero-eyebrow { justify-content: center; }
    .hero-subtitle {
        margin: 0 auto 24px;
        text-align: left;
    }
    .hero-buttons { justify-content: center; }
    .floating-card { display: none; }
    .facility-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item::after { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .feature-card {
        flex: 1 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

@media (max-width: 600px) {
    .hero-container { padding: 20px var(--container-padding) 16px; }
    .hero-image-frame { width: 92%; }
    .facility-preview-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 38px; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
    .btn { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .stat-item { padding: 10px 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cta-section { padding: 40px 0; }
    .section { padding: 30px 0; }
    .feature-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}