/* Web Development Page Specific Styles */

/* Hero Section */
.hero-section {
    padding: 100px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a237e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-section .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
}

.hero-section .btn i {
    margin-right: 10px;
}

/* Solutions Section */
.solutions-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 2 Columns Grid Layout */
.solutions-grid-two-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

.grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.solution-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
}

.solution-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.4;
}

.solution-card > p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.solution-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.solution-features span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-color);
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.solution-features i {
    color: var(--success-color);
    font-size: 0.8rem;
}

.solution-benefits h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.solution-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-benefits li {
    padding: 4px 0;
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.solution-benefits li::before {
    content: '✓';
    color: var(--success-color);
    margin-right: 10px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Licensing Section */
.licensing-section {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(26, 35, 126, 0.1) 100%);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    border: 1px solid var(--border-color);
}

.licensing-header {
    text-align: center;
    margin-bottom: 40px;
}

.licensing-header h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.licensing-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.license-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.license-option {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    height: 100%;
}

.license-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.license-option.selected {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.2);
}

.license-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.3rem;
}

.license-option h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.license-option p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.license-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Featured Product Section */
.featured-product {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-info h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.product-info > p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Screenshots Grid */
.product-screenshots {
    padding: 20px;
}

.product-screenshots h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--text-color);
    text-align: center;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.screenshot-item {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.screenshot-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.screenshot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-image img {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.screenshot-overlay span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.screenshot-caption {
    padding: 15px;
    margin: 0;
    text-align: center;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Technology Stack Section (Clean Design) */
.tech-stack-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-category {
    text-align: center;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tech-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.tech-category h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tech-category h3 i {
    color: var(--primary-color);
}

.tech-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-3px);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.tech-item span {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a237e 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

.cta-content p {
    font-size: 1.1rem;
    font-color: white;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 8px;
}

.cta-buttons .btn i {
    margin-right: 10px;
}

/* =========================================== */
/* CUSTOM LIGHTBOX STYLES - DIPERBAIKI         */
/* =========================================== */

/* Overlay Background */
.custom-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9998;
    backdrop-filter: blur(8px);
    animation: fadeInOverlay 0.3s ease forwards;
}

.custom-lightbox-overlay.active {
    display: block;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Lightbox Container */
.custom-lightbox {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    animation: fadeInLightbox 0.3s ease forwards;
}

.custom-lightbox.active {
    display: flex;
}

@keyframes fadeInLightbox {
    from { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Lightbox Content - 60% dari halaman */
.custom-lightbox-content {
    position: relative;
    width: 80vw;        /* dari 60vw ke 80vw */
    max-width: 1100px;  /* dari 900px ke 1100px */
    height: 80vh;       /* dari 60vh ke 80vh */
    max-height: 800px;  /* dari 600px ke 800px */
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUpContent 0.4s ease forwards;
}

@keyframes slideUpContent {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lightbox Image */
.custom-lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

/* Lightbox Caption */
.custom-lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 16px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    line-height: 1.4;
}

/* Lightbox Close Button */
.custom-lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
}

.custom-lightbox-close:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Lightbox Navigation */
.custom-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1;
}

.custom-lightbox-prev,
.custom-lightbox-next {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
}

.custom-lightbox-prev:hover,
.custom-lightbox-next:hover {
    background: rgba(var(--primary-rgb), 0.9);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Lightbox Counter */
.custom-lightbox-counter {
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
    margin: 0 auto;
    backdrop-filter: blur(5px);
}

/* Loading Indicator */
.custom-lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Thumbnail Navigation */
.custom-lightbox-thumbnails {
    position: absolute;
    bottom: -120px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
}

.custom-lightbox-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.custom-lightbox-thumbnail:hover {
    opacity: 0.8;
    transform: translateY(-5px);
}

.custom-lightbox-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.custom-lightbox-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Lightbox */
@media (max-width: 1200px) {
    .custom-lightbox-content {
        width: 70vw;
        height: 70vh;
    }
}

@media (max-width: 992px) {
    .custom-lightbox-content {
        width: 80vw;
        height: 60vh;
    }
    
    .custom-lightbox-thumbnails {
        bottom: -100px;
    }
    
    .custom-lightbox-thumbnail {
        width: 70px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .custom-lightbox-content {
        width: 90vw;
        height: 50vh;
    }
    
    .custom-lightbox-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .custom-lightbox-prev,
    .custom-lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .custom-lightbox-caption {
        bottom: -50px;
        font-size: 14px;
        padding: 10px;
    }
    
    .custom-lightbox-thumbnails {
        bottom: -90px;
    }
    
    .custom-lightbox-thumbnail {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .custom-lightbox-content {
        width: 95vw;
        height: 45vh;
    }
    
    .custom-lightbox-caption {
        bottom: -45px;
        font-size: 13px;
    }
    
    .custom-lightbox-thumbnails {
        bottom: -80px;
        gap: 8px;
    }
    
    .custom-lightbox-thumbnail {
        width: 50px;
        height: 40px;
    }
}

/* Screenshot Links */
.screenshot-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.screenshot-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    border-radius: 8px;
}

.screenshot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-link:hover .screenshot-image img {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .grid-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tech-stack-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .license-options {
        grid-template-columns: 1fr;
    }
    
    .screenshot-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-card {
        padding: 25px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .hero-section .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .licensing-section {
        padding: 30px 20px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}