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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

nav h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

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

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

nav a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4299e1, #3182ce, #2b77cb);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #1a202c;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.hero-content p {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.cta-button {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.4);
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
}

.secondary-button {
    background: transparent;
    color: #4299e1;
    padding: 14px 32px;
    border: 2px solid #4299e1;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: #4299e1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

/* Content Sections */
.content-section {
    background: white;
    padding: 3rem;
    margin-bottom: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.content-section h3 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    color: #1a202c;
    font-weight: 700;
    letter-spacing: -0.025em;
    position: relative;
    padding-bottom: 1rem;
}

.content-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4299e1, #3182ce);
    border-radius: 2px;
}

.content-section p {
    margin-bottom: 1.5rem;
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* About Section */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.highlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.highlight i {
    font-size: 2.5rem;
    color: #4299e1;
    margin-bottom: 1rem;
}

.highlight h4 {
    font-size: 1.25rem;
    color: #1a202c;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.highlight p {
    color: #4a5568;
    font-size: 0.95rem;
    margin: 0;
}

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

.skill-category {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.skill-category h4 {
    font-size: 1.25rem;
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.skill-tag {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: #4299e1;
}

.project-card h4 {
    font-size: 1.25rem;
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.project-tech span {
    background: #e2e8f0;
    color: #2d3748;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #4299e1;
}

.contact-item i {
    font-size: 1.5rem;
    color: #4299e1;
    min-width: 24px;
}

.contact-item h4 {
    font-size: 1rem;
    color: #1a202c;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-item p {
    color: #4a5568;
    font-size: 0.9rem;
    margin: 0;
}



/* Error Page Styles */
.error-page {
    text-align: center;
    padding: 2rem;
}

.error-content {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: #e53e3e;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 700;
}

.error-message {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.helpful-links {
    text-align: left;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
}

.helpful-links h3 {
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 600;
}

.helpful-links ul {
    list-style: none;
}

.helpful-links li {
    margin-bottom: 0.5rem;
}

.helpful-links a {
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.helpful-links a:hover {
    color: #3182ce;
    text-decoration: underline;
}

/* Footer */
footer {
    background: #1a202c;
    color: #a0aec0;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero-content h2 {
        font-size: 2.25rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    main {
        padding: 1rem;
    }
    
    .content-section {
        padding: 2rem 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.75rem;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 1rem;
    }
}