/* Animations */
@keyframes blurIn {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.animate-blur-in {
    animation: blurIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Custom styles for the portfolio */
:root {
    --primary: #2563eb; /* Blue accent color */
    --primary-hover: #1d4ed8;
}

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

/* Typography */
body {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    font-weight: 400;
    color: #1a202c;
    position: relative;
}


h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-slide h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a202c;
}

.project-slide p {
    color: #4a5568;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Navigation */
.nav-link {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3b82f6;
}

/* Buttons */
.btn {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Hero section */
.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* Section headings */
section h2 {
    position: relative;
    display: block;
    font-size: 2.75rem;
    font-weight: 700;
    color: #1a202c;
}

/* Project cards */
.project-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.75rem;
    overflow: hidden;
}

.project-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);
}

/* Responsive typography */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    section h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .project-slide h3 {
        font-size: 1.5rem;
    }
    
    /* Adjust padding and margins for mobile */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    /* Improve mobile navigation */
    .mobile-menu {
        background: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu .nav-link {
        padding: 0.75rem 1.5rem;
        display: block;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .mobile-menu .nav-link:last-child {
        border-bottom: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #111827;
        color: #e5e7eb;
    }
    
    .project-card {
        background-color: #1f2937;
    }
    
    .project-card h3 {
        color: #f9fafb;
    }
    
    .project-card p {
        color: #d1d5db;
    }
    
    .mobile-menu {
        background-color: #1f2937;
    }
    
    .mobile-menu .nav-link {
        border-bottom-color: #374151;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Custom button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Project card hover effect */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-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);
}

/* Image hover effect */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 1rem;
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Section spacing */
section {
    scroll-margin-top: 80px; /* Account for fixed header */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    .project-card {
        margin-bottom: 4rem;
    }
}

/* Animation for elements with the 'fade-in' class */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

/* Custom selection color */
::selection {
    background-color: var(--primary);
    color: white;
}

/* Horizontal Scroll Work Section */
.work-container {
    width: 100%;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem;
}

.work-wrapper {
    display: flex;
    width: max-content;
    will-change: transform;
    padding: 0 2vw;
    transition: transform 0.1s ease-out;
}

.project-slide {
    height: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.project-slide:hover {
    transform: translateY(-10px);
    opacity: 1;
}

.project-slide > div {
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-slide:hover > div {
    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);
}

.project-slide img {
    transition: transform 7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-slide:hover img {
    transform: scale(1.05);
}

.scroll-hint {
    display: none;
}

@media (min-width: 768px) {
    .scroll-hint {
        display: inline;
    }
}

/* Hide scrollbar but keep functionality */
.work-container::-webkit-scrollbar {
    display: none;
}

.work-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


.blurry-bottom {
    align-content: center;
    align-items: center;
    bottom: 0;
    display: flex;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    height: min-content;
    justify-content: center;
    left: 50%;
    overflow: hidden;
    padding: 0;
    position: fixed;
    transform: translate(-50%);
    width: 100%;
    z-index: 3;
}

.blurry-bottom .blurry-bottom-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Toggle Switch Styles */
.pricing-toggle-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.pricing-toggle-label {
    position: relative;
    display: inline-block;
    width: 4rem;
    height: 2rem;
    margin: 0 0.5rem;
}

.pricing-toggle-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pricing-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 9999px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pricing-toggle-slider:before {
    position: absolute;
    content: "";
    height: 1.75rem;
    width: 1.75rem;
    left: 0.125rem;
    bottom: 0.125rem;
    background-color: white;
    transition: .3s ease-in-out;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .pricing-toggle-slider {
    background-color: #3b82f6;
    background-image: linear-gradient(to right, #3b82f6, #60a5fa);
}

input:checked + .pricing-toggle-slider:before {
    transform: translateX(2rem);
}

input:focus + .pricing-toggle-slider {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Active text state */
.toggle-option {
    transition: all 0.3s ease-in-out;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
}

.toggle-option.active {
    color: #1f2937;
    font-weight: 600;
    background-color: #f3f4f6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.toggle-option:not(.active) {
    color: #9ca3af;
}

/* Button Reflection Effect */
.btn-reflect {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-reflect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent
    );
    transform: translateX(-100%) rotate(30deg);
    transition: transform 0s;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

.btn-reflect:hover::after,
.btn-reflect.animate::after {
    transform: translateX(100%) rotate(30deg);
    transition: transform 0.8s ease-in-out;
    opacity: 1;
}

/* Telegram Button Styles */
.telegram-btn {
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: #0088cc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 8px;
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #0077b5;
}

.telegram-btn svg {
    width: 20px;
    height: 20px;
}

/* Specific styles for different sections */

.nav-telegram {
    margin-left: 12px;
}

.pricing-telegram {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-telegram {
    margin: 0 8px;
    width: 48px;
    height: 48px;
}

/* Process Section - 2 Column Layout */
.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.process-image-container {
    position: relative;
    height: 500px;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.process-image-container:hover {
    transform: translateY(-4px);
}

.process-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(1);
}

.process-image.active {
    opacity: 1;
    transform: scale(1.3);
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.process-step {
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.process-step:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.01), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.process-step:hover:before {
    transform: scaleY(1);
}

.process-step.active {
    transform: scale(1.02);
    border-color: white;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.01), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.process-step.active:before {
    transform: scaleY(1);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #000000, #333333);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1.25rem;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.step-number:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: 8px;
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 12px -1px rgba(0, 0, 0, 0.3);
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.step-description {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.process-card {
    transform-origin: center;
    will-change: transform, opacity;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-card.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) !important;
    z-index: 10;
}

.process-card.next {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9) translateY(50px);
    z-index: 5;
}

.process-card.prev {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1) translateY(-50px);
    z-index: 1;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Process Section Responsive Styles */
@media (max-width: 768px) {
    .process-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-image-container {
        height: 350px;
        order: 1;
    }
    
    .process-steps {
        order: 2;
        gap: 1.25rem;
    }
    
    .process-step {
        padding: 1.25rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .step-title {
        font-size: 1.05rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
}

@keyframes rubberBand {
    from {
        transform: scale3d(1, 1, 1);
    }
    30% {
        transform: scale3d(1.25, 0.75, 1);
    }
    40% {
        transform: scale3d(0.75, 1.25, 1);
    }
    50% {
        transform: scale3d(1.15, 0.85, 1);
    }
    65% {
        transform: scale3d(0.95, 1.05, 1);
    }
    75% {
        transform: scale3d(1.05, 0.95, 1);
    }
    to {
        transform: scale3d(1, 1, 1);
    }
}

.rubber-band {
    animation: rubberBand 0.8s ease-out;
}


