* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --purple-900: #581c87;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --slate-900: #0f172a;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    animation: slideDown 0.6s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--purple-500), var(--pink-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    color: var(--gray-300);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--purple-500), var(--pink-500));
    transition: width 0.3s ease;
}

.nav-menu li a:hover {
    color: white;
}

.nav-menu li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-icon span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-900), var(--purple-900), var(--slate-900));
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.2);
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: -50px;
    animation-delay: 3s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    bottom: -100px;
    left: 30%;
    animation-delay: 6s;
}

.blob-4 {
    width: 250px;
    height: 250px;
    top: 20%;
    right: 20%;
    animation-delay: 2s;
}

.blob-5 {
    width: 450px;
    height: 450px;
    bottom: 10%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--purple-500), var(--pink-500), var(--purple-500));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--gray-300);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--purple-500), var(--pink-500));
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
    border: 2px solid var(--purple-500);
    color: var(--purple-500);
    background: transparent;
}

.btn-secondary:hover {
    transform: scale(1.05);
    background: rgba(168, 85, 247, 0.1);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.8s backwards;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--purple-500);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styling */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--purple-600), #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title.light {
    background: linear-gradient(to right, var(--purple-500), var(--pink-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--purple-600), #d946ef);
    margin: 0 auto;
    border-radius: 9999px;
}

.title-underline.light {
    background: linear-gradient(to right, var(--purple-500), var(--pink-500));
}

.section-description {
    color: var(--gray-300);
    font-size: 1.125rem;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: white;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(243, 232, 255, 0.5), rgba(252, 231, 243, 0.5));
    opacity: 0.5;
}

.about > .container {
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-image {
    animation: fadeInLeft 1s ease;
}

.image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(236, 72, 153, 0.2));
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

.image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.about-text {
    animation: fadeInRight 1s ease;
}

.about-text p {
    color: var(--gray-700);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    transition: transform 0.6s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.feature-card p {
    color: var(--gray-600);
}

/* Projects Section */
.projects {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--slate-900), var(--purple-900), var(--slate-900));
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease backwards;
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.5);
}

.project-image {
    position: relative;
    height: 256px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.5), transparent);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 0.8;
}

.project-links {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.project-card:hover .project-links {
    opacity: 1;
    transform: translateY(0);
}

.project-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-600);
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1) rotate(5deg);
    background: white;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.75rem;
}

.project-content p {
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
    border-radius: 9999px;
    font-size: 0.875rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    transition: transform 0.3s ease;
}

.tag:hover {
    transform: scale(1.05);
}

/* Skills Section */
.skills {
    padding: 8rem 0;
    background: white;
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(243, 232, 255, 0.5), rgba(252, 231, 243, 0.5));
    opacity: 0.5;
}

.skills > .container {
    position: relative;
    z-index: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #c084fc;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.skill-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--purple-500), var(--pink-500));
    border-radius: 9999px;
    width: 0;
    animation: fillBar 2s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes fillBar {
    to {
        width: var(--skill-level);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
}

.stat-number {
    font-size: 3rem;
    background: linear-gradient(to right, var(--purple-600), #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    animation: countUp 1s ease backwards;
}

.stat-label {
    color: var(--gray-600);
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--slate-900), var(--purple-900), var(--slate-900));
    position: relative;
    overflow: hidden;
}

.contact-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.blob-6 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 1s;
}

.blob-7 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    right: 10%;
    animation-delay: 2s;
}

.blob-8 {
    width: 250px;
    height: 250px;
    top: 50%;
    right: 30%;
    animation-delay: 3s;
}

.contact > .container {
    position: relative;
    z-index: 10;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    animation: fadeInLeft 1s ease;
}

.contact-info h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--gray-300);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-item:hover {
    transform: translateX(10px) scale(1.02);
    border-color: rgba(168, 85, 247, 0.5);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: transform 0.6s ease;
}

.contact-item:hover .contact-icon {
    transform: rotate(360deg);
}

.contact-label {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.contact-value {
    font-size: 1.125rem;
    color: white;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-value {
    color: #d8b4fe;
}

.contact-form {
    animation: fadeInRight 1s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--gray-300);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-600);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.5);
    transform: scale(1.02);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: var(--slate-900);
    padding: 2rem 0;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    text-align: center;
}

.footer p {
    color: var(--gray-400);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
    }
    
    .menu-toggle:checked ~ .nav-menu {
        left: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .projects-grid,
    .skills-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll-triggered animations using CSS */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .project-card,
    .stat-card {
        opacity: 0;
        animation-play-state: paused;
    }
    
    .feature-card:hover,
    .project-card:hover,
    .stat-card:hover {
        opacity: 1;
        animation-play-state: running;
    }
}

/* Add smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--slate-900);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--purple-500), var(--pink-500));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--purple-600), #d946ef);
}
