/* Google Fonts */
@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 and Themes */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Default Dark Theme Settings */
    --bg-primary: #121214;
    --bg-secondary: #1a1a1e;
    --bg-tertiary: #232329;
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-primary: #f8f9fa;
    --text-secondary: #a0a0ab;
    --text-muted: #6c757d;
    
    --primary-color: #ff4d30;
    --primary-hover: #e03b22;
    --primary-light: rgba(255, 77, 48, 0.1);
    
    --secondary-color: #2b2d42;
    --glass-bg: rgba(26, 26, 30, 0.75);
    --glass-border: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.4);
    --card-hover-y: -8px;
    
    --toast-bg: #1a1a1e;
    --accordion-arrow-invert: 1;
}

[data-theme="light"] {
    /* Light Theme Settings */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f3f5;
    --border-color: rgba(0, 0, 0, 0.08);
    
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #adb5bd;
    
    --primary-color: #ff4d30;
    --primary-hover: #e03b22;
    --primary-light: rgba(255, 77, 48, 0.08);
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
    
    --toast-bg: #ffffff;
    --accordion-arrow-invert: 0;
}

/* Theme Utility Overrides for Bootstrap conflicts */
.bg-primary {
    background-color: var(--bg-primary) !important;
}
.bg-secondary {
    background-color: var(--bg-secondary) !important;
}
.bg-tertiary {
    background-color: var(--bg-tertiary) !important;
}
.text-primary {
    color: var(--primary-color) !important;
}
.text-secondary {
    color: var(--text-secondary) !important;
}
.text-muted {
    color: var(--text-muted) !important;
}
.border-secondary {
    border-color: var(--border-color) !important;
}
.text-body {
    color: var(--text-primary) !important;
}

/* Custom Accordion overrides */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-light) !important;
    color: var(--primary-color) !important;
    box-shadow: none !important;
}
.accordion-button:focus {
    box-shadow: none !important;
    border-color: var(--primary-color) !important;
}
.accordion-button::after {
    filter: invert(var(--accordion-arrow-invert, 0));
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--primary-hover);
}

/* Premium Typography */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8b3d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Glassmorphism Navbar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    z-index: 1050;
    transition: padding 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    color: var(--text-primary) !important;
}

.navbar-brand span {
    color: var(--primary-color);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--primary-light);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--primary-color);
}

/* Modern Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 77, 48, 0.08) 0%, rgba(18, 18, 20, 0.95) 70%);
    z-index: 1;
}

[data-theme="light"] .hero-overlay {
    background: radial-gradient(circle at 70% 30%, rgba(255, 77, 48, 0.04) 0%, rgba(248, 249, 250, 0.95) 75%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-tag {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 77, 48, 0.2);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 580px;
}

.text-center .hero-desc {
    margin-left: auto;
    margin-right: auto;
}

/* Custom Premium Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 77, 48, 0.35);
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 48, 0.5);
}

.btn-secondary-custom {
    background: transparent;
    color: var(--text-primary) !important;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}
.btn-secondary-custom:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

/* Modern Cards */
.modern-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(var(--card-hover-y));
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 77, 48, 0.3);
}

.modern-card .card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

/* Service Images Hover Effect */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}
.img-hover-zoom img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.img-hover-zoom:hover img {
    transform: scale(1.08);
}

/* Before/After Slider Layout */
.comparison-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}
.comparison-slider img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}
.comparison-slider .resize-img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
}
.comparison-slider .resize-img img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    max-width: none;
}
.comparison-slider .slider-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #ffffff;
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.comparison-slider .slider-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: 4px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Floating Elements & Widgets */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
}

.whatsapp-btn {
    background-color: #25d366;
    color: #ffffff !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}
.whatsapp-btn:hover {
    transform: scale(1.08) rotate(10deg);
}

.sticky-ctas {
    position: fixed;
    left: 20px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sticky-cta-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.sticky-cta-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer Section */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px 0;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text-primary);
}
.footer-logo span {
    color: var(--primary-color);
}

.footer-heading {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer-link {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}
.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Forms styling */
.form-control-custom {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    border-radius: 12px;
    padding: 12px 18px;
    transition: all 0.2s ease;
}
.form-control-custom:focus {
    background-color: var(--bg-tertiary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

/* Animated Counters */
.counter-box {
    text-align: center;
}
.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.counter-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Portfolio Filters */
.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    margin: 5px;
    transition: all 0.2s ease;
}
.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* Drag-Drop Zone */
.dropzone-area {
    border: 2px dashed var(--border-color);
    background-color: var(--bg-tertiary);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dropzone-area:hover, .dropzone-area.dragover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.dropzone-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Testimonials Slide design */
.testimonial-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
}
.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 25px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

/* Toast System styling */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}
.toast-custom {
    background-color: var(--toast-bg);
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    margin-bottom: 10px;
    min-width: 300px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}
.toast-custom.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-custom.toast-success {
    border-left-color: #25d366;
}
.toast-custom.toast-error {
    border-left-color: #ff4d30;
}

/* Responsive styles */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .navbar-collapse {
        background-color: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: var(--shadow-lg);
    }
    .nav-link {
        margin: 5px 0;
    }
}
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
    .btn-primary-custom, .btn-secondary-custom {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}
