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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --background-dark: #1f2937;
    --background-light: #1f2937;
    --surface: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e1;
    --border-color: #475569;
    --success: #10b981;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --smooth-rgb: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
    --smooth-glow: 0 0 20px rgba(255, 107, 107, 0.3), 0 0 40px rgba(78, 205, 196, 0.2), 0 0 60px rgba(69, 183, 209, 0.1);
    --card-glow: 0 0 20px rgba(99, 102, 241, 0.2), 0 0 40px rgba(99, 102, 241, 0.1);
    --button-glow: 0 0 15px rgba(99, 102, 241, 0.4), 0 0 30px rgba(99, 102, 241, 0.2);
}

@keyframes smooth-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes smooth-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.3), 0 0 40px rgba(78, 205, 196, 0.2);
    }
    33% { 
        box-shadow: 0 0 25px rgba(69, 183, 209, 0.4), 0 0 50px rgba(150, 206, 180, 0.3);
    }
    66% { 
        box-shadow: 0 0 30px rgba(254, 202, 87, 0.4), 0 0 60px rgba(255, 159, 243, 0.3);
    }
}

@keyframes smooth-border {
    0% { border-color: rgba(255, 107, 107, 0.8); }
    20% { border-color: rgba(78, 205, 196, 0.8); }
    40% { border-color: rgba(69, 183, 209, 0.8); }
    60% { border-color: rgba(150, 206, 180, 0.8); }
    80% { border-color: rgba(254, 202, 87, 0.8); }
    100% { border-color: rgba(255, 159, 243, 0.8); }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1f2937;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #1f2937;
    border-bottom: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo h2 {
    background: var(--smooth-rgb);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
    animation: smooth-shift 6s ease-in-out infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--smooth-rgb);
    background-size: 400% 400%;
    transition: width 0.3s ease;
    animation: smooth-shift 4s ease-in-out infinite;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: #1f2937;
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--smooth-rgb);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    animation: smooth-shift 8s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: var(--smooth-rgb);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: smooth-shift 10s ease-in-out infinite;
    position: relative;
    min-height: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--button-glow);
}

.btn-primary {
    background: var(--smooth-rgb);
    background-size: 400% 400%;
    color: white;
    box-shadow: var(--smooth-glow);
    animation: smooth-glow 3s ease-in-out infinite, smooth-shift 8s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.4), 0 0 60px rgba(78, 205, 196, 0.3), var(--button-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid transparent;
    background-image: var(--smooth-rgb);
    background-size: 400% 400%;
    background-clip: padding-box;
    position: relative;
    animation: smooth-shift 10s ease-in-out infinite;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--background-dark);
    border-radius: inherit;
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--smooth-glow);
    animation: smooth-glow 2s ease-in-out infinite, smooth-shift 5s ease-in-out infinite;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-window {
    background: var(--background-light);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
}

.window-header {
    background: var(--surface);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

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

.control.close {
    background: #ef4444;
}

.control.minimize {
    background: #f59e0b;
}

.control.maximize {
    background: #10b981;
}

.window-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.code-content {
    padding: 1.5rem;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
}

.code-line {
    display: flex;
    margin-bottom: 0.5rem;
}

.line-number {
    color: var(--text-muted);
    margin-right: 1rem;
    user-select: none;
    width: 20px;
}

.keyword {
    color: #c792ea;
}

.variable {
    color: #82aaff;
}

.string {
    color: #c3e88d;
}

.function {
    color: #ffcb6b;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--smooth-rgb);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: smooth-shift 12s ease-in-out infinite;
}

.projects {
    padding: 80px 0;
    background: var(--background-dark);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--smooth-rgb);
    background-size: 400% 400%;
    opacity: 0.1;
    animation: smooth-shift 30s ease-in-out infinite;
    z-index: -1;
}

.projects-section {
    margin-bottom: 60px;
}

.projects-section:last-child {
    margin-bottom: 0;
}

.projects-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
}
}

#most-downloads .projects-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    max-width: 1200px;
    margin: 0 auto;
    width: 100% !important;
}

.projects-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    max-width: 1200px;
    margin: 0 auto;
    width: 100% !important;
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
}

.project-card {
    background: var(--background-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), var(--card-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--smooth-rgb);
    background-size: 400% 400%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: smooth-shift 20s ease-in-out infinite;
    z-index: -1;
    border-radius: inherit;
}

.project-card:hover::before {
    opacity: 0.02;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), var(--smooth-glow);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.project-info p {
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.download-btn {
    background: var(--smooth-rgb);
    background-size: 400% 400%;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    animation: smooth-shift 16s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    box-shadow: var(--button-glow);
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4), var(--button-glow);
}

.download-count {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact {
    padding: 6rem 0;
    background: var(--background-dark);
}

.contact-content-centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.footer {
    background: var(--background-dark);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section h3 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section p,
.footer-section ul {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.platforms {
    padding: 5rem 0;
    background: var(--background-dark);
    position: relative;
    overflow: hidden;
}

.platforms::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--smooth-rgb);
    background-size: 400% 400%;
    opacity: 0.02;
    animation: smooth-shift 20s ease-in-out infinite;
    z-index: -1;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.platform-card {
    background: var(--surface);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-glow);
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--smooth-rgb);
    background-size: 400% 400%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: smooth-shift 12s ease-in-out infinite;
    z-index: -1;
}

.platform-card:hover::before {
    opacity: 0.05;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--smooth-glow), var(--card-glow);
    border-color: rgba(255, 107, 107, 0.3);
}

.platform-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.platform-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--smooth-rgb);
    background-size: 400% 400%;
    opacity: 0.1;
    animation: smooth-shift 8s ease-in-out infinite;
    border-radius: inherit;
}

.platform-image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.platform-info h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--smooth-rgb);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: smooth-shift 10s ease-in-out infinite;
}

.platform-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.platform-link {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--background-light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .service-card,
    .project-content {
        padding: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem;
    }
}

html {
    scroll-behavior: smooth;
}

.nav-menu.active ~ .hamburger .bar:nth-child(2) {
    opacity: 0;
}

.nav-menu.active ~ .hamburger .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-menu.active ~ .hamburger .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}