/* ===== Variables ===== */
:root {
    --bg: #0F172A;
    --surface: #1E293B;
    --orange: #FF6B00;
    --yellow: #FFB800;
    --purple: #615FFF;
    --text: #F8FAF9;
    --text-muted: rgba(248, 250, 249, 0.8);
    --text-muted-2: rgba(248, 250, 249, 0.7);
    --text-muted-3: rgba(248, 250, 249, 0.6);
    --text-muted-4: rgba(248, 250, 249, 0.4);
    --placeholder: #717182;
    --border: rgba(255, 107, 0, 0.2);
    --border-strong: rgba(255, 107, 0, 0.3);
    --font: 'Arimo', 'Noto Sans KR', sans-serif;
    --font-mono: 'Inter', sans-serif;
    --radius: 14px;
    --radius-lg: 24px;
    --transition: 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    line-height: 1.5;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(255, 107, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(49, 44, 133, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 70% 20%, rgba(255, 184, 0, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg) 0%, #0a0d14 50%, #0d1020 100%);
    pointer-events: none;
    z-index: 0;
}
/* ===== Fullpage Scroll ===== */
#fullpage {
    position: relative;
    z-index: 1;
    width: 100%;
    transition: transform var(--transition);
    will-change: transform;
}
.section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 4rem);
    position: relative;
}
.section-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section content: hidden until active, then animate */
.section .content {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.js-enabled .section .content {
    opacity: 0;
    transform: translateY(24px);
}
.js-enabled .section.active .content {
    opacity: 1;
    transform: translateY(0);
}
.js-enabled .section.active .content .animate-delay-1 { transition-delay: 0.1s; }
.js-enabled .section.active .content .animate-delay-2 { transition-delay: 0.2s; }
.js-enabled .section.active .content .animate-delay-3 { transition-delay: 0.3s; }

/* ===== Hero ===== */
/* Hero Animation Keyframes */
@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 40px) scale(1.15); }
    66% { transform: translate(20px, -30px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes bgShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

#section-hero {
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(26, 34, 43, 0), rgba(0, 0, 0, 0.4)),
                linear-gradient(135deg, rgba(255, 107, 0, 0.15) 0%, var(--bg) 50%, rgba(49, 44, 133, 0.2) 100%);
    z-index: 0;
    background-size: 200% 200%;
    animation: bgShift 15s ease infinite alternate;
}
.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    will-change: transform;
}
.hero-bg::before {
    background: radial-gradient(circle, var(--orange), transparent 70%);
    left: 10%;
    top: 10%;
    animation: floatOrb1 20s ease-in-out infinite;
}
.hero-bg::after {
    background: radial-gradient(circle, var(--yellow), transparent 70%);
    right: 10%;
    bottom: 10%;
    top: auto;
    animation: floatOrb2 25s ease-in-out infinite;
}
#section-hero .section-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}
.hero-header {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}
.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 48px;
    height: 48px;
    border: 3px solid var(--orange);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}
.logo-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--orange);
    border-radius: 50%;
}
.logo-text { text-align: left; }
.logo-title {
    display: block;
    font-size: 1.5rem;
    color: var(--text);
    letter-spacing: 0.12em;
}
.logo-sub { display: block; font-size: 0.875rem; color: var(--yellow); }
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.hero-title-line { display: block; }
.gradient-text {
    background: linear-gradient(90deg, var(--orange), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-tagline {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-muted-2);
    margin-bottom: 0;
}
.hero-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background: var(--orange);
    color: white;
    font-family: var(--font);
    font-size: 1.125rem;
    font-weight: 400;
    text-decoration: none;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.scroll-indicator--below-cta {
    position: static;
    transform: none;
}
.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--orange);
    border-radius: 9999px;
    position: relative;
}
.wheel {
    width: 4px;
    height: 8px;
    background: var(--orange);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}
.scroll-text {
    font-size: 0.75rem;
    color: var(--orange);
    letter-spacing: 0.1em;
    font-weight: 600;
}
@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

