/* DEK İç Mimarlık - Custom CSS */

/* Lazy Loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Dark Theme Hero Styles */
.hero-content {
    animation: fadeInUp 1.2s ease-out;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Text Animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Glass Effect */
.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover Effects */
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Navigation */
.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.slider-dot:hover {
    transform: scale(1.1);
}

/* Header Enhancements */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(49, 130, 206, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #1a365d, #3182ce, #d69e2e);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced Animations */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 2s ease-in-out infinite;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* 3D Transform Effects */
.transform-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.rotate-y-180 {
    transform: rotateY(180deg);
}

/* Backdrop Blur Support */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Enhanced Shadows */
.shadow-glow {
    box-shadow: 0 0 20px rgba(49, 130, 206, 0.3);
}

.shadow-glow-gold {
    box-shadow: 0 0 20px rgba(214, 158, 46, 0.3);
}

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

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

/* Image Overlay Effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(26, 54, 93, 0.8), rgba(49, 130, 206, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.image-overlay:hover::before {
    opacity: 1;
}

.image-overlay .overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.image-overlay:hover .overlay-content {
    opacity: 1;
}

/* Button Styles */
.btn-primary {
    @apply bg-dek-accent text-white px-6 py-3 rounded-lg font-medium transition-all duration-300 hover:bg-blue-700 hover:shadow-lg;
}

.btn-secondary {
    @apply bg-transparent border-2 border-dek-accent text-dek-accent px-6 py-3 rounded-lg font-medium transition-all duration-300 hover:bg-dek-accent hover:text-white;
}

.btn-outline {
    @apply bg-transparent border-2 border-white text-white px-6 py-3 rounded-lg font-medium transition-all duration-300 hover:bg-white hover:text-dek-primary;
}

/* Form Styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-dek-accent focus:border-transparent transition-all duration-300;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-dek-accent focus:border-transparent transition-all duration-300 resize-vertical min-h-[120px];
}

.form-select {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-dek-accent focus:border-transparent transition-all duration-300 bg-white;
}

/* Section Spacing */
.section-padding {
    @apply py-16 lg:py-24;
}

/* Typography */
.heading-primary {
    @apply text-4xl lg:text-5xl font-bold text-dek-primary font-serif leading-tight;
}

.heading-secondary {
    @apply text-3xl lg:text-4xl font-bold text-dek-primary font-serif leading-tight;
}

.heading-tertiary {
    @apply text-2xl lg:text-3xl font-semibold text-dek-primary font-serif;
}

.text-lead {
    @apply text-lg lg:text-xl text-gray-600 leading-relaxed;
}

/* Grid Layouts */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Masonry Layout for Projects */
.masonry {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 640px) {
    .masonry {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .masonry {
        column-count: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3182ce;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Breadcrumb */
.breadcrumb a {
    @apply hover:text-dek-accent transition-colors;
}

/* Pagination */
.pagination {
    @apply flex justify-center items-center space-x-2 mt-8;
}

.pagination a,
.pagination span {
    @apply px-3 py-2 border border-gray-300 rounded-md text-sm font-medium;
}

.pagination a {
    @apply text-gray-700 hover:bg-gray-50 hover:text-dek-accent transition-colors;
}

.pagination .current {
    @apply bg-dek-accent text-white border-dek-accent;
}

.pagination .disabled {
    @apply text-gray-400 cursor-not-allowed;
}

/* Modal */
.modal {
    @apply fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden;
}

.modal.active {
    @apply block;
}

.modal-content {
    @apply bg-white rounded-lg p-6 max-w-lg w-full mx-4 max-h-screen overflow-y-auto;
}

/* Tabs */
.tab-nav {
    @apply flex border-b border-gray-200 mb-6;
}

.tab-nav button {
    @apply px-4 py-2 text-sm font-medium text-gray-500 hover:text-gray-700 border-b-2 border-transparent hover:border-gray-300 transition-colors;
}

.tab-nav button.active {
    @apply text-dek-accent border-dek-accent;
}

.tab-content {
    @apply hidden;
}

.tab-content.active {
    @apply block;
}

/* Testimonials */
.testimonial-slider {
    @apply relative overflow-hidden;
}

.testimonial-slide {
    @apply opacity-0 transition-opacity duration-500 absolute inset-0;
}

.testimonial-slide.active {
    @apply opacity-100 relative;
}

/* Progress Bar */
.progress-bar {
    @apply w-full bg-gray-200 rounded-full h-2;
}

.progress-fill {
    @apply bg-dek-accent h-2 rounded-full transition-all duration-300;
}

/* Responsive Images */
.responsive-img {
    @apply w-full h-auto object-cover;
}

/* Aspect Ratios */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-photo {
    aspect-ratio: 4 / 3;
}

/* Utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}
