/* ============================================================
   SUNSET — AI AUTOMATION
   Energy Orb v2 — Inspired by neural sphere frame
   ============================================================ */

:root {
    --bg:          #000000;
    --bg-card:     rgba(12, 10, 28, 0.75);
    --accent:      #8B5CF6;
    --accent-dim:  #6D3FD0;
    --accent-glow: #C4B5FD;
    --cyan:        #7DD3FC;
    --indigo:      #6366F1;
    --text:        #FFFFFF;
    --text-muted:  #9896AD;
    --text-dim:    #5C5A6E;
    --border:      rgba(139, 92, 246, 0.1);
    --border-hover:rgba(139, 92, 246, 0.35);
    --font-display:'Space Grotesk', sans-serif;
    --font-body:   'Inter', sans-serif;
    --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ======================== RESET ======================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ======================== FIXED BACKGROUND ======================== */
.bg-fixed {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #000000;
}

#orbCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ======================== UTILITY ======================== */
.container {
    width: 100%; max-width: 1200px;
    margin: 0 auto; padding: 0 24px;
    position: relative; z-index: 1;
}

.section {
    padding: 140px 0;
    position: relative;
    z-index: 1;
}

/* Violet ambient glow behind each section */
.section::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    width: 70%;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2) 30%, rgba(139, 92, 246, 0.35) 50%, rgba(139, 92, 246, 0.2) 70%, transparent);
    box-shadow: 0 0 60px 30px rgba(139, 92, 246, 0.06);
}

/* Floating violet ambient blobs per section */
.section::after {
    content: '';
    position: absolute;
    top: 20%; right: -15%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(109, 63, 208, 0.06) 0%, transparent 65%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 64px;
}

/* Decorative violet line under section titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px; height: 2px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

/* ======================== NAVBAR ======================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; padding: 0 24px;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 rgba(139, 92, 246, 0.08);
}
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; height: 72px;
}
.navbar-logo {
    display: flex; align-items: center;
    z-index: 1001;
}
.navbar-logo-img {
    height: 48px;
    width: auto;
    display: block;
}
.navbar-links { display: flex; gap: 40px; }
.navbar-links a {
    font-size: 0.9rem; font-weight: 400;
    color: var(--text-muted); transition: color 0.3s ease;
    position: relative;
}
.navbar-links a::after {
    content: ''; position: absolute;
    bottom: -4px; left: 0; width: 0; height: 1px;
    background: var(--accent); transition: width 0.3s ease;
}
.navbar-links a:hover { color: var(--text); }
.navbar-links a:hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 1001; }
.hamburger-line { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======================== HERO ======================== */
.hero {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center; padding: 120px 24px 80px;
}
.hero-content { max-width: 800px; animation: heroIn 1.2s var(--ease) both; }

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 700; line-height: 1.12;
    letter-spacing: -0.03em; margin-bottom: 24px;
    text-shadow: 0 0 60px rgba(139, 92, 246, 0.15);
}
.hero-title-accent {
    background: linear-gradient(135deg, #e0d4ff, var(--accent), var(--cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted); font-weight: 300;
    line-height: 1.7; margin-bottom: 40px;
    max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-btn { animation: heroIn 1.2s var(--ease) 0.3s both; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    opacity: 1; transition: opacity 0.5s ease;
    animation: heroIn 1.2s var(--ease) 0.6s both;
}
.scroll-indicator.hidden { opacity: 0; pointer-events: none; }
.scroll-indicator-mouse {
    width: 24px; height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex; justify-content: center; padding-top: 8px;
}
.scroll-indicator-wheel {
    width: 3px; height: 8px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
    0%   { opacity: 1; transform: translateY(0); }
    50%  { opacity: 0.15; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}
.scroll-indicator span {
    font-size: 0.7rem; color: rgba(255,255,255,0.25);
    letter-spacing: 0.1em; text-transform: uppercase;
}

/* ======================== BUTTON ======================== */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
    color: var(--text);
    background: linear-gradient(135deg, var(--accent), var(--indigo));
    padding: 16px 48px; border-radius: 12px;
    cursor: pointer;
    position: relative; overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.btn-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.4), 0 0 80px rgba(139, 92, 246, 0.12);
}
.btn-glow { box-shadow: 0 4px 24px rgba(139, 92, 246, 0.3); }

/* Servizi section — glow on the left */
#servizi::after {
    left: -15%; right: auto; top: 30%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.07) 0%, transparent 60%);
}

/* Come funziona — glow on the right */
#come-funziona::after {
    right: -10%; top: 10%;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(88, 28, 135, 0.08) 0%, transparent 60%);
}

/* Chi sono — centered glow */
#chi-sono::after {
    left: 50%; right: auto; top: 40%;
    transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(109, 63, 208, 0.06) 0%, transparent 65%);
}

