html {
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    overflow-x: hidden;
    flex-wrap: wrap;
}

/* Header */
header {
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    flex-wrap: wrap;
}

header button {
    flex-wrap: wrap;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

header button:hover {
    flex-wrap: wrap;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

/* Landing */
#landing {
    flex-wrap: wrap;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

#landing h1 {
    flex-wrap: wrap;
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
}

#landing p {
    flex-wrap: wrap;
    font-size: 1.3em;
    opacity: 0.9;
    max-width: 600px;
}

.sparkle {
    flex-wrap: wrap;
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    animation: float 10s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

/* Sections */
section {
    flex-wrap: wrap;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

section.active {
    opacity: 1;
    transform: translateY(0);
}

section h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 20px;
}

section p {
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
}

.card {
    flex-wrap: wrap;
    background: white;
    border-radius: 15px;
    padding: 50px;
    max-width: 800px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    flex-wrap: wrap;
    display: inline-block;
    margin: 10px;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.social-links a:hover {
    flex-wrap: wrap;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Profile Picture */
.profile-pic {
    flex-wrap: wrap;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Image Gallery */
.image-gallery {
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.image-item {
    flex-wrap: wrap;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-item img {
    flex-wrap: wrap;
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.image-caption {
    flex-wrap: wrap;
    padding: 20px;
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

.skills-pic,
.project-pic {
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* About Me Section */
.about-content {
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}

.about-section {
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.about-section h3 {
    flex-wrap: wrap;
    color: #667eea;
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 12px;
}

.about-section p {
    flex-wrap: wrap;
    color: #555;
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
}