/* ==========================================
   TibebCapital Landing Page Styles
   Professional IT Consultancy Theme
   ========================================== */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-text: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;

    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

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

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-nav {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

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

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 800;
}

.logo-text {
    color: var(--text-primary);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 50%, #f5f3ff 100%);
    z-index: -1;
}

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

.hero-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 16px;
}

.hero-text h1 {
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    height: 500px;
}

.dashboard-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.dashboard-dots {
    display: flex;
    gap: 6px;
}

.dashboard-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dashboard-dots span:nth-child(1) { background: #ff5f57; }
.dashboard-dots span:nth-child(2) { background: #febc2e; }
.dashboard-dots span:nth-child(3) { background: #28c840; }

.dashboard-title {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dashboard-content {
    padding: 24px;
}

.dash-stat {
    margin-bottom: 20px;
}

.dash-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.dash-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
}

.dash-chart .bar {
    flex: 1;
    background: var(--gradient);
    border-radius: 4px 4px 0 0;
    animation: grow 1s ease-out forwards;
}

@keyframes grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 500;
    animation: float 6s ease-in-out infinite;
}

.floating-card .card-icon {
    font-size: 1.25rem;
}

.card-1 {
    top: 20%;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 10%;
    right: 10%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 25%;
    right: 5%;
    animation-delay: 4s;
}

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

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--bg-primary);
}

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

.service-card {
    position: relative;
    padding: 32px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card.featured {
    grid-row: span 2;
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f3ff 100%);
    border-color: transparent;
}

.service-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 6px 12px;
    background: var(--gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.service-features {
    margin: 24px 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
}

.service-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
}

.service-link:hover {
    gap: 10px;
}

/* Platform Section */
.platform {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.platform-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.platform-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.platform-features {
    margin-bottom: 32px;
}

.feature {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.feature:last-child {
    border-bottom: none;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.feature-content h4 {
    margin-bottom: 4px;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Phone Mockup */
.platform-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    background: var(--secondary);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
}

.phone-screen {
    background: white;
    border-radius: 32px;
    overflow: hidden;
}

.app-header {
    padding: 16px;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.app-name {
    font-weight: 600;
}

.app-content {
    padding: 16px;
}

.post {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.post:last-child {
    border-bottom: none;
}

.post-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    flex-shrink: 0;
}

.post-body {
    flex: 1;
}

.post-author {
    font-weight: 600;
    font-size: 0.875rem;
}

.post-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 4px 0;
}

.post-engagement {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Case Study Section */
.case-study {
    padding: 100px 0;
    background: var(--bg-primary);
}

.case-study-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.case-mockup {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.browser-frame {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
    flex: 1;
    padding: 6px 12px;
    background: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.browser-content {
    padding: 24px;
}

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.mock-logo {
    font-weight: 700;
    color: var(--primary);
}

.mock-nav {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mock-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.mock-hero h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.mock-hero p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.mock-stats {
    display: flex;
    justify-content: space-around;
}

.mock-stat {
    text-align: center;
}

.mock-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.mock-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Case Study Details */
.case-challenge,
.case-solution {
    margin-bottom: 24px;
}

.case-study-details h3 {
    margin-bottom: 12px;
    color: var(--primary);
}

.case-study-details p {
    color: var(--text-secondary);
}

.case-results {
    margin: 32px 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.result {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    text-align: center;
}

.result-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.result-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.testimonial {
    padding: 24px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f3ff 100%);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.testimonial p {
    font-style: italic;
    font-size: 1.0625rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.testimonial cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary);
}

/* Process Section */
.process {
    padding: 100px 0;
    background: var(--bg-dark);
    color: white;
}

.process .section-label {
    color: var(--accent);
}

.process h2 {
    color: white;
}

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 24px;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.process-step h3 {
    color: white;
    margin-bottom: 12px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.process-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin-top: 60px;
    flex-shrink: 0;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-values {
    margin-top: 32px;
}

.value {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.value:last-child {
    border-bottom: none;
}

.value h4 {
    margin-bottom: 8px;
}

.value p {
    font-size: 0.9375rem;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 40px;
    justify-content: center;
}

.tech {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--bg-primary);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta h2 {
    margin-bottom: 16px;
}

.cta > .container > .cta-content > p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-form {
    text-align: left;
}

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

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.cta-form .btn {
    width: 100%;
}

.cta-alternative {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.cta-alternative p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.email-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.email-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-dark);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-muted);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content,
    .platform-content,
    .case-study-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-container {
        height: 400px;
    }

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

    .service-card.featured {
        grid-row: auto;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: white;
        padding: 80px 32px 32px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding-top: 100px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

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

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

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .floating-card {
        display: none;
    }

    .hero-image-container {
        height: 300px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

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

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
