/* ==================================
   GOOGLE-STYLE MATERIAL DESIGN CSS
   ================================== */
:root {
    --primary: #1a73e8;
    --primary-hover: #1557b0;
    --primary-light: #e8f0fe;
    --text-main: #1f1f1f;
    --text-sec: #5f6368;
    --bg-page: #f8fafd;
    --bg-card: #ffffff;
    --border: #dadce0;
    --accent-red: #ea4335;
    --accent-yellow: #fbbc04;
    --accent-green: #34a853;
    
    --shadow-sm: 0 1px 2px rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-md: 0 4px 6px -1px rgba(60,64,67,0.15), 0 2px 4px -1px rgba(60,64,67,0.1);
    --shadow-lg: 0 10px 20px rgba(60,64,67,0.1), 0 1px 3px rgba(60,64,67,0.05);
    --shadow-glow: 0 8px 32px rgba(26, 115, 232, 0.2);
    
    --rad-sm: 8px;
    --rad-md: 16px;
    --rad-lg: 24px;
    --rad-full: 100px;
    
    --transition-snappy: cubic-bezier(0.2, 0, 0, 1) 0.3s;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    line-height: 1.6;
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4 {
    color: var(--text-main);
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
p {
    color: var(--text-sec);
    margin: 0 0 1rem 0;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-snappy);
}
a:hover {
    color: var(--primary-hover);
}

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

/* ================== ANIMATED BACKGROUND ================== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: floatBlob 15s ease-in-out infinite alternate;
}
.blob-1 {
    width: 400px; height: 400px;
    background: rgba(26, 115, 232, 0.15);
    top: -100px; left: -100px;
}
.blob-2 {
    width: 300px; height: 300px;
    background: rgba(52, 168, 83, 0.1);
    top: 20%; right: -50px;
    animation-delay: -5s;
    animation-duration: 20s;
}
.blob-3 {
    width: 350px; height: 350px;
    background: rgba(234, 67, 53, 0.1);
    top: 60%; left: 20%;
    animation-delay: -2s;
    animation-duration: 18s;
}

@keyframes floatBlob {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(60px) scale(1.1); }
}

/* ================== REVEAL ANIMATIONS ================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1), transform 0.8s cubic-bezier(0.2, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================== BUTTONS ================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Outfit';
    font-weight: 600;
    border-radius: var(--rad-full);
    padding: 10px 24px;
    transition: all var(--transition-snappy);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.3);
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}
.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* ================== NAVBAR ================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(218, 220, 224, 0.5);
    padding: 12px 0;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.brand-logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a:not(.btn) {
    color: var(--text-sec);
    font-weight: 500;
    position: relative;
}
.nav-links a:not(.btn):hover {
    color: var(--text-main);
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary);
    transition: width var(--transition-snappy);
    border-radius: 2px;
}
.nav-links a:not(.btn):hover::after {
    width: 100%;
}

@media (max-width: 800px) {
    .nav-links a:not(.btn) { display: none; }
}

/* ================== HERO SECTION ================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 24px;
    align-items: center;
    min-height: 80vh;
}
.badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--rad-full);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    border: 1px solid rgba(26,115,232,0.1);
}
.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
}
.hero-title span {
    background: linear-gradient(135deg, var(--primary), #8ab4f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 90%;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: var(--rad-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    width: 100%;
    transform: rotate(2deg) translateY(0);
    animation: floatCode 6s ease-in-out infinite;
}
@keyframes floatCode {
    0% { transform: rotate(2deg) translateY(0); }
    50% { transform: rotate(1deg) translateY(-15px); }
    100% { transform: rotate(2deg) translateY(0); }
}
.abstract-code pre {
    margin: 0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.95rem;
    color: #333;
    overflow-x: auto;
}
.c-keyword { color: #d73a49; font-weight: bold; }
.c-variable { color: #005cc5; }
.c-class { color: #6f42c1; font-weight: bold; }
.c-function { color: #6f42c1; }
.c-string { color: #032f62; }
.c-comment { color: #6a737d; font-style: italic; }

.performance-card { padding: 32px; width: 100%; max-width: 360px; box-sizing: border-box; }
.perf-header { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 1.2rem; }
.perf-stats { display: flex; gap: 24px; margin-bottom: 32px; }
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-size: 2.8rem; font-weight: 800; line-height: 1; color: var(--primary); margin-bottom: 6px; }
.stat-label { font-size: 0.95rem; color: var(--text-sec); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

@keyframes fillBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 24px;
    }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { max-width: 100%; margin: 0 auto 32px auto; }
    .hero-actions { justify-content: center; }
    .glass-card { width: 90%; margin: 0 auto; }
}

/* ================== GENERAL SECTIONS ================== */
.section {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.section-header p {
    font-size: 1.15rem;
}
.section-bg {
    background: #fff;
    border-radius: 40px;
    padding: 60px 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

/* ================== BENTO GRID (SERVICES) ================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 24px;
}
.bento-card {
    background: var(--bg-card);
    border-radius: var(--rad-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.bento-hover {
    transition: all var(--transition-snappy);
}
.bento-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.card-icon {
    width: 48px; height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.card-icon span {
    font-size: 28px;
}
.bento-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}
.card-wide {
    grid-column: span 2;
}
.card-tall {
    grid-row: span 2;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .card-wide, .card-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ================== EXTRAS SECTION ================== */
.extras-flex {
    display: flex;
    gap: 24px;
    justify-content: center;
}
.extra-module {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-page);
    padding: 24px;
    border-radius: var(--rad-md);
    border: 1px solid var(--border);
    transition: all var(--transition-snappy);
    color: inherit;
    max-width: 400px;
}
.extra-module:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary);
}
.extra-icon {
    font-size: 3rem;
}
.extra-content h4 {
    margin-bottom: 4px;
    font-size: 1.2rem;
}
.extra-content p {
    margin: 0;
    font-size: 0.95rem;
}
.extra-module .arrow {
    margin-left: auto;
    color: var(--text-sec);
    transition: color 0.2s;
}
.extra-module:hover .arrow {
    color: var(--primary);
}

