:root {
    --primary-color: #03903f;
    --primary-light: #03903f;
    --primary-dark: #4B66C7;
    --secondary-color: #2A2D3E;
    --accent-color: #6680D8;
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --background-color: #1A1C27;
    --card-bg: rgba(255, 255, 255, 0.03);
    --nav-bg: rgba(26, 28, 39, 0.8);
    --nav-bg-scrolled: rgba(26, 28, 39, 0.95);
    --footer-bg: rgba(26, 28, 39, 0.9);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

[data-theme="light"] {
    --primary-color: #03903f;
    --primary-light: #03903f;
    --primary-dark: #4B66C7;
    --secondary-color: #F5F7FF;
    --text-color: #2A2D3E;
    --text-secondary: rgba(42, 45, 62, 0.7);
    --background-color: #FFFFFF;
    --card-bg: rgba(102, 128, 216, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
    --footer-bg: rgba(245, 247, 255, 0.9);
    --border-color: rgba(102, 128, 216, 0.2);
}

[data-theme="light"] .link-icon {
    color: var(--primary-color);
}

[data-theme="light"] .link-released {
    color: var(--primary-color);
}

[data-theme="light"] .social-link:hover {
    color: var(--primary-color);
}

[data-theme="light"] .tab-button.active {
    color: var(--primary-color);
}

[data-theme="light"] .tab-button.active::after {
    background: var(--primary-color);
}

[data-theme="light"] .link-icon {
    background: rgba(102, 128, 216, 0.15);
}

[data-theme="light"] .link-item:hover .link-icon {
    background: rgba(102, 128, 216, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    margin: 0;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top center, rgba(102, 128, 216, 0.15) 0%, transparent 70%),
                linear-gradient(180deg, var(--background-color) 0%, var(--background-color) 100%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 20px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: calc(60px + 2rem);
}

.profile {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    position: relative;
}

.profile-image-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
    cursor: pointer;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 0;
    background: var(--background-color);
    box-shadow: 0 10px 30px rgba(102, 128, 216, 0.2);
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image-wrapper:hover .profile-image {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 128, 216, 0.3);
}

.profile-name {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 500;
    padding: 0 1rem;
    position: relative;
    opacity: 0.9;
}

.profile-bio::before,
.profile-bio::after {
    content: '';
    position: absolute;
    height: 1px;
    width: 40px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    left: 50%;
    transform: translateX(-50%);
}

.profile-bio::before {
    top: -1rem;
}

.profile-bio::after {
    bottom: -1rem;
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.tab-button:hover {
    color: var(--text-color);
    background: rgba(102, 128, 216, 0.1);
}

.tab-button.active {
    color: var(--primary-light);
    background: rgba(102, 128, 216, 0.15);
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.link-item.hidden {
    display: none;
}

.link-item {
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.link-item:nth-child(1) { animation-delay: 0.2s; }
.link-item:nth-child(2) { animation-delay: 0.3s; }
.link-item:nth-child(3) { animation-delay: 0.4s; }
.link-item:nth-child(4) { animation-delay: 0.5s; }
.link-item:nth-child(5) { animation-delay: 0.6s; }

.link-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(102, 128, 216, 0.1);
}

.link-item:hover .link-icon {
    background: rgba(102, 128, 216, 0.2);
    transform: scale(1.05);
}

.link-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    background: rgba(102, 128, 216, 0.1);
    border-radius: 10px;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.link-text {
    flex: 1;
}

.link-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.link-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.link-released {
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-top: 0.25rem;
}

.link-thumbnail {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.link-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.link-item:hover .link-thumbnail {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

/* Special styling for film items with thumbnails */
.link-item[data-category="film"] {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.link-item[data-category="film"] .link-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: none;
    z-index: 0;
}

.link-item[data-category="film"] .link-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 28, 39, 0.85) 0%,
        rgba(26, 28, 39, 0.75) 50%,
        rgba(26, 28, 39, 0.95) 100%
    );
    z-index: 1;
}

[data-theme="light"] .link-item[data-category="film"] .link-thumbnail::after {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(255, 255, 255, 0.6) 40%,
        rgba(255, 255, 255, 0.85) 80%,
        rgba(255, 255, 255, 0.95) 100%
    );
}

.link-item[data-category="film"] .link-icon,
.link-item[data-category="film"] .link-text {
    position: relative;
    z-index: 2;
}

.link-item[data-category="film"] .link-text {
    flex: 1;
    padding: 1.25rem;
}

[data-theme="light"] .link-item[data-category="film"] .link-title {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .link-item[data-category="film"] .link-description {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .link-item[data-category="film"] .link-released {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.link-item[data-category="film"] .link-icon {
    margin-left: 1.25rem;
}

.link-item[data-category="film"]:hover .link-thumbnail {
    transform: scale(1.02);
}

.link-item[data-category="film"]:hover .link-thumbnail::after {
    background: linear-gradient(
        to bottom,
        rgba(26, 28, 39, 0.75) 0%,
        rgba(26, 28, 39, 0.65) 50%,
        rgba(26, 28, 39, 0.85) 100%
    );
}

[data-theme="light"] .link-item[data-category="film"]:hover .link-thumbnail::after {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.5) 40%,
        rgba(255, 255, 255, 0.75) 80%,
        rgba(255, 255, 255, 0.9) 100%
    );
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary-light);
    transform: translateY(-3px);
}

.social-icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
    transition: all 0.3s ease;
}

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

footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--text-color);
    opacity: 0.9;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-toggle .sun {
    opacity: 0;
    transform: scale(0.5);
}

