/* home.css — Homepage-specific styles */

/* Larger spacing for homepage sections */
section {
    padding: 100px 5vw;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 48px;
}

/* HERO */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 5vw 80px;
    position: relative;
    overflow: hidden;
}

#hero>*:not(.hero-grid):not(.hero-glow) {
    position: relative;
    z-index: 2;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 166, 80, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 166, 80, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 166, 80, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-brand);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid rgba(0, 166, 80, 0.3);
    border-radius: 20px;
    padding: 6px 16px;
    margin-bottom: 32px;
    letter-spacing: 0.08em;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge::before {
    content: '●';
    font-size: 0.5rem;
}

.hero-logo-big {
    width: 130px;
    height: 130px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeUp 0.8s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    filter: drop-shadow(0 0 30px rgba(0, 166, 80, 0.35));
}

h1 {
    font-family: var(--font-brand);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--white);
    opacity: 0;
    animation: fadeUp 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

h1 .accent {
    color: var(--green);
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--grey);
    max-width: 560px;
    margin: 24px auto 0;
    line-height: 1.7;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 0.8s 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 48px;
    opacity: 0;
    animation: fadeUp 0.8s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-stack {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 56px;
    opacity: 0;
    animation: fadeUp 0.8s 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stack-label {
    font-family: var(--font-brand);
    font-size: 0.65rem;
    color: var(--grey);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stack-pill {
    font-family: var(--font-brand);
    font-size: 0.68rem;
    font-weight: 500;
    padding: 5px 13px;
    border-radius: 6px;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: #aaa;
    letter-spacing: 0.03em;
}

/* SERVICES (homepage enhancements) */
#services {
    background: var(--bg2);
}

#services::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0, 166, 80, 0.06), transparent);
    pointer-events: none;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
    padding: 36px 32px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    border-color: rgba(0, 166, 80, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--green-dim);
    border: 1px solid rgba(0, 166, 80, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.3rem;
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--grey);
    line-height: 1.75;
    font-weight: 300;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
}

.service-tag {
    font-family: var(--font-brand);
    font-size: 0.63rem;
    font-weight: 500;
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid rgba(0, 166, 80, 0.2);
    padding: 4px 10px;
    border-radius: 5px;
    letter-spacing: 0.04em;
}

/* ABOUT */
#about {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-left p {
    font-size: 0.92rem;
    color: var(--grey);
    line-height: 1.85;
    font-weight: 300;
    margin-bottom: 20px;
}

.about-left p strong {
    color: var(--white);
    font-weight: 500;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}

.stat-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px 20px;
}

.stat-num {
    font-family: var(--font-brand);
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--grey);
    margin-top: 8px;
    font-weight: 300;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 20px;
    transition: border-color 0.3s;
}

.about-feature:hover {
    border-color: rgba(0, 166, 80, 0.25);
}

.feature-dot {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--green-dim);
    border: 1px solid rgba(0, 166, 80, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-top: 2px;
}

.about-feature h3 {
    font-family: var(--font-brand);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.about-feature p {
    font-size: 0.8rem;
    color: var(--grey);
    line-height: 1.65;
    font-weight: 300;
}

/* FOUNDER CARD */
.founder-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 22px;
    margin-bottom: 28px;
}

.founder-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00A650 0%, #007a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
}

.founder-name {
    font-family: var(--font-brand);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.founder-role {
    font-family: var(--font-brand);
    font-size: 0.68rem;
    color: var(--green);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.founder-langs {
    font-size: 0.75rem;
    color: #888;
    margin-top: 8px;
    font-family: var(--font-brand);
}

/* CONTACT */
#contact {
    background: var(--bg2);
}

#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 20% 80%, rgba(0, 166, 80, 0.06), transparent);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info p {
    font-size: 0.88rem;
    color: var(--grey);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 16px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    text-decoration: none;
    transition: border-color 0.3s;
}

.contact-detail:hover {
    border-color: rgba(0, 166, 80, 0.3);
}

.contact-detail-icon {
    width: 36px;
    height: 36px;
    background: var(--green-dim);
    border: 1px solid rgba(0, 166, 80, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.contact-detail-text {
    flex: 1;
}

.contact-detail-label {
    font-family: var(--font-brand);
    font-size: 0.63rem;
    color: var(--green);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.contact-detail-value {
    font-family: var(--font-brand);
    font-size: 0.82rem;
    color: var(--white);
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

label {
    font-family: var(--font-brand);
    font-size: 0.68rem;
    color: var(--grey);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

input,
textarea,
select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 13px 16px;
    font-family: var(--font-brand);
    font-size: 0.82rem;
    color: var(--white);
    outline: none;
    transition: border-color 0.2s;
    resize: none;
}

input::placeholder,
textarea::placeholder {
    color: #757575;
}

input:focus,
textarea:focus {
    border-color: rgba(0, 166, 80, 0.5);
}

textarea {
    min-height: 130px;
}

.form-submit {
    font-family: var(--font-brand);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    background: var(--green);
    border: none;
    border-radius: 10px;
    padding: 15px 28px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.form-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 166, 80, 0.35);
}

.form-note {
    font-size: 0.72rem;
    color: #888;
    text-align: center;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 820px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    section {
        padding: 70px 4vw;
    }
}