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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background: #0f172a;
    min-height: 100vh;
}

/* Navigation */
nav {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #667eea;
}

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

nav ul li {
    margin: 0 0.5rem;
}

nav ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    display: block;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}

nav ul li a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

nav ul li a.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.15);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 3rem;
    background: #1e293b;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    min-height: calc(100vh - 200px);
    animation: fadeIn 0.6s ease;
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    border: 5px solid rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
}

.profile-content h1 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .profile-image img {
        width: 200px;
        height: 200px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Headers */
h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-size: 3rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 1rem;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

h2 {
    color: #667eea;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    color: #764ba2;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Paragraphs and Lists */
p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.7rem;
    color: #cbd5e1;
    line-height: 1.7;
}

.container > ul > li > a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.container > ul > li > a:hover {
    color: #764ba2;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
}

/* Resume Specific Styles */
.job, .education {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 15px;
    border-left: 4px solid #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.job:hover, .education:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    background: rgba(15, 23, 42, 0.8);
}

.job-header, .education-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.job-title, .degree {
    font-weight: 700;
    font-size: 1.4rem;
    color: #667eea;
}

.company, .school {
    font-style: italic;
    color: #764ba2;
    font-weight: 500;
    margin-top: 0.3rem;
}

.date {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Skills Section */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Accomplishments */
.accomplishment {
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.6);
    border-left: 4px solid #764ba2;
    border-radius: 15px;
    border: 1px solid rgba(118, 75, 162, 0.2);
    transition: all 0.3s ease;
}

.accomplishment:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(118, 75, 162, 0.3);
    border-color: #764ba2;
    background: rgba(15, 23, 42, 0.8);
}

.accomplishment h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

/* Homelab Section */
.homelab-section {
    margin-bottom: 3rem;
}

.server-specs, .network-specs {
    background: rgba(15, 23, 42, 0.6);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.server-specs:hover, .network-specs:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    background: rgba(15, 23, 42, 0.8);
}

.server-specs h3, .network-specs h3 {
    margin-top: 0;
}

/* Tables */
table {
    border-collapse: collapse;
    color: #cbd5e1;
}

th {
    color: #667eea;
    font-weight: 600;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

tr {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
    font-size: 1rem;
    background: rgba(30, 41, 59, 0.5);
    margin-top: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

footer a {
    color: #667eea;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #764ba2;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Selection */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .job-header, .education-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job, .education, .accomplishment {
        padding: 1.5rem;
    }
}
