/* 
   CodeMasterMinds - Custom Stylesheet
   Designed for premium growth agency aesthetic with Light/Dark mode support using Bootstrap 5.3
*/

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

/* Color Variables */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Brand Colors (Common) */
    --brand-yellow: #e1ff00;
    --brand-yellow-rgb: 225, 255, 0;
    --brand-red: #ff3b30;
    --brand-red-rgb: 255, 59, 48;
    
    /* Transition */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-bs-theme="light"] {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-gradient: linear-gradient(135deg, #f8f9fc 0%, #eef1f6 100%);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --hero-glow: radial-gradient(circle at 50% 50%, rgba(225, 255, 0, 0.1) 0%, transparent 60%);
    --accent-tint: rgba(184, 204, 0, 0.1);
    --btn-text: #111827;
    --input-bg: #ffffff;
    --input-border: #d1d5db;
}

/* Dark Theme Variables */
[data-bs-theme="dark"] {
    --bg-primary: #07080d;
    --bg-secondary: #0f1016;
    --bg-gradient: linear-gradient(135deg, #07080d 0%, #13151f 100%);
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --card-bg: rgba(18, 20, 29, 0.7);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(7, 8, 13, 0.85);
    --hero-glow: radial-gradient(circle at 50% 50%, rgba(225, 255, 0, 0.08) 0%, transparent 70%);
    --accent-tint: rgba(225, 255, 0, 0.05);
    --btn-text: #07080d;
    --input-bg: rgba(255, 255, 255, 0.03);
    --input-border: rgba(255, 255, 255, 0.1);
}

/* Base resets & typography */
html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-gradient);
    color: var(--text-primary);
    overflow-x: hidden;
    max-width: 100vw;
    transition: var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(225, 255, 0, 0.5);
}

/* Utilities & Gradients */
.text-gradient-brand {
    background: linear-gradient(135deg, var(--brand-yellow) 0%, #ffdf00 50%, var(--brand-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient-lime {
    background: linear-gradient(135deg, var(--brand-yellow) 0%, #c4e000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-glass {
    background: var(--card-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

/* Navigation bar */
.navbar-brand {
    gap: 8px;
}

.navbar-brand .brand-icon {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.navbar-brand .brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--brand-red);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.custom-nav {
    transition: var(--transition-smooth);
    background: transparent;
    border-bottom: 1px solid transparent;
}

.custom-nav.scrolled {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding-top: 10px;
    padding-bottom: 10px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-primary) !important;
    margin: 0 10px;
    position: relative;
    opacity: 0.85;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-yellow);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--card-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: var(--accent-tint);
    border-color: var(--brand-yellow);
    box-shadow: 0 0 10px rgba(225, 255, 0, 0.2);
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-glow-effect {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -10%);
    width: 80%;
    height: 80%;
    background: var(--hero-glow);
    z-index: -1;
    pointer-events: none;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    overflow: hidden;
}

.hero-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
}

.badge-available {
    background: rgba(225, 255, 0, 0.1);
    border: 1px solid rgba(225, 255, 0, 0.3);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: floatBadge 3s ease-in-out infinite;
}

.badge-available .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-yellow);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--brand-yellow);
    animation: dotPulse 1.5s infinite alternate;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

/* Styled Buttons */
.btn-brand-primary {
    background: var(--brand-yellow);
    color: #000000;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    border: 1px solid var(--brand-yellow);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(225, 255, 0, 0.15);
}

.btn-brand-primary:hover {
    background: transparent;
    color: var(--brand-yellow);
    box-shadow: 0 4px 25px rgba(225, 255, 0, 0.3);
    transform: translateY(-2px);
}

.btn-brand-outline {
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    transition: var(--transition-smooth);
}

