/* C:\xampp\htdocs\techsolution\css\home.css */
/* Dark theme with red accents – all cards use semi-transparent background */

:root {
    --red: #D0021B;
    --red-dark: #e20808;
    --red-mid: #d10606;
    --red-soft: rgba(255, 0, 30, 0.15);
    --black: #0d0d0d;
    --white: #ffffff;
    --bg-main: #130508;
    --bg-card: rgba(255,255,255,0.15); /* New: semi-transparent like contact form */
    --muted: #cbd5e1;
    --gray-bg: #1a1a1f;
}

/* Force dark background on home page */
body.page-home {
    background: #0d0d0d !important;
}

/* ===== HERO SECTION (centered, no image) ===== */
.hero-home {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.hero-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(208,2,27,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(208,2,27,0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.hero-home h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}
.hero-home h1 span { color: #dd0303; }
.hero-home p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    line-height: 1.75;
}
.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.btn-primary-red {
    background: #D0021B;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary-red:hover {
    background: #a80015;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(208,2,27,0.3);
    color: #fff;
    text-decoration: none;
}
.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline-light:hover {
    border-color: #D0021B;
    background: rgba(208,2,27,0.1);
    color: #fff;
    text-decoration: none;
}

/* ===== SECTION HEADINGS (dark theme) ===== */
.section-head {
    text-align: center;
    margin-bottom: 3rem;
}
.section-eyebrow {
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red-mid);
    display: inline-block;
    margin-bottom: 0.5rem;
}
.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}
.section-title span { color: var(--red-mid); }
.section-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #ddd0d4;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== LANSANG TECH SERVICES (dark card) ===== */
.services-feature {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 3rem;
    margin: 2rem 0;
    border: 1px solid rgba(208,2,27,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.services-feature-img {
    width: 100%;
    min-height: 380px; /* increased height */
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}
.services-feature-img:hover {
    transform: scale(1.02);
}
.services-feature h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}
.services-feature h3 span { color: var(--red-mid); }
.services-feature p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #ddd0d4;
    line-height: 1.75;
    margin-bottom: 1rem;
}
.services-feature ul {
    font-family: 'DM Sans', sans-serif;
    color: #ddd0d4;
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.2rem;
}
.services-feature ul li strong {
    color: var(--red-mid);
}