/* Contatti — large violet glow */
.section-contatti::after {
    left: 50%; right: auto; top: 30%;
    transform: translateX(-50%);
    width: 700px; height: 400px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.08) 0%, rgba(88, 28, 135, 0.04) 40%, transparent 70%);
}

/* ======================== CARDS ======================== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    cursor: pointer;
    position: relative; overflow: hidden;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Animated gradient border on hover */
.card::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: 17px;
    background: conic-gradient(from var(--card-angle, 0deg), transparent 0%, var(--accent) 10%, transparent 20%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: cardGlow 4s linear infinite;
}

@property --card-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes cardGlow {
    from { --card-angle: 0deg; }
    to   { --card-angle: 360deg; }
}

/* Inner gradient highlight */
.card::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(139, 92, 246, 0.12), 0 0 120px rgba(88, 28, 135, 0.06);
}
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }

.card-icon { color: var(--accent); margin-bottom: 24px; position: relative; transition: transform 0.4s var(--ease); }
.card:hover .card-icon { transform: scale(1.1); }

.card-title {
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
    margin-bottom: 12px; position: relative;
}
.card-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 24px; position: relative; }
.card-cta { font-size: 0.875rem; color: var(--accent); font-weight: 500; position: relative; transition: color 0.3s ease, letter-spacing 0.3s ease; }
.card:hover .card-cta { color: var(--accent-glow); letter-spacing: 0.02em; }

/* ======================== TIMELINE ======================== */
.timeline {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: relative; padding-top: 24px;
}

.timeline-line {
    position: absolute; top: 52px; left: 12.5%; right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-dim) 15%, var(--accent) 50%, var(--accent-dim) 85%, transparent);
    opacity: 0.2;
}
/* Animated glow dot on timeline */
.timeline-line::before {
    content: '';
    position: absolute; top: -3px; left: 0;
    width: 8px; height: 8px;
    background: var(--accent-glow);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
    animation: timelineDot 6s ease-in-out infinite;
}
@keyframes timelineDot {
    0%   { left: 0%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.timeline-step { text-align: center; padding: 0 20px; }

.step-number {
    font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
    color: var(--accent); line-height: 1; margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.4), 0 0 60px rgba(88, 28, 135, 0.2);
    transition: text-shadow 0.3s ease, transform 0.3s ease;
}
.timeline-step:hover .step-number {
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.7), 0 0 80px rgba(88, 28, 135, 0.3);
    transform: scale(1.08);
}

.step-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
.step-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ======================== ABOUT ======================== */
.about-grid {
    max-width: 700px; margin: 0 auto;
    padding: 50px 40px;
    border-radius: 20px;
    background: radial-gradient(ellipse at 50% 50%, rgba(109, 63, 208, 0.05) 0%, transparent 60%);
    border: 1px solid rgba(139, 92, 246, 0.06);
}
.about-text .section-title { text-align: center; margin-bottom: 28px; }
.about-bio { color: var(--text-muted); font-size: 1.05rem; line-height: 1.75; margin-bottom: 18px; text-align: center; }
.about-bio strong { color: var(--text); }
.about-bio-accent { color: var(--accent-glow); }

/* ======================== CTA ======================== */
.section-cta { text-align: center; }
.section-cta::before { display: none; }
.cta-block {
    margin-bottom: 0;
    padding: 60px 40px;
    border-radius: 24px;
    background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.08) 0%, rgba(88, 28, 135, 0.04) 40%, transparent 70%);
    border: 1px solid rgba(139, 92, 246, 0.08);
}
.cta-title {
    font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1.2;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}
.cta-subtitle { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 40px; }

/* ======================== CONTATTI / FORM SECTION ======================== */
.section-contatti { text-align: center; }

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto 60px;
    padding: 48px 44px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    text-align: left;
}

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

.contact-links { padding-top: 20px; }
.contact-links-label { color: var(--text-dim); font-size: 0.875rem; margin-bottom: 16px; }
.contact-links-row { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.contact-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-muted); font-size: 0.9rem;
    transition: color 0.3s ease;
}
.contact-link:hover { color: var(--accent-glow); }

/* ======================== FOOTER ======================== */
.footer {
    position: relative; z-index: 1;
    padding: 32px 24px; text-align: center;
    color: var(--text-dim); font-size: 0.8rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    background: linear-gradient(180deg, rgba(88, 28, 135, 0.04) 0%, transparent 100%);
}

