* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .big-title {
    font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-gradient, .highlight-gradient {
    background: linear-gradient(270deg, #667eea, #764ba2, #667eea, #764ba2);
    background-size: 400% 400%;
    animation: logoGradientMove 5s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-gradient {
    font-weight: 700;
}

@keyframes logoGradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.glass-nav {
    background: rgba(20, 20, 40, 0.65);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: background 0.3s;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.2s, box-shadow 0.2s;
    padding: 0.5rem 0.2rem;
    border-radius: 6px;
    outline: none;
}

.nav-link:focus {
    box-shadow: 0 0 0 2px #667eea66;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-link:hover, .nav-link:focus {
    color: #667eea;
    background: rgba(102,126,234,0.08);
}

.nav-link:hover::after, .nav-link:focus::after {
    width: 100%;
}


.nav a {
    color: inherit;
    text-decoration: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}


.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 30%, rgba(118, 75, 162, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 100% 70% at 40% 80%, rgba(102, 126, 234, 0.04) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
}


.waves {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 50% 50% 0 0;
    animation: waveMove 8s infinite ease-in-out;
}

.wave:nth-child(1) {
    bottom: -20px;
    animation-delay: 0s;
    opacity: 0.3;
}

.wave:nth-child(2) {
    bottom: -40px;
    animation-delay: -2s;
    opacity: 0.2;
    animation-duration: 10s;
}

.wave:nth-child(3) {
    bottom: -60px;
    animation-delay: -4s;
    opacity: 0.1;
    animation-duration: 12s;
}

@keyframes waveMove {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-20px);
    }
}


.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: starPulse 3s infinite ease-in-out;
}

.star:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    top: 60%;
    left: 20%;
    animation-delay: 1s;
}

.star:nth-child(4) {
    top: 40%;
    right: 25%;
    animation-delay: 1.5s;
}

.star:nth-child(5) {
    top: 70%;
    left: 60%;
    animation-delay: 2s;
}

.star:nth-child(6) {
    top: 25%;
    left: 70%;
    animation-delay: 2.5s;
}

.star:nth-child(7) {
    top: 80%;
    right: 10%;
    animation-delay: 0.8s;
}

.star:nth-child(8) {
    top: 15%;
    left: 50%;
    animation-delay: 1.2s;
}

@keyframes starPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}


.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: particleFloat 20s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: -2px;
    line-height: 1.1;
}

.big-title {
    font-size: 4.2rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #b0b0b0;
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.cta-button, .glass-btn {
    display: inline-block;
    padding: 18px 48px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 40px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 24px 0 rgba(102,126,234,0.18);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, box-shadow 0.3s, color 0.2s;
    position: relative;
    overflow: hidden;
}

.glass-btn {
    background: rgba(102, 126, 234, 0.18);
    color: #fff;
    border: 1.5px solid rgba(102, 126, 234, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px 0 rgba(102,126,234,0.10);
}

.cta-button:hover, .glass-btn:hover {
    background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
    color: #fff;
    box-shadow: 0 8px 32px 0 rgba(102,126,234,0.22);
}


.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.7;
}


.about {
    padding: 100px 0;
    background: 
        radial-gradient(ellipse 70% 40% at 10% 20%, rgba(102, 126, 234, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 90% 70%, rgba(118, 75, 162, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23667eea' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
    z-index: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image {
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}


.skills-section {
    position: relative;
    z-index: 1;
}

.skills-section h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-island {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-island::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-island:hover::before {
    left: 100%;
}

.skill-island:hover {
    transform: translateY(-10px);
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon svg {
    width: 100%;
    height: 100%;
    fill: #667eea;
    transition: all 0.3s ease;
}

.skill-island:hover .skill-icon svg {
    fill: #ffffff;
    transform: scale(1.1);
}

.skill-island h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.skill-island p {
    color: #b0b0b0;
    font-size: 0.9rem;
}


.projects {
    padding: 100px 0;
    background: 
        radial-gradient(ellipse 60% 50% at 80% 10%, rgba(118, 75, 162, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 80% 40% at 20% 90%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.projects h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    color: #b0b0b0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.tab-button.active,
.tab-button:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: grid;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.project-description {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #ffffff;
}

.loading {
    text-align: center;
    color: #b0b0b0;
    font-size: 1.2rem;
    padding: 3rem;
}


.contact {
    padding: 100px 0;
    background: 
        radial-gradient(ellipse 70% 60% at 30% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact p {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
}


.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.1s ease;
}


@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title, .big-title { font-size: 2.2rem; }
    .hero-content { padding: 0 10px; }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .wave {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title, .big-title { font-size: 1.3rem; }
    .hero-subtitle { font-size: 1rem; }
    .cta-button, .glass-btn { padding: 12px 24px; font-size: 1rem; }
    
    .skill-island {
        padding: 1.5rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
}


.bg-blob {
    position: absolute;
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    filter: blur(40px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
    animation: blobMove 18s ease-in-out infinite alternate, blobGlow 3.5s ease-in-out infinite;
    transition: opacity 0.5s;
}

@keyframes blobGlow {
    0%, 100% {
        box-shadow: 0 0 60px 20px rgba(102,126,234,0.18), 0 0 0 0 rgba(118,75,162,0.10);
        opacity: 0.55;
    }
    50% {
        box-shadow: 0 0 120px 40px rgba(102,126,234,0.32), 0 0 40px 20px rgba(118,75,162,0.18);
        opacity: 0.75;
    }
}

.blob1 {
    width: 600px;
    height: 400px;
    top: -120px;
    left: -180px;
    background: radial-gradient(circle at 60% 40%, #667eea 0%, #764ba2 80%, transparent 100%);
    animation-delay: 0s;
}

.blob2 {
    width: 500px;
    height: 350px;
    top: 40px;
    right: -150px;
    background: radial-gradient(circle at 40% 60%, #764ba2 0%, #0a0a0a 80%, transparent 100%);
    animation-delay: 3s;
}

.blob3 {
    width: 400px;
    height: 300px;
    bottom: -100px;
    left: 20%;
    background: radial-gradient(circle at 70% 30%, #3a3a6a 0%, #667eea 70%, transparent 100%);
    animation-delay: 6s;
}

.blob4 {
    width: 350px;
    height: 250px;
    bottom: 0;
    right: 10%;
    background: radial-gradient(circle at 30% 70%, #22223b 0%, #764ba2 70%, transparent 100%);
    animation-delay: 9s;
}

@keyframes blobMove {
    0% {
        transform: scale(1) translateY(0px) translateX(0px) rotate(0deg);
        border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    }
    50% {
        transform: scale(1.08) translateY(-30px) translateX(20px) rotate(8deg);
        border-radius: 60% 40% 50% 50% / 50% 60% 40% 60%;
    }
    100% {
        transform: scale(1) translateY(0px) translateX(0px) rotate(-4deg);
        border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    }
}


.waves, .wave, .stars, .star { display: none !important; }


body::-webkit-scrollbar,
html::-webkit-scrollbar {
    width: 14px;
    background: #181a20;
    border-radius: 8px;
}

body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
    border-radius: 8px;
    border: 3px solid #181a20;
    transition: background 0.3s, width 0.3s;
}

body::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 18px;
}

body::-webkit-scrollbar-corner,
html::-webkit-scrollbar-corner {
    background: #181a20;
}

@keyframes scrollbarGradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    scrollbar-width: thin;
    scrollbar-color: #667eea #181a20;
}