/* ========================================
   MAIN STYLES CSS - I GEDE WIRAYASA
   ======================================== */

/* ========================================
   BASE STYLES
   ======================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fafafa;
    min-height: 100vh;
}

/* ========================================
   CONTAINER LAYOUTS
   ======================================== */
.container-custom {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-custom-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HOMEPAGE - PROFILE SECTION
   ======================================== */
.profile-section {
    text-align: center;
    padding: 60px 0 40px;
    animation: fadeInUp 0.8s ease-out;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #000;
    margin: 0 auto 30px;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
}

.name-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    line-height: 1.1;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 50px;
}

.cta-button:hover {
    background: #333;
    transform: translateY(-1px);
}

/* ========================================
   SECTION TITLES & PAGE HEADERS
   ======================================== */
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin: 50px 0 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-header {
    text-align: center;
    padding: 40px 0;
    animation: fadeInUp 0.8s ease-out;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 400;
}

/* ========================================
   HOMEPAGE - VIDEO CONTAINER
   ======================================== */
.video-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 50px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ========================================
   HOMEPAGE - PRODUCT CARDS
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.product-card {
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    animation: fadeInUp 0.8s ease-out calc(0.4s + var(--delay)) both;
}

.product-card:nth-child(1) { --delay: 0s; }
.product-card:nth-child(2) { --delay: 0.1s; }
.product-card:nth-child(3) { --delay: 0.2s; }
.product-card:nth-child(4) { --delay: 0.3s; }

.product-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
}

.product-banner {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.product-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

.product-content {
    padding: 20px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    color: #000;
}

.product-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: center;
}

.product-link {
    color: #000;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    justify-content: center;
    width: 100%;
}

.product-link:hover {
    color: #666;
}

/* ========================================
   FREE TOOLS PAGE - TOOL CARDS
   ======================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.tool-card {
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    animation: fadeInUp 0.8s ease-out calc(0.1s * var(--delay)) both;
}

.tool-card:nth-child(1) { --delay: 1; }
.tool-card:nth-child(2) { --delay: 2; }
.tool-card:nth-child(3) { --delay: 3; }
.tool-card:nth-child(4) { --delay: 4; }
.tool-card:nth-child(5) { --delay: 5; }
.tool-card:nth-child(6) { --delay: 6; }

.tool-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.tool-banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.tool-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

.tool-content {
    padding: 20px;
}

.tool-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    color: #000;
}

.tool-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: center;
}

.tool-link {
    color: #000;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    width: 100%;
}

.tool-link:hover {
    color: #666;
}

/* ========================================
   FREE TOOLS PAGE - TOOL TAGS
   ======================================== */
.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
    justify-content: center;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========================================
   PREMIUM TOOLS PAGE - PREMIUM CARDS
   ======================================== */
.premium-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

.premium-card {
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    animation: fadeInUp 0.8s ease-out calc(0.1s * var(--delay)) both;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.premium-card:nth-child(1) { --delay: 1; }
.premium-card:nth-child(2) { --delay: 2; }
.premium-card:nth-child(3) { --delay: 3; }
.premium-card:nth-child(4) { --delay: 4; }
.premium-card:nth-child(5) { --delay: 5; }
.premium-card:nth-child(6) { --delay: 6; }

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.premium-banner {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    flex-shrink: 0;
}

.premium-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
    z-index: 1;
}

.premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
    border: 1px solid #000;
}

.premium-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    min-height: 200px;
}

.premium-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #000;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-desc {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.premium-link {
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    align-self: flex-start;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 140px;
}

.premium-link:hover {
    background: #333;
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ========================================
   EMPTY STATE - NO PRODUCTS
   ======================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    background: #fff;
    border: 2px dashed #ccc;
    border-radius: 12px;
    color: #666;
    animation: fadeInUp 0.8s ease-out;
}

.empty-state-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.empty-state-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 25px 0;
    max-width: 400px;
}

.empty-state-button {
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.empty-state-button:hover {
    background: #333;
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ========================================
   TOOL BACKGROUND COLORS (FOR FREE TOOLS)
   ======================================== */
.bg-figma { background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); }
.bg-template { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.bg-mockup { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); }
.bg-color { background: linear-gradient(135deg, #ea580c 0%, #f97316 100%); }
.bg-icon { background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%); }
.bg-tutorial { background: linear-gradient(135deg, #7c2d12 0%, #ea580c 100%); }

/* ========================================
   NAVIGATION - BACK BUTTON
   ======================================== */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.back-button:hover {
    background: #333;
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #000;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border: 1px solid #333;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #333;
    transform: translateY(-1px);
}

.copyright {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .name-title {
        font-size: 2rem;
    }
    .page-title {
        font-size: 2.2rem;
    }
    .container-custom, .container-custom-wide {
        padding: 0 15px;
    }
    .social-links {
        gap: 10px;
    }
    .social-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    /* Premium cards responsive */
    .premium-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .premium-banner {
        width: 100%;
        height: 100%;
    }
    
    .premium-content {
        padding: 20px;
    }
    
    .premium-title {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .premium-desc {
        text-align: center;
    }
    
    .premium-link {
        align-self: stretch;
        justify-content: center;
    }
}