/* ===== Common section typography ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    color: var(--yellow);
    font-size: 0.875rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}
.badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--yellow);
}
.badge.dark { color: var(--yellow); }
.section-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-align: center;
}
.section-sub {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-muted-2);
    text-align: center;
    margin-bottom: 1rem;
}
.section-quote {
    font-size: 1.125rem;
    color: var(--yellow);
    text-align: center;
    margin-bottom: 2rem;
}
.section-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 0.5rem;
}
.accent-orange { color: var(--orange); }
.accent-yellow { color: var(--yellow); }

/* ===== Philosophy ===== */
#section-philosophy .section-inner { text-align: center; }
.highlight-box {
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.1), rgba(255, 184, 0, 0.1));
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 1.125rem;
    color: var(--text-muted-2);
}
.highlight-box strong { font-weight: 600; }

/* ===== Section dark ===== */
.section-dark {
    position: relative;
    background: rgba(30, 41, 59, 0.25);
}
.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 107, 0, 0.03) 0%, transparent 30%, transparent 70%, rgba(49, 44, 133, 0.05) 100%);
    pointer-events: none;
    border-radius: 0;
}
.section-dark .section-inner {
    position: relative;
    z-index: 1;
}

/* ===== Cards (Full-Cycle) ===== */
.cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-strong);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    text-align: left;
    box-shadow: 0 0 24px rgba(255, 107, 0, 0.08), 0 0 48px rgba(255, 184, 0, 0.04);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 28px rgba(255, 107, 0, 0.12), 0 0 56px rgba(255, 184, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.2);
}
.card-orange { border-color: rgba(255, 107, 0, 0.3); }
.card-orange:hover { border-color: var(--orange); }
.card-yellow { border-color: rgba(255, 184, 0, 0.3); }
.card-yellow:hover { border-color: var(--yellow); }
.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.card-orange .card-icon { background: linear-gradient(180deg, var(--orange), var(--yellow)); color: white; }
.card-yellow .card-icon { background: linear-gradient(135deg, var(--yellow), var(--purple)); color: white; }
.card-icon svg,
.card-icon-img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.card h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
}
.card-orange h3 { color: var(--orange); }
.card-yellow h3 { color: var(--yellow); }
.card ul {
    list-style: none;
}
.card-list-check {
    display: block;
    text-align: left;
}
.card li {
    font-size: 1rem;
    color: var(--text-muted-2);
    padding: 0.35rem 0;
    padding-left: 2.25rem;
    position: relative;
}
.card-list-check li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 24px;
    height: 24px;
    background: transparent;
    border: 1.5px solid var(--yellow);
    border-radius: 50%;
}
.card-list-check li::after {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: var(--yellow);
    font-weight: bold;
}
.card-list-check--img li::before,
.card-list-check--img li::after {
    content: none;
    display: none;
}
.card-list-check--img {
    margin-left: 0;
    padding-left: 0;
    margin-top: 0.25rem;
}
.card-list-check--img li {
    padding: 0.5rem 0;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.li-check-img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

/* ===== Tech Grid ===== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.tech-card {
    position: relative;
    background: var(--surface);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    border: 1px solid var(--border);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    text-align: left;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.06), 0 0 40px rgba(255, 184, 0, 0.03);
}
.tech-card:hover {
    border-color: var(--orange);
    transform: scale(1.02);
    box-shadow: 0 0 24px rgba(255, 107, 0, 0.1), 0 0 48px rgba(255, 184, 0, 0.05);
}
.tech-card-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    display: block;
}
.tech-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}
.tech-card ul {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted-2);
    padding-left: 0;
}
.tech-card li {
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}
.tech-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-muted-2);
}

/* ===== Expertise cards ===== */
.expertise-cards { grid-template-columns: repeat(3, 1fr); }
.expertise-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-strong);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    box-shadow: 0 0 24px rgba(255, 107, 0, 0.08), 0 0 48px rgba(255, 184, 0, 0.04);
}
.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 28px rgba(255, 107, 0, 0.12), 0 0 56px rgba(255, 184, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.2);
}
.expertise-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.expertise-card-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}
.expertise-card h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text);
}
.expertise-card p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.expertise-card .card-note {
    font-size: 0.9375rem;
    color: var(--text-muted-3);
}
.expertise-card-purple { border-color: rgba(255, 184, 0, 0.3); }