/* ===== WHY CHOOSE US (cards with new background) ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.why-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.25s;
}
.why-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-color: var(--red);
    background: rgba(255,255,255,0.2);
}
.why-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(208,2,27,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-mid);
    font-size: 1.3rem;
    transition: all 0.25s;
}
.why-item:hover .why-icon {
    background: var(--red);
    color: #fff;
}
.why-item h5 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}
.why-item p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: #ddd0d4;
    line-height: 1.6;
    margin: 0;
}

/* ===== PROCESS STEPS (new background) ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
}
.process-step {
    text-align: center;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.25s;
}
.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: var(--red);
    background: rgba(255,255,255,0.2);
}
.process-num {
    width: 60px;
    height: 60px;
    background: rgba(208,2,27,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--red-mid);
    margin: 0 auto 1rem;
    transition: all 0.25s;
}
.process-step:hover .process-num {
    background: var(--red);
    color: #fff;
}
.process-step h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}
.process-step p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: #ddd0d4;
    line-height: 1.6;
    margin: 0;
}

/* ===== ABOUT CARDS (new background) ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.about-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 1.8rem;
    transition: all 0.25s;
    text-align: center;
}
.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: var(--red);
    background: rgba(255,255,255,0.2);
}
.about-icon {
    width: 60px;
    height: 60px;
    background: rgba(208,2,27,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--red-mid);
    font-size: 1.4rem;
}
.about-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}
.about-card p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: #ddd0d4;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.about-link {
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--red-mid);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}
.about-link:hover {
    gap: 10px;
    text-decoration: none;
    color: var(--red);
}

/* ===== BLOG CARDS (new background) ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.blog-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.3);
    border-color: var(--red);
    background: rgba(255,255,255,0.2);
}
.blog-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}
.blog-img-placeholder {
    height: 180px;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 2rem;
}
.blog-content {
    padding: 1.2rem 1.2rem 1.5rem;
}
.blog-meta {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.blog-title {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.blog-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-title a:hover { color: var(--red-mid); }
.blog-excerpt {
    font-size: 0.8rem;
    color: #ddd0d4;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}
.blog-readmore {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--red-mid);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.blog-readmore:hover { gap: 8px; text-decoration: none; color: var(--red); }

/* ===== SERVICE CARDS (new background) ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 1.8rem;
    transition: transform 0.25s, box-shadow 0.25s;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.3);
    border-color: var(--red);
    text-decoration: none;
    background: rgba(255,255,255,0.2);
}
.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(208,2,27,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: var(--red-mid);
    font-size: 1.6rem;
    transition: background 0.2s, color 0.2s;
}
.service-card:hover .service-icon {
    background: var(--red);
    color: #fff;
}
.service-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #fff;
}
.service-card p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: #ddd0d4;
    line-height: 1.6;
    margin: 0;
}

/* ===== CONTACT SECTION (keeping original background) ===== */
.contact-home {
    background: #0d0d0d;
    border-radius: 24px;
    padding: 3rem;
    color: #fff;
    border: 1px solid rgba(208,2,27,0.2);
}
.contact-home h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.contact-home p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 2rem;
    line-height: 1.7;
}
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    transition: all 0.2s;
}
.contact-info-card:hover {
    background: rgba(208,2,27,0.15);
    border-color: rgba(208,2,27,0.4);
    transform: translateX(4px);
}
.contact-info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 11px;
    background: rgba(208,2,27,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--red-mid);
    transition: background 0.2s, color 0.2s;
}
.contact-info-card:hover .contact-info-icon {
    background: var(--red);
    color: #fff;
}
.contact-info-card h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.2rem;
}
.contact-info-card a, .contact-info-card span {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-info-card a:hover {
    color: var(--red-mid);
    text-decoration: none;
}
.cu-form-card {
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}
.cu-form-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.3rem;
}
.cu-form-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
}
.cu-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 1.4rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}
.cu-alert-success {
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.4);
    color: #a7f3d0;
}
.cu-alert-error {
    background: rgba(208,2,27,0.15);
    border: 1px solid rgba(208,2,27,0.4);
    color: #fecaca;
}
.cu-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.cu-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}
.cu-form-group label {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.45rem;
}
.cu-input, .cu-textarea {
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 10px 14px;
    outline: none;
    transition: all 0.2s;
}
.cu-input::placeholder, .cu-textarea::placeholder { color: rgba(255,255,255,0.4); }
.cu-input:focus, .cu-textarea:focus {
    border-color: var(--red);
    background: rgba(255,255,255,0.15);
}
.cu-textarea { resize: vertical; min-height: 100px; }
.cu-submit {
    width: 100%;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}
.cu-submit:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}
.cu-form-note {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    margin-top: 1rem;
}

/* Background color for light sections (we override with dark) */
.bg-light {
    background-color: #0f0f12 !important;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 992px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 1rem; }
    .process-grid { grid-template-columns: 1fr; }
    .services-feature { padding: 1.5rem; }
    .services-feature h3 { font-size: 1.3rem; }
    .services-feature-img { min-height: 250px; }
    .contact-home { padding: 2rem; text-align: center; }
    .contact-info-cards { align-items: stretch; }
    .contact-info-card { flex-direction: column; align-items: center; text-align: center; }
    .cu-form-row { grid-template-columns: 1fr; gap: 0; }
    .cu-form-card { padding: 1.5rem; }
    .hero-home {
        padding: 70px 0 50px;
    }
    .hero-home p {
        max-width: 100%;
    }
}
@media (max-width: 576px) {
    .hero-home { padding: 60px 0 40px; }
    .hero-home p { font-size: 0.95rem; }
    .btn-primary-red, .btn-outline-light { padding: 8px 18px; font-size: 0.75rem; }
    .section-title { font-size: 1.4rem; }
    .services-feature h3 { font-size: 1.2rem; }
    .service-card { padding: 1rem; }
    .service-card h3 { font-size: 0.9rem; }
}

/* ===== SCROLL REVEAL ANIMATION (cards move up on scroll) ===== */
.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    will-change: transform, opacity;
}

.reveal-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: staggered delay for cards inside grids (adds a cascade effect) */
.service-grid .reveal-card.revealed,
.blog-grid .reveal-card.revealed,
.about-grid .reveal-card.revealed,
.why-grid .reveal-card.revealed,
.process-grid .reveal-card.revealed {
    transition-delay: calc(0.05s * var(--item-index, 0));
}

html {
    scroll-behavior: smooth;
}