/* Modern theme colors */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-primary: #2b2d42;
    --text-secondary: #6c757d;
    --border-color: #e9ecef;
    --shadow-color: rgba(67, 97, 238, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark-gray);
}

header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-gray);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.hero {
    padding: 8rem 5% 4rem;
    text-align: center;
    background: var(--light-gray);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.demo {
    padding: 3rem 1.5rem;
    background: var(--background-color);
    min-height: 100vh;
}

.demo-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.demo-header {
    text-align: center;
    margin-bottom: 3rem;
}

.demo-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.demo-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.demo-container {
    background: var(--card-background);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    position: relative;
    width: 100%;
    gap: 2rem;
}

.upload-area {
    position: relative;
    width: 100%;
    transition: all 0.3s ease;
}

.upload-area.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: var(--background-color);
    padding: 20px;
}

.upload-area.fullscreen .background-options {
    position: absolute;
    right: 20px;
    top: 60px;
    width: 87px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.fullscreen-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fullscreen-btn:hover {
    background: white;
    transform: scale(1.05);
}

.fullscreen-btn svg {
    display: block;
}

/* Adjust preview container in fullscreen mode */
.upload-area.fullscreen .preview-container {
    height: calc(100vh - 150px);
    max-width: 100%;
    margin: 0 auto;
}

.background-options {
    /* width: 80px; */
}

.preview-container {
    position: relative !important;
    height: calc(100vh - 150px);
    border: 2px dashed var(--border-color);
    overflow: hidden;
    background: var(--background-color);
    transition: all 0.3s ease;
}

.preview-container:hover {
    border-color: var(--primary-color);
}

#originalImage {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin-right: auto;
    margin-left: auto;
}

.preview-image {
    max-width: 100%;
    object-fit: cover;
}

#processedImage {
    position: absolute !important;
    cursor: move;
    z-index: 10;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
}


/* Aynalama efekti ile gÃƒÂ¶lge */
#processedImage::after {
    content: '';
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 100%;
    background: inherit;
    background-size: cover;
    transform: scaleY(-1); /* Dikey aynalama */
    opacity: 0.3; /* GÃƒÂ¶lge opaklÃ„Â±Ã„Å¸Ã„Â± */
    filter: blur(4px); /* Hafif bulanÃ„Â±klÃ„Â±k */
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 10%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 10%, transparent);
    pointer-events: none;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.upload-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.upload-button {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

.upload-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.process-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.process-button:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.process-button:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.7;
}

.ui-resizable-handle {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    bottom: -12px;
    right: -12px;
    cursor: se-resize;
    z-index: 90;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.2s ease;
}

.ui-resizable-handle:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

/* Loading effect */
.loading-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    z-index: 100;
    border-radius: 16px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.magic-wand1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: bounce 1s infinite;
}

.magic-wand2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    animation: bounce 1s infinite;
    margin-left: 50rem;

}

.magic-wand3 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    animation: bounce 1s infinite;
    margin-left: 70rem;

}

.magic-wand4 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    animation: bounce 1s infinite;
    margin-left: 90rem;
}

.magic-wand5 {
    font-size: 2.5rem;
    margin-bottom: 5rem;
    animation: bounce 1s infinite;
    margin-left: 110rem;
}  

.magic-wand6 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    animation: bounce 1s infinite;
    margin-left: 610rem;
} 

.magic-wand7 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    animation: bounce 1s infinite;
    margin-left: 70rem;
} 

.loading-effect p {
    margin-top: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Background options */
.background-options h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Category dropdown */
.category-dropdown {
    width: 180px;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    z-index: 9;
    top: 1rem;
    left: 1rem;
}

.category-dropdown:hover {
    border-color: var(--primary-color);
}

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

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

.hidden {
    display: none !important;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .demo {
        padding: 2rem 1rem;
    }

    .demo-header h2 {
        font-size: 2rem;
    }

    .preview-container {
        min-height: 300px;
    }

    .demo-container {
        grid-template-columns: 1fr;
    }

    .upload-area {
        margin-bottom: 2rem;
    }
}

.features {
    padding: 4rem 5%;
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
    text-align: center;
}

.pricing {
    padding: 4rem 5%;
    background: var(--light-gray);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.price-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.price-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
}

.price {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
    color: var(--primary-color);
}

.price-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.price-card ul li {
    margin: 0.5rem 0;
}

.buy-button {
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.buy-button:hover {
    background: #357abd;
}

.footer {
    background: var(--dark-gray);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: #333;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Debug styles */
.background-options {
    left: 1rem;
    top: 5rem;
    position: absolute;
    overflow-y: scroll;
    height: 600px;
    z-index: 999999;
    width: 150px;
}

/* Pattern scroll styles */

/* Custom scrollbar for webkit browsers */
.pattern-container::-webkit-scrollbar {
    height: 8px;
}

.pattern-container::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 10px;
}

.pattern-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.pattern-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}



.pattern-item {
    width: 140px;
    border-radius: 12px;
    float: left;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.pattern-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

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

.pattern-item.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Pattern item name tooltip */
.pattern-item::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pattern-item:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -25px;
}

/* Mobile optimization */
@media (max-width: 768px) {

    .pattern-item {
        width: 100px;
        height: 100px;
    }
    
}

/* For touch devices */
@media (hover: none) {
    .pattern-item:hover {
        transform: none;
    }
    
    .pattern-item:hover img {
        transform: none;
    }
    
    .pattern-item::after {
        display: none;
    }
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.download-button {
    padding: 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.download-button:hover:not(:disabled) {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.download-button:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.7;
}

.features-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: var(--background-color);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.tab-content {
    display: none;
    text-align: center;
}

.tab-content.active {
    display: block;
}

.tab-content img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow-color);
    margin-bottom: 1rem;
}

.possibilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 1rem;
    gap: 1rem;
}

.possibilities-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.tab-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        width: calc(50% - 0.5rem);
    }
}

.workflow-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.workflow-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.workflow-image {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
}

.circle.mint {
    background-color: #98F5E1;
    left: 0;
    top: 50px;
}

.circle.yellow {
    background-color: #FFD93D;
    right: 0;
    top: 50px;
}

.circle .icon {
    width: 40px;
    height: 40px;
}

.image-flow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.flow-img {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.flow-img:last-child {
    position: absolute;
    left: 150px;
    top: 90px;
}

.arrow-1, .arrow-2 {
    position: absolute;
    width: 60px;
    height: 2px;
    background-color: #333;
}

.arrow-1::after, .arrow-2::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(-45deg);
}

.arrow-1 {
    left: 130px;
    top: 100px;
    transform: rotate(30deg);
}

.arrow-2 {
    right: 130px;
    top: 100px;
    transform: rotate(-30deg);
}

.workflow-text {
    flex: 1;
}

.workflow-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.workflow-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.workflow-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.workflow-link {
    color: #007BFF;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.workflow-link:hover {
    color: #0056b3;
}

@media (max-width: 968px) {
    .workflow-content {
        flex-direction: column;
        text-align: center;
    }

    .workflow-image {
        width: 100%;
        margin-bottom: 2rem;
    }

    .workflow-links {
        align-items: center;
    }
}