/* ===== Gainzitify ===== */
.gainzitify-inner {
    background: linear-gradient(180deg, var(--surface), var(--bg));
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.gainzitify-inner::before,
.gainzitify-inner::after {
    content: '';
    position: absolute;
    width: 384px;
    height: 384px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    pointer-events: none;
}
.gainzitify-inner::before { background: var(--orange); right: 0; top: 0; }
.gainzitify-inner::after { background: var(--yellow); left: 0; bottom: 0; }
.gainzitify-title {
    font-size: clamp(2rem, 4vw, 3.75rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.gainzitify-tagline {
    font-size: 1.5rem;
    color: var(--yellow);
    margin-bottom: 0.5rem;
}
.gainzitify-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.gainzitify-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
/* 대표 프로젝트 배지 왼쪽 차트 아이콘 */
.gainzitify-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.gainzitify-chart-icon {
    display: inline-flex;
    color: var(--yellow);
}
.gainzitify-chart-icon svg {
    width: 20px;
    height: 20px;
}
.gainzitify-col h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}
.gainzitify-col ul.gainzitify-list {
    list-style: none;
    font-size: 0.9375rem;
    color: var(--text-muted-2);
    padding-left: 0;
}
.gainzitify-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}
.gainzitify-list li::before {
    display: none;
}
.gainzitify-li-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}
.gainzitify-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.25rem 0;
}
.gainzitify-badges .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 9999px;
    font-size: 1rem;
    color: var(--text);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    cursor: default;
    position: relative;
    z-index: 0;
}
.gainzitify-badges .pill:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px) scale(1.02);
    border-color: var(--orange);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
    z-index: 1;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 9999px;
    font-size: 1rem;
    color: var(--text);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    cursor: default;
    position: relative;
    z-index: 0;
}
.pill:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px) scale(1.02);
    border-color: var(--orange);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
    z-index: 1;
}
.pill-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ===== Why grid ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.why-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-strong);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.why-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.why-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.why-icon-img {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
}
.why-card h3 {
    font-size: 1.5rem;
    margin: 0;
}
.why-card--orange h3 { color: var(--orange); }
.why-card--yellow h3 { color: var(--yellow); }
.why-card p {
    font-size: 1rem;
    color: var(--text-muted-2);
    margin-bottom: 0.25rem;
}
.why-note {
    font-size: 0.875rem;
    color: var(--text-muted-3);
}

/* ===== Contact ===== */
.contact-inner {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--placeholder);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(255, 255, 255, 0.03);
}
.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}
.submit-btn {
    padding: 1rem 1.5rem;
    background: linear-gradient(180deg, var(--orange), var(--yellow));
    color: white;
    font-family: var(--font);
    font-size: 1.125rem;
    font-weight: 400;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35);
}

/* ===== Contact + Footer (merged section) ===== */
.section-contact-with-footer {
    min-height: 100vh;
    align-items: stretch;
    padding-bottom: 0;
}
.section-contact-with-footer .section-inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 0;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    padding-bottom: 2rem;
    box-sizing: border-box;
}
.section-contact-with-footer .contact-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 560px;
    text-align: center;
}
.section-contact-with-footer .contact-form {
    width: 100%;
    margin-top: 1.5rem;
}
.footer-in-section {
    margin-top: auto;
    flex-shrink: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    background: #1A222B;
    border-top: 1px solid #FF6B0033;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem clamp(1.5rem, 5vw, 4rem) 2.5rem;
    box-sizing: border-box;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.footer-logo-icon {
    width: 27px;
    height: 27px;
    border: 2px solid #F79009;
    border-radius: 50%;
    background: transparent;
    position: relative;
    flex-shrink: 0;
}
.footer-logo-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    background: #F79009;
    border-radius: 50%;
}
.footer-brand .logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    text-align: left;
}
.footer-brand .logo-title {
    color: #fff;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}
.footer-sub {
    display: block;
    color: #F79009;
    font-size: 0.875rem;
}
.footer-tagline {
    font-size: 0.87rem;
    color: #F8FAF999;
    line-height: 1.35;
    text-align: right;
    max-width: 280px;
    margin: 0;
}
.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-muted-4);
    text-align: center;
    margin: 0;
    padding-bottom: 1.5rem;
}

