/* 
    Filopar ERP - Landing Page Styles
    Modern ERP Theme: Deep Indigo, Slate, Glassmorphism 
*/

:root {
    /* Color Palette */
    --primary: #4f46e5;      /* Indigo 600 */
    --primary-hover: #4338ca;/* Indigo 700 */
    --primary-light: #e0e7ff;/* Indigo 100 */
    
    --secondary: #0ea5e9;    /* Light Blue 500 */
    
    --dark: #0f172a;         /* Slate 900 */
    --dark-muted: #334155;   /* Slate 700 */
    --light: #f8fafc;        /* Slate 50 */
    --white: #ffffff;
    
    --success: #10b981;      /* Emerald 500 */
    --warning: #f59e0b;      /* Amber 500 */
    --danger: #ef4444;       /* Red 500 */
    --info: #3b82f6;         /* Blue 500 */
    --purple: #8b5cf6;       /* Violet 500 */

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Layout */
    --container-max: 1200px;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--dark-muted);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-white { color: var(--white); }
.text-light { color: #e2e8f0; }
.text-light-muted { color: #94a3b8; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.opacity-80 { opacity: 0.8; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.me-2 { margin-right: 0.5rem; }
.ms-3 { margin-left: 1rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pt-3 { padding-top: 1rem; }

.border-bottom { border-bottom: 1px solid #e2e8f0; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark);
    border-color: #e2e8f0;
}

.btn-outline:hover {
    border-color: var(--dark);
    color: var(--dark);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #d1fae5; color: #047857; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #dbeafe; color: #1d4ed8; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.logo i {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--dark-muted);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: radial-gradient(circle at top right, #e0e7ff 0%, #f8fafc 40%);
    overflow: hidden;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--primary-light);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--dark-muted);
}

.stat-divider {
    width: 1px;
    height: 3rem;
    background: #e2e8f0;
}

/* Hero Visuals (Glassmorphism & Mockup) */
.hero-visual {
    position: relative;
    overflow: visible;
    /* Contain floating elements within page width */
    max-width: 100%;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.main-dashboard-mockup {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mockup-header {
    height: 2.5rem;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
    position: relative;
}

.window-controls {
    display: flex;
    gap: 0.35rem;
}

.window-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.window-controls span:nth-child(1) { background: #ef4444; }
.window-controls span:nth-child(2) { background: #f59e0b; }
.window-controls span:nth-child(3) { background: #10b981; }

.mockup-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--dark-muted);
}

.mockup-body {
    flex: 1;
    display: flex;
}

.mockup-sidebar {
    width: 60px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.mockup-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mockup-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.m-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.m-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.m-card-icon.blue { background: #eff6ff; color: #3b82f6; }
.m-card-icon.green { background: #ecfdf5; color: #10b981; }
.m-card-icon.purple { background: #f5f3ff; color: #8b5cf6; }

.m-title { font-size: 0.7rem; color: var(--dark-muted); }
.m-value { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-top: 0.2rem; }

.mockup-chart-area {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
}

.m-chart {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #e0e7ff 0%, rgba(224, 231, 255, 0) 100%);
    border-radius: 4px;
    position: relative;
}
.m-chart::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: rotate(-5deg);
}

.floating-element {
    position: absolute;
    padding: 1rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.float-1 {
    top: 10%;
    right: -2rem;
    z-index: 10;
}

.float-2 {
    bottom: 15%;
    left: -1rem;
    animation-delay: 2s;
    z-index: 10;
}

.f-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.f-icon.success { background: #ecfdf5; color: #10b981; }
.f-icon.info { background: #eff6ff; color: #3b82f6; }

.f-text strong { display: block; font-size: 0.85rem; color: var(--dark); }
.f-text span { font-size: 0.75rem; color: var(--dark-muted); }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Generic Section Styles */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--dark-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Bento Grid */
.features {
    padding: 5rem 0;
    background: var(--white);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 1.5rem;
}

.bento-item {
    background: #f8fafc;
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    overflow: hidden;
}

.bento-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.bento-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.bento-item p {
    font-size: 0.9rem;
    color: var(--dark-muted);
}

.bento-large .bento-content {
    flex: 1;
}

.bento-large .bento-image-wrapper {
    flex: 1;
    height: 100%;
    position: relative;
}

.feature-list {
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.finance-graphic {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    width: 100%;
}

.transaction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.transaction-row:last-child {
    border-bottom: none;
}

.balance-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Modules Detail Tabs */
.modules-detail {
    padding: 5rem 0;
    background: #f1f5f9;
}

.module-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: var(--white);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-muted);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.module-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.module-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.module-text > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.module-feature {
    margin-bottom: 1.5rem;
}

.module-feature h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.module-feature p {
    padding-left: 1.75rem;
    font-size: 0.95rem;
}

.module-visual {
    position: relative;
    width: 100%;
    min-height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.rounded-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.overlay-card {
    position: absolute;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 600;
}

.top-right { top: 1rem; right: 1rem; }
.bottom-left { bottom: 1rem; left: 1rem; }

/* Abstract Mockups inside Modules */
.mockup-abstract {
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mockup-abstract.dark-mode {
    background: var(--dark);
    color: var(--white);
    border: 1px solid #334155;
}

.mockup-abstract.dark-mode .border-bottom { border-color: #334155; }

.progress-bar {
    width: 100%;
    height: 8px;
    background: #334155;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar .fill {
    height: 100%;
    background: var(--success);
}

.mockup-abstract.gradient-bg {
    background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
    color: var(--white);
}

.account-card, .balance-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.transaction-list .t-item {
    background: var(--white);
    color: var(--dark);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Technology Highlight */
.technology {
    padding: 6rem 0;
    background: var(--dark);
    color: var(--white);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.tech-card h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.tech-card p {
    color: #94a3b8;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: var(--light);
}

.cta-box {
    padding: 4rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    color: var(--white);
    border-radius: var(--radius-xl);
}

.cta-box h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.cta-box .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.cta-box .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Footer */
.footer {
    background: #020617; /* Very dark slate */
    color: #94a3b8;
    padding-top: 5rem;
}

/* Footer logo must be white — override .logo's dark color */
.footer .logo {
    color: var(--white);
}

.footer .logo .text-primary {
    color: var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin-right: 0.5rem;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container, .module-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .module-visual {
        min-height: 250px;
    }
    
    .hero { padding-top: 6rem; }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .bento-large {
        grid-column: span 1;
        grid-row: span 1;
        flex-direction: column;
    }
    
    .bento-large .bento-image-wrapper {
        width: 100%;
        margin-top: 2rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .module-grid {
        padding: 2rem;
    }

    .float-1, .float-2 {
        display: none;
    }

    .cta-box h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }

    .cta-box .mt-4 {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-box .ms-3 {
        margin-left: 0;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .module-grid {
        padding: 1.5rem;
        gap: 2rem;
    }

    .module-text h3 {
        font-size: 1.5rem;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* ═══════════════════════════════════════════════════
   MOBILE MENU OVERLAY
   ═══════════════════════════════════════════════════ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--white);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu-overlay.open .mobile-menu-content {
    right: 0;
}

.mobile-close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-close-btn:hover {
    background: #f1f5f9;
}

.mobile-menu-content a {
    display: block;
    padding: 0.875rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu-content a:hover {
    color: var(--primary);
}

.mobile-menu-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in grids */
.bento-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.bento-item.reveal:nth-child(3) { transition-delay: 0.2s; }
.bento-item.reveal:nth-child(4) { transition-delay: 0.3s; }

.tech-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.tech-card.reveal:nth-child(3) { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════
   FOOTER FINAL POLISH
   ═══════════════════════════════════════════════════ */
.footer .logo i {
    color: var(--primary);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact p i {
    width: 1.25rem;
    text-align: center;
}
