/* Modern AI-Native Landing Page Styles */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Glass Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Left Side - Art Table Background */
.art-table-bg {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 25%, #f8b500 50%, #ff6b9d 75%, #c44569 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    position: relative;
}

.art-table-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px, 40px 40px;
    opacity: 0.7;
}

.art-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

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

/* Right Side - Clean T-shirt Background */
.tshirt-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.tshirt-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(99, 102, 241, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(99, 102, 241, 0.03) 25%, transparent 25%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

/* Drawing and T-shirt Frames */
.drawing-frame {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    max-width: 300px;
    margin: 0 auto;
}

.drawing-frame:hover {
    transform: rotate(0deg) scale(1.05);
}

.tshirt-showcase {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    max-width: 300px;
    margin: 0 auto;
}

.tshirt-showcase:hover {
    transform: translateY(-10px);
}

.drawing-preview, .tshirt-preview {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Upload Button - Centered across entire viewport */
.upload-button-container-new {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: auto;
    /* Removed transition since we're doing smooth JS interpolation */
}

/* Upload Button - Sticky at top when scrolling */
.upload-button-container-new.sticky {
    top: 80px; /* Navbar height (~70px) + 10px gap */
    left: 50%;
    transform: translateX(-50%);
}

/* Make button slightly smaller when sticky */
.upload-button-container-new.sticky .upload-btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
    min-width: 280px;
}

.upload-btn-large {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 60px;
    padding: 25px 50px;
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 350px;
    justify-content: center;
}

/* Keep old upload-btn class for backwards compatibility */
.upload-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 50px;
    padding: 20px 40px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-btn:hover, .upload-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

.upload-btn-large:hover {
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.7);
}

.upload-btn i {
    font-size: 1.5rem;
}