/* ===== Animations: stagger children when section is active ===== */
.section .cards-row .card,
.section .tech-grid .tech-card,
.section .why-grid .why-card,
.section .expertise-cards .expertise-card {
    opacity: 0;
}
.section.active .cards-row .card,
.section.active .tech-grid .tech-card,
.section.active .why-grid .why-card,
.section.active .expertise-cards .expertise-card {
    animation: fadeInUp 0.6s ease-out forwards;
}
.section.active .cards-row .card:nth-child(1),
.section.active .tech-grid .tech-card:nth-child(1) { animation-delay: 0.1s; }
.section.active .cards-row .card:nth-child(2),
.section.active .tech-grid .tech-card:nth-child(2) { animation-delay: 0.2s; }
.section.active .cards-row .card:nth-child(3),
.section.active .tech-grid .tech-card:nth-child(3) { animation-delay: 0.3s; }
.section.active .tech-grid .tech-card:nth-child(4) { animation-delay: 0.2s; }
.section.active .tech-grid .tech-card:nth-child(5) { animation-delay: 0.3s; }
.section.active .tech-grid .tech-card:nth-child(6) { animation-delay: 0.4s; }
.section.active .why-grid .why-card:nth-child(1) { animation-delay: 0.1s; }
.section.active .why-grid .why-card:nth-child(2) { animation-delay: 0.2s; }
.section.active .why-grid .why-card:nth-child(3) { animation-delay: 0.3s; }
.section.active .why-grid .why-card:nth-child(4) { animation-delay: 0.4s; }
.section.active .expertise-cards .expertise-card:nth-child(1) { animation-delay: 0.1s; }
.section.active .expertise-cards .expertise-card:nth-child(2) { animation-delay: 0.2s; }
.section.active .expertise-cards .expertise-card:nth-child(3) { animation-delay: 0.3s; }
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Mobile responsive ===== */
@media (max-width: 1024px) {
    .cards-row { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .expertise-cards { grid-template-columns: 1fr; }
    .gainzitify-features { grid-template-columns: 1fr; }
    /* Footer adjustments for tablet/mobile */
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    .footer-brand {
        flex-direction: column;
        text-align: center;
    }
    .footer-brand .logo-text {
        align-items: center;
        text-align: center;
    }
    .footer-tagline {
        text-align: center;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* --- Global Mobile: Allow scroll so all sections are visible --- */
    html, body {
        overflow-x: hidden;
        overflow-y: auto !important;
        width: 100%;
        min-height: 100%;
        height: auto !important;
        position: relative;
    }
    #fullpage {
        transform: none !important;
        height: auto !important;
        min-height: 100%;
    }
    
    /* Section Layout - Full Screen feel but scrollable */
    .section { 
        padding: 4rem 1.5rem; 
        min-height: 100dvh !important; /* Force full screen height */
        height: auto !important;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        overflow: hidden; /* Cut off decorative overflow */
    }
    .section-inner {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    /* Gainzitify: restore card padding so it doesn't look broken */
    #section-gainzitify .gainzitify-inner,
    .section-inner.gainzitify-inner {
        padding: 2rem 1.5rem !important;
        margin: 0;
        border-radius: var(--radius-lg);
        width: 100%;
        box-sizing: border-box;
    }
    .gainzitify-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
    .gainzitify-tagline { font-size: 1.125rem; margin-bottom: 0.5rem; }
    .gainzitify-desc { font-size: 1rem; margin-bottom: 1.5rem; }
    .gainzitify-features {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .gainzitify-col h4 { font-size: 1rem; margin-bottom: 0.5rem; }
    .gainzitify-col ul.gainzitify-list { font-size: 0.875rem; }
    .gainzitify-list li { padding: 0.2rem 0; }
    
    /* Show all section content on mobile (no .active dependency) */
    .section .content {
        opacity: 1 !important;
        transform: none !important;
    }
    .section .cards-row .card,
    .section .tech-grid .tech-card,
    .section .why-grid .why-card,
    .section .expertise-cards .expertise-card {
        opacity: 1 !important;
        animation: none !important;
    }
    
    /* Restore & Resize Decorative Orbs */
    .hero-bg::before, .hero-bg::after,
    .gainzitify-inner::before, .gainzitify-inner::after {
        display: block !important;
        width: 250px;
        height: 250px;
        filter: blur(60px);
        opacity: 0.2;
    }
    /* Reposition for mobile to stay within bounds */
    .hero-bg::before { left: -50px; top: 10%; }
    .hero-bg::after { right: -50px; bottom: 10%; }
    .gainzitify-inner::before { right: -80px; top: -50px; }
    .gainzitify-inner::after { left: -80px; bottom: -50px; }
    
    /* Typography Safety */
    h1, h2, h3, h4, p, span {
        word-break: keep-all; /* Prevent weird word breaks */
        max-width: 100%;
    }
    .hero-title { font-size: 2rem; line-height: 1.3; margin-bottom: 1rem; }
    .hero-tagline { font-size: 1rem; margin-bottom: 2rem; }
    
    /* Cards - Fluid Width */
    .cards-row, .tech-grid, .why-grid, .expertise-cards {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
    }
    /* Tech grid: 2 cols is safe, 1 col is safer. Let's do 2 cols with care */
    .tech-grid { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 0.75rem; 
    }
    
    .card, .tech-card, .why-card, .expertise-card {
        width: 100%;
        margin: 0;
        padding: 1.25rem;
        height: auto;
    }
    
    /* Icon Sizing */
    .card-icon img, .tech-card-icon, .why-icon img, .expertise-card-icon {
        width: 32px; height: 32px; /* Safe size */
    }
    .why-icon { width: 32px; height: 32px; }
    .why-icon svg { width: 20px; height: 20px; }
    
    /* Contact & Footer Layout */
    .section-contact-with-footer {
        padding: 0 !important;
        background: var(--bg) !important;
    }
    .section-contact-with-footer .section-inner {
        padding: 0;
    }
    .section-contact-with-footer .contact-inner {
        padding: 4rem 1.25rem;
        width: 100%;
        max-width: 100%;
    }
    .contact-form { width: 100%; max-width: 100%; margin-top: 1.5rem; }
    
    /* Robust Full-Width Footer */
    .footer-in-section {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding: 3rem 1.5rem 2rem;
        background: #1A222B !important;
        border-radius: 0;
        box-sizing: border-box;
    }
    .footer-inner {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .footer-brand { justify-content: center; }
    .footer-tagline { text-align: center; margin: 0 auto; }
    
    /* Gainzitify Badges - Fluid */
    .gainzitify-badges {
        justify-content: center;
        gap: 0.5rem;
    }
    .pill {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap; /* Prevent breaking inside pill */
    }
    
    /* Hide scroll indicator */
    .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.75rem; }
    /* Stack tech grid on very small screens to prevent squishing */
    .tech-grid { grid-template-columns: 1fr; }
    .footer-brand .logo-title { font-size: 1.25rem; }
}
/* Enhanced Animations */

/* Hero Title Fade In */
.hero-title-line {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}
.hero-title-line:nth-child(1) { animation-delay: 0.2s; }
.hero-title-line:nth-child(2) { animation-delay: 0.4s; }
.hero-tagline { opacity: 0; animation: fadeInUp 0.8s ease-out 0.6s forwards; }
.hero-desc { opacity: 0; animation: fadeInUp 0.8s ease-out 0.8s forwards; }
.hero-cta-wrap { opacity: 0; animation: fadeInUp 0.8s ease-out 1s forwards; }

/* Button Hover Effects */
.cta-btn, .submit-btn {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
}
.cta-btn:hover, .submit-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4);
}
.cta-btn:active, .submit-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Card Hover Effects */
.card, .tech-card, .why-card, .expertise-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.card:hover, .tech-card:hover, .why-card:hover, .expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 0, 0.5);
    z-index: 2;
}

/* Removed duplicate pill styles */

/* Footer Logo Hover */
.footer-logo-icon {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-brand:hover .footer-logo-icon {
    transform: rotate(180deg) scale(1.1);
}

/* Input Focus Animation */
.contact-form input, .contact-form textarea {
    transition: all 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}
/* Scroll Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    color: var(--text);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4);
}
@media (max-width: 768px) {
    .scroll-top-btn { bottom: 1.5rem; right: 1.5rem; width: 40px; height: 40px; }
    .scroll-top-btn svg { width: 20px; height: 20px; }
}