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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #fff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

#nav.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    transition: transform 0.2s;
}

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

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

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: #1f2937;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4b5563;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 2rem;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: #1f2937;
}

.mobile-menu.active {
    display: block;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(to bottom right, #f9fafb, #f3f4f6);
}

.animated-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(64px);
    opacity: 0.7;
}

.blob-1 {
    top: 25%;
    left: 25%;
    background: #dbeafe;
    animation: float1 20s linear infinite;
}

.blob-2 {
    top: 33%;
    right: 25%;
    background: #e9d5ff;
    animation: float2 15s linear infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(100px, 50px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-100px, -50px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.5rem;
    color: #4b5563;
    max-width: 48rem;
    margin: 0 auto 3rem;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #1f2937;
    color: white;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-button:hover {
    background: #374151;
    transform: scale(1.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    color: #4b5563;
    cursor: pointer;
    animation: bounce 1.5s infinite;
}

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

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #4b5563;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.rotating-element {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 8rem;
    height: 8rem;
    background: linear-gradient(to bottom right, #3b82f6, #9333ea);
    border-radius: 1rem;
    animation: rotate 20s linear infinite;
}

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

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: #f9fafb;
}

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

.section-description {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 42rem;
    margin: 0 auto;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 9999px;
    background: white;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #f3f4f6;
}

.filter-btn.active {
    background: #1f2937;
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.project-card.no-link {
    cursor: default;
}

.project-card.no-link:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project-btn {
    padding: 0.5rem 1.5rem;
    background: white;
    color: #1f2937;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.project-description {
    color: #4b5563;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.875rem;
    border-radius: 9999px;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Skills Section */
.skills {
    padding: 6rem 0;
    background: white;
}

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

.skill-card {
    position: relative;
    padding: 2rem;
    background: linear-gradient(to bottom right, #f9fafb, white);
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    transition: box-shadow 0.3s;
}

.skill-card:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    display: inline-flex;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.skill-icon svg {
    color: white;
}

.gradient-purple-pink {
    background: linear-gradient(to bottom right, #a855f7, #ec4899);
}

.gradient-amber-orange {
    background: linear-gradient(to bottom right, #f59e0b, #f97316);
}

.gradient-blue-indigo {
    background: linear-gradient(to bottom right, #3b82f6, #6366f1);
}

.gradient-slate-gray {
    background: linear-gradient(to bottom right, #64748b, #4b5563);
}

.gradient-teal-emerald {
    background: linear-gradient(to bottom right, #14b8a6, #10b981);
}

.gradient-rose-red {
    background: linear-gradient(to bottom right, #f43f5e, #ef4444);
}

.gradient-blue-purple {
    background: linear-gradient(to bottom right, #3b82f6, #9333ea);
}

.gradient-pink-rose {
    background: linear-gradient(to bottom right, #ec4899, #f43f5e);
}

.skill-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.skill-card p {
    color: #4b5563;
}

.tools-section {
    text-align: center;
}

.tools-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tool-tag {
    padding: 0.75rem 1.5rem;
    background: #1f2937;
    color: white;
    border-radius: 9999px;
    transition: transform 0.2s;
}

.tool-tag:hover {
    transform: scale(1.1) translateY(-5px);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #f9fafb;
}

.contact-card {
    max-width: 42rem;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.2s;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    padding: 1rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.contact-icon svg {
    color: white;
}

.contact-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.125rem;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-value:hover {
    color: #1f2937;
}

.footer {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #4b5563;
}

/* Animations */
.animate-in {
    animation: slideInUp 0.6s ease-out;
}

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

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

@media (max-width: 640px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 2rem;
    }
}