.magic-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.upload-btn:hover .magic-glow, .upload-btn-large:hover .magic-glow {
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

/* Price Tag */
.price-tag {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 600;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* How It Works Section */
.step-card {
    background: white;
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
    font-family: 'Fredoka', sans-serif;
}

.step-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 20px 0;
}

/* About Section */
.about-content {
    position: relative;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.founder-image {
    text-align: center;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e5e7eb 100%);
    border-radius: 20px;
    padding: 60px 20px;
    border: none;
}

.image-placeholder i {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 100px 100px;
    animation: float 6s ease-in-out infinite;
}

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

/* Modal Styles */
.upload-step {
    display: none;
}

.upload-step.active {
    display: block;
}

.upload-zone {
    border: none;
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
    background: rgba(99, 102, 241, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-dark);
}

.upload-zone i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.design-option {
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.design-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.design-option.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.design-selection-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.design-placeholder {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
}

.design-preview-img {
    width: 100%;
    height: calc(100% - 60px);
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.design-preview-placeholder {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    margin-top: 10px;
}

/* Multi-Design Cart Styles */
.design-cart-summary .badge {
    font-size: 0.8rem;
}

.design-option {
    position: relative;
}

.design-option .add-to-cart-overlay {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.design-option:hover .add-to-cart-overlay {
    opacity: 1;
}

.design-cart-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    background: #f9fafb;
}

.design-cart-item .design-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

/* Photo-Realistic T-Shirt Preview Mockup */
.tshirt-mockup-wrapper {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    perspective: 1000px;
}

.tshirt-base {
    position: relative;
    width: 280px;
    height: 350px;
    margin: 0 auto;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Create realistic t-shirt shape using CSS */
.tshirt-base::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--tshirt-color, #f5f5dc);
    clip-path: polygon(
        15% 0%,     /* Left shoulder start */
        25% 8%,     /* Left sleeve curve */
        35% 12%,    /* Left armpit */
        35% 35%,    /* Left side */
        32% 100%,   /* Left bottom */
        68% 100%,   /* Right bottom */
        65% 35%,    /* Right side */
        65% 12%,    /* Right armpit */
        75% 8%,     /* Right sleeve curve */
        85% 0%,     /* Right shoulder end */
        82% 5%,     /* Right neck curve */
        60% 8%,     /* Right neck */
        40% 8%,     /* Left neck */
        18% 5%      /* Left neck curve */
    );
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 2px 6px rgba(255, 255, 255, 0.3),
        inset 0 -2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Add fabric texture and subtle gradient */
.tshirt-base::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.05) 100%);
    clip-path: polygon(
        15% 0%, 25% 8%, 35% 12%, 35% 35%, 32% 100%, 
        68% 100%, 65% 35%, 65% 12%, 75% 8%, 85% 0%, 
        82% 5%, 60% 8%, 40% 8%, 18% 5%
    );
    pointer-events: none;
}

/* Photo-realistic cream t-shirt using uploaded image */
.tshirt-base.color-cream {
    background-image: url('assets/cream-tshirt.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    --tshirt-color: #f5f5dc;
    /* Remove the clip-path since we're using a real photo */
    clip-path: none;
}

/* Remove overlays for photo-based t-shirts to show the photos clearly */
.tshirt-base.color-cream::before,
.tshirt-base.color-cream::after,
.tshirt-base.color-black::before,
.tshirt-base.color-black::after,
.tshirt-base.color-gray::before,
.tshirt-base.color-gray::after {
    display: none;
}

/* Other colors use SVG-based t-shirt shape */
.tshirt-base.color-white {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgwIiBoZWlnaHQ9IjM1MCIgdmlld0JveD0iMCAwIDI4MCAzNTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJ3aGl0ZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3R5bGU9InN0b3AtY29sb3I6I2ZmZmZmZjtzdG9wLW9wYWNpdHk6MSIgLz48c3RvcCBvZmZzZXQ9IjUwJSIgc3R5bGU9InN0b3AtY29sb3I6I2ZhZmFmYTtzdG9wLW9wYWNpdHk6MSIgLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0eWxlPSJzdG9wLWNvbG9yOiNmNWY1ZjU7c3RvcC1vcGFjaXR5OjEiIC8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTTQyIDAgSDIzOCBDMjU1IDAgMjY2IDEwIDI3MCAyNSBMMjc1IDQwIEMyNzggNTUgMjc1IDcwIDI3MCA4MCBMMTU1IDEwMCBDMTQwIDEwNSAxNDAgMTIwIDEzNSAzNTAgSDEwMCBDOTUgMzUwIDk1IDEyMCA4MCA5NSBMNSA4MCBDMCA3MCAzIDU1IDEwIDQwIEwxNSAyNSBDMjAgMTAgMzAgMCA0MiAwIFoiIGZpbGw9InVybCgjd2hpdGUpIiBzdHJva2U9InJnYmEoMCwwLDAsMC4xKSIgc3Ryb2tlLXdpZHRoPSIxIi8+PC9zdmc+');
    --tshirt-color: #ffffff;
}

/* Photo-realistic black t-shirt using uploaded image */
.tshirt-base.color-black {
    background-image: url('assets/black-shirt.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    --tshirt-color: #2d2d2d;
    /* Remove the clip-path since we're using a real photo */
    clip-path: none;
}

/* Photo-realistic gray t-shirt using uploaded image */
.tshirt-base.color-gray {
    background-image: url('assets/gray-shirt.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    --tshirt-color: #8b8b8b;
    /* Remove the clip-path since we're using a real photo */
    clip-path: none;
}

.tshirt-base.color-navy {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgwIiBoZWlnaHQ9IjM1MCIgdmlld0JveD0iMCAwIDI4MCAzNTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJuYXZ5IiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdHlsZT0ic3RvcC1jb2xvcjojMmI0OGJmO3N0b3Atb3BhY2l0eToxIiAvPjxzdG9wIG9mZnNldD0iNTAlIiBzdHlsZT0ic3RvcC1jb2xvcjojMWUzYThhO3N0b3Atb3BhY2l0eToxIiAvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3R5bGU9InN0b3AtY29sb3I6IzE3MzA3MTtzdG9wLW9wYWNpdHk6MSIgLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNNDIgMCBIMjM4IEMyNTUgMCAyNjYgMTAgMjcwIDI1IEwyNzUgNDAgQzI3OCA1NSAyNzUgNzAgMjcwIDgwIEwxNTUgMTAwIEMxNDAgMTA1IDE0MCAxMjAgMTM1IDM1MCBIMTAwIEM5NSAzNTAgOTUgMTIwIDgwIDk1IEw1IDgwIEMwIDcwIDMgNTUgMTAgNDAgTDE1IDI1IEMyMCAxMCAzMCAwIDQyIDAgWiIgZmlsbD0idXJsKCNuYXZ5KSIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMSkiIHN0cm9rZS13aWR0aD0iMSIvPjwvc3ZnPg==');
    --tshirt-color: #1e3a8a;
}

.tshirt-base.color-forest {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgwIiBoZWlnaHQ9IjM1MCIgdmlld0JveD0iMCAwIDI4MCAzNTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJmb3Jlc3QiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0eWxlPSJzdG9wLWNvbG9yOiMxODZkNDQ7c3RvcC1vcGFjaXR5OjEiIC8+PHN0b3Agb2Zmc2V0PSI1MCUiIHN0eWxlPSJzdG9wLWNvbG9yOiMwZjRjM2E7c3RvcC1vcGFjaXR5OjEiIC8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdHlsZT0ic3RvcC1jb2xvcjojMGQ0MDMyO3N0b3Atb3BhY2l0eToxIiAvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Ik00MiAwIEgyMzggQzI1NSAwIDI2NiAxMCAyNzAgMjUgTDI3NSA0MCBDMJC4IDU1IDI3NSA3MCAyNzAgODAgTDE1NSAxMDAgQzE0MCAxMDUgMTQwIDEyMCAxMzUgMzUwIEgxMDAgQzk1IDM1MCA5NSAxMjAgODAgOTUgTDUgODAgQzAgNzAgMyA1NSAxMCA0MCBMMTU7IDI1IEMyMCAxMCAzMCAwIDQyIDAgWiIgZmlsbD0idXJsKCNmb3Jlc3QpIiBzdHJva2U9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIgc3Ryb2tlLXdpZHRoPSIxIi8+PC9zdmc+');
    --tshirt-color: #0f4c3a;
}

/* Add subtle color-specific shadows */
.tshirt-base.color-cream::before {
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.12),
        inset 0 2px 6px rgba(255, 255, 255, 0.6),
        inset 0 -2px 6px rgba(0, 0, 0, 0.08);
}

.tshirt-base.color-white::before {
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.12),
        inset 0 2px 6px rgba(255, 255, 255, 0.8),
        inset 0 -2px 6px rgba(0, 0, 0, 0.06);
}

.tshirt-base.color-black::before {
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 2px 6px rgba(255, 255, 255, 0.1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.3);
}

.tshirt-base.color-navy::before {
    box-shadow: 
        0 8px 25px rgba(30, 58, 138, 0.3),
        inset 0 2px 6px rgba(255, 255, 255, 0.2),
        inset 0 -2px 6px rgba(0, 0, 0, 0.2);
}

.tshirt-base.color-forest::before {
    box-shadow: 
        0 8px 25px rgba(15, 76, 58, 0.3),
        inset 0 2px 6px rgba(255, 255, 255, 0.15),
        inset 0 -2px 6px rgba(0, 0, 0, 0.2);
}

.tshirt-design-overlay {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
    max-width: 245px;
    max-height: 245px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 10;
}

.tshirt-design-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.25));
    border-radius: 6px;
    background: transparent;
}

