/* Baby Fat Website - Custom Styles */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* cursor: none; */ /* DISABLED - Custom cursor removed */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode body */
.dark body {
    background-color: #0f172a;
    color: #e2e8f0;
}

/* Custom cursor for desktop - DISABLED */
/*
@media (min-width: 1024px) {
    body {
        cursor: none;
    }
    
    a, button, input[type="button"], input[type="submit"], 
    select, [role="button"], [onclick], 
    .cursor-pointer, .portfolio-item {
        cursor: none !important;
    }
}
*/

@media (max-width: 1023px) {
    body {
        cursor: default;
    }
    
    #custom-cursor {
        display: none !important;
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #8B5CF6, #3B82F6, #06B6D4, #EC4899, #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
}

/* Animated Background */
.animated-bg {
    background: linear-gradient(-45deg, #8B5CF6, #3B82F6, #06B6D4, #EC4899, #F97316);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

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

/* Parallax Container */
.parallax-container {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.parallax-element {
    transform-style: preserve-3d;
}

/* Floating Animation */
.float {
    animation: float 6s ease-in-out infinite;
}

.float:nth-child(2) {
    animation-delay: 1s;
}

.float:nth-child(3) {
    animation-delay: 2s;
}

/* Hero Section Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: linear-gradient(135deg, #8B5CF6, #3B82F6, #06B6D4, #EC4899, #F97316);
    border-radius: 50%;
    opacity: 0.1;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Service Cards */
.service-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B5CF6, #3B82F6, #06B6D4, #EC4899, #F97316);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
}

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

.portfolio-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* Smooth scrolling for tech badges */
.tech-scroll {
    scroll-behavior: smooth;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(59, 130, 246, 0.9), rgba(6, 182, 212, 0.9), rgba(236, 72, 153, 0.9), rgba(249, 115, 22, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
    padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Form Styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    color: #6b7280;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 0.5rem;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
select.form-input + .form-label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.875rem;
    color: #8B5CF6;
}

/* Special handling for select elements */
select.form-input {
    padding-right: 3rem;
    appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
}

select.form-input option {
    background: white;
    color: #1f2937;
}

/* Textarea specific styles */
textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #8B5CF6, #3B82F6, #06B6D4, #EC4899, #F97316);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Navigation Backdrop */
.nav-backdrop {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .nav-backdrop {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark mode for service cards */
.dark .service-card {
    background: #1e293b;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dark .service-card:hover {
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.dark .service-card h3 {
    color: #f1f5f9;
}

.dark .service-card p,
.dark .service-card li {
    color: #cbd5e1;
}

/* Dark mode for form inputs */
.dark .form-input {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.dark .form-input:focus {
    border-color: #8B5CF6;
    background-color: #1e293b;
}

.dark .form-label {
    color: #94a3b8;
    background-color: #1e293b;
}

.dark .form-input:focus + .form-label,
.dark .form-input:not(:placeholder-shown) + .form-label,
.dark select.form-input + .form-label {
    background-color: #1e293b;
}

/* Dark mode select dropdown */
.dark select.form-input {
    background-color: #1e293b;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
}

.dark select.form-input option {
    background: #1e293b;
    color: #e2e8f0;
}

/* Dark mode for portfolio overlay */
.dark .portfolio-item {
    border: 1px solid #334155;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .particles {
        display: none; /* Disable particles on mobile for performance */
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #000;
    }
    
    .gradient-text {
        background: #000;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}