/* ===== ART SOFT - DDTECH.WEBSITE ===== */
/* Unique Developer Style with Animations */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --accent-cyan: #58a6ff;
    --accent-green: #3fb950;
    --accent-purple: #a371f7;
    --accent-orange: #f78166;
    --accent-yellow: #d29922;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border: #30363d;
    --glow-cyan: rgba(88, 166, 255, 0.4);
    --glow-green: rgba(63, 185, 80, 0.4);
    --glow-purple: rgba(163, 113, 247, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(88, 166, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 166, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-purple);
    bottom: 20%;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-green);
    top: 50%;
    right: 10%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(10px, -10px) rotate(3deg); }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    line-height: 1.2;
}

.code-text {
    font-family: 'JetBrains Mono', monospace;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--glow-cyan); }
    50% { box-shadow: 0 0 40px var(--glow-purple); }
}

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 600;
}

.logo-text span {
    color: var(--accent-cyan);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s;
}

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

nav a:hover::after {
    width: 100%;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--border);
}

.lang-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.lang-switcher a:hover {
    color: var(--text-primary);
    border-color: var(--border);
}

.lang-switcher a.active {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(88, 166, 255, 0.1);
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-green);
    margin-bottom: 30px;
    animation: slideInUp 0.8s ease;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    animation: slideInUp 0.8s ease 0.1s backwards;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 550px;
    animation: slideInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease 0.3s backwards;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--glow-cyan);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    background: var(--bg-tertiary);
}

/* ===== APPS SECTION ===== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header .tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-family: 'JetBrains Mono', monospace;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
}

/* ===== APP CARD ===== */
.app-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-green));
    opacity: 0;
    transition: opacity 0.3s;
}

.app-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.app-card:hover::before {
    opacity: 1;
}

.app-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 30px;
}

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

.app-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.app-info .tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.app-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.badge.ios {
    color: var(--accent-cyan);
    border: 1px solid rgba(88, 166, 255, 0.3);
}

.badge.android {
    color: var(--accent-green);
    border: 1px solid rgba(63, 185, 80, 0.3);
}

.app-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-item::before {
    content: '▹';
    color: var(--accent-green);
    font-size: 1.1rem;
}

/* ===== SCREENSHOTS ===== */
.screenshots {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 20px 0;
    margin: -20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.screenshots::-webkit-scrollbar {
    height: 6px;
}

.screenshots::-webkit-scrollbar-track {
    background: transparent;
}

.screenshots::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.screenshot {
    flex-shrink: 0;
    width: 140px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.screenshot:hover {
    transform: scale(1.05);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.2);
}

/* ===== DOWNLOAD BUTTONS ===== */
.download-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.store-btn:hover {
    border-color: var(--accent-cyan);
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.store-btn img {
    height: 24px;
}

.store-btn span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.store-btn strong {
    display: block;
    font-size: 0.95rem;
}

/* ===== TERMINAL SECTION ===== */
.terminal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin: 40px 0;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: 8px;
}

.terminal-line .prompt {
    color: var(--accent-green);
}

.terminal-line .command {
    color: var(--accent-cyan);
}

.terminal-line .output {
    color: var(--text-secondary);
}

.typing-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent-cyan);
    animation: cursor-blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 4px;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== CONTACT ===== */
.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-purple) 0%, transparent 50%);
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

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

.contact-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    position: relative;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    position: relative;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.contact-link:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== FOOTER ===== */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--accent-cyan);
    text-decoration: none;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PAGE HEADER ===== */
.page-hero {
    padding: 160px 0 80px;
    position: relative;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent-cyan);
}

.breadcrumb span {
    color: var(--text-muted);
}

/* ===== APP PAGE ===== */
.app-page-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.app-page-icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.app-page-info h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 10px;
}

.app-page-info .tagline {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.app-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.app-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
}

.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.content-section h3 {
    font-size: 1.2rem;
    margin: 25px 0 15px;
    color: var(--accent-cyan);
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-section ul {
    list-style: none;
    margin: 20px 0;
}

.content-section ul li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.content-section ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-green);
}

/* ===== SCREENSHOTS GALLERY ===== */
.screenshots-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.screenshots-gallery img {
    flex-shrink: 0;
    width: 200px;
    border-radius: 16px;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.screenshots-gallery img:hover {
    transform: scale(1.03);
    border-color: var(--accent-cyan);
}

/* ===== LEGAL PAGE ===== */
.legal-content {
    max-width: 800px;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.legal-content .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.4rem;
    margin: 40px 0 15px;
    color: var(--accent-cyan);
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content ul {
    list-style: none;
    margin: 15px 0;
}

.legal-content ul li {
    color: var(--text-secondary);
    padding: 6px 0 6px 20px;
    position: relative;
}

.legal-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-green);
}

/* ===== BACK LINK ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent-cyan);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero p {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .app-badges {
        justify-content: center;
    }
    
    .contact-card {
        padding: 40px 20px;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== GLITCH EFFECT ===== */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite linear alternate-reverse;
    color: var(--accent-cyan);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 3s infinite linear alternate-reverse;
    color: var(--accent-purple);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(-2px, 2px); }
    20% { clip-path: inset(30% 0 50% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(60% 0 20% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(95% 0 0 0); transform: translate(2px, -2px); }
    20% { clip-path: inset(50% 0 30% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(20% 0 60% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(5% 0 80% 0); transform: translate(-2px, 2px); }
    80% { clip-path: inset(70% 0 10% 0); transform: translate(2px, -2px); }
}
