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

/* Loading Styles */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #0077b5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #cccccc;
    font-size: 1rem;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #0077b5;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

body {
    font-family: 'Inter', sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: -1;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 350px;
    background: #2a2a2a;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.profile-section {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-picture {
    margin-bottom: 1.5rem;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border: 3px solid #4a4a4a;
}

.name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 0.3rem;
}

.subtitle {
    font-size: 0.9rem;
    color: #999999;
}

.action-buttons {
    margin-bottom: 2rem;
}

.btn {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #0077b5;
    color: white;
}

.btn-primary:hover {
    background: #005885;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #3a3a3a;
    color: white;
    border: 1px solid #4a4a4a;
}

.btn-secondary:hover {
    background: #4a4a4a;
    transform: translateY(-2px);
}

.btn i {
    margin-right: 0.5rem;
}

.personal-info {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #cccccc;
}

.personal-info p {
    margin-bottom: 1rem;
}

.personal-info ul {
    list-style: none;
    padding-left: 0;
}

.personal-info li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.personal-info li::before {
    content: '•';
    color: #0077b5;
    position: absolute;
    left: 0;
}

.navigation {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    color: #cccccc;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #3a3a3a;
    color: #ffffff;
}

.nav-link i {
    margin-right: 0.8rem;
    width: 20px;
    text-align: center;
}

.copyright {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

/* Main Content Styles */
.main-content {
    margin-left: 350px;
    padding: 2rem 4rem;
    width: calc(100% - 350px);
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    position: relative;
    min-height: 100vh;
}

/* Fallback for when JavaScript is disabled - show all content */
.no-js .content-section {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    position: relative !important;
    margin-bottom: 3rem;
}

.content-section {
    display: block;
    max-width: 700px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
}

.content-section.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #0077b5;
    padding-bottom: 0.5rem;
}

.section-content {
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.education-box {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid #0077b5;
}

.education-box h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.education-box p {
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.quote-section {
    margin-top: 3rem;
}

.quote-image {
    position: relative;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    font-size: 4rem;
    color: #666;
}

.quote-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    text-align: center;
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.quote-author {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Experience Styles */
.experience-item {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0077b5;
}

.experience-item h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.company {
    color: #0077b5;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.duration {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.achievements {
    list-style: none;
    padding-left: 0;
}

.achievements li {
    color: #cccccc;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.achievements li::before {
    content: '▶';
    color: #0077b5;
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

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

.skill-category {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0077b5;
}

.skill-category h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.skill-tag {
    background: #3a3a3a;
    color: #cccccc;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #4a4a4a;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: #0077b5;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Projects Styles */
.project-item {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0077b5;
}

.project-item h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-duration {
    color: #0077b5;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-details {
    list-style: none;
    padding-left: 0;
}

.project-details li {
    color: #cccccc;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-details li::before {
    content: '▶';
    color: #0077b5;
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* Education Styles */
.education-item {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0077b5;
}

.education-item h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.institution {
    color: #0077b5;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.leadership-section {
    margin-top: 2rem;
}

.leadership-item {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0077b5;
}

.leadership-item h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.position {
    color: #0077b5;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.leadership-item ul {
    list-style: none;
    padding-left: 0;
}

.leadership-item li {
    color: #cccccc;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.leadership-item li::before {
    content: '▶';
    color: #0077b5;
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.awards-section {
    margin-top: 2rem;
}

.awards-list {
    list-style: none;
    padding-left: 0;
}

.awards-list li {
    background: #2a2a2a;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    color: #cccccc;
    border-left: 4px solid #0077b5;
}

/* Contact Styles */
.contact-info {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #cccccc;
}

.contact-item i {
    width: 30px;
    color: #0077b5;
    margin-right: 1rem;
}

.contact-item a {
    color: #0077b5;
    text-decoration: none;
}

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

.contact-message {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0077b5;
}

.contact-message p {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.7;
}

/* Performance optimizations */
.profile-img {
    will-change: transform;
}

.skill-tag {
    will-change: transform;
}

.btn {
    will-change: transform;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem 2rem;
        justify-content: center;
    }
    
    .container {
        flex-direction: column;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .name {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 1rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .profile-placeholder {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .name {
        font-size: 1.3rem;
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2a2a2a;
}

::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}
