/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
    font-weight: 300;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

nav ul li a:active {
    transform: translateY(0);
}

/* Main Content Section */
#project-details {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

/* Typography */
h2 {
    color: #1e293b;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
    position: relative;
}

h2:first-of-type {
    margin-bottom: 1rem;
}

h2:not(:first-of-type) {
    margin-top: 3rem;
    font-size: 1.8rem;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
    line-height: 1.8;
}

strong {
    color: #4f46e5;
    font-weight: 600;
}

/* Project Image */
.project-image {
    display: block;
    margin: 1rem auto 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-image:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.skill-item {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-left-color: #1d4ed8;
}

.skill-item:hover::before {
    left: 100%;
}

/* Highlight */
.highlight {
    background: linear-gradient(120deg, #ddd6fe 0%, #c7d2fe 100%);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Footer */
footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    nav ul li a {
        display: block;
        text-align: center;
        padding: 0.75rem;
    }
    
    #project-details {
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .content {
        padding: 2rem 1.5rem;
        border-radius: 10px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h2:not(:first-of-type) {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
        text-align: left;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .skill-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        display: block;
        width: 100%;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.75rem;
    }
    
    .content {
        padding: 1.5rem 1rem;
    }
    
    .project-image {
        width: 60px;
        height: 60px;
    }
}

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

.content {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}