.btn-brand-outline:hover {
    background: var(--accent-tint);
    border-color: var(--brand-yellow);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Hero Stats */
.stat-card {
    padding: 20px;
    text-align: center;
    border-radius: 12px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    color: var(--brand-yellow);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* What We Build Quick Links */
.quick-links-container {
    margin-top: 40px;
    border-top: 1px dashed var(--card-border);
    padding-top: 25px;
}

.quick-link-tag {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    transition: var(--transition-smooth);
    display: inline-block;
}

.quick-link-tag:hover {
    color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    background: var(--accent-tint);
    transform: scale(1.05);
}

/* Section Styling */
.section-padding {
    padding: 100px 0;
}

.section-subtitle {
    color: var(--brand-yellow);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
    border-left: 3px solid var(--brand-yellow);
    padding-left: 10px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* Services Cards */
.service-card {
    height: 100%;
    padding: 40px 30px;
    border-radius: 16px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--brand-yellow), var(--brand-red));
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(225, 255, 0, 0.2);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .service-card:hover {
    box-shadow: 0 20px 45px -15px rgba(225, 255, 0, 0.08);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--accent-tint);
    color: var(--brand-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    border: 1px solid rgba(225, 255, 0, 0.1);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    background: var(--brand-yellow);
    color: #000000;
    transform: scale(1.1) rotate(5deg);
}

.service-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About & Why Us Section */
.why-us-item {
    padding: 25px;
    border-radius: 12px;
    height: 100%;
    transition: var(--transition-smooth);
}

.why-us-item:hover {
    background: var(--accent-tint);
    transform: translateX(5px);
}

.why-number {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--brand-yellow);
    margin-bottom: 10px;
    display: inline-block;
    opacity: 0.8;
}

/* Interactive Pricing System */
.pricing-tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.pricing-tab-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.pricing-tab-btn:hover {
    border-color: var(--brand-yellow);
    background: var(--accent-tint);
}

.pricing-tab-btn.active {
    background: var(--brand-yellow);
    color: #000000;
    border-color: var(--brand-yellow);
    box-shadow: 0 4px 15px rgba(225, 255, 0, 0.25);
}

.pricing-container {
    position: relative;
    min-height: 450px;
}

.pricing-grid {
    display: none;
    animation: fadeInTab 0.5s ease forwards;
}

.pricing-grid.active {
    display: flex;
}

.pricing-card {
    border-radius: 16px;
    padding: 40px 30px;
    height: 100%;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    border: 2px solid var(--brand-yellow) !important;
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand-yellow);
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .pricing-card:hover {
    box-shadow: 0 20px 45px -15px rgba(225, 255, 0, 0.05);
}

.price-box {
    margin-bottom: 25px;
}

.price-title {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.price-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--brand-yellow);
    font-family: var(--font-heading);
}

.price-value small {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.pricing-features-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-features-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.pricing-features-list li i {
    color: var(--brand-yellow);
    margin-top: 3px;
}

/* Portfolio Filters */
.portfolio-filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.portfolio-filter-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
    border-color: var(--brand-yellow);
    color: var(--text-primary);
    background: var(--accent-tint);
}

.portfolio-item {
    margin-bottom: 30px;
    animation: scaleInPortfolio 0.4s ease forwards;
}

.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    position: relative;
    group: hover;
    transition: var(--transition-smooth);
}

.portfolio-img-box {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-primary);
}

.portfolio-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 8, 13, 0.95), rgba(7, 8, 13, 0.4));
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-img-box img {
    transform: scale(1.1);
}

.portfolio-category-badge {
    align-self: flex-start;
    background: var(--brand-yellow);
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.portfolio-card-title {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.portfolio-card-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Contact Form styling */
.contact-glow-effect {
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -20%);
    width: 70%;
    height: 70%;
    background: var(--hero-glow);
    z-index: 0;
    pointer-events: none;
}

.contact-info-card {
    padding: 30px;
    border-radius: 16px;
    height: 100%;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 10px;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.contact-info-item:hover {
    background: rgba(225, 255, 0, 0.05);
    transform: translateX(6px);
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: var(--accent-tint);
    border: 1px solid rgba(225, 255, 0, 0.1);
    color: var(--brand-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.contact-info-item:hover .contact-info-icon {
    transform: scale(1.1) rotate(-6deg);
    box-shadow: 0 0 15px rgba(225, 255, 0, 0.25);
}

.contact-info-icon-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.2);
    color: #25d366;
}

.contact-info-item:hover .contact-info-icon-whatsapp {
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.25);
}

.contact-info-text h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-info-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-info-text a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-info-text a:hover {
    color: var(--brand-yellow);
}

.contact-form-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-yellow), var(--brand-red));
}

.form-control-custom {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary) !important;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control-custom:focus {
    background: var(--input-bg);
    border-color: var(--brand-yellow);
    box-shadow: 0 0 12px rgba(225, 255, 0, 0.15);
    outline: none;
}

.form-control-custom::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-control-custom option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-check-input:checked {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
}

.form-check-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Success Card Form Overlay */
.contact-success-wrapper {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    animation: scaleInPortfolio 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-check-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(225, 255, 0, 0.1);
    color: var(--brand-yellow);
    border: 2px solid var(--brand-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(225, 255, 0, 0.2);
}

/* Scroll-to-Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--brand-yellow);
    color: #000000;
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(225, 255, 0, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(225, 255, 0, 0.5);
}

/* WhatsApp Floating Widget */
.whatsapp-chat-widget {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 1000;
    font-family: var(--font-body);
}

.whatsapp-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Footer styling */
.footer-logo img {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.footer-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--brand-yellow);
}

