/* Custom CSS for Driti's Portfolio and Beyond the Books */
:root {
    --light-base: #F5F5F7;
    --dark-text: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.4);
    --pink-accent: #E91E63;
    --purple-accent: #9C27B0;
}
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
    background: linear-gradient(135deg, #FFB6C1, #f5e3f7, #F5F5F7, #f0f0f0, #e0a3e8);
    background-size: 400% 400%;
    animation: gradient-animation 20s ease infinite;
}
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}
/* Enhanced Glassmorphism & Neumorphism Styles */
.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(233,30,99,0.08) 100%);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    border: 1.5px solid rgba(233,30,99,0.18);
    box-shadow: 0 8px 32px rgba(156,39,176,0.12), 0 2px 8px rgba(0,0,0,0.04);
    border-radius: 2rem;
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    /* iOS performance fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.glass-card:hover {
    transform: translateY(-8px) scale(1.04) translateZ(0);
    box-shadow: 0 24px 48px rgba(233,30,99,0.18), 0 8px 24px rgba(156,39,176,0.12);
    border-color: #E91E63;
}
/* Mobile-specific optimizations */
@media (max-width: 768px) {
    .glass-card {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    .glass-card:hover {
        transform: translateY(-4px) scale(1.02) translateZ(0);
    }
}
.neumorph-btn {
    background: linear-gradient(135deg, #f3e8ff 0%, #fff 100%);
    box-shadow: 8px 8px 24px #e0a3e8, -8px -8px 24px #fff;
    border-radius: 9999px;
    border: none;
    color: #9C27B0;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: box-shadow 0.3s, background 0.3s, color 0.3s;
}
.neumorph-btn:hover, .neumorph-btn:focus {
    background: linear-gradient(135deg, #E91E63 0%, #9C27B0 100%);
    color: #fff;
    box-shadow: 0 8px 32px #E91E63, 0 2px 8px #9C27B0;
    outline: none;
}
/* Enhanced glass nav */
.nav-glass {
    background: linear-gradient(90deg, rgba(255,240,245,0.7) 0%, rgba(233,30,99,0.08) 100%);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    border-bottom: 1.5px solid rgba(233,30,99,0.18);
}
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
    background: linear-gradient(135deg, #FFB6C1, #f5e3f7, #F5F5F7, #f0f0f0, #e0a3e8);
    background-size: 400% 400%;
    animation: gradient-animation 20s ease infinite;
}
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}
.glass-card {
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.glass-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 30px rgba(156, 39, 176, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
}
.nav-glass {
    background-color: rgba(255, 240, 245, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}
.contact-icon {
    transition: color 0.3s ease;
}
.contact-icon:hover {
    color: var(--pink-accent);
}
.art-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .art-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.art-grid-item {
    height: 100%;
}
.art-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.modal-overlay.hidden {
    display: none;
}
.modal-content {
    max-width: 95vw;
    max-height: 95vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-icon-fill {
    transition: fill 0.3s ease, stroke 0.3s ease;
}
.nav-link:hover .nav-icon-fill {
    fill: currentColor;
    stroke: none;
}
#rotating-text {
    display: inline-block;
    min-width: 300px;
    transition: opacity 0.5s ease-in-out;
}
.headline-fade-out {
    opacity: 0;
}
.headline-fade-in {
    opacity: 1;
}
.animated-driti > span {
    transition: transform 0.3s ease;
}
.animated-driti:hover > span {
    transform: translateY(-5px);
}
/* iPhone-compatible art gallery - matching working test page */
.simple-art-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 1rem;
}

.simple-art-image {
    width: 100% !important;
    height: 400px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    border-radius: 1rem 1rem 0 0 !important;
    background: #f8f9fa !important;
    border: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .simple-art-image {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    .simple-art-image {
        height: 280px !important;
    }
    
    .simple-art-card {
        margin-bottom: 1.5rem;
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .simple-art-image {
        -webkit-appearance: none !important;
        appearance: none !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
}

/* Remove complex transforms on mobile */
@media (max-width: 768px) {
    .art-image-container {
        height: 350px !important;
    }
    
    .art-image {
        transform: none !important;
        transition: none !important;
        -webkit-transform: none !important;
        object-fit: contain !important;
    }
    
    .art-card:hover .art-image {
        transform: none !important;
        -webkit-transform: none !important;
    }
    
    .group:hover .art-image {
        transform: none !important;
        -webkit-transform: none !important;
    }
}

/* Legacy support for old classes */
.art-uniform, .art-tall {
    width: 100%;
    height: 450px;
    object-fit: contain;
    object-position: center;
    border-radius: 1rem 1rem 0 0;
    transition: transform 0.3s ease;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}
/* Mobile optimizations for iPhone */
@media (max-width: 768px) {
    .art-uniform, .art-tall {
        height: 350px !important;
        object-fit: contain !important;
        transform: none !important;
        transition: none !important;
        -webkit-transform: none !important;
    }
    
    /* Disable hover effects on mobile */
    .group:hover .art-tall,
    .group:hover .art-uniform {
        transform: none !important;
        -webkit-transform: none !important;
    }
    
    .art-gallery-item {
        transform: none !important;
        -webkit-transform: none !important;
    }
    
    .art-gallery-item img {
        transform: none !important;
        -webkit-transform: none !important;
    }
}
/* Art gallery specific styles for mobile */
@media (max-width: 480px) {
    .art-gallery-item {
        margin-bottom: 1rem;
        min-height: 420px;
    }
    
    .art-image-container {
        height: 320px !important;
    }
    
    .art-gallery-item img, .art-image {
        height: 100% !important;
        width: 100% !important;
        object-fit: contain !important;
        display: block !important;
        background: #f0f0f0;
    }
}

/* Debugging for image loading issues */
.art-gallery-item img {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border: 1px solid #ddd;
}

.art-gallery-item img[src]:not([src=""]) {
    background: none;
    border: none;
}

/* Force layout for Safari iOS */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    .art-gallery-item {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .art-gallery-item img {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }
}
/* Ultra-modern glass dropdown styles */
.dropdown-menu {
    background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(233,30,99,0.10) 100%);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    border: 1.5px solid rgba(233,30,99,0.18);
    box-shadow: 0 8px 32px rgba(156,39,176,0.12), 0 2px 8px rgba(0,0,0,0.04);
    border-radius: 1.25rem;
    padding: 0.5rem 0;
    transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1);
    transform-origin: top;
    transform: scaleY(0.95);
    opacity: 0;
    pointer-events: none;
}
.dropdown-menu:not(.hidden) {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
}
.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    color: #9C27B0;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.dropdown-menu a:hover, .dropdown-menu a:focus {
    background: #f3e8ff;
    color: #E91E63;
    outline: none;
}
.carousel-container {
    position: relative;
}
.carousel-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    color: black;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}
.carousel-btn-prev {
    left: 0.5rem;
}
.carousel-btn-next {
    right: 0.5rem;
}
/* 1. Section Transitions */
.section-animate {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.section-animate.appear {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 2. Button Hover Effects */
.animated-btn {
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s cubic-bezier(0.4,0,0.2,1), background 0.2s;
}
.animated-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 24px rgba(233,30,99,0.15), 0 2px 8px rgba(156,39,176,0.08);
  background: linear-gradient(90deg, #E91E63 0%, #9C27B0 100%);
}

/* 3. Card Hover Animations */
.animated-card {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1), border-color 0.3s;
}
.animated-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 32px rgba(156,39,176,0.12), 0 4px 12px rgba(0,0,0,0.07);
  border-color: #E91E63;
}

/* Footer button color overrides */
.footer-btn-top {
    color: #E91E63 !important;
    background: #fff;
}
.footer-btn-top:hover, .footer-btn-top:focus {
    background: #E91E63;
    color: #fff !important;
}
.footer-btn-teachnova {
    color: #9C27B0 !important;
    background: #fff;
}
.footer-btn-teachnova:hover, .footer-btn-teachnova:focus {
    background: #9C27B0;
    color: #fff !important;
}