@media (max-width: 768px) {
    .extras-flex { flex-direction: column; align-items: center; }
    .extra-module { width: 100%; max-width: 100%;}
}

/* ================== CONTACT SECTION ================== */
.contact-wrapper {
    display: flex;
    gap: 60px;
    background: #fff;
    border-radius: 40px;
    padding: 60px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.contact-info {
    flex: 1;
}
.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}
.info-items {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.info-item span {
    color: var(--primary);
    background: var(--primary-light);
    padding: 10px;
    border-radius: 50%;
}
.contact-form-box {
    flex: 1;
    background: var(--bg-page);
    padding: 40px;
    border-radius: var(--rad-lg);
}

/* Floating labels forms */
.input-group {
    position: relative;
    margin-bottom: 24px;
}
.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 16px 16px 12px 16px;
    font-family: 'Outfit';
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--rad-sm);
    background: #fff;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    color: var(--text-main);
}
.input-group textarea {
    resize: vertical;
    min-height: 120px;
}
.input-group input:focus, 
.input-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}
.input-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-sec);
    pointer-events: none;
    transition: all 0.2s ease-out;
    background: #fff;
    padding: 0 4px;
}
.input-group textarea ~ label {
    top: 24px;
}
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.8rem;
    color: var(--primary);
    transform: translateY(-50%);
}

.recaptcha-wrapper {
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 8px;
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 14px;
}

#form-msg {
    margin-top: 16px;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 900px) {
    .contact-wrapper {
        flex-direction: column;
        padding: 32px 20px;
    }
    .contact-form-box {
        padding: 32px 20px;
    }
}

/* ================== FOOTER ================== */
footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-sec);
    border-top: 1px solid var(--border);
    margin-top: 60px;
    font-size: 0.9rem;
}
footer a {
    font-weight: 600;
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .brand-logo {
        font-size: 1.15rem;
        gap: 8px;
    }
    .brand-logo img {
        height: 32px;
    }
    .nav-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
