/*
Theme Name: NovaBerry Agency
Description: A modern agency theme converted from Next.js with exact styling
Version: 2.1
Author: Vinay
*/

/* Cache Busting - Version 2.1.<?php echo time(); ?> */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.6;
    color: #374151;
    background-color: #ffffff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Spacing */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-20 { padding-top: 5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

@media (min-width: 768px) {
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:text-5xl { font-size: 3rem; }
}

@media (min-width: 1024px) {
    .lg\:text-6xl { font-size: 3.75rem; }
}

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Colors */
.text-white { color: #ffffff !important; }
.text-gray-400 { color: #9ca3af !important; }
.text-gray-600 { color: #6b7280 !important; }
.text-gray-700 { color: #374151 !important; }
.text-gray-800 { color: #1f2937 !important; }
.text-blue-600 { color: #2563eb !important; }
.text-blue-700 { color: #1d4ed8 !important; }
.text-blue-100 { color: #dbeafe !important; }

.bg-white { background-color: #ffffff !important; }
.bg-gray-50 { background-color: #f9fafb !important; }
.bg-gray-800 { background-color: #1f2937 !important; }
.bg-blue-50 { background-color: #eff6ff !important; }
.bg-blue-600 { background-color: #2563eb !important; }
.bg-blue-700 { background-color: #1d4ed8 !important; }

/* Hover Effects */
.hover\:text-blue-600:hover { color: #2563eb !important; }
.hover\:text-blue-700:hover { color: #1d4ed8 !important; }
.hover\:text-white:hover { color: #ffffff !important; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8 !important; }
.hover\:bg-blue-50:hover { background-color: #eff6ff !important; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6 !important; }

.transition-colors { transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out; }

/* Header */
header {
    background-color: #ffffff !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: transform 0.3s ease;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

header img {
    height: 10rem !important;
    width: auto;
    max-width: 350px;
}

@media (max-width: 768px) {
    header img {
        height: 6rem !important;
        max-width: 250px;
    }
}

/* Navigation */
nav {
    display: none;
}

@media (min-width: 768px) {
    nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

nav a {
    color: #374151;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

nav a:hover {
    color: #2563eb;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.mobile-menu a:hover {
    color: #2563eb;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.15s ease-in-out;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
}

.btn-outline {
    border: 1px solid #2563eb;
    color: #2563eb !important;
    background-color: transparent !important;
}

.btn-outline:hover {
    background-color: #eff6ff !important;
    color: #2563eb !important;
}

.btn-rounded {
    border-radius: 9999px;
}

/* Cards */
.card {
    background-color: #ffffff !important;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 1.5rem;
}

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

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Gradients */
.bg-gradient-to-br {
    background: linear-gradient(to bottom right, #eff6ff, #ffffff, #e0e7ff) !important;
}

.bg-gradient-to-r {
    background: linear-gradient(to right, #f9fafb, #eff6ff) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom right, #eff6ff, #ffffff, #e0e7ff) !important;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-section .container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937 !important;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 3.75rem;
    }
}

.hero-content .text-blue-600 {
    color: #2563eb !important;
}

.hero-content p {
    font-size: 1.125rem;
    color: #6b7280 !important;
    line-height: 1.625;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Services Section */
.services-section {
    background: linear-gradient(to bottom right, #ffffff, #eff6ff, #e0e7ff) !important;
    padding: 5rem 0;
    position: relative;
}

.services-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background-color: #ffffff !important;
    padding: 1.5rem;
    text-align: center;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #dbeafe;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.service-icon svg {
    width: 2rem;
    height: 2rem;
}

.yellow-icon {
    background-color: #fef3c7;
    color: #d97706;
}

.green-icon {
    background-color: #dcfce7;
    color: #16a34a;
}

.purple-icon {
    background-color: #f3e8ff;
    color: #9333ea;
}

.red-icon {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Process Section */
.process-section {
    background-color: #eff6ff !important;
    padding: 5rem 0;
}

.process-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .process-content {
        grid-template-columns: 1fr 1fr;
    }
}

.process-visual {
    width: 100%;
    height: 24rem;
    background: linear-gradient(to bottom right, #bfdbfe, #93c5fd) !important;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.process-icon {
    width: 8rem;
    height: 8rem;
    background-color: #2563eb !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.process-icon svg {
    width: 4rem;
    height: 4rem;
    color: #ffffff !important;
}

.process-steps {
    margin: 2rem 0;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 2rem;
    height: 2rem;
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Portfolio Section */
.portfolio-section {
    background-color: #f9fafb !important;
    padding: 5rem 0;
}

.portfolio-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-item {
    background-color: #ffffff !important;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    height: 16rem;
    overflow: hidden;
}

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

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

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.portfolio-tag {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 9999px;
}

.tag-green {
    background-color: #dcfce7;
    color: #166534;
}

.tag-blue {
    background-color: #dbeafe;
    color: #1e40af;
}

.tag-purple {
    background-color: #f3e8ff;
    color: #7c3aed;
}

.tag-orange {
    background-color: #fed7aa;
    color: #ea580c;
}

.tag-red {
    background-color: #fecaca;
    color: #dc2626;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #ffffff !important;
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-weight: 700;
    margin-right: 0.75rem;
}

.avatar-blue { background-color: #2563eb !important; }
.avatar-green { background-color: #16a34a !important; }
.avatar-purple { background-color: #9333ea !important; }

.star-rating {
    display: flex;
    gap: 0.25rem;
    margin: 1rem 0;
}

.star {
    color: #fbbf24;
    font-size: 1rem;
}

/* Contact Section */
.contact-section {
    background-color: #eff6ff !important;
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background-color: #2563eb !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #ffffff !important;
}

.contact-form {
    background-color: #ffffff !important;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form button {
    width: 100%;
    background-color: #2563eb !important;
    color: #ffffff !important;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.contact-form button:hover {
    background-color: #1d4ed8 !important;
}

/* CTA Section */
.cta-section {
    background-color: #2563eb !important;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: #ffffff !important;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .cta-section h2 {
        font-size: 2.5rem;
    }
}

.cta-section p {
    color: #dbeafe !important;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: #1f2937 !important;
    color: #ffffff !important;
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

footer img {
    height: 6rem;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

footer p {
    color: #9ca3af !important;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #9ca3af !important;
    transition: color 0.15s ease-in-out;
}

.social-links a:hover {
    color: #60a5fa !important;
}

.social-links svg {
    width: 1.25rem;
    height: 1.25rem;
}

footer h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff !important;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul a {
    color: #9ca3af !important;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

footer ul a:hover {
    color: #ffffff !important;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af !important;
}

/* Responsive Utilities */
.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md\:block {
        display: block;
    }
    .md\:hidden {
        display: none;
    }
    .md\:flex {
        display: flex;
    }
    .md\:inline-block {
        display: inline-block;
    }
}

/* Decorative Elements */
.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.overflow-hidden {
    overflow: hidden;
}

.rounded-full {
    border-radius: 9999px;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-30 {
    opacity: 0.3;
}

.opacity-40 {
    opacity: 0.4;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-60 {
    opacity: 0.6;
}

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

/* Animation utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Z-index utilities */
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }