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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

nav li {
    margin: 0 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: #007acc;
}

/* Hero Section */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-links a:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

/* Main sections */
section {
    padding: 1rem 0;
}

.about {
    background: #f8f9fa;
}

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

.about p,
.contact p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: center;
    line-height: 1.8;
}

/* Contact section */
.contact {
    background: white;
}

.contact-info {
    text-align: center;
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: #007acc;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Resume Page Styles */
.resume-page {
    margin-top: 80px;
    padding: 2rem 0;
}

.resume-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.resume-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.resume-header .title {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 1rem;
}

.resume-contact {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.resume-contact a {
    color: #007acc;
    text-decoration: none;
}

.resume-contact a:hover {
    text-decoration: underline;
}

.download-btn {
    display: inline-block;
    background: #007acc;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #005a99;
}

.resume-section {
    margin-bottom: 1rem;
}

.resume-section h2 {
    font-size: 1.8rem;
    color: #333;
    border-bottom: 2px solid #007acc;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

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

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.3rem 0;
    color: #666;
}

.skill-category li:before {
    content: "▸ ";
    color: #007acc;
    font-weight: bold;
}

/* Experience Items */
.experience-item,
.education-item,
.project-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.experience-header,
.education-header {
    margin-bottom: 1rem;
}

.experience-header .title-date-row,
.education-header .title-date-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.experience-header .company,
.education-header .university {
    text-align: right;
    margin-top: 0.25rem;
}

.experience-header h3,
.education-header h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.3rem;
}

.company,
.university {
    color: #007acc;
    font-weight: 500;
}

.date {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

.experience-details {
    list-style: none;
    margin-top: 1rem;
}

.experience-details li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.experience-details li:before {
    content: "•";
    color: #007acc;
    position: absolute;
    left: 0;
}

/* Project Items */
.project-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.project-item p {
    margin-bottom: 1rem;
    color: #666;
}

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

.project-links a {
    color: #007acc;
    text-decoration: none;
    font-weight: 500;
}

.project-links a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.italic {
    font-style: italic;
}

.small-text {
    font-size: 0.9em;
}

.italic-small {
    font-style: italic;
    font-size: 0.7em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav li {
        margin: 0;
    }
    
    .experience-header,
    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .social-links a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}
