/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-color: #ffffff;
    --accent-secondary: #555555;
    --success-color: #ffffff;
    --gradient-1: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --gradient-2: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    --gradient-3: linear-gradient(135deg, #0a0a0a 0%, #151515 100%);
    --mid-gray: #888888;
    --light-white: #ffffff;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    background: var(--primary-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    min-width: 480px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(100, 100, 100, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 25% 75%, rgba(200, 200, 200, 0.01) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

body {
    padding-top: 60px; /* Space for fixed header buttons */
    min-width: 480px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    min-width: 480px; /* Minimum viewport width */
}

/* Header */
header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1.5rem 0 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: auto;
}

/* Remove decorative background elements for pure white header */
/* header::before {} */

/* Remove decorative line after title */

header .container {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #000000;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

header p {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 1.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 0.01em;
}

header .lang-buttons {
    position: fixed;
    top: 1rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 400;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--text-secondary);
    color: var(--primary-bg);
    border-color: var(--text-secondary);
    transform: none;
    box-shadow: none;
}

/* Main Sections */
section {
    padding-top: 3rem;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: var(--border-color);
    opacity: 0.2;
}

section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

section p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.skill-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-3);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-item:hover::before {
    transform: scaleX(1);
}

.skill-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--text-secondary);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.1);
}

.skill-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
    position: relative;
    z-index: 2;
}

.skill-item ul {
    list-style: none;
    text-align: left;
    position: relative;
    z-index: 2;
}

.skill-item li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    padding-left: 1.25rem;
    position: relative;
}

