/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header with slide-in navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg,rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 0%, rgba(0, 212, 255, 1) 100%);
    color: white;
    padding: 1rem 0;
    z-index: 1000;
    transform: translateY(-100%);
    animation: slideDownHeader 1s ease-out 0.2s forwards;
}

@keyframes slideDownHeader {
    to { transform: translateY(0); }
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    transform: translateX(-100px);
    opacity: 0;
    animation: slideInLeft 1s ease-out 0.5s forwards;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-item {
    transform: translateY(-50px);
    opacity: 0;
    animation: slideInDown 0.8s ease-out forwards;
}

.nav-item:nth-child(1) { animation-delay: 0.6s; }
.nav-item:nth-child(2) { animation-delay: 0.7s; }
.nav-item:nth-child(3) { animation-delay: 0.8s; }
.nav-item:nth-child(4) { animation-delay: 0.9s; }
.nav-item:nth-child(5) { animation-delay: 0.10s;}
.nav-item:nth-child(6) { animation-delay: 0.11s; }


.nav-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: #ffd700;
}

@keyframes slideInLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Main content sections */
.section {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-content.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg,rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 0%, rgba(0, 212, 255, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* About Section with staggered reveals */
.about {
    background: #f8f9fa;
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.skill-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    transform: translateX(-100px);
    opacity: 0;
    transition: all 0.6s ease;
}

.skill-item.reveal {
    transform: translateX(0);
    opacity: 1;
}

.skill-item:nth-child(1) { transition-delay: 0.1s; }
.skill-item:nth-child(2) { transition-delay: 0.3s; }
.skill-item:nth-child(3) { transition-delay: 0.5s; }

/* Projects Section with slide-up cards */
.projects {
    background: linear-gradient(90deg,rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 0%, rgba(0, 212, 255, 1) 100%);
    color: white;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.project-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card.reveal {
    transform: translateY(0);
    opacity: 1;
}

.project-card:nth-child(1) { transition-delay: 0.1s; }
.project-card:nth-child(2) { transition-delay: 0.3s; }
.project-card:nth-child(3) { transition-delay: 0.5s; }

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
}

/* Contact Section with form animations */
.contact {
    background: #f8f9fa;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-group {
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.6s ease;
}

.form-group.reveal {
    transform: translateX(0);
    opacity: 1;
}

.form-group:nth-child(1) { transition-delay: 0.1s; }
.form-group:nth-child(2) { transition-delay: 0.3s; }
.form-group:nth-child(3) { transition-delay: 0.5s; }
.form-group:nth-child(4) { transition-delay: 0.7s; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 1rem;
}

.submit-btn {
    background: linear-gradient(90deg,rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 0%, rgba(0, 212, 255, 1) 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 1001;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
}