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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e0e7ff;
    background: #0f172a;
    background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #60a5fa;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: minmax(250px, 1fr);
    gap: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-background img.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #e0e7ff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

main {
    padding: 4rem 0;
}

section {
    margin-bottom: 6rem;
    padding: 0 1rem;
}

section:last-child {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e0e7ff;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #94a3b8;
}

.project-card {
    background: rgba(30, 41, 59, 0.4);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(30, 41, 59, 0.6);
}

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

.project-card h3 {
    font-size: 1.5rem;
    color: #e0e7ff;
    margin-right: 1rem;
    font-weight: 600;
}

.tech-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.project-card p {
    color: #94a3b8;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

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

.channel-card {
    background: rgba(30, 41, 59, 0.4);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(30, 41, 59, 0.6);
}

.channel-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.channel-card h3 {
    font-size: 1.5rem;
    color: #e0e7ff;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.channel-card p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.channel-link {
    color: #60a5fa;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.channel-card:hover .channel-link {
    gap: 0.75rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background: rgba(30, 41, 59, 0.4);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(30, 41, 59, 0.6);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-item h4 {
    font-size: 1.25rem;
    color: #e0e7ff;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.skill-item p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}



.loading {
    text-align: center;
    padding: 2rem;
    color: #60a5fa;
    font-style: italic;
}

.error {
    color: #f87171;
    text-align: center;
    padding: 2rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #93c5fd;
}

.star-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.youtube {
    margin-bottom: 3rem;
}

#youtube-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.video-info {
    padding: 1.25rem;
}

.video-info h4 {
    font-size: 1rem;
    color: #e0e7ff;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-weight: 600;
}

.video-date {
    font-size: 0.875rem;
    color: #94a3b8;
}

.youtube-placeholder {
    background: rgba(30, 41, 59, 0.6);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.youtube-placeholder p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #cbd5e1;
}

.youtube-placeholder .small {
    font-size: 0.95rem;
    color: #93c5fd;
}

.setup-instructions {
    background: rgba(15, 23, 42, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    text-align: left;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.setup-instructions h4 {
    color: #93c5fd;
    margin-bottom: 1rem;
}

.setup-instructions ol {
    margin-left: 1.5rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.setup-instructions a {
    color: #60a5fa;
    text-decoration: underline;
}

footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: #60a5fa;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #60a5fa;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.875rem;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.policy-content h1 {
    font-size: 2.5rem;
    color: #e0e7ff;
    margin-bottom: 1rem;
}

.policy-content h2 {
    font-size: 1.75rem;
    color: #93c5fd;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-content p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-content a {
    color: #60a5fa;
    text-decoration: underline;
}

.effective-date {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.back-link {
    margin-top: 3rem;
    text-align: center;
}

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

.app-card {
    background: rgba(30, 41, 59, 0.4);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(30, 41, 59, 0.6);
}

.app-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.app-card h3 {
    font-size: 1.5rem;
    color: #e0e7ff;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.app-card p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.app-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-link {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.app-link.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.app-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.app-link.secondary {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.app-link.secondary:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.app-link.disabled {
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
    border: 2px solid rgba(100, 116, 139, 0.3);
    cursor: not-allowed;
}

.app-card.in-development {
    position: relative;
    opacity: 0.9;
}

.dev-badge {
    display: inline-block;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(251, 191, 36, 0.4);
    margin-bottom: 0.75rem;
}

.featured-project {
    margin-bottom: 3rem;
}

.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card.special {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

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

.project-card.special:hover::before {
    left: 100%;
}

.project-card.special:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 12px 50px rgba(59, 130, 246, 0.3);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: rgba(15, 23, 42, 0.95);
    margin: 5% auto;
    width: 95%;
    max-width: 1200px;
    height: 85vh;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(30, 41, 59, 0.6);
}

.modal-header h3 {
    color: #e0e7ff;
    font-size: 1.5rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.25rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.close-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.modal-content iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: white;
}

@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        height: 90vh;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
