/* ===================================================
   ADALAN — AI-First Consulting Firm
   Modern, Responsive, Dynamic
   =================================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --accent: #F97316;
    --accent-light: #FB923C;
    --bg-dark: #0F0F1A;
    --bg-card: #1A1A2E;
    --bg-card-hover: #22223A;
    --text: #E2E8F0;
    --text-muted: #94A3B8;
    --text-dark: #1E293B;
    --white: #FFFFFF;
    --border: rgba(255,255,255,0.08);
    --gradient: linear-gradient(135deg, var(--primary-light), var(--accent));
    --gradient-text: linear-gradient(135deg, #818CF8, #F97316);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.4);
    --shadow-card: 0 4px 30px rgba(0,0,0,0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--primary-light);
    background: rgba(79, 70, 229, 0.1);
}

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

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
}

.logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-bottom: -8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
    background: var(--gradient);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.85rem !important;
}

.nav-cta:hover { opacity: 0.9; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(79, 70, 229, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(249, 115, 22, 0.08), transparent);
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.3);
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat { text-align: center; }

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-suffix {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.hero-scroll a:hover { color: var(--primary-light); }

/* ---------- SECTIONS ---------- */
.section {
    padding: 120px 0;
    position: relative;
}

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.section-tag--light {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--white);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- VISION ---------- */
.vision {
    background:
        radial-gradient(ellipse 50% 50% at 0% 50%, rgba(79, 70, 229, 0.06), transparent),
        var(--bg-dark);
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.vision-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    transition: var(--transition);
}

.vision-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.2);
}

.vision-card--large { grid-column: 1 / -1; }

.vision-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 20px;
}

.vision-card h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 12px;
}

.vision-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ---------- APPROACH ---------- */
.approach {
    background: var(--bg-dark);
}

.approach-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.approach-timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    opacity: 0.3;
}

.approach-step {
    display: flex;
    gap: 30px;
    padding: 32px 0;
    position: relative;
}

.approach-step::before {
    content: attr(data-step);
    position: absolute;
    left: -60px;
    top: 36px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-light);
    opacity: 0.5;
}

.step-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-light);
    transition: var(--transition);
}

.approach-step:hover .step-icon {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
}

.step-content h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ---------- SERVICES ---------- */
.services {
    background:
        radial-gradient(ellipse 40% 50% at 100% 50%, rgba(249, 115, 22, 0.04), transparent),
        var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-4px);
}

.service-card--accent {
    border-color: rgba(249, 115, 22, 0.2);
    background: linear-gradient(160deg, var(--bg-card) 0%, rgba(249, 115, 22, 0.03) 100%);
}

.service-card--accent:hover {
    border-color: rgba(249, 115, 22, 0.4);
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
}

.service-card--accent .service-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.service-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-light);
}

.service-card--accent .service-label { color: var(--accent); }

.service-card h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 14px;
}

.service-card > p {
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    margin-bottom: 32px;
}

.service-features li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    align-items: flex-start;
}

.service-features li i {
    color: var(--primary-light);
    margin-top: 2px;
    font-size: 0.9rem;
}

.service-card--accent .service-features li i { color: var(--accent); }

.service-features strong {
    display: block;
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.service-features span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.service-image {
    border-radius: var(--radius-sm);
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition);
}

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

/* ---------- PILLARS ---------- */
.pillars {
    background: var(--bg-dark);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.2);
}

.pillar-card--highlight {
    border-color: rgba(79, 70, 229, 0.3);
    background: linear-gradient(160deg, var(--bg-card) 0%, rgba(79, 70, 229, 0.05) 100%);
}

.pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.pillar-card h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 6px;
}

.pillar-tagline {
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.pillar-list {
    list-style: none;
    flex: 1;
}

.pillar-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pillar-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    transform: translateY(-50%);
    opacity: 0.5;
}

.pillar-bottom {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
}

/* ---------- IMPACT ---------- */
.impact {
    background:
        radial-gradient(ellipse 50% 40% at 50% 80%, rgba(79, 70, 229, 0.06), transparent),
        var(--bg-dark);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.impact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.impact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.2);
}

.impact-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.impact-content {
    padding: 28px;
}

.impact-content h3 {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 10px;
}

.impact-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.impact-quote {
    text-align: center;
}

.impact-quote blockquote {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
}

.impact-quote blockquote i {
    color: var(--primary-light);
    opacity: 0.3;
    font-size: 2rem;
    display: block;
    margin-bottom: 16px;
}

/* ---------- CONTACT ---------- */
.contact {
    background: linear-gradient(160deg, var(--bg-dark) 0%, #161632 100%);
}

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

.contact-content h2 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 16px;
}

.contact-content p {
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

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

.contact-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-feature i {
    color: var(--primary-light);
    font-size: 0.9rem;
    width: 20px;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text);
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 64px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-badges {
    display: flex;
    gap: 20px;
}

.footer-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-badges span i {
    color: var(--primary-light);
    font-size: 0.7rem;
}

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

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

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Particles */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.3);
    pointer-events: none;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: 1fr 1fr; }
    .impact-grid { grid-template-columns: 1fr 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 80px 40px;
        gap: 24px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border);
    }

    .nav-links.open { right: 0; }
    .nav-toggle { display: flex; }

    .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero { padding: 100px 0 60px; }
    .hero-title { font-size: 2.2rem; }
    .hero-stats { flex-direction: column; gap: 24px; }
    .stat-divider { width: 50px; height: 1px; }

    .vision-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: 1fr; }
    .impact-grid { grid-template-columns: 1fr; }

    .approach-timeline::before { left: 20px; }
    .approach-step { gap: 20px; }
    .approach-step::before { display: none; }
    .step-icon { width: 48px; height: 48px; min-width: 48px; font-size: 1rem; border-radius: 12px; }

    .section { padding: 80px 0; }
    .section-title { font-size: 1.8rem; }

    .footer-top { flex-direction: column; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

    .contact-form { padding: 28px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .btn { padding: 12px 22px; font-size: 0.9rem; }
    .impact-quote blockquote { font-size: 1.2rem; }
}
