/* =========================================
   D3G Health & Aesthetics Landing Page
   Modern, Clean, Dynamic Aesthetic
   ========================================= */

:root {
    /* Color Palette - Clean, Health/Tech Focus */
    --color-primary: #0EA5E9; /* Modern Medical/Tech Blue */
    --color-primary-light: #E0F2FE;
    --color-primary-dark: #0369A1;
    --color-accent: #10B981; /* Success Green */
    --color-accent-light: #D1FAE5;
    
    --color-bg: #FAFAFA;
    --color-surface: #FFFFFF;
    --color-surface-glass: rgba(255, 255, 255, 0.75);
    
    --color-text-main: #1E293B;
    --color-text-muted: #64748B;
    
    --color-danger: #EF4444;
    --color-danger-light: #FEE2E2;
    --color-warning: #F59E0B;
    --color-warning-light: #FEF3C7;
    --color-info: #3B82F6;
    --color-info-light: #DBEAFE;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects */
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.05);
    --shadow-medium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

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

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-accent); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-info { color: var(--color-info); }

.bg-danger-light { background-color: var(--color-danger-light); }
.bg-warning-light { background-color: var(--color-warning-light); }
.bg-info-light { background-color: var(--color-info-light); }

.mb-4 { margin-bottom: 2rem; }

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

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-light {
    background-color: white;
    color: var(--color-primary);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge-primary {
    background-color: var(--color-primary);
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--color-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

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

.logo-img {
    height: 140px;
    width: auto;
    display: block;
}

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

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

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

/* Hero Section */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.4) 0%, rgba(250, 250, 250, 1) 100%);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero-bg-shapes .shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background-color: var(--color-primary-light);
}

.hero-bg-shapes .shape-2 {
    bottom: 20%;
    right: -5%;
    width: 400px;
    height: 400px;
    background-color: var(--color-accent-light);
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.trust-indicators {
    margin-top: 3rem;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    border: 3px solid white;
    margin-right: -15px;
    background-size: cover;
    background-position: center;
}

.avatar-group .avatar:nth-child(1) { background-image: url('https://i.pravatar.cc/100?img=5'); }
.avatar-group .avatar:nth-child(2) { background-image: url('https://i.pravatar.cc/100?img=32'); }
.avatar-group .avatar:nth-child(3) { background-image: url('https://i.pravatar.cc/100?img=47'); }

.avatar-text {
    margin-left: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* Glassmorphism & Mockups */
.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-glass);
    border-radius: var(--radius-xl);
}

.hero-image-wrapper {
    position: relative;
}

.main-dashboard {
    position: relative;
    padding: 10px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.main-dashboard:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: var(--shadow-medium);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.floating-card.notification {
    top: -20px;
    right: -20px;
}

.floating-card.metric {
    bottom: 30px;
    left: -40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.notification-text strong {
    display: block;
    font-size: 0.9rem;
}

.notification-text span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animation Classes */
.animate-on-load.slide-up {
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-on-load.fade-in {
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.bounce-effect {
    animation: floatingBounce 4s ease-in-out infinite;
}

.slide-right-effect {
    animation: floatingSlide 5s ease-in-out infinite alternate;
}

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

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

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.reveal.slide-left { transform: translateX(40px); }
.reveal.slide-right { transform: translateX(-40px); }
.reveal.slide-left.active, .reveal.slide-right.active { transform: translateX(0); }
.reveal.bounce-in { transform: scale(0.9); }
.reveal.bounce-in.active { transform: scale(1); }

/* Sections */
.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

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

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* Problem Section */
.bg-light {
    background-color: var(--color-surface);
}

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

.feature-card {
    background: var(--color-bg);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    background: white;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Solution Section */
.solution-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.solution-image {
    position: relative;
    padding: 20px;
}

.glass-morphism-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
    border-radius: 50%;
    filter: blur(40px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.solution-ui-mockup {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.mockup-header {
    background: rgba(250, 250, 250, 0.9);
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

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

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
}
.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.mockup-title {
    margin-left: max(auto, 20px);
    flex-grow: 1;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
}

.mockup-body {
    padding: 20px;
}

.kanban-board {
    display: flex;
    gap: 16px;
}

.kanban-col {
    flex: 1;
    background: rgba(245, 245, 245, 0.5);
    border-radius: 8px;
    padding: 12px;
}

.col-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #555;
}

.col-title.highlight { color: var(--color-primary); }

.kanban-card {
    background: white;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    border-left: 3px solid #ccc;
}

.kanban-card.active { border-left-color: var(--color-primary); }
.kanban-card.success { border-left-color: var(--color-accent); }

.benefit-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.benefit-list i {
    font-size: 1.5rem;
    margin-top: 4px;
}

.benefit-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.benefit-list span {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-card {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-decoration .circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.cta-decoration .circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.cta-decoration .circle-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -100px;
}

/* Footer */
.footer {
    background: var(--color-surface);
    padding-top: 80px;
    border-top: 1px solid #eee;
}

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

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

.footer h4 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

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

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

.footer-contact p {
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
}

.social-links a:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding: 24px 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container, .solution-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero-subtitle {
        margin: 0 auto 2rem;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .trust-indicators {
        display: flex;
        justify-content: center;
    }
    
    .main-dashboard {
        transform: none;
        max-width: 600px;
        margin: 40px auto 0;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solution-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .benefit-list li {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-btn {
        display: none; /* In a real app, add a hamburger menu */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 16px auto;
    }
    
    .social-links {
        justify-content: center;
    }
}