.footer-links-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

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

.footer-links-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links-list a:hover {
    color: var(--brand-yellow);
    padding-left: 5px;
}

/* Animations Keyframes */
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes dotPulse {
    from { opacity: 0.4; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.1); }
}

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

@keyframes scaleInPortfolio {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Scroll Animation classes */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Utility */
.max-width-600 {
    max-width: 600px;
    width: 100%;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — No horizontal scroll on any device
   ═══════════════════════════════════════════════ */

/* Global overflow guard */
*,
*::before,
*::after {
    box-sizing: border-box;
}

section,
.container,
.container-fluid,
.row {
    max-width: 100%;
}

img,
video,
canvas,
svg,
iframe {
    max-width: 100%;
}

/* ── Tablet & below (≤991px) ─────────────────── */
@media (max-width: 991.98px) {
    .hero-wrapper {
        padding-top: 130px;
        padding-bottom: 60px;
    }

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

    .hero-glow-effect {
        width: 100%;
        height: 60%;
    }

    .whatsapp-chat-widget {
        bottom: 85px;
        right: 20px;
    }

    .scroll-to-top {
        bottom: 25px;
        right: 20px;
    }

    /* Pricing tabs wrap properly */
    .pricing-tabs-container {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 10px;
    }
}

/* ── Tablet (≤767px) ─────────────────────────── */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 55px 0;
    }

    .navbar-brand .brand-icon {
        height: 32px;
    }

    .navbar-brand .brand-text {
        font-size: 1rem;
    }

    .hero-wrapper {
        padding-top: 120px;
        padding-bottom: 50px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-card {
        padding: 14px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .portfolio-overlay {
        padding: 18px;
    }

    .contact-info-card {
        padding: 20px;
    }

    /* Pricing tabs smaller on tablet */
    .pricing-tab-btn {
        font-size: 0.82rem;
        padding: 7px 13px;
    }

    /* Footer columns stack */
    .footer-logo img {
        height: 36px;
    }
}

/* ── Mobile (≤575px) ─────────────────────────── */
@media (max-width: 575.98px) {
    /* ---- Layout ---- */
    .hero-wrapper {
        padding-top: 100px;
        padding-bottom: 45px;
    }

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

    /* ---- Navbar ---- */
    .navbar-brand .brand-icon {
        height: 28px;
    }

    .navbar-brand .brand-text {
        display: none !important; /* hide on tiny screens, icon enough */
    }

    /* ---- Hero ---- */
    .badge-available {
        font-size: 0.72rem;
        padding: 5px 11px;
        white-space: normal;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(1.9rem, 7.5vw, 2.8rem);
        letter-spacing: -0.5px;
    }

    /* ---- Quick links ---- */
    .quick-link-tag {
        font-size: 0.78rem;
        padding: 5px 10px;
    }

    /* ---- Stats ---- */
    .stat-number {
        font-size: 1.75rem;
    }

    .stat-card {
        padding: 12px;
    }

    /* ---- Section headings ---- */
    .section-title {
        font-size: clamp(1.55rem, 6vw, 2.2rem);
        letter-spacing: -0.2px;
    }

    /* ---- Pricing ---- */
    .pricing-tabs-container {
        gap: 6px;
        margin-bottom: 30px;
    }

    .pricing-tab-btn {
        font-size: 0.78rem;
        padding: 6px 11px;
        border-radius: 6px;
    }

    .pricing-card {
        padding: 24px 16px;
    }

    /* ---- Portfolio filter ---- */
    .portfolio-filter-btn {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    /* ---- Contact ---- */
    .contact-info-card {
        padding: 16px;
    }

    .contact-info-item {
        gap: 12px;
    }

    .contact-form-card {
        padding: 20px 16px !important;
    }

    /* ---- Floating buttons ---- */
    .scroll-to-top {
        width: 38px;
        height: 38px;
        bottom: 18px;
        right: 14px;
        font-size: 0.95rem;
    }

    .whatsapp-chat-widget {
        bottom: 70px;
        right: 14px;
    }

    .whatsapp-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    /* ---- Footer ---- */
    .footer-logo img {
        height: 32px;
    }
}

/* ── Very small (≤380px) ─────────────────────── */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .pricing-tab-btn {
        font-size: 0.72rem;
        padding: 5px 9px;
    }

    .btn-brand-primary,
    .btn-brand-outline {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}
