* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f8f9fc;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 380px;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 3rem 2.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.profile-section {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.profile-img-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    border: 4px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.profile-img::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.profile-img img {
    width: 100%;
    height: auto;
    border-radius: 20%;
    object-fit: cover;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid #0f172a;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.sidebar h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar .title {
    font-size: 1.05rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    margin: 2rem 0;
}

.sidebar-section {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-section h2 {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    font-weight: 600;
}

.sidebar-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    padding: 0.6rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.contact-list li:hover {
    background: rgba(255,255,255,0.1);
    border-left-color: #3b82f6;
    transform: translateX(5px);
}

.contact-list strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-list span {
    color: #e2e8f0;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.skill-tag {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #bfdbfe;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.main-content {
    margin-left: 380px;
    flex: 1;
    padding: 4rem 3rem;
    background: #f8f9fc;
}

.main-header {
    margin-bottom: 3rem;
}

.main-content h1 {
    background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.subtitle {
    color: #64748b;
    font-size: 1.2rem;
    font-weight: 400;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.project-card::after {
    content: 'Click for details →';
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 0.75rem;
    color: #3b82f6;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.project-card:hover::before {
    transform: translateX(0);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:active {
    transform: translateY(-6px);
}

.project-card h3 {
    color: #0f172a;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-date {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.project-card p {
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #bfdbfe;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: translateY(-2px);
}

.education-item {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
    border-left: 5px solid #3b82f6;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.education-item:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
    transform: translateX(5px);
}

.education-item h3 {
    color: #0f172a;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.education-date {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.education-item p {
    color: #64748b;
    margin-top: 0.5rem;
    line-height: 1.7;
}

.education-item strong {
    color: #1e293b;
}

section {
    margin-bottom: 4rem;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    padding: 2.5rem;
    border-radius: 24px 24px 0 0;
    color: white;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-header .project-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.modal-body {
    padding: 2.5rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    color: #0f172a;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.modal-section p, .modal-section ul {
    color: #475569;
    line-height: 1.8;
    font-size: 1rem;
}

.modal-section ul {
    list-style: none;
    padding-left: 0;
}

.modal-section ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.modal-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 700;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 968px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .main-content h1 {
        font-size: 2.5rem;
    }

    .modal-content {
        margin: 1rem;
        max-height: 90vh;
    }

    .modal-header, .modal-body {
        padding: 1.5rem;
    }
}