* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f8 50%, #fafbfc 100%);
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(100, 150, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(100, 180, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 30%, rgba(150, 200, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: 
            radial-gradient(circle at 20% 50%, rgba(100, 150, 255, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(100, 180, 255, 0.04) 0%, transparent 50%),
            radial-gradient(circle at 50% 30%, rgba(150, 200, 255, 0.03) 0%, transparent 50%);
    }
    50% {
        background: 
            radial-gradient(circle at 30% 60%, rgba(100, 150, 255, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 70% 60%, rgba(100, 180, 255, 0.06) 0%, transparent 50%),
            radial-gradient(circle at 50% 40%, rgba(150, 200, 255, 0.05) 0%, transparent 50%);
    }
}

/* Navigation */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3em;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95em;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #666;
}

/* Container & Sections */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}

.section {
    background: rgba(255, 255, 255, 0.92);
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-top: 1px solid rgba(224, 224, 224, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.hero {
    background: rgba(255, 255, 255, 0.92);
    padding: 4rem 2rem 3rem;
    margin: 0;
    text-align: center;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}

/* Profile Section */
.profile-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.profile-image-container {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.8s ease-out;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-image-container:hover .profile-image {
    transform: scale(1.05);
}

h1 {
    font-size: 2.8em;
    color: #000;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    animation: slideInText 0.8s ease-out 0.2s both;
}

h2 {
    font-size: 2em;
    color: #000;
    margin-bottom: 2rem;
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    animation: slideInText 0.8s ease-out 0.3s both;
}

h3 {
    font-size: 1.1em;
    color: #000;
    font-weight: 600;
    margin-bottom: 0.8rem;
    margin-top: 0;
}

.subtitle {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 2rem;
    margin-top: 0;
    font-weight: 400;
}

p {
    font-size: 1em;
    color: #555;
    margin-bottom: 1.5rem;
    margin-top: 0;
    line-height: 1.7;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.skill-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f8 100%);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95em;
    font-weight: 500;
    color: #333;
    border: 1px solid rgba(224, 224, 224, 0.7);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.skill-card:hover {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #000;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f8 100%);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(224, 224, 224, 0.7);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.project-card h3 {
    color: #000;
    margin-bottom: 0.8rem;
}

.project-card p {
    color: #666;
}

.project-card:hover {
    border-color: #000;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    margin: 8px 5px;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 2px;
    font-size: 0.95em;
    font-weight: 500;
    transition: background-color 0.2s, opacity 0.2s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background: #333;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #333;
    color: #333;
}

.btn-secondary:hover {
    background: #000;
    color: white;
}

/* Footer */
.footer {
    background: rgba(245, 245, 245, 0.95);
    border-top: 1px solid rgba(224, 224, 224, 0.5);
    padding: 2rem;
    text-align: center;
    color: #666;
    font-size: 0.9em;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

/* Social Links */
.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.social-links a,
.social-links-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid #333;
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    font-size: 1.2em;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.social-links a:hover,
.social-links-footer a:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-links-footer {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links-footer a {
    width: 40px;
    height: 40px;
    font-size: 1em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-links-footer {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links-footer a {
    width: 40px;
    height: 40px;
    font-size: 1em;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e0e0e0;
        flex-direction: column;
        gap: 0;
        padding: 1rem 2rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 300px;
    }

    .nav-menu li {
        padding: 0.5rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    h1 {
        font-size: 2.2em;
    }
    
    h2 {
        font-size: 1.6em;
    }
    
    .container {
        padding: 2rem 1.5rem;
    }

    .section {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
    }

    .profile-section {
        padding: 2rem 1.5rem;
    }

    .profile-image-container {
        width: 200px;
        height: 200px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-actions {
        flex-direction: column;
    }

    .contact-buttons {
        width: 100%;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.3em;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.9em;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .social-links {
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .profile-image-container {
        width: 150px;
        height: 150px;
    }
}