/* Design overlay positioning adjustments for different t-shirt colors */
.tshirt-base.color-black .tshirt-design-overlay img,
.tshirt-base.color-navy .tshirt-design-overlay img,
.tshirt-base.color-forest .tshirt-design-overlay img {
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.4)) brightness(1.1);
}

.tshirt-base.color-white .tshirt-design-overlay img {
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.15));
}

/* Special positioning for photo-based cream t-shirt */
.tshirt-base.color-cream .tshirt-design-overlay {
    top: 35%; /* Adjust to match the chest area of the photo */
    max-width: 210px; /* 75% bigger for increased visibility */
    max-height: 210px;
}

.tshirt-base.color-cream .tshirt-design-overlay img {
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.2)) 
           drop-shadow(0 1px 4px rgba(0, 0, 0, 0.1));
}

/* Enhanced Color Options */
.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid transparent;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-option.selected {
    border-color: var(--primary-color);
    transform: scale(1.15);
}

/* Order Summary Enhancements */
.order-summary-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.order-summary-item .item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.order-totals {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.color-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.quantity-input {
    width: 80px;
}

/* Large screen optimizations for wider modal */
@media (min-width: 1200px) {
    #designsContainer .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    #designsContainer .col-lg-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }
    
    #designsContainer .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }
    
    /* Ensure design options have good spacing */
    .design-option {
        margin-bottom: 1rem;
    }
}

/* Top Checkout Button Styling */
#proceedToCheckout.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#proceedToCheckout.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838 0%, #1ea888 100%);
}

#proceedToCheckout.btn-lg:active {
    transform: translateY(0);
}

/* Additional Design Section Styles */
#additionalDesignSection .card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#additionalDesignSection .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

#designFeedback {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

#designFeedback:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#generateAnotherDesign {
    transition: all 0.3s ease;
}

#generateAnotherDesign:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Feedback Button Styles */
.feedback-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.feedback-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
}

.feedback-button i {
    font-size: 1rem;
}

/* Mobile responsive feedback button */
@media (max-width: 768px) {
    .feedback-button {
        padding: 12px 15px;
        font-size: 0px; /* Hide text on mobile */
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
    }
    
    .feedback-button span {
        display: none;
    }
    
    .feedback-button i {
        font-size: 1.2rem;
    }
}

/* Feedback Modal Styles */
.feedback-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.feedback-modal .modal-header {
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.feedback-modal .btn-close {
    filter: invert(1);
}

#feedbackText {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color 0.3s ease;
    resize: vertical;
    min-height: 120px;
}

#feedbackText:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.char-counter {
    font-size: 0.8rem;
    color: #6b7280;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.error {
    color: #ef4444;
}

