* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

/* Container Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 270px;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
}

.profile-sidebar {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-name {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.3rem;
}

.sidebar-title {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-icon:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #999;
    transition: all 0.3s ease;
    text-align: left;
}

.nav-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #ccc;
}

.nav-btn.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.nav-btn .icon {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: #555;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 270px;
    padding: 2rem;
    max-width: calc(100% - 270px);
}

/* Sections */
.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Clock */
.clock {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* === HERO / HOME === */
.hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
    min-height: calc(100vh - 8rem);
}

.hero-content {
    flex: 1;
}

.hero-greeting {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.highlight {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.3rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-desc {
    font-size: 1rem;
    color: #888;
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 0 60px rgba(102, 126, 234, 0.15);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ccc;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* === ABOUT === */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.about-image {
    flex: 0 0 250px;
}

.about-avatar-frame {
    width: 220px;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.about-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 1rem;
}

.about-text p {
    color: #999;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.about-text p strong {
    color: #667eea;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.info-item i {
    width: 35px;
    height: 35px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 500;
}

.info-item span {
    font-size: 0.9rem;
    color: #e0e0e0;
}

#download-cv {
    margin-top: 0.5rem;
}

/* === SKILLS === */
.skills-intro {
    text-align: center;
    color: #888;
    margin-bottom: 2rem;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.2);
}

.skill-category h3 {
    color: #667eea;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item .skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: #ccc;
}

.skill-percent {
    color: #667eea;
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 1s ease;
}

/* === PORTFOLIO === */
.portfolio-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.portfolio-filters .filter-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.portfolio-filters .filter-btn:hover,
.portfolio-filters .filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.portfolio-card-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #667eea;
    position: relative;
}

.portfolio-card-image .overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 41, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-card-image .overlay {
    opacity: 1;
}

.portfolio-card-image .overlay span {
    color: white;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
}

.portfolio-card-body {
    padding: 1.2rem;
}

.portfolio-card-body h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.portfolio-card-body p {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.portfolio-tag {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* === CONTACT === */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info h3 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: #888;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 0.2rem;
}

.contact-item span {
    font-size: 0.95rem;
    color: #e0e0e0;
}

.contact-social h4 {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.social-links.large {
    justify-content: flex-start;
}

.social-links.large .social-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
}

/* Contact Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 15px;
    padding: 2rem;
}

.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #aaa;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.95rem;
    color: #e0e0e0;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1rem;
}

/* Empty State Portfolio */
.empty-portfolio {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    color: #888;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .skills-categories {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        top: auto;
        height: auto;
        flex-direction: row;
        padding: 0.5rem;
        z-index: 100;
        background: rgba(15, 12, 41, 0.98);
    }

    .profile-sidebar {
        display: none;
    }

    .sidebar-footer {
        display: none;
    }

    .nav-menu {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }

    .nav-btn {
        flex-direction: column;
        font-size: 0.65rem;
        padding: 0.4rem;
        gap: 0.2rem;
    }

    .nav-btn .icon {
        font-size: 1.1rem;
        width: auto;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-bottom: 75px;
        max-width: 100%;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 1rem 0;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        flex: none;
    }

    .hero-illustration {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .about-content {
        flex-direction: column;
        padding: 1.5rem;
    }

    .about-image {
        flex: none;
        display: flex;
        justify-content: center;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .skills-categories {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}