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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000 0%, rgba(139, 92, 246, 0.2) 50%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-title {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: bold;
    background: linear-gradient(45deg, #fff, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: loadingPulse 2s ease-in-out;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    margin: 2rem auto 0;
    border-radius: 2px;
    animation: loadingBar 1.5s ease-in-out 0.5s;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes loadingPulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes loadingBar {
    to { transform: scaleX(1); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

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

.nav-link {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #8b5cf6;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    transition: width 0.3s ease;
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #000 0%, rgba(139, 92, 246, 0.1) 50%, #000 100%);
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 0 20px;
    animation: heroFadeIn 1s ease-out;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 10rem);
    font-weight: bold;
    background: linear-gradient(45deg, #fff, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    animation: titleSlideUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #d1d5db;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    animation: subtitleSlideUp 1s ease-out 0.4s both;
    transform: translateY(-20px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: buttonsSlideUp 1s ease-out 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #8b5cf6;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Particles */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #8b5cf6;
    color: #8b5cf6;
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: bold;
    background: linear-gradient(45deg, #fff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    margin: 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    color: #d1d5db;
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.avatar-container {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar-container::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(45deg, #8b5cf6, #a855f7, #8b5cf6);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 10s linear infinite;
}

.avatar {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    color: white;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-text p {
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.tech-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag {
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Skills Section */
.skills {
    padding: 5rem 0;
    background: linear-gradient(180deg, #000, rgba(139, 92, 246, 0.05));
}

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

.skill-card {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-5px);
}

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

.skill-header i {
    color: #8b5cf6;
    font-size: 1.5rem;
}

.skill-header h3 {
    font-size: 1.3rem;
    color: white;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: #374151;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
}

.skill-percent {
    color: #c4b5fd;
    font-size: 0.9rem;
}

/* Frontend Dev Section */
.frontend-dev {
    padding: 5rem 0;
}

.frontend-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.frontend-card {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.frontend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

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

.frontend-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.frontend-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.frontend-card h3 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.frontend-card p {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 1rem;
}

.frontend-summary {
    background: rgba(31, 41, 55, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin-top: 3rem;
}

.frontend-summary h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.frontend-summary p {
    color: #d1d5db;
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05), #000);
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-btn {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: rgba(31, 41, 55, 0.5);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

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

.contact-btn:hover {
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.telegram-btn:hover {
    border-color: #0088cc;
    box-shadow: 0 20px 40px rgba(0, 136, 204, 0.2);
}

.discord-btn:hover {
    border-color: #5865f2;
    box-shadow: 0 20px 40px rgba(88, 101, 242, 0.2);
}

.btn-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.telegram-btn .btn-icon {
    background: linear-gradient(135deg, #0088cc, #00a0e6);
    color: white;
}

.discord-btn .btn-icon {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
}

.contact-btn:hover .btn-icon {
    transform: scale(1.1) rotate(5deg);
}

.btn-content {
    flex: 1;
}

.btn-title {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.btn-subtitle {
    display: block;
    color: #9ca3af;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-btn:hover .btn-title {
    transform: translateX(10px);
}

.contact-btn:hover .btn-subtitle {
    transform: translateX(10px);
    color: #d1d5db;
}

.btn-arrow {
    font-size: 1.2rem;
    color: #8b5cf6;
    transition: all 0.3s ease;
}

.contact-btn:hover .btn-arrow {
    transform: translateX(10px);
    color: #a855f7;
}

.telegram-btn:hover .btn-arrow {
    color: #0088cc;
}

.discord-btn:hover .btn-arrow {
    color: #5865f2;
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

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

.footer-content p {
    color: #9ca3af;
}

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

.social-links a {
    color: #9ca3af;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #8b5cf6;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .avatar-container {
        width: 250px;
        height: 250px;
    }
    
    .avatar {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .frontend-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        padding: 1.5rem;
    }
    
    .btn-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-right: 1rem;
    }
    
    .btn-title {
        font-size: 1.2rem;
    }
    
    .btn-subtitle {
        font-size: 0.9rem;
    }
    
    .frontend-card {
        padding: 2rem;
    }
    
    .frontend-summary {
        padding: 2rem;
    }
}

/* Animation classes for JavaScript */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}