﻿/* ============================================================
   Dandelion System — home.css
   Applies only to Default.aspx (Home).
   Loaded via <link> in Default.aspx HeadContent.
   ============================================================ */


/* ============================================================
   0. Header override — transparent at top, fade in on scroll
   ============================================================ */

/* Default state: transparent header when at top of page */
.header {
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    transition: background 0.4s ease, border-bottom-color 0.4s ease, box-shadow 0.4s ease;
}

.header .header-content {
    background: transparent;
    transition: background 0.4s ease;
}

.header .logo {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

/* Scrolled state: solid header with logo visible */
.header.scrolled {
    background: var(--header-bg) !important;
    border-bottom-color: var(--border-gray) !important;
    box-shadow: 0 2px 10px rgba(0, 174, 239, 0.1) !important;
}

.header.scrolled .header-content {
    background: transparent;
}

.header.scrolled .logo {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


/* ============================================================
   1. Full-screen Hero with background slider
   ============================================================ */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin-left: calc(-50vw + 50%);
    margin-top: -81px;       /* pull up behind the transparent header */
    padding-top: 81px;       /* compensate so content doesn't hide under header */
    overflow: hidden;
    background: black;
}

.background-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-slide.active { opacity: 1; }

.bg-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.bg-slide:nth-child(1) { background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=1200'); }
.bg-slide:nth-child(2) { background-image: url('https://images.unsplash.com/photo-1600290239653-029f10d8b38d?q=80&w=1200'); }
.bg-slide:nth-child(3) { background-image: url('https://images.unsplash.com/photo-1457305237443-44c3d5a30b89?q=80&w=1200'); }
.bg-slide:nth-child(4) { background-image: url('https://images.unsplash.com/photo-1555099962-4199c345e5dd?q=80&w=1200'); }

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-logo {
    max-width: 250px;
    width: 60%;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.7));
}

.hero-company-text {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    color: #fff;
}

.hero-company-name {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.cta-button {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    animation: breathing 3s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% { background-position: 0% 50%; box-shadow: 0 5px 15px rgba(102,126,234,0.4); }
    50%      { background-position: 100% 50%; box-shadow: 0 8px 25px rgba(118,75,162,0.6); }
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102,126,234,0.5);
    animation-play-state: paused;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator::before {
    content: '↓';
    font-size: 2rem;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}


/* ============================================================
   2. Parallax wrapper — used by Featured Products and
      Other Software sections.
   ============================================================ */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 0;
}

.parallax > * {
    position: relative;
    z-index: 1;
}

.parallax .section-title,
.parallax .section-subtitle,
.parallax h3,
.parallax p,
.parallax span {
    color: #f1f1f1;
}

/* Cards keep their own colors against the parallax overlay */
.parallax .service-card h3,
.parallax .service-card p,
.parallax .service-card span,
.parallax .product-card h3,
.parallax .product-card p,
.parallax .product-card span {
    color: inherit;
}

.parallax-featured {
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1600');
}

.parallax-other {
    background-image: url('https://images.unsplash.com/photo-1448932223592-d1fc686e76ea?q=80&w=1600');
}

/* When a section is parallax, drop its solid background so the
   image can show through. Higher specificity beats the section
   rules below. */
.featured-section.parallax,
.other-software.parallax {
    background-color: transparent;
}


/* ============================================================
   3. "What We Do" — gradient section (2nd section)
      On-brand dark cards with cyan/purple accents.
   ============================================================ */
.what-we-do-gradient {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f2a38 50%, #2a2a2a 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Soft radial glows for depth without a background image */
.what-we-do-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 174, 239, 0.10), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(118, 75, 162, 0.10), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.what-we-do-gradient > * {
    position: relative;
    z-index: 1;
}

.what-we-do-gradient .section-title,
.what-we-do-gradient .section-subtitle {
    color: var(--text-light);
}

.what-we-do-gradient .services-grid {
    max-width: 1200px;
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.what-we-do-gradient .service-card {
    background: linear-gradient(160deg, #353535 0%, #2d2d2d 100%);
    padding: 38px 28px;
    border-radius: 14px;
    border: 1px solid var(--border-gray);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Top accent bar — sweeps in on hover */
.what-we-do-gradient .service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-purple));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s ease;
}

.what-we-do-gradient .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 174, 239, 0.20);
    border-color: var(--primary-color);
}

.what-we-do-gradient .service-card:hover::before {
    transform: scaleX(1);
}

/* Circular icon badge with site gradient */
.what-we-do-gradient .service-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 174, 239, 0.3);
}

.what-we-do-gradient .service-card .service-icon,
.what-we-do-gradient .service-card .service-icon i {
    color: #fff;
}

.what-we-do-gradient .service-card h3 {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.what-we-do-gradient .service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* ============================================================
   4. Featured Products & Freeware sections
   ============================================================ */
.featured-section {
    background-color: var(--darker-bg);
    padding: 70px 0;
}

.freeware-section {
    background: var(--dark-bg);
    padding: 60px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 20px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 174, 239, 0.18);
    border-color: var(--primary-color);
}

.product-card-image {
    height: 170px;
    background: linear-gradient(135deg, #1a2a3a, #2d4a5e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 48px;
    border-bottom: 1px solid var(--border-gray);
    position: relative;
    overflow: hidden;
}

.product-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 174, 239, 0.15), transparent 60%);
    pointer-events: none;
}

.product-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-body h3 {
    color: var(--text-light);
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.35;
}

.product-card-body p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
    flex: 1;
}

.product-card-body .btn {
    align-self: flex-start;
    padding: 9px 22px;
    font-size: 13px;
}

.freeware-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--freeware-green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 20px;
    letter-spacing: 0.7px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
    text-transform: uppercase;
}


/* ============================================================
   5. Other software — inline pill list
   ============================================================ */
.other-software {
    background-color: var(--darker-bg);
    padding: 60px 0;
    text-align: center;
}

.other-software-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.other-software-list span {
    background: var(--card-bg);
    color: var(--text-gray);
    padding: 9px 18px;
    border-radius: 22px;
    font-size: 14px;
    border: 1px solid var(--border-gray);
    transition: all 0.2s ease;
}

.other-software-list span:hover {
    border-color: var(--primary-color);
    color: var(--text-light);
}

.other-software .note {
    color: var(--text-dark);
    font-size: 13px;
    font-style: italic;
    margin-top: 28px;
}


/* ============================================================
   6. Responsive
   ============================================================ */
@media (max-width: 768px) {
    /* Parallax fixed-attachment is unreliable on iOS */
    .parallax { background-attachment: scroll; }

    /* Hero sizing */
    .hero-company-text { font-size: 2.5rem; }
    .hero-company-name { font-size: 1.2rem; }
    .hero-description { font-size: 1rem; }

    /* What We Do */
    .what-we-do-gradient { padding: 60px 0; }
    .what-we-do-gradient .services-grid { grid-template-columns: 1fr; }

    /* Product grid stacks */
    .product-grid { grid-template-columns: 1fr; }
}