.skill-item li::before {
    content: '▶';
    color: var(--text-secondary);
    font-size: 0.8rem;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* Contact Section */
.contact-info {
    text-align: center;
    margin-top: 2rem;
}

.contact-item {
    display: inline-block;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.75rem;
    border-radius: 15px;
    margin: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    transform: translateY(-2px);
    border-color: var(--text-secondary);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(255, 255, 255, 0.1);
}

.contact-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Funding Section */
.funding-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.funding-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.75rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.funding-item:hover {
    transform: translateY(-3px);
    border-color: var(--text-secondary);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 16px rgba(255, 255, 255, 0.05);
}

.funding-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.funding-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.funding-item code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.4;
    letter-spacing: 0.5px;
    word-break: break-all;
    flex: 1;
    border: 1px solid var(--border-color);
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.funding-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.funding-item a:hover {
    color: var(--accent-color);
    border-color: var(--text-secondary);
    transform: scale(1.1);
}

/* Copy Button Styles */
.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0;
    transition: all 0.3s ease;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.copy-btn:hover {
    color: var(--accent-color);
    border-color: var(--text-secondary);
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

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

.copy-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.copy-btn:hover svg {
    stroke-width: 2.5;
}

.address-text {
    cursor: text;
    user-select: text;
}

/* QR Code Styles */
.qr-link {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
}

.qr-link:hover {
    border-color: var(--text-secondary);
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.qr-code-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(0.5);
    transition: filter 0.3s ease;
}

.qr-link:hover .qr-code-thumb {
    filter: grayscale(0);
}

/* Footer */
footer {
    background: var(--secondary-bg);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-3);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 50px;
    }

    .container {
        padding: 0 1.5rem;
        max-width: 90vw;
    }

    .lang-buttons {
        top: 1rem;
        right: 1rem;
        gap: 8px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    header {
        padding: 2.5rem 0 3rem 0;
    }

    header::after {
        width: 60px;
        top: 30px;
    }

    header h1 {
        font-size: 3rem;
    }

    header h1::after {
        width: 50px;
        margin: 1rem auto 0;
    }

    header p {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
        max-width: 500px;
        color: #000000;
    }

    section {
        padding: 2rem 0;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-item {
        padding: 1.5rem 1rem;
    }

    .contact-item {
        margin: 0.5rem;
        padding: 1rem 1.5rem;
        display: inline-block;
        width: calc(50% - 1rem);
    }

    .title-row {
        justify-content: space-between;
        gap: 0.75rem;
    }

    .funding-item a {
        align-self: center;
    }

    .copy-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0.6rem;
    }

    .copy-btn svg {
        width: 18px;
        height: 18px;
    }

    .qr-link {
        width: 40px;
        height: 40px;
    }

    .qr-code-thumb {
        width: 38px;
        height: 38px;
        border-radius: 4px;
    }

    .skill-item li {
        font-size: 0.9rem;
    }
}

/* Medium mobile devices (landscape phones, 480px - 640px) */
@media (max-width: 640px) and (min-width: 481px) {
    .container {
        padding: 0 1rem;
    }

    .lang-buttons {
        top: 0.75rem;
        right: 0.75rem;
        gap: 6px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.1rem;
        max-width: 450px;
    }

    .contact-item {
        display: inline-block;
        width: calc(50% - 1rem);
        margin: 0.5rem;
        max-width: none;
    }

    .qr-link {
        width: 55px;
        height: 55px;
    }

    .qr-code-thumb {
        width: 52px;
        height: 52px;
    }

    .funding-item code {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }

    .copy-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 50px;
    }

    .container {
        padding: 0 0.75rem;
    }

    .lang-buttons {
        position: fixed;
        top: 0.5rem;
        right: 0.5rem;
        z-index: 1000;
        display: flex;
        gap: 5px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
        min-height: 32px;
        display: flex;
        align-items: center;
    }

    header {
        padding: 3rem 0 4rem 0;
    }

    header::after {
        width: 40px;
        top: 20px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    header h1::after {
        width: 30px;
        margin: 0.75rem auto 0;
    }

    header p {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 350px;
        color: #000000;
    }

    section h2 {
        font-size: 1.6rem;
    }

    .skill-item {
        padding: 1.25rem 0.75rem;
    }

    .contact-item {
        padding: 0.75rem 1rem;
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0.5rem auto;
        text-align: center;
    }

    .funding-item {
        padding: 1rem 1.25rem;
    }

    .funding-item code {
        font-size: 0.7rem;
        padding: 0.5rem 0.8rem;
        word-break: break-word;
    }

    .qr-link {
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0;
    }

    .qr-code-thumb {
        width: 44px !important;
        height: 44px !important;
    }

    .title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .copy-btn {
        align-self: flex-end;
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--text-secondary) 0%, var(--accent-secondary) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

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

/* Apply animation to main sections */
section {
    animation: fadeInUp 0.6s ease-out forwards;
}

.skill-item {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Extra large screens */
@media (min-width: 1201px) {
    .container {
        max-width: 1400px;
    }

    header h1 {
        font-size: 3.5rem;
    }

    header p {
        font-size: 1.3rem;
        max-width: 700px;
    }

    .funding-info {
        max-width: 800px;
    }

    .contact-item {
        padding: 1.5rem 2rem;
    }
}

/* Utility Classes */
.glow-text {
    text-shadow: 0 0 20px var(--accent-color);
}

/* Enhanced touch targets for mobile */
@media (max-width: 768px) {
    .lang-btn,
    .copy-btn,
    .qr-link,
    .contact-item {
        min-height: 44px;
        min-width: 44px;
    }
}


/* Medium tablets (480px+) funding adjustments */
@media (min-width: 480px) {
    .funding-item {
        flex-direction: row !important; /* Keep horizontal layout */
        gap: 1.25rem !important;
    }

    .funding-item .qr-link {
        border: 2px solid var(--border-color) !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }


    .funding-item .qr-link:hover {
        transform: scale(1.05) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    }

    .funding-content {
        flex: 1 !important;
    }

    .copy-btn {
        width: 48px !important;
        height: 48px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 12px !important;
    }

    .funding-item code {
        font-size: 0.8rem !important;
        padding: 0.75rem 1rem !important;
        word-break: break-all !important;
    }
}