/* =========================================
   Ihub.click - Custom Styles
   ========================================= */

/* Font / Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Base Variables overrides */
    --bs-body-font-family: 'Inter', sans-serif;
    
    /* Ihub Premium Colors - Light */
    --ihub-teal: #0d9488;
    --ihub-teal-rgb: 13, 148, 136;
    --ihub-teal-hover: #0f766e;
    --ihub-grafite: #334155;
    
    /* Custom spacing */
    --section-spacing: 5rem;
}

/* Dark theme overrides overrides within data-bs-theme */
[data-bs-theme="dark"] {
    --ihub-teal: #14b8a6;
    --ihub-teal-rgb: 20, 184, 166;
    --ihub-teal-hover: #2dd4bf;
    --ihub-grafite: #1e293b;
    --bs-body-bg: #0f172a;
    --bs-body-color: #cbd5e1;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="light"] {
    --bs-body-bg: #f8fafc;
    --bs-body-color: #334155;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
}

/* General Overrides */
body {
    font-family: var(--bs-body-font-family);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

.text-primary { color: var(--ihub-teal) !important; }
.bg-primary { background-color: var(--ihub-teal) !important; }
.btn-primary { 
    background-color: var(--ihub-teal); 
    border-color: var(--ihub-teal); 
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--ihub-teal-hover);
    border-color: var(--ihub-teal-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--ihub-teal-rgb), 0.3);
}
.btn-outline-primary {
    color: var(--ihub-teal);
    border-color: var(--ihub-teal);
}
.btn-outline-primary:hover {
    background-color: var(--ihub-teal);
    color: #fff;
    transform: translateY(-2px);
}
.text-secondary { color: var(--ihub-grafite) !important; }

/* Utilities */
.py-6 { padding-top: var(--section-spacing); padding-bottom: var(--section-spacing); }
.max-w-700 { max-width: 700px; }
.hover-primary { cursor: pointer; }
.hover-primary:hover { color: var(--ihub-teal) !important; }
.transition { transition: all 0.3s ease; }

/* Dynamic Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--ihub-teal), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Components */
.blur-nav {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.blur-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}
.blob-1 {
    top: -100px;
    right: -100px;
    background: var(--ihub-teal);
}
.blob-2 {
    bottom: -100px;
    left: -100px;
    background: #3b82f6;
}

/* Hero Mockup Visualization */
.hero-mockup-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1000px;
}
.glass-mockup {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    transform: rotateY(-15deg) rotateX(5deg) scale(0.9);
    box-shadow: -20px 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-mockup-wrapper:hover .glass-mockup {
    transform: rotateY(0deg) rotateX(0deg) scale(1);
}
.mockup-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.floating-card {
    position: absolute;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
}
.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}
.card-2 {
    bottom: 20%;
    right: -5%;
    animation-delay: 2s;
}

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

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    grid-auto-rows: minmax(200px, auto);
}

.bento-item {
    grid-column: span 12;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 768px) {
    .bento-item { grid-column: span 6; }
    .bento-large { grid-column: span 12; }
}

@media (min-width: 992px) {
    .bento-item { grid-column: span 4; }
    .bento-large { grid-column: span 8; }
}

.bento-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--ihub-teal);
}

.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Secondary CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--ihub-teal), #085f56);
}

.cta-bg-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn-hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    transition: all 0.3s;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--ihub-teal-rgb), 0.25);
    border-color: var(--ihub-teal) !important;
}

.btn-submit .transition-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-submit:hover .transition-icon {
    transform: translateX(5px);
}

/* Custom Checkmark for valid inputs */
[data-bs-theme="dark"] .form-control.is-valid,
[data-bs-theme="dark"] .was-validated .form-control:valid {
    border-color: #198754;
}

/* Footer social icons */
.social-icon i {
    transition: transform 0.3s ease, color 0.3s;
}
.social-icon:hover i {
    transform: translateY(-3px);
}
