/* ===================================
   MODERN LINKTREE-INSPIRED DESIGN
   Built from Scratch for Software & AI Company
   =================================== */

:root {
    /* Linktree Color Palette */
    --ebony: #1E2330;
    --canopy-green: #D2E823;
    --pastel-green: #42E661;
    --soft-purple: #8B5CF6;
    --bright-orange: #F97316;
    --pure-white: #FFFFFF;
    --light-gray: #F3F4F6;
    --dark-gray: #6B7280;

    /* Gradients */
    --gradient-green: linear-gradient(135deg, #D2E823 0%, #42E661 100%);
    --gradient-purple: linear-gradient(135deg, #8B5CF6 0%, #C084FC 100%);
    --gradient-orange: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
    --gradient-blue: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    --gradient-pink: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
    --gradient-teal: linear-gradient(135deg, #14B8A6 0%, #2DD4BF 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, sans-serif;
    --font-display: 'Space Grotesk', -apple-system, sans-serif;

    /* Spacing */
    --section-padding: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--ebony);
    color: var(--pure-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   HERO SECTION
   =================================== */

.modern-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--ebony);
    overflow-x: hidden;
    padding: 40px 24px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease;
}

.badge-icon {
    font-size: 18px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--light-gray);
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: var(--gradient-green);
    color: var(--ebony);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 10px 40px rgba(210, 232, 35, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 60px rgba(210, 232, 35, 0.6);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: transparent;
    color: var(--canopy-green);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid var(--canopy-green);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(210, 232, 35, 0.1);
    transform: translateY(-2px);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(210, 232, 35, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.badge-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(210, 232, 35, 0.6);
    box-shadow:
        0 15px 50px rgba(210, 232, 35, 0.3),
        0 5px 20px rgba(0, 0, 0, 0.3);
}

.badge-icon-circle {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: var(--gradient-green);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(210, 232, 35, 0.4);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 15px rgba(210, 232, 35, 0.4);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 6px 25px rgba(210, 232, 35, 0.6);
    }
}

.badge-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-number {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--canopy-green);
    line-height: 1;
    letter-spacing: -0.02em;
}

.badge-label {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.3;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 1s ease 1.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
    margin: 0 auto 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--canopy-green);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

/* Hero Vertical Scrolling Showcase */
.hero-showcase {
    position: absolute;
    top: 0;
    right: 2%;
    width: 240px;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
    padding: 0 20px;
}

.hero-showcase-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: scrollUpHero 25s linear infinite;
}

@keyframes scrollUpHero {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.showcase-image-item {
    flex-shrink: 0;
}

.showcase-image-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(210, 232, 35, 0.3);
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.showcase-image-card:hover {
    transform: scale(1.05);
    border-color: rgba(210, 232, 35, 0.8);
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 12px 40px rgba(210, 232, 35, 0.4),
        0 0 20px rgba(210, 232, 35, 0.2);
}

.showcase-img-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 12px rgba(210, 232, 35, 0.4));
    animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-8px) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    75% {
        transform: translateY(-8px) rotate(-5deg) scale(1.05);
    }
}

.showcase-image-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.scroll-indicator p {
    font-size: 12px;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   SERVICES SECTION
   =================================== */

.services-section {
    padding: var(--section-padding) 0;
    background: var(--pure-white);
    color: var(--ebony);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-purple);
    color: var(--pure-white);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--pure-white);
    border-radius: 24px;
    padding: 40px;
    border: 2px solid var(--light-gray);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-green);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card[data-color="blue"]::before { background: var(--gradient-blue); }
.service-card[data-color="purple"]::before { background: var(--gradient-purple); }
.service-card[data-color="green"]::before { background: var(--gradient-green); }
.service-card[data-color="orange"]::before { background: var(--gradient-orange); }
.service-card[data-color="pink"]::before { background: var(--gradient-pink); }
.service-card[data-color="teal"]::before { background: var(--gradient-teal); }

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 20px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card[data-color="blue"] .card-icon { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); }
.service-card[data-color="purple"] .card-icon { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); }
.service-card[data-color="green"] .card-icon { background: linear-gradient(135deg, #F0FDF4, #DCFCE7); }
.service-card[data-color="orange"] .card-icon { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); }
.service-card[data-color="pink"] .card-icon { background: linear-gradient(135deg, #FCE7F3, #FBCFE8); }
.service-card[data-color="teal"] .card-icon { background: linear-gradient(135deg, #F0FDFA, #CCFBF1); }

.card-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--ebony);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-description {
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-features {
    list-style: none;
    margin-bottom: 24px;
}

.card-features li {
    padding: 8px 0;
    color: var(--dark-gray);
    position: relative;
    padding-left: 24px;
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--canopy-green);
    font-weight: 900;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    padding: 6px 14px;
    background: var(--light-gray);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ebony);
}

/* ===================================
   PROCESS SECTION
   =================================== */

.process-section {
    padding: var(--section-padding) 0;
    background: var(--ebony);
}

.process-section .section-label {
    background: var(--gradient-orange);
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.timeline-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-green);
    color: var(--ebony);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(210, 232, 35, 0.3);
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--light-gray);
    line-height: 1.6;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    padding: var(--section-padding) 0;
    background: var(--ebony);
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(249, 115, 22, 0.2) 0%, transparent 40%);
    animation: gradientShift 15s ease infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 1.25rem;
    color: var(--light-gray);
    margin-bottom: 48px;
}

