/* Oficina de Sites - Custom Styles */

/* CSS Variables */
:root {
    --primary-color: #8b5cf6;
    --secondary-color: #3b82f6;
    --gradient-primary: linear-gradient(135deg, #8b5cf6, #3b82f6);
    --gradient-hero: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #10b981 100%);
    --shadow-elegant: 0 10px 25px -5px rgba(139, 92, 246, 0.1);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

html {
    scroll-behavior: smooth;
}

/* Utility Classes */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-elegant);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

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

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

/* Header Styles */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: var(--transition-smooth);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: #4b5563 !important;
    transition: var(--transition-smooth);
}

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

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-highlight {
    background: linear-gradient(135deg, #fde047, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-decoration-1 {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-decoration-2 {
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: pulse 2s infinite 1s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Services Section */
.service-card {
    transition: var(--transition-smooth);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elegant);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

/* Portfolio Section */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elegant);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.portfolio-info {
    color: white;
}

.portfolio-info h5 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.portfolio-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Contact Section */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

/* Social Icons */
.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    transform: translateY(-2px);
    color: white;
}

.social-icon.whatsapp {
    background-color: #25d366;
}

.social-icon.whatsapp:hover {
    background-color: #128c7e;
}

.social-icon.facebook {
    background-color: #1877f2;
}

.social-icon.facebook:hover {
    background-color: #166fe5;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.instagram:hover {
    opacity: 0.9;
}

.social-icon.linkedin {
    background-color: #0077b5;
}

.social-icon.linkedin:hover {
    background-color: #005885;
}

/* Footer */
footer a:hover {
    color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-1 {
        font-size: 2.5rem;
    }
    
    .lead.fs-2 {
        font-size: 1.25rem !important;
    }
    
    .hero-decoration-1,
    .hero-decoration-2 {
        display: none;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Loading Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

/* Success Message */
.alert-success-custom {
    background: var(--gradient-primary);
    border: none;
    color: white;
    border-radius: 8px;
}

/* Smooth scrolling offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}