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

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #ffff00;
    --accent-hover: #ffff66;
    --border: #222222;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.logo-container {
    margin-bottom: 60px;
}

.site-logo {
    width: 900px;
    height: 400px;
    object-fit: cover;
    max-width: 100%;
}

.back-button {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    margin-bottom: 20px;
}

.back-button:hover {
    color: var(--text-primary);
}

main {
    flex: 1;
}

.apps-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    min-height: 400px;
    padding: 40px 0;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 60px 80px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 400px;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(74, 158, 255, 0.1);
}

.app-icon-wrapper {
    margin-bottom: 30px;
}

.app-icon {
    width: 150px;
    height: 150px;
    border-radius: 30px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.app-icon-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 30px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a, #1a1a1a);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.placeholder-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.app-name {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.app-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
}

.blurred {
    filter: blur(8px);
    user-select: none;
}

.app-card.coming-soon {
    cursor: default;
    opacity: 0.7;
    position: relative;
}

.app-card.coming-soon:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
}

.coming-soon-badge {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Detail Page Styles */
.detail-page header {
    text-align: center;
    margin-bottom: 40px;
}

.detail-page .logo-container {
    margin-bottom: 20px;
}

.detail-page .back-button {
    display: block;
    text-align: left;
    margin: 20px auto 0;
    max-width: 800px;
}

.app-detail {
    max-width: 800px;
    margin: 0 auto;
}

.app-header {
    text-align: center;
    margin-bottom: 60px;
}

.app-icon-large {
    width: 180px;
    height: 180px;
    border-radius: 40px;
    object-fit: cover;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    margin-bottom: 30px;
}

.app-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.app-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.app-description {
    margin-top: 40px;
}

.description-section {
    margin-bottom: 50px;
}

.description-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.description-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.features-list {
    list-style: none;
}

.features-list li {
    margin-bottom: 25px;
    padding-left: 0;
}

.features-list strong {
    display: block;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.features-list p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.simple-list {
    list-style: none;
    padding-left: 0;
}

.simple-list li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.simple-list li:before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

footer {
    text-align: center;
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer p:first-child {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1rem;
}

footer p:last-child {
    font-size: 0.85rem;
}

/* Contact Us Button */
.contact-section {
    text-align: center;
    margin: 60px 0 40px 0;
}

.contact-us-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 255, 0, 0.2);
}

.contact-us-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 0, 0.4);
}

.contact-us-btn:active {
    transform: translateY(-1px);
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 30px auto 0;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 255, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Form validation styles - only show after user interaction */
.form-group input.touched:invalid,
.form-group select.touched:invalid,
.form-group textarea.touched:invalid {
    border-color: #ff6b6b;
}

.form-group input.touched:valid,
.form-group select.touched:valid,
.form-group textarea.touched:valid {
    border-color: var(--accent);
}

/* Show validation on focus for better UX */
.form-group input:focus:invalid,
.form-group select:focus:invalid,
.form-group textarea:focus:invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

/* Contact page specific styles */
.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-description {
    max-width: 800px;
    margin: 0 auto;
}

.contact-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 0, 0.3);
}

.inline-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.contact-note {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    border-radius: 5px;
}

.thank-you-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.thank-you-actions .contact-link {
    margin: 0;
    flex: 1;
    min-width: 180px;
    max-width: 250px;
    text-align: center;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-title {
        font-size: 2rem;
    }

    .site-logo {
        width: 150px;
        height: 150px;
    }

    .app-card {
        padding: 40px 40px;
        width: 100%;
        max-width: 400px;
        height: auto;
        min-height: 380px;
    }

    .app-icon {
        width: 120px;
        height: 120px;
    }

    .app-name {
        font-size: 1.5rem;
    }

    .app-title {
        font-size: 2rem;
    }

    .app-icon-large {
        width: 140px;
        height: 140px;
    }

    .description-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .site-logo {
        width: 260px;
        height: 120px;
    }
    
    .logo-container {
        margin-bottom: 40px;
    }
}

/* Smooth transitions */
a, button {
    transition: all 0.3s ease;
}

/* ========== LANGUAGE SWITCHER ========== */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent);
    color: #ffffff;
}

.lang-btn:active {
    transform: scale(0.95);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lang-switcher {
        top: 15px;
        right: 15px;
        padding: 5px;
        gap: 6px;
    }
    
    .lang-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ========== PRIVACY POLICY BUTTONS ========== */
.privacy-policy-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.privacy-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.privacy-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.2);
}

.privacy-flag {
    font-size: 2rem;
    line-height: 1;
}

.privacy-lang {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .privacy-policy-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .privacy-btn {
        padding: 18px 12px;
    }
    
    .privacy-flag {
        font-size: 2rem;
    }
    
    .privacy-lang {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .privacy-policy-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ========== FEATURES ACCORDION ========== */
.features-toggle {
    width: 100%;
    padding: 18px 25px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.features-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.features-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.features-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 0;
}

.features-content.active {
    max-height: 5000px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .features-toggle {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

/* ========== SCREENSHOTS CAROUSEL ========== */
.screenshots-carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 60px;
}

.carousel-container {
    overflow: hidden;
    border-radius: 20px;
    background: #1F221A;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1F221A;
    padding: 10px;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
    border-radius: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #FFD700;
    font-size: 3rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-btn:hover {
    color: #FFC700;
    transform: translateY(-50%) scale(1.2);
    text-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 6px;
}

/* Touch swipe support indicator */
@media (max-width: 768px) {
    .screenshots-carousel {
        padding: 0 40px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 2.5rem;
    }
    
    .carousel-slide {
        min-width: 100%;
        padding: 5px;
    }
    
    .carousel-slide img {
        max-height: 600px;
    }
}

@media (max-width: 480px) {
    .screenshots-carousel {
        padding: 0 20px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 2.2rem;
    }
    
    .carousel-slide {
        min-width: 100%;
        padding: 5px;
    }
    
    .carousel-slide img {
        max-height: 600px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active {
        width: 24px;
    }
}