.theme-toggle .moon {
    opacity: 0.9;
    transform: scale(1);
}

[data-theme="light"] .theme-toggle .sun {
    opacity: 0.9;
    transform: scale(1);
}

[data-theme="light"] .theme-toggle .moon {
    opacity: 0;
    transform: scale(0.5);
}

[data-theme="light"] body {
    background: radial-gradient(circle at top center, rgba(102, 128, 216, 0.1) 0%, transparent 70%),
                linear-gradient(180deg, var(--background-color) 0%, var(--background-color) 100%);
}

.github-status {
    position: relative;
    height: 40px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.github-status:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    background: var(--card-bg);
}

.github-status-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.github-status-header i {
    font-size: 1.1rem;
}

.github-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
}

.github-badge {
    height: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.apps-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    overflow: hidden;
}

.apps-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.app-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.app-info h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.app-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.app-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.app-download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.app-download-btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.app-download-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.app-download-btn.secondary {
    background: var(--card-bg);
    color: var(--text-color);
}

.app-download-btn.secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.app-download-btn i {
    font-size: 1.1rem;
}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Media Queries */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem 20px;
    }

    .profile-name {
        font-size: 2.2rem;
    }

    .profile-bio {
        font-size: 1.1rem;
        padding: 0 2rem;
    }

    .apps-section {
        margin: 2rem 0;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .github-badges {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem 16px;
        padding-top: calc(60px + 1rem);
    }

    .profile-name {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .profile-bio {
        font-size: 1rem;
        padding: 0 1rem;
        max-width: 100%;
    }

    .profile-image-wrapper {
        width: 100px;
        height: 100px;
        margin-top: 1rem;
    }

    .links {
        gap: 0.75rem;
    }

    .link-item {
        padding: 1rem;
    }

    .link-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.1rem;
    }

    .link-title {
        font-size: 1rem;
    }

    .link-description {
        font-size: 0.85rem;
    }

    .link-item[data-category="film"] .link-text {
        padding: 1rem;
    }

    .link-item[data-category="film"] .link-icon {
        margin-left: 1rem;
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.1rem;
    }

    .apps-section {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

    .apps-section h2 {
        font-size: 1.3rem;
    }

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

    .app-card {
        width: 100%;
        margin: 0;
    }

    .app-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .app-download-btn {
        min-width: 140px;
        flex: 0 1 auto;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .social-links {
        gap: 1.25rem;
    }

    .social-link {
        font-size: 1.3rem;
    }

    footer {
        padding: 1.5rem 0;
        font-size: 0.85rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .github-status span {
        display: none;
    }

    .github-status {
        width: 40px;
        padding: 0;
        justify-content: center;
    }

    .tabs-container {
        padding: 0.4rem;
        gap: 0.4rem;
    }

    .tab-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        max-width: 120px;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 0.75rem 12px;
        padding-top: calc(60px + 0.75rem);
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .profile-bio {
        font-size: 0.9rem;
        padding: 0 1rem;
        max-width: 100%;
    }

    .profile-image-wrapper {
        width: 80px;
        height: 80px;
        margin-top: 0.75rem;
    }

    .apps-section {
        padding: 1rem;
    }

    .link-item[data-category="film"] .link-text {
        padding: 0.875rem;
    }

    .link-item[data-category="film"] .link-icon {
        margin-left: 0.875rem;
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1rem;
    }

    .app-buttons {
        flex-direction: column;
    }

    .app-download-btn {
        width: 100%;
    }

    .social-links {
        gap: 1rem;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .container {
        padding-top: calc(60px + 1rem);
    }

    .profile-image-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
        margin-top: 0.5rem;
    }

    .profile-name {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .profile-bio {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}