/* Modal sizing improvements with Siri-like glow effect */
.modal-dialog {
    margin: 0.5rem auto;
    max-height: 95vh;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.design-placeholder h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.design-placeholder p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Compact the additional design section */
#additionalDesignSection .card-body {
    padding: 1rem;
}

#additionalDesignSection .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

#additionalDesignSection p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Responsive Design */
@media (max-width: 992px) and (min-width: 769px) {
    /* Tablet adjustments */
    .modal-dialog {
        max-width: 85vw !important;
        width: 85vw !important;
    }
}

@media (min-width: 1200px) {
    /* Large screen adjustments for wider modal */
    .modal-dialog {
        max-width: 80vw !important;
        width: 80vw !important;
    }
    
    /* Better spacing for multiple designs */
    #designsContainer .col-md-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }
    
    #designsContainer .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (max-width: 768px) {
    .hero-section .row {
        min-height: auto;
    }
    
    .hero-section .col-lg-6 {
        min-height: 50vh;
    }
    
    .upload-button-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        text-align: center;
        padding: 20px 0;
    }
    
    .upload-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .step-card {
        margin-bottom: 30px;
    }
    
    /* Modal adjustments for mobile */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem) !important;
        max-height: 98vh;
        width: calc(100vw - 1rem) !important;
    }
    
    .modal-content {
        max-height: 98vh;
    }
    
    .modal-body {
        padding: 1rem;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 0.5rem 1rem;
        border-bottom: none;
        flex-shrink: 0;
    }
    
    .design-option {
        min-height: 350px;
    }
    
    .design-preview-img {
        height: 280px;
    }
    
    .design-preview-placeholder {
        height: 280px !important;
    }
}

@media (max-height: 800px) {
    /* Adjustments for shorter screens */
    .design-option {
        min-height: 400px;
    }
    
    .design-preview-img {
        height: 300px;
    }
    
    .design-preview-placeholder {
        height: 300px !important;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Particle Animation Loading Container */
.particle-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 10px 15px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    min-height: 380px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* Override modal styles when loading animation is active - use !important to override Bootstrap */
.modal.loading-active {
    background: transparent !important;
}

/* Hide modal backdrop when loading is active */
.modal.loading-active + .modal-backdrop {
    display: none !important;
}

.modal.loading-active .modal-dialog {
    margin: 0 !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    width: 100% !important;
    height: 100vh !important;
}

.modal.loading-active .modal-content {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-height: 100vh !important;
    width: 100% !important;
    height: 100vh !important;
}

.modal.loading-active .modal-header {
    display: none !important;
}

.modal.loading-active .modal-body {
    padding: 0 !important;
    width: 100% !important;
    height: 100vh !important;
}

.modal.loading-active .particle-loading-container {
    border-radius: 0 !important;
    min-height: 100vh !important;
    width: 100% !important;
    margin: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* Loading close button styling */
.loading-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    line-height: 1.1;
    white-space: nowrap;
}

.loading-close-btn:hover {
    background: #f8f9fa;
    transform: scale(1.05);
    color: #4f46e5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.particle-wrapper {
    margin: 10px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
    border-radius: 12px;
    padding: 2px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#particle-brain {
    display: block;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* Enhanced progress bar styling */
.particle-loading-container .progress {
    width: 100%;
    max-width: 480px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.particle-loading-container .progress-bar {
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.5);
    animation: progressGlow 2s ease-in-out infinite alternate;
}

@keyframes progressGlow {
    0% { box-shadow: 0 2px 8px rgba(168, 85, 247, 0.5); }
    100% { box-shadow: 0 2px 15px rgba(236, 72, 153, 0.8), 0 0 25px rgba(236, 72, 153, 0.3); }
}

/* Completion container styling */
.completion-container {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
    animation: completionPulse 2s ease-in-out;
}

/* Success state for modal content */
.modal-content.success-state {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
}

.modal-content.success-state .modal-body {
    background: transparent !important;
    color: white !important;
}

.modal-content.success-state h4,
.modal-content.success-state p,
.modal-content.success-state .badge {
    color: white !important;
}

@keyframes completionPulse {
    0% { 
        transform: scale(0.95);
        box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 20px 40px rgba(16, 185, 129, 0.6);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
    }
}

/* Responsive adjustments for particle animation */
@media (max-width: 768px) {
    .particle-loading-container {
        padding: 15px 10px;
        min-height: 350px;
    }
    
    #particle-brain, #particle-image {
        width: 350px !important;
        height: 250px !important;
    }
    
    .particle-wrapper {
        margin: 8px 0;
    }
    
    .completion-container {
        padding: 30px 15px !important;
    }
}

/* Success States */
.success-message {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

/* Error States */
.error-message {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
} 