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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #1a1a2e;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f7b731, #5f27cd);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    z-index: -2;
    opacity: 0.9;
}

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

.container {
    width: 90%;
    margin: auto;
    max-width: 1400px;
}

/* NAVBAR */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

nav .logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

nav a {
    color: #2d3748;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    padding: 160px 0 100px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.5);
}

.hero .name {
    background: linear-gradient(135deg, #ffffff, #ffd89b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) 
            drop-shadow(0 0 40px rgba(255, 216, 155, 0.6));
    font-weight: 900;
}

.hero .typing-text {
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    font-weight: 500;
    min-height: 40px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}

.hero .typing-text::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero p {
    font-size: 18px;
    color: #f0f0f0;
    max-width: 700px;
    margin: 0 auto 35px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

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

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
    animation: fadeInUp 0.8s ease 0.6s backwards, pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4); }
    50% { box-shadow: 0 10px 40px rgba(245, 87, 108, 0.6); }
}

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

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

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.6);
    animation: pulse 2s infinite;
}

/* SECTIONS */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    text-align: center;
    color: #f0f0f0;
    font-size: 18px;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.2s;
}

.section-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* SKILLS - 4 in one row */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(50px);
}

.skill-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-card:nth-child(1) { transition-delay: 0.1s; }
.skill-card:nth-child(2) { transition-delay: 0.2s; }
.skill-card:nth-child(3) { transition-delay: 0.3s; }
.skill-card:nth-child(4) { transition-delay: 0.4s; }

.skill-card:hover {
    transform: translateY(-15px) rotate(2deg);
    border-color: #667eea;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.skill-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    transition: all 0.4s ease;
}

.skill-card:hover .icon {
    transform: rotateY(360deg);
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.skill-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2d3748;
    font-weight: 700;
}

.skill-card p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
}

/* Progress bars for skills */
.skill-progress {
    width: 100%;
    height: 6px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
}

.skill-card.visible .skill-progress-bar {
    width: 90%;
}

/* CARDS for other sections */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #f093fb;
    box-shadow: 0 20px 50px rgba(240, 147, 251, 0.3);
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.card p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

.card a {
    color: #667eea;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.card a:hover {
    color: #f093fb;
    transform: translateX(5px);
    display: inline-block;
}

/* Achievement Cards */
.achievement-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
}

.achievement-card .platform {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.achievement-card .rating {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 15px 0 10px;
}

.achievement-card:hover .rating {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.achievement-card .label {
    color: #718096;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Contact Cards */
.contact-card {
    text-align: center;
}

.contact-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: all 0.4s ease;
}

.contact-card:hover .icon {
    transform: scale(1.2) rotate(360deg);
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    background: rgba(26, 26, 46, 0.9);
    color: #ffffff;
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav ul {
        gap: 20px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero .typing-text {
        font-size: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}
