/* ==========================================
   Modern Dynamic Layout Theme
   ========================================== */

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

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --accent: #0ea5e9;
    --accent-purple: #8b5cf6;
    --accent-emerald: #10b981;
    --accent-orange: #f59e0b;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-light: #64748b;
    
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter', sans-serif;
    
    --max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(14, 165, 233, 0.1));
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    margin-bottom: var(--spacing-sm);
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-family: var(--font-display);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links .btn-primary {
    color: white;
    padding: 0.75rem 1.75rem;
}

.nav-links .btn-primary:hover {
    color: white;
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* ==========================================
   Buttons
   ========================================== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

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

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: white;
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.full-width {
    width: 100%;
}

/* ==========================================
   Hero Modern
   ========================================== */
.hero-modern {
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f0f9ff 100%);
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent));
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent));
    top: 50%;
    left: 50%;
    animation: float 18s ease-in-out infinite;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left h1 {
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-left p {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.7;
}

.badge-modern {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(14, 165, 233, 0.1));
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--spacing-lg);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

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

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-right {
    position: relative;
}

.hero-visual-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

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

.visual-item {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.visual-item:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.visual-icon {
    font-size: 2.5rem;
}

.visual-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.accent-1 { border-left: 4px solid var(--primary); }
.accent-2 { border-left: 4px solid var(--accent); }
.accent-3 { border-left: 4px solid var(--accent-purple); }
.accent-4 { border-left: 4px solid var(--accent-emerald); }

/* ==========================================
   About Diagonal Section
   ========================================== */
.about-diagonal {
    padding: 6rem 0;
    position: relative;
    background: white;
}

.diagonal-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    transform: skewY(-3deg);
    transform-origin: top left;
    z-index: 0;
}

.about-asymmetric {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    position: relative;
    z-index: 1;
}

.about-left {
    padding-right: 2rem;
}

.about-left h2 {
    margin-bottom: var(--spacing-md);
}

.about-left p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.expertise-cards-stacked {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expertise-card-modern {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.expertise-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0.05;
    transition: all 0.3s ease;
}

.card-tech {
    border-color: var(--primary);
}
.card-tech::before {
    background: var(--primary);
}

.card-diagnostic {
    border-color: var(--accent);
}
.card-diagnostic::before {
    background: var(--accent);
}

.card-consulting {
    border-color: var(--accent-emerald);
}
.card-consulting::before {
    background: var(--accent-emerald);
}

.expertise-card-modern:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.expertise-card-modern:hover::before {
    right: -20px;
    width: 200px;
    height: 200px;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.expertise-card-modern h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.expertise-card-modern p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   Services Bento Grid
   ========================================== */
.services-bento {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.section-header-modern {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header-modern h2 {
    margin-top: 0.5rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    grid-auto-rows: 280px;
}

.bento-item {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.bento-large {
    grid-column: span 7;
    grid-row: span 2;
}

.bento-tall {
    grid-column: span 5;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 12;
    grid-row: span 1;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(30, 64, 175, 0.15);
    border-color: var(--primary-light);
}

.bento-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.icon-large {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.bento-item h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.bento-item p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin-top: auto;
}

.tech-tags li {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(14, 165, 233, 0.1));
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.bento-decoration {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), rgba(14, 165, 233, 0.05));
    border-radius: 50%;
    z-index: 1;
}

.bento-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(30, 64, 175, 0.05));
    z-index: 1;
}

/* ==========================================
   FAQ Modern
   ========================================== */
.faq-modern {
    padding: 6rem 0;
    background: white;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
}

.faq-left {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.faq-left h2 {
    margin-bottom: var(--spacing-md);
}

.faq-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.faq-cta {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #e0f2fe);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.faq-cta p {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.faq-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-item-modern {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.faq-item-modern:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.12);
    border-color: var(--primary-light);
}

.faq-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
}

.faq-content h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.faq-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-glass {
    background: linear-gradient(135deg, #f8fafc, #e0f2fe);
    padding: 6rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    padding: 2rem 0;
}

.contact-info h2 {
    margin-bottom: var(--spacing-sm);
}

.contact-info p {
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.info-item .label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.info-item .value {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
}

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

/* ==========================================
   Footer
   ========================================== */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.footer-brand .logo {
    color: white;
    font-size: 1.25rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}

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

.copyright {
    text-align: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

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

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-asymmetric {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .bento-large,
    .bento-tall,
    .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .faq-left {
        position: static;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-modern {
        padding: 3rem 0 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .visual-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-item-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .faq-number {
        font-size: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .hero-visual-card {
        padding: 1.5rem;
    }
    
    .bento-item {
        padding: 1.5rem;
    }
}