.modern-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--pure-white);
    font-family: var(--font-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--canopy-green);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(210, 232, 35, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Select Dropdown Styling */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23D2E823' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
    cursor: pointer;
    color: var(--pure-white);
}

.form-group select option {
    background: #1E2330;
    color: var(--pure-white);
    padding: 12px;
    font-family: var(--font-primary);
    font-size: 16px;
}

.form-group select option:first-child {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select:invalid {
    color: rgba(255, 255, 255, 0.5);
}

.btn-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--gradient-green);
    color: var(--ebony);
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(210, 232, 35, 0.4);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 60px rgba(210, 232, 35, 0.6);
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Responsive - Tablet and Below */
@media (max-width: 1024px) {
    .hero-showcase {
        width: 180px;
        right: 2%;
        padding: 0 15px;
    }

    .showcase-image-card {
        padding: 16px 12px;
    }

    .showcase-img-icon {
        font-size: 2.5rem;
    }

    .showcase-image-card h4 {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    /* Center all content on mobile */
    .container {
        padding: 0 20px;
        text-align: center;
    }

    /* Hero section mobile centering */
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-description {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .trust-badges {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 500px;
        margin: 0 auto;
    }

    .badge-item {
        padding: 12px 16px;
        width: 100%;
    }

    /* Make the 3rd badge span both columns and center it */
    .badge-item:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 240px;
        margin: 0 auto;
        justify-self: center;
    }

    /* Services section mobile centering */
    .services-section {
        text-align: center;
    }

    .section-header {
        text-align: center;
        margin-bottom: 60px;
    }

    .section-label {
        text-align: center;
    }

    .section-title {
        text-align: center;
        font-size: 2rem;
    }

    .section-subtitle {
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 500px;
        margin: 0 auto;
    }

    .service-card {
        text-align: center;
        margin: 0 auto;
    }

    .card-icon {
        margin: 0 auto 20px;
    }

    .card-title {
        text-align: center;
    }

    .card-description {
        text-align: center;
    }

    .card-features {
        text-align: center;
        max-width: 300px;
        margin: 20px auto;
        list-style: none;
        padding: 0;
    }

    .card-features li {
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding-left: 0 !important;
        position: relative;
        padding: 8px 0;
    }

    .card-features li::before {
        content: '✓';
        position: static !important;
        color: var(--canopy-green);
        font-weight: 900;
        margin-right: 8px;
        flex-shrink: 0;
    }

    .card-tech {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Process section mobile centering */
    .process-section {
        text-align: center;
    }

    .process-timeline {
        max-width: 500px;
        margin: 0 auto;
    }

    .timeline-item {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .timeline-number {
        margin: 0 auto;
    }

    .timeline-content {
        text-align: center;
    }

    .timeline-content h3 {
        text-align: center;
    }

    .timeline-content p {
        text-align: center;
    }

    /* CTA section mobile centering */
    .cta-section {
        text-align: center;
    }

    .cta-content {
        text-align: center;
    }

    .cta-content h2 {
        text-align: center;
    }

    .cta-content p {
        text-align: center;
    }

    .modern-form {
        padding: 32px 24px;
        text-align: left;
        max-width: 500px;
        margin: 0 auto;
    }

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

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    /* Hide hero showcase on mobile */
    .hero-showcase {
        display: none;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .service-card {
        padding: 24px 20px;
    }

    .modern-form {
        padding: 24px 16px;
    }

    /* Stack badges vertically on very small screens */
    .trust-badges {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 280px;
    }

    .badge-item:nth-child(3) {
        grid-column: 1;
        max-width: 100%;
    }

    .badge-item {
        padding: 14px 18px;
    }

    .badge-number {
        font-size: 1.5rem;
    }

    .badge-label {
        font-size: 0.8rem;
    }
}
