/* Custom Fonts */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

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

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

@keyframes slideBackground {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

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

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

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-slide {
    animation: slideBackground 20s linear infinite;
}

/* Navbar Scroll Effect */
#navbar.scrolled {
    background-color: rgba(23, 23, 23, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled .nav-logo,
#navbar.scrolled .nav-link {
    color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #262626;
}

::-webkit-scrollbar-thumb {
    background: #e11d48;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #be123c;
}

/* Portfolio Hover Effects */
.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-item img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Service Card Hover */
.service-card {
    transition: all 0.3s ease;
}

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

/* Form Inputs Focus */
input:focus,
textarea:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
}

#mobile-menu.show {
    display: block;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Smooth Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Button Hover Effects */
button,
a.inline-block {
    transition: all 0.3s ease;
}

/* Section Transitions */
section {
    scroll-margin-top: 80px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Shadows */
.card-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-shadow:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Background Patterns */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Hero Section Overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.8) 0%, rgba(225, 29, 72, 0.6) 100%);
}

/* Responsive Grid */
@media (max-width: 640px) {
    .grid {
        gap: 1rem;
    }
}

/* Social Media Icons Hover */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Form Button Hover */
form button[type="submit"]:hover {
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.3);
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid #e11d48;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav,
    footer,
    #contact {
        display: none;
    }
}
