/* Custom CSS for divinline website */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1590d1;
}

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

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

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

/* Transitions for interactive elements */
button, a, input, textarea, select {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* Focus styles for accessibility */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(28, 167, 236, 0.2);
}

/* Remove default button styles */
button {
    cursor: pointer;
    font-family: inherit;
}

/* Portfolio item transitions */
.portfolio-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #1ca7ec 0%, #1590d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Image hover effect */
.image-hover-zoom {
    overflow: hidden;
}

.image-hover-zoom img {
    transition: transform 0.5s ease;
}

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

/* Chatbot Styles */
.chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1ca7ec 0%, #1590d1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(28, 167, 236, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(28, 167, 236, 0.6);
}

.chatbot-button.open {
    transform: rotate(90deg);
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.open {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

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

.chatbot-header {
    background: linear-gradient(135deg, #1ca7ec 0%, #1590d1 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1ca7ec;
}

.chatbot-status {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    position: absolute;
    bottom: 2px;
    right: 2px;
    border: 2px solid white;
}

.chatbot-close {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f9fafb;
}

.chat-message {
    display: flex;
    margin-bottom: 16px;
    animation: messageSlide 0.3s ease-out;
}

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

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.message-avatar.bot {
    background: linear-gradient(135deg, #1ca7ec 0%, #1590d1 100%);
    color: white;
    margin-right: 8px;
}

.message-avatar.user {
    background: #e5e7eb;
    color: #6b7280;
    margin-left: 8px;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    word-wrap: break-word;
}

.message-bubble.bot {
    background: white;
    color: #1f2937;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-bubble.user {
    background: linear-gradient(135deg, #1ca7ec 0%, #1590d1 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.chatbot-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.chatbot-input-container {
    padding: 16px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.chatbot-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

.chatbot-input:focus {
    border-color: #1ca7ec;
}

.chatbot-send {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1ca7ec 0%, #1590d1 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.chatbot-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(28, 167, 236, 0.4);
}

.chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.quick-reply-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #1ca7ec;
    color: #1ca7ec;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-reply-btn:hover {
    background: #1ca7ec;
    color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chatbot-window {
        width: calc(100vw - 32px);
        height: calc(100vh - 140px);
        right: 16px;
        bottom: 90px;
    }
    
    .chatbot-button {
        right: 16px;
        bottom: 20px;
    }
}



.hero {
    perspective: 1000px;
}

.hero-image {
    transform: rotateY(15deg) rotateX(6deg) scale(1.05);
    transform-style: preserve-3d;
    transition: transform 0.6s ease;

}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: box-shadow 0.6s ease;
    will-change: transform;
    backface-visibility: hidden;
}

/* Saat Hover */
.hero-image:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1);
}

.hero-image:hover img {
    box-shadow: 0 35px 70px rgba(0,0,0,0.3);
}

/* ========================================
   MODERN 3D iOS 18 GLASSMORPHISM + NEON
   ======================================== */

/* 1. ROOT VARIABLES - iOS 18 Palette */
:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --neon-blue: #00d4ff;
    --neon-cyan: #00ffea;
    --neon-purple: #8b5cf6;
    --glass-blur: blur(20px);
    --shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 2. GLASSMORPHISM SYSTEM */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-3d);
}

.glass-primary {
    background: rgba(28, 167, 236, 0.15);
    border: 1px solid rgba(28, 167, 236, 0.3);
    box-shadow: 
        0 8px 32px rgba(28, 167, 236, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 3. 3D PERSPECTIVE CONTAINER */
.perspective-3d {
    perspective: 1000px;
    perspective-origin: center center;
}

.card-3d {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    will-change: transform;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg) translateZ(20px) scale(1.02);
    box-shadow: 
        0 35px 60px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.1);
}

/* 4. NEON GLOW EFFECTS */
.neon-glow {
    box-shadow: 
        0 0 5px var(--neon-blue),
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-cyan),
        0 0 40px var(--neon-purple),
        inset 0 0 10px rgba(255,255,255,0.1);
    transition: box-shadow 0.4s ease;
}

.neon-glow:hover {
    box-shadow: 
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue),
        0 0 40px var(--neon-cyan),
        0 0 80px var(--neon-purple),
        inset 0 0 20px rgba(255,255,255,0.2);
}

/* 5. FLOATING ELEMENTS */
@keyframes float-3d {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg) rotateZ(0deg); 
    }
    33% { 
        transform: translateY(-15px) rotateX(5deg) rotateZ(2deg); 
    }
    66% { 
        transform: translateY(-8px) rotateX(-3deg) rotateZ(-1deg); 
    }
}

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

/* 6. GLASS NAVBAR */
#header {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px);
}

/* 7. 3D BUTTONS */
.btn-3d {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    transform: translateZ(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-3d:hover {
    transform: translateY(-4px) translateZ(20px);
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255,255,255,0.3),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

/* 8. HERO ENHANCEMENT */
.hero {
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(236, 167, 28, 0.03) 50%,
        rgba(28, 167, 236, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(0,212,255,0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(135,92,246,0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 90%, rgba(0,255,234,0.1) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes heroFloat {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

/* 9. SCROLL REVEAL 3D */
@keyframes reveal-3d {
    from {
        opacity: 0;
        transform: translateZ(-100px) rotateX(45deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateZ(0) rotateX(0deg) scale(1);
    }
}

.reveal-3d {
    opacity: 0;
    animation: reveal-3d 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 10. SERVICE/PORTFOLIO CARDS */
.service-card-3d, .price-card-3d, .testimonial-card-3d {
    perspective: 1200px;
}

.service-card-3d-inner, .price-card-3d-inner, .testimonial-card-3d-inner {
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card-3d:hover .service-card-3d-inner,
.price-card-3d:hover .price-card-3d-inner,
.testimonial-card-3d:hover .testimonial-card-3d-inner {
    transform: rotateY(180deg);
}

/* 11. FLOATING WHATSAPP ENHANCEMENT */
.floating-whatsapp {
    filter: drop-shadow(0 10px 20px rgba(37, 211, 102, 0.4));
}

.floating-whatsapp::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.floating-whatsapp:hover::before {
    opacity: 1;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* 12. RESPONSIVE */
@media (max-width: 768px) {
    .perspective-3d { perspective: 600px; }
    .card-3d:hover { transform: rotateY(5deg) rotateX(2deg) translateZ(10px) scale(1.01); }
    #header { backdrop-filter: blur(16px); }
}

/* Apply to existing elements - FIXED SASS (pure CSS) */
.hover-card, [class*="group"] {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-card:hover, [class*="group"]:hover {
    transform: rotateY(8deg) rotateX(4deg) translateZ(15px) !important;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

.bg-primary, [class*="bg-primary"] {
    box-shadow: 0 0 20px rgba(28,167,236,0.4);
}

.hero-image {
    animation: float-3d 8s ease-in-out infinite;
}


