/* CSS Variables & Reset - Shared consistency */
:root {
    /* Color Palette - Main */
    --bg-deep: #0f172a;
    /* Slightly different deep blue for contrast */
    --bg-card: #1e293b;
    --primary: #38bdf8;
    /* Sky blue */
    --secondary: #a855f7;
    /* Purple */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);

    /* Glassmorphism */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;

    /* Layout */
    --container-width: 1000px;
    --font-main: 'Outfit', sans-serif;
}

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

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Main Content */
main {
    flex: 1;
    padding: 60px 0;
}

/* Intro Section */
.intro {
    text-align: center;
    margin-bottom: 80px;
}

.avatar-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-brand);
    margin: 24px auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    padding: 3px;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    background: var(--bg-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Apps Section */
.apps-section h2 {
    font-size: 2rem;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.apps-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    gap: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
}

.app-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    flex-shrink: 0;
}

.app-details {
    flex: 1;
    min-width: 0;
}

.app-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.app-title h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.app-tag {
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
}

.app-tag.development {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.app-desc {
    color: var(--text-muted);
    margin-bottom: 0;
    max-width: 100%;
}

.app-actions {
    margin-top: 10px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
}

.btn-link:hover {
    gap: 12px;
}

.coming-soon {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Desktop Horizontal Layout */
@media (min-width: 769px) {
    .app-card {
        flex-direction: row;
        text-align: left;
        align-items: center;
        padding: 40px;
        gap: 32px;
    }

    .app-card:hover {
        transform: translateX(10px);
    }

    .app-header {
        min-width: 140px;
    }

    .app-title {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .app-details {
        text-align: left;
    }

    .app-actions {
        min-width: 150px;
        text-align: right;
        margin-top: 0;
    }
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

/* Tech Stack */
.tech-stack {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

.tech-stack h3 {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tech-name {
    position: absolute;
    top: -30px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid var(--glass-border);
}

.tech-item:hover {
    transform: translateY(-10px) scale(1.15);
}

.tech-item:hover i {
    opacity: 1;
}

.tech-item:hover .tech-name {
    opacity: 1;
    transform: translateY(0);
}

/* Representative Colors on Hover */
.tech-item[data-color="#3DDC84"]:hover i {
    color: #3DDC84;
}

/* Android */
.tech-item[data-color="#7F52FF"]:hover i {
    color: #7F52FF;
}

/* Kotlin */
.tech-item[data-color="#512BD4"]:hover i {
    color: #512BD4;
}

/* .NET */
.tech-item[data-color="#DD0031"]:hover i {
    color: #DD0031;
}

/* Angular */
.tech-item[data-color="#E34F26"]:hover i {
    color: #E34F26;
}

/* HTML5 */
.tech-item[data-color="#1572B6"]:hover i {
    color: #1572B6;
}

/* CSS3 */
.tech-item[data-color="#F7DF1E"]:hover i {
    color: #F7DF1E;
}

/* JS */
.tech-item[data-color="#F05032"]:hover i {
    color: #F05032;
}

/* Git */

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .intro {
        margin-bottom: 40px;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .tech-icons {
        gap: 24px;
    }
}