/* ======================== MODALS ======================== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 48px 24px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-card {
    background: rgba(12, 10, 28, 0.94);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 24px;
    max-width: 640px; width: 100%; max-height: 80vh;
    overflow-y: auto; position: relative;
    transform: translateY(30px) scale(0.96);
    opacity: 0;
    transition: transform 0.45s var(--ease), opacity 0.4s ease;
    backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
    scrollbar-width: thin; scrollbar-color: var(--accent-dim) transparent;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(139, 92, 246, 0.06);
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); opacity: 1; }

.modal-card::-webkit-scrollbar { width: 6px; }
.modal-card::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }

/* Subtle top glow accent inside modal */
.modal-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 120px;
    background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    border-radius: 24px 24px 0 0;
    pointer-events: none;
}

.modal-close {
    position: absolute; top: 20px; right: 20px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--text-dim); z-index: 2;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.modal-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
    transform: scale(1.05);
}

.modal-body { padding: 48px 48px 44px; position: relative; }
.modal-title {
    font-family: var(--font-display); font-size: 1.85rem; font-weight: 700;
    margin-bottom: 12px; padding-right: 40px;
    background: linear-gradient(135deg, var(--text), var(--accent-glow));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.modal-desc {
    color: var(--text-muted); font-size: 1rem; line-height: 1.75;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}
.modal-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.modal-list li {
    display: flex; align-items: flex-start; gap: 14px;
    color: var(--text-muted); font-size: 0.95rem; line-height: 1.6;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.06);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.modal-list li:hover {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.12);
    transform: translateX(4px);
}
.modal-list-icon { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.modal-cta {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text); font-weight: 600; font-size: 1rem;
    padding: 14px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--indigo));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}
.modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45);
}

/* ======================== CONTACT FORM ======================== */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body); font-size: 0.95rem;
    color: var(--text);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px; padding: 12px 16px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    -webkit-appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    background: rgba(139, 92, 246, 0.03);
}
.form-group select {
    cursor: pointer;
    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 1.5L6 6.5L11 1.5' stroke='%239896AD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
    padding-right: 40px;
}
.form-group select option { background: #0c0a1c; color: var(--text); }
.form-group textarea { resize: vertical; min-height: 100px; }

.checkbox-group { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.checkbox-label {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; font-size: 0.9rem; color: var(--text-muted);
    transition: color 0.3s ease;
}
.checkbox-label:hover { color: var(--text); }
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
    width: 20px; height: 20px; flex-shrink: 0;
    border: 1.5px solid var(--border-hover);
    border-radius: 5px; position: relative;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.checkbox-label input:checked + .checkbox-custom {
    background: var(--accent); border-color: var(--accent);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}
.checkbox-label input:checked + .checkbox-custom::after {
    content: ''; position: absolute; top: 3px; left: 6px;
    width: 5px; height: 9px;
    border: solid var(--text); border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.btn-submit { margin-top: 8px; width: 100%; }
.form-success { text-align: center; padding: 40px 0; }
.form-success-icon { margin-bottom: 20px; }
.form-success h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: var(--text-muted); }

/* ======================== REVEAL ======================== */
.reveal {
    opacity: 0; transform: translateY(36px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-grid .card:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
    .timeline { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
    .timeline-line { display: none; }
}

@media (max-width: 768px) {
    .section { padding: 100px 0; }
    .hamburger { display: flex; }
    .navbar-links {
        position: fixed; top: 0; right: 0;
        width: 280px; height: 100vh;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
        flex-direction: column; justify-content: center; align-items: center; gap: 36px;
        transform: translateX(100%); transition: transform 0.4s var(--ease);
        z-index: 1000;
    }
    .navbar-links.open { transform: translateX(0); }
    .navbar-links a { font-size: 1.1rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .cards-grid .card:last-child { max-width: 100%; }
    .timeline { grid-template-columns: 1fr; gap: 48px; padding-left: 40px; }
    .timeline-line {
        display: block; top: 0; bottom: 0; left: 12px; right: auto;
        width: 2px; height: auto;
        background: linear-gradient(180deg, transparent, var(--accent-dim) 15%, var(--accent) 50%, var(--accent-dim) 85%, transparent);
    }
    .timeline-line::before { animation: timelineDotV 6s ease-in-out infinite; left: -3px; }
    @keyframes timelineDotV {
        0%   { top: 0%; opacity: 0; }
        10%  { opacity: 1; }
        90%  { opacity: 1; }
        100% { top: 100%; opacity: 0; }
    }
    .timeline-step { text-align: left; padding: 0; }
    .step-number { font-size: 2rem; }
    .modal-overlay { padding: 20px 12px; }
    .modal-card { max-width: 95vw; max-height: 88vh; border-radius: 18px; }
    .modal-body { padding: 36px 24px 32px; }
    .modal-title { font-size: 1.4rem; }
    .modal-list li { padding: 12px 14px; }
    .hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 32px 24px; }
}

@media (max-width: 480px) {
    .navbar-logo-img { height: 38px; }
    .contact-links-row { flex-direction: column; align-items: center; gap: 16px; }
}
