/* Custom Styles for R Squared Digital Marketing */

:root {
    --primary: #1a56db;
    --primary-light: #3b75e8;
    --primary-dark: #0f3a9e;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    --font-primary: 'Inter', system-ui, sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    padding-top: 80px;
}

/* Header Styles */
#header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    text-decoration: none;
}

.logo-box {
    width: 48px;
    height: 48px;
}

.nav-link {
    font-weight: 500;
    color: #1f2937 !important;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f3a9e 0%, #1a56db 50%, #1a56db 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 40px;
    width: 288px;
    height: 288px;
    background: white;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: 80px;
    right: 40px;
    width: 384px;
    height: 384px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(80px);
}

.trust-badge {
    backdrop-filter: blur(10px);
}

.hero-visual {
    animation: fadeIn 0.8s ease-out;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
}

.wave-divider svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--accent);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* About Section Background */
.about-background {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.about-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 256px;
    height: 256px;
    background: white;
    border-radius: 50%;
    filter: blur(80px);
}

.about-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 25%;
    width: 384px;
    height: 384px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(80px);
}

/* CTA Background */
.cta-background {
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

.cta-background::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 384px;
    height: 384px;
    background: #000;
    border-radius: 50%;
    filter: blur(80px);
    transform: translate(50%, -50%);
}

.cta-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 256px;
    height: 256px;
    background: #000;
    border-radius: 50%;
    filter: blur(80px);
    transform: translate(-50%, 50%);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.float-animation-delay {
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Gradient Background */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.progress-bar.bg-gradient {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

/* Form Validation */
.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid {
    border-color: #198754;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 10px 20px rgba(26, 86, 219, 0.3);
}

.btn-warning:hover {
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

/* Portfolio Styles */
.portfolio-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.portfolio-image-placeholder {
    border-radius: 0.5rem;
    overflow: hidden;
}

.portfolio-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image-placeholder img {
    transform: scale(1.05);
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
}

/* Backdrop blur support */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Text Utilities */
.text-primary {
    color: var(--primary) !important;
}

.text-warning {
    color: var(--accent) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-warning {
    background-color: var(--accent) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-warning {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.btn-warning:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    color: #000;
}

