/* home.css – homepage specific styles */

.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    padding-top: 40px;
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    max-width: 650px;
    margin-top: 20px;
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.hero-buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Optional: slight fade-in animation */
.hero {
    opacity: 0;
    transform: translateY(10px);
    animation: heroFadeIn 0.6s ease-out forwards;
    animation-delay: 0.1s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* dloper.com fun name animation */

.brand-title {
    display: inline-flex;
    align-items: center; /* prevents clipping */
    gap: 2px;
    line-height: 1.1; /* extra vertical space */
    padding-top: 4px; /* fixes top clipping */
}

.brand-title * {
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    font-weight: inherit;
}

.brand-d {
    font-weight: 800;
}

.brand-tail {
    display: inline-block;
    transition: transform 0.2s ease;
}

.brand-eve-link {
    display: inline-flex;
    align-items: baseline;
    color: inherit;
    text-decoration: none;
}

/* brand-eve (hidden until expand animation) */
.brand-eve {
    display: inline-block;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, max-width 0.45s ease;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}

/* Hover: expand into developer.com */
.brand-title:hover .brand-eve {
    opacity: 1;
    max-width: 3ch;
}

/* subtle hover */
.brand-title:hover .brand-tail {
    transform: translateX(2px);
}

/* ---------------------- */
/* Services Section Styles */
/* ---------------------- */

.services-section {
    padding: 56px 20px;
    display: flex;
    justify-content: center;
}

.services-container {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.service-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 24px 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 1fr);
    align-items: stretch;
    gap: 28px;
    width: 100%;
    margin: 0 calc(50% - 50vw);
    border-radius: 0;
}

.service-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
}

.carousel-track {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 16px;
    transition: transform 0.6s ease;
    padding: 0;
}

.carousel-track img {
    flex: 0 0 60%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

@media (max-width: 760px) {
    .service-card--wide {
        grid-template-columns: 1fr;
        margin: 0;
        border-radius: 14px;
    }

    .service-card-carousel {
        min-height: 200px;
    }
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 12px 28px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.12);
}

/* Icon placeholder */

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.service-card p {
    opacity: 0.8;
    line-height: 1.5;
}

.service-link {
    margin-top: auto;
    font-weight: 500;
    color: #d69c32;
    text-decoration: none;
}

.service-link:hover {
    text-decoration: underline;
}

/* ---------------------- */
/* Extended Homepage Layout */
/* ---------------------- */

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(0,0,0,0.5);
}

.showcase-section,
.platform-section,
.drive-section,
.cta-section {
    padding: 70px 20px;
}

.showcase-inner,
.platform-inner,
.drive-inner,
.cta-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.showcase-section {
    background: #f6f6f6;
}

.showcase-header {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.showcase-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.02em;
}

.showcase-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.showcase-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.showcase-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.showcase-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.platform-section {
    background: #ffffff;
}

.platform-inner {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 1fr);
    gap: 36px;
    align-items: center;
}

.platform-copy h2,
.drive-inner h2,
.cta-inner h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.02em;
}

.platform-copy p {
    margin-top: 12px;
    line-height: 1.6;
    opacity: 0.85;
}

.platform-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 24px;
    display: grid;
    gap: 10px;
}

.platform-list li {
    padding-left: 26px;
    position: relative;
}

.platform-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #d69c32;
    font-weight: 700;
}

.platform-panel {
    display: grid;
    gap: 18px;
}

.platform-card {
    padding: 20px 22px;
    border-radius: 14px;
    background: #f7f7f7;
    border: 1px solid rgba(0,0,0,0.05);
}

.drive-section {
    background: #f6f6f6;
}

.drive-inner {
    display: grid;
    gap: 28px;
}

.drive-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.drive-card {
    border-radius: 14px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
}

.cta-section {
    background: #111111;
    color: #ffffff;
    text-align: center;
}

.cta-section p {
    opacity: 0.7;
    max-width: 680px;
    margin: 16px auto 0;
}

.cta-section .btn.btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

.cta-section .btn.btn-outline:hover {
    background: #ffffff;
    color: #111111;
}

@media (max-width: 900px) {
    .platform-inner {
        grid-template-columns: 1fr;
    }
}
