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

:root {
    --royal-pink: #E91E63;
    --dark-pink: #AD1457;
    --light-pink: #F8BBD9;
    --purple: #9C27B0;
    --dark-purple: #6A1B9A;
    --white: #ffffff;
    --black: #000000;
    --gray-900: #1a1a2e;
    --gray-800: #16213e;
    --gray-700: #0f3460;
    --gray-300: #cbd5e0;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #6A1B9A 0%, #E91E63 50%, #F06292 100%);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animation */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.mouse-follower {
    position: absolute;
    width: 384px;
    height: 384px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.2) 0%, rgba(156, 39, 176, 0.2) 100%);
    border-radius: 50%;
    filter: blur(60px);
    transition: all 0.3s ease-out;
    transform: translate(-50%, -50%);
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    top: 25%;
    left: 25%;
    width: 288px;
    height: 288px;
    background: radial-gradient(circle, rgba(244, 143, 177, 0.1) 0%, rgba(233, 30, 99, 0.1) 100%);
    animation-delay: 0s;
}

.shape-2 {
    bottom: 25%;
    right: 25%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.1) 0%, rgba(233, 30, 99, 0.1) 100%);
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(12px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    animation: slideDown 0.8s ease-out;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--royal-pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--white);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--royal-pink), var(--purple));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--royal-pink);
}

.nav-link:hover::after {
    width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--royal-pink), var(--purple), #F06292);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.white-text {
    color: var(--white);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--gray-300);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--royal-pink), var(--purple));
    color: var(--white);
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 25px 50px rgba(233, 30, 99, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--royal-pink);
}

.btn-secondary:hover {
    background: var(--royal-pink);
    transform: translateY(-2px) scale(1.05);
}

.arrow, .star {
    transition: transform 0.3s ease;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

.btn:hover .star {
    transform: rotate(12deg);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: 12px;
    filter: blur(2px);
    opacity: 0.6;
}

.element-1 {
    top: 25%;
    left: 25%;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--royal-pink), var(--purple));
    animation: floatElement 6s ease-in-out infinite;
}

.element-2 {
    bottom: 25%;
    right: 25%;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #F06292, var(--royal-pink));
    border-radius: 50%;
    animation: floatElement 8s ease-in-out infinite 2s;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(-5deg); }
}

/* Sections */
.projects-section,
.skills-section,
.contact-section {
    position: relative;
    z-index: 1;
    padding: 5rem 0;
}

.skills-section {
    background: rgba(0, 0, 0, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    max-width: 600px;
    margin: 0 auto;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-10px) rotateY(5deg) scale(1.02);
    border-color: rgba(233, 30, 99, 0.5);
    box-shadow: 0 25px 50px rgba(233, 30, 99, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 256px;
}

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

.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) 0%, transparent 100%);
}

.project-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(233, 30, 99, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--royal-pink);
}

.project-description {
    color: var(--gray-300);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(156, 39, 176, 0.2);
    border: 1px solid rgba(156, 39, 176, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    color: #E1BEE7;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-small {
    background: linear-gradient(135deg, var(--royal-pink), var(--purple));
    color: var(--white);
}

.btn-small:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.3);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.skill-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.5s ease;
    text-align: center;
}

.skill-card:hover {
    border-color: rgba(233, 30, 99, 0.5);
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--royal-pink), var(--purple));
    border-radius: 12px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-700);
    border-radius: 50px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--royal-pink), var(--purple));
    border-radius: 50px;
    transition: width 1.5s ease 0.3s;
    width: 0;
}

.skill-level {
    font-size: 0.875rem;
    color: var(--gray-300);
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-btn {
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--gray-300);
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .project-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-content {
        padding: 1rem;
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}