/* YXWLED Front Page (Homepage) Styles */

/* ── Hero Video ── */
.hero-video {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero-video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-video-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 50px;
    max-width: 1000px;
}

.hero-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-video-content h1 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-video-content h1 span {
    color: var(--accent);
}

.hero-video-content p {
    font-size: 20px;
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}

.hero-badge span:first-child {
    font-size: 18px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-arrow svg {
    opacity: 0.7;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ── About Section ── */
.section-about {
    padding: 100px 50px;
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--container);
    margin: 0 auto;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all var(--transition);
}

.about-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.about-card-icon {
    font-size: 32px;
    margin-bottom: 20px;
    width: 64px;
    height: 64px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.about-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-card ul {
    list-style: none;
    padding: 0;
}

.about-card ul li {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card ul li:last-child {
    border-bottom: none;
}

.about-card ul li::before {
    content: '→';
    color: var(--accent);
    flex-shrink: 0;
}

/* ── Products Section (on homepage) ── */
.section-products-home {
    padding: 100px 50px;
    background: var(--bg-white);
}

.products-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--container);
    margin: 0 auto;
}

/* ── Project Gallery ── */
.section-gallery {
    padding: 100px 50px;
    background: var(--bg-light);
}

.tab-nav {
    display: flex;
    gap: 0;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-mid);
    cursor: pointer;
    position: relative;
    transition: color var(--transition);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn.active {
    color: var(--accent);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 2px;
    background: var(--accent);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: var(--container);
    margin: 0 auto;
}

.photo-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 280ms ease;
}

.photo-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 280ms ease;
}

.photo-item:hover img {
    transform: scale(1.03);
}

/* ── Why Us ── */
.section-why-us {
    padding: 100px 50px;
    background: var(--bg-dark);
}

.why-us-content {
    max-width: var(--container);
    margin: 0 auto;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-icon {
    font-size: 28px;
    width: 56px;
    height: 56px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.why-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* Workflow */
.workflow-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    position: relative;
}

.workflow-step {
    text-align: center;
    position: relative;
}

.workflow-step-num {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    margin: 0 auto 16px;
}

.workflow-step h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.workflow-step p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

/* ── Clients ── */
.section-clients {
    padding: 80px 50px;
    background: var(--bg-white);
    text-align: center;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: var(--container);
    margin: 0 auto 60px;
}

.client-logo {
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: var(--radius-md);
    padding: 20px 30px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-mid);
    transition: all var(--transition);
    min-width: 120px;
    text-align: center;
}

.client-logo:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 102, 255, 0.05);
}

.tech-brands {
    max-width: var(--container);
    margin: 0 auto;
}

.tech-brands h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    color: var(--text-mid);
}

.tech-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tech-logo {
    background: rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

/* ── Blog Section (homepage) ── */
.section-blog-home {
    padding: 100px 50px;
    background: var(--bg-dark);
}

.blog-grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: var(--container);
    margin: 0 auto;
}

/* ── Contact Section (homepage) ── */
.section-contact-home {
    padding: 100px 50px;
    background: linear-gradient(135deg, #0a1628 0%, #1a2744 100%);
}

.contact-home-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    max-width: var(--container);
    margin: 0 auto;
}

.contact-home-info h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-home-info > p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-home-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-home-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 102, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 102, 255, 0.3);
}

.contact-home-item h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-home-item p,
.contact-home-item a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-home-item a {
    color: var(--accent);
}

.contact-home-form {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 50px;
}

.contact-home-form h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* ── Responsive Front Page ── */
@media (max-width: 1200px) {
    .hero-video-content h1 { font-size: 56px; }
    .blog-grid-home { grid-template-columns: repeat(2, 1fr); }
    .workflow-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .products-grid-home { grid-template-columns: repeat(2, 1fr); }
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-home-grid { grid-template-columns: 1fr; gap: 50px; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-video-content { padding: 0 20px; }
    .hero-video-content h1 { font-size: 38px; }
    .hero-video-content p { font-size: 16px; }
    .section-about,
    .section-products-home,
    .section-gallery,
    .section-why-us,
    .section-clients,
    .section-blog-home,
    .section-contact-home { padding: 60px 20px; }
    .products-grid-home { grid-template-columns: 1fr; }
    .why-us-grid { grid-template-columns: 1fr; }
    .blog-grid-home { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: 1fr; }
    .workflow-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-home-form { padding: 30px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .hero-cta-group { flex-direction: column; align-items: center; }
}
