:root {
    --primary: #2563EB; /* Bright Blue */
    --secondary: #0F172A; /* Slate 900 */
    --accent: #F59E0B; /* Amber */
    --text-main: #1E293B;
    --text-light: #64748B;
    --bg-light: #ffffff;
    --bg-gray: #F8FAFC;
    --bg-dark: #0F172A;
    --white: #ffffff;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Focus visibility for accessibility */
.btn:focus-visible,
.nav-links a:focus-visible,
.btn-link:focus-visible,
.contact-btn:focus-visible,
.logo:focus-visible,
.hamburger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(37, 99, 235, 0.2);
    z-index: -1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--white);
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.logo .dot {
    color: var(--primary);
}

.nav-links a:not(.btn) {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.nav-links .btn {
    margin-left: 2rem;
    padding: 8px 20px;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    background: #DBEAFE;
    color: #1E40AF;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Hero Visual Animation */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary), #60A5FA);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    animation: morph 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 30% 30% 70% 70% / 50% 30% 70% 60%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.ui-card {
    background: var(--white);
    box-shadow: var(--shadow-hover);
    border-radius: 12px;
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.05);
}

.card-1 {
    width: 280px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1rem;
}

.ui-header {
    height: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.dots {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 50%;
    box-shadow: 15px 0 0 #cbd5e1, 30px 0 0 #cbd5e1;
}

.ui-body .bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 10px;
}

.ui-body .bar.w-70 { width: 70%; }
.ui-body .bar.w-50 { width: 50%; }

.chart-area {
    margin-top: 2rem;
    height: 60px;
    background: linear-gradient(180deg, rgba(37,99,235,0.1) 0%, transparent 100%);
    border-top: 2px solid var(--primary);
    border-radius: 4px;
}

.card-2 {
    bottom: 40px;
    right: 40px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 6s ease-in-out infinite;
}

.card-2 .ui-icon {
    color: #10B981;
    font-size: 1.5rem;
}

.card-2 .ui-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .abstract-shape,
    .card-2 {
        animation: none !important;
    }
    /* Ensure AOS-tagged elements remain visible when animations are reduced */
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

/* Sections General */
.section {
    padding: 100px 0;
}

.dark-bg {
    background: var(--bg-dark);
    color: var(--white);
}

.dark-bg h2 {
    color: var(--white);
}

.dark-bg p {
    color: #94A3B8;
}

.gray-bg {
    background: var(--bg-gray);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background: rgba(255,255,255,0.05);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.step-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

/* Portfolio */
.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.project-card.reverse {
    direction: rtl; 
}
.project-card.reverse .project-content {
    direction: ltr;
}

.project-tag {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.project-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-features {
    margin: 1.5rem 0;
    list-style: none;
}

.project-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-features i {
    color: var(--primary);
    font-size: 0.8rem;
}

.btn-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-link:hover {
    gap: 1rem;
}

.project-image {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

.browser-mockup {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CBD5E1;
    transition: var(--transition);
}
.browser-mockup.secondary {
    color: #94A3B8;
}

.project-image:hover .browser-mockup {
    transform: scale(1.02);
}

/* About / Tech */
.split-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-block p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--secondary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.tech-pill {
    background: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    color: var(--secondary);
}

.stat-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* CTA & Contact */
.cta-section {
    padding-bottom: 140px;
}

.center-content {
    display: flex;
    justify-content: center;
}

.cta-box {
    background: var(--secondary);
    color: var(--white);
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    max-width: 900px;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.cta-box h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.contact-btn.whatsapp {
    background: #25D366;
    color: #fff;
}

.contact-btn.whatsapp:hover {
    background: #1faf54;
    transform: translateY(-2px);
}

.contact-btn.email {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-btn.email:hover {
    background: rgba(255,255,255,0.2);
}

.small-print {
    font-size: 0.875rem !important;
    opacity: 0.6;
}

/* Footer */
footer {
    background: #020617;
    color: #94A3B8;
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h4 {
    color: var(--white);
    font-size: 1.25rem;
}

.dot {
    color: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-content { grid-template-columns: 1fr; gap: 2rem; }
    .hero-visual { display: none; } /* Simplified for mobile */
    .steps-grid { grid-template-columns: 1fr; }
    .project-card, .project-card.reverse { 
        grid-template-columns: 100%;
        gap: 2rem;
        direction: ltr;
    }
    .project-content {
        min-width: 0; /* Ensures text wraps correctly in grid */
        width: 100%;
    }
    .split-content { grid-template-columns: 1fr; }
    .stat-block { grid-template-columns: 1fr 1fr; margin-top: 2rem;}
    
    .nav-links { display: none; } /* Need JS toggle */
    .hamburger { 
        display: block; 
        margin-right: 1rem; 
    }
    .cta-box h2 { font-size: 2rem; }
    .cta-box { padding: 2rem; }
}