/* Common Styles for All Pages */
.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 10;
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
    margin-bottom: -2px;
}

.shape-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.shape-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
    margin-top: -2px;
}

/* Enhanced Background Patterns for Depth */
.geometric-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 31, 105, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 193, 7, 0.1) 2px, transparent 2px);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

.dots-pattern {
    background-image: radial-gradient(circle, rgba(156, 39, 176, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
}

.lines-pattern {
    background-image:
        linear-gradient(45deg, rgba(76, 175, 79, 0.1) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(0, 150, 136, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.zigzag-pattern {
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 31, 105, 0.05) 10px, rgba(255, 31, 105, 0.05) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255, 193, 7, 0.05) 10px, rgba(255, 193, 7, 0.05) 20px);
}

.waves-pattern {
    background-image:
        radial-gradient(ellipse at center, rgba(255, 31, 105, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(255, 193, 7, 0.08) 20%, transparent 70%);
    background-size: 80px 40px, 120px 60px;
    background-position: 0 0, 40px 20px;
    animation: drift 20s ease-in-out infinite;
}

/* Advanced Gradients */
.hero-bg {
    background: linear-gradient(135deg,
            #6D1B9F 0%,
            #40125C 25%,
            #4CAF4F 50%,
            #9C27B0 75%,
            #009688 100%);
    background-size: 400% 400%;
    animation: rainbow 12s ease infinite;

}

/* Enhanced Card Gradients */
.card-gradient-1 {
    background: linear-gradient(135deg, #ff1f69, #ffc107);
}

.card-gradient-2 {
    background: linear-gradient(135deg, #4caf4f, #009688);
}

.card-gradient-3 {
    background: linear-gradient(135deg, #9c27b0, #ff1f69);
}

.card-gradient-4 {
    background: linear-gradient(135deg, #ffc107, #4caf4f);
}

.card-gradient-5 {
    background: linear-gradient(135deg, #009688, #9c27b0);
}

.card-gradient-6 {
    background: linear-gradient(135deg, #ff1f69, #009688);
}

/* Enhanced Blob Backgrounds with depth */
.blob-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: blob 7s ease-in-out infinite;
    opacity: 0.7;
    will-change: transform;
}

.blob-1 {
    background: linear-gradient(45deg, #ff1f69, #ffc107);
    top: 10%;
    left: 10%;
    width: 200px;
    height: 200px;
    animation: morph 10s ease-in-out infinite;
}

.blob-2 {
    background: linear-gradient(45deg, #4caf4f, #009688);
    top: 50%;
    right: 10%;
    width: 150px;
    height: 150px;
    animation: morph 12s ease-in-out infinite;
    animation-delay: 2s;
}

.blob-3 {
    background: linear-gradient(45deg, #9c27b0, #ff1f69);
    bottom: 20%;
    left: 20%;
    width: 180px;
    height: 180px;
    animation: morph 14s ease-in-out infinite;
    animation-delay: 4s;
}

/* Enhanced Background Layers for Depth */
.layered-bg-1 {
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 31, 105, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(76, 175, 79, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #fff0f5 0%, #fff8e1 100%);
}

.layered-bg-2 {
    background:
        radial-gradient(circle at 70% 30%, rgba(156, 39, 176, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(0, 150, 136, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, #f3e5f5 0%, #e0f2f1 100%);
}

.layered-bg-3 {
    background:
        radial-gradient(ellipse at top left, rgba(255, 31, 105, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
        linear-gradient(to bottom right, #ffffff 0%, #f8fafc 100%);
}

/* Interactive Elements */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.card-hover:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.card-hover:hover::before {
    left: 100%;
}

/* Enhanced Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Particle System */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

/* Additional Depth Elements */
.depth-layer-1 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(600px circle at 25% 25%, rgba(255, 31, 105, 0.05), transparent),
        radial-gradient(400px circle at 75% 75%, rgba(255, 193, 7, 0.05), transparent);
    pointer-events: none;
    z-index: -1;
}

.depth-layer-2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(800px circle at 60% 40%, rgba(76, 175, 79, 0.03), transparent),
        radial-gradient(500px circle at 20% 80%, rgba(156, 39, 176, 0.03), transparent);
    pointer-events: none;
    z-index: -2;
    animation: drift 25s ease-in-out infinite;
}

/* Text Effects */
.text-rainbow {
    background: linear-gradient(45deg, #ff1f69, #ffc107, #4caf4f, #009688, #9c27b0);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff1f69, #ffc107);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #e60050, #ffb300);
}

/* Contact Us Specific Styles */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #ff1f69;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links.active {
    display: flex;
}

.form-focus {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Gallery Specific Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
}

.modal img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ff1f69;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blob-bg {
        width: 120px !important;
        height: 120px !important;
    }

    .shape-divider svg,
    .shape-divider-top svg {
        height: 80px;
    }

    .mobile-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 20px 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item img {
        height: 200px;
    }
}

/* Subtle texture overlays */
.texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px);
    pointer-events: none;
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

img {
    height: auto;
    max-width: 100%;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}