/* Modern Database SPA Design - 2025 */

/* ============================================
   CSS RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette */
    --cyan: #06B6D4;
    --cyan-light: #22D3EE;
    --green: #10B981;
    --green-light: #34D399;
    --blue: #3B82F6;
    --purple: #8B5CF6;
    --orange: #F59E0B;
    --pink: #EC4899;
    
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900);
    transition: transform 0.2s;
}

.logo:hover {
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-btn {
    padding: 0.625rem 1.25rem;
    background: var(--gray-900);
    color: white !important;
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.nav-btn:hover {
    background: var(--cyan);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 140px 2rem 80px;
    background: linear-gradient(135deg, #F0FDFA 0%, #ECFEFF 50%, #F0F9FF 100%);
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-200);
}

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

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

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

/* Hero Visual Cards */
.hero-visual {
    position: relative;
    height: 600px;
}

.visual-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.visual-card-1 {
    top: 0;
    left: 0;
    width: 280px;
    animation: float 6s ease-in-out infinite;
}

.visual-card-2 {
    top: 140px;
    right: 20px;
    width: 240px;
    animation: float 6s ease-in-out infinite 2s;
}

.visual-card-3 {
    bottom: 40px;
    left: 40px;
    width: 260px;
    animation: float 6s ease-in-out infinite 4s;
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--gray-700);
}

.card-icon {
    font-size: 1.5rem;
}

.card-metric {
    margin-bottom: 1rem;
}

.metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

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

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--cyan), var(--green));
    border-radius: 4px;
    height: var(--height);
    animation: grow 1s ease-out;
}

@keyframes grow {
    from { height: 0; }
}

.health-score {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.score-ring {
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 8;
}

.score-fill {
    fill: none;
    stroke: var(--green);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251;
    stroke-dashoffset: calc(251 * (1 - var(--score)));
    animation: progress 2s ease-out;
}

@keyframes progress {
    from { stroke-dashoffset: 251; }
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-green {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-item {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--gray-900);
    color: white;
}

.btn-secondary:hover {
    background: var(--gray-800);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-ghost:hover {
    border-color: var(--gray-900);
    color: var(--gray-900);
}

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

/* ============================================
   SECTIONS
   ============================================ */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gray-900);
    color: white;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    background: white;
}

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

.service-card {
    padding: 2.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.3s;
}

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

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

.card-accent-cyan { color: var(--cyan); }
.card-accent-green { color: var(--green); }
.card-accent-blue { color: var(--blue); }
.card-accent-purple { color: var(--purple); }
.card-accent-orange { color: var(--orange); }
.card-accent-pink { color: var(--pink); }

.service-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: currentColor;
    margin-bottom: 1rem;
}

.service-icon {
    margin-bottom: 1.5rem;
    color: currentColor;
}

.service-title {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-list li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: currentColor;
    font-weight: bold;
}

/* ============================================
   WHY SECTION
   ============================================ */
.why-section {
    background: var(--gray-900);
    color: white;
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-section .section-title {
    color: white;
}

.why-text {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.why-feature {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.why-feature strong {
    display: block;
    color: white;
    margin-bottom: 0.25rem;
}

.why-feature p {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.comparison-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
}

.comparison-side h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.comparison-side ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comparison-side li {
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.875rem;
}

.comparison-bad {
    color: var(--gray-600);
}

.comparison-bad li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--pink);
}

.comparison-good {
    color: var(--gray-900);
}

.comparison-good li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
}

.comparison-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.comparison-divider {
    width: 1px;
    background: var(--gray-200);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.about-text {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

.about-content .btn {
    margin-top: 1rem;
}

.skill-category {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.skill-category h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: linear-gradient(135deg, #F0FDFA 0%, #ECFEFF 50%, #F0F9FF 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.method-icon {
    font-size: 2rem;
}

.contact-method strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.contact-method a,
.contact-method span {
    color: var(--gray-600);
    text-decoration: none;
}

.contact-method a:hover {
    color: var(--cyan);
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--gray-50);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    background: white;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
}

.form-status.success {
    background: #D1FAE5;
    color: #065F46;
}

.form-status.error {
    background: #FEE2E2;
    color: #991B1B;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--gray-800);
}

.footer-tagline {
    color: var(--gray-400);
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-container,
    .why-content,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links a:not(.nav-btn) {
        display: none;
    }
    
    .hero {
        padding: 120px 1.5rem 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-container {
        padding: 60px 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
    }
    
    .comparison-card {
        grid-template-columns: 1fr;
    }
    
    .comparison-divider {
        height: 1px;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
