:root {
    --primary: #60a5fa;
    --secondary: #818cf8;
    --accent: #a78bfa;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #94a3b8;
    --gray-light: #1e293b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0e1a;
    color: var(--light);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.05) 0%, transparent 60%);
    z-index: -1;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    border-right: 1px solid rgba(96, 165, 250, 0.2);
}

.sidebar-content {
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(96, 165, 250, 0.2);
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.3);
}

.avatar:hover {
    border-color: var(--secondary);
    box-shadow: 0 15px 40px rgba(96, 165, 250, 0.5);
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border-radius: 50%;
    border: 3px solid rgba(15, 23, 42, 0.95);
}

.sidebar-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 5px;
}

.sidebar-title {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--gray);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
}

.nav-item:hover,
.nav-item.active {
    background: rgba(96, 165, 250, 0.15);
    color: var(--primary);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding-top: 30px;
    border-top: 2px solid rgba(96, 165, 250, 0.2);
}

.social-links-sidebar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.download-cv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-cv-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 12px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main-content {
    margin-left: 280px;
    min-height: 100vh;
}

.section {
    min-height: 100vh;
    padding: 80px 60px;
    display: flex;
    align-items: center;
}

.section-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.hero-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 80vh;
}

.hero-text {
    z-index: 1;
}

.greeting {
    display: block;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-name {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--light);
}

.name-line {
    display: block;
}

.hero-subtitle {
    font-size: 28px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 25px;
    min-height: 40px;
}

.typing-text {
    display: inline-block;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 16px;
    border: 2px solid transparent;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border-color: rgba(148, 163, 184, 0.5);
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 0.2);
    border-color: var(--accent);
}

.btn-primary.large {
    padding: 20px 40px;
    font-size: 18px;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 20px;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: rgba(15, 23, 42, 0.3);
    top: 0;
    left: 0;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: rgba(15, 23, 42, 0.3);
    top: 50%;
    right: 0;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: rgba(15, 23, 42, 0.3);
    bottom: 0;
    left: 50%;
}

.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.about-image-wrapper {
    position: sticky;
    top: 100px;
}

.image-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(71, 85, 105, 0.3);
}

.image-frame::before {
    display: none;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    background: rgba(15, 23, 42, 0.8);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.about-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--light);
    margin-bottom: 20px;
    opacity: 0.9;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.info-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(96, 165, 250, 0.4);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border-radius: 12px;
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    color: var(--light);
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.skill-group {
    background: rgba(15, 23, 42, 0.8);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.skill-group:hover {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 25px 70px rgba(96, 165, 250, 0.2);
}

.skill-group-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-light);
}

.skill-group-header i {
    font-size: 28px;
    color: var(--primary);
}

.skill-group-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--light);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 600;
    color: var(--light);
    font-size: 16px;
}

.skill-percent {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.skill-track {
    height: 10px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    width: 0;
    transition: width 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.experience-timeline {
    position: relative;
    padding-left: 40px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.timeline-item-v2 {
    position: relative;
    margin-bottom: 50px;
    background: rgba(15, 23, 42, 0.8);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    margin-left: 30px;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.timeline-item-v2:hover {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 15px 50px rgba(96, 165, 250, 0.2);
}

.timeline-marker {
    position: absolute;
    left: -45px;
    top: 35px;
}

.marker-dot {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--dark);
    box-shadow: 0 0 10px rgba(71, 85, 105, 0.5);
}

.marker-line {
    width: 3px;
    height: calc(100% + 50px);
    background: var(--primary);
    margin-left: 8px;
    margin-top: 5px;
    opacity: 0.5;
}

.timeline-item-v2:last-child .marker-line {
    display: none;
}

.timeline-badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 8px;
}

.timeline-company {
    font-size: 18px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-period {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--light);
    opacity: 0.9;
}

.projects-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card-v2 {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.project-card-v2:hover {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 20px 60px rgba(96, 165, 250, 0.2);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(96, 165, 250, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.project-card-v2:hover .project-overlay {
    opacity: 1;
}

.project-overlay i {
    font-size: 40px;
    color: white;
}

.project-info {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title-v2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 12px;
}

.project-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--light);
    margin-bottom: 20px;
    flex: 1;
    opacity: 0.9;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 6px 14px;
    background: rgba(96, 165, 250, 0.15);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: rgba(15, 23, 42, 0.8);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light);
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-icon-wrapper:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 10px;
}

.contact-value {
    font-size: 16px;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    opacity: 0.9;
}

.contact-value:hover {
    color: var(--primary);
    opacity: 1;
}

.contact-cta {
    text-align: center;
    background: rgba(15, 23, 42, 0.8);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.cta-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 30px;
}

.footer-v2 {
    background: rgba(15, 23, 42, 0.95);
    padding: 30px;
    text-align: center;
    border-top: 1px solid rgba(96, 165, 250, 0.2);
}

.footer-text {
    color: var(--gray);
    font-size: 14px;
}

@media (max-width: 1200px) {
    .hero-v2 {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrapper {
        position: static;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .section {
        padding: 60px 30px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-masonry {
        grid-template-columns: 1fr;
    }
    
    .hero-name {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 20px;
    }
    
    #home {
        padding: 80px 20px 60px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-v2 {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        min-height: auto;
        width: 100%;
    }
    
    .hero-text {
        order: 1;
        width: 100%;
    }
    
    .hero-visual {
        order: 2;
        height: 180px;
        margin-top: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .greeting {
        font-size: 18px;
        margin-bottom: 15px;
        opacity: 0.95;
    }
    
    .hero-name {
        font-size: 48px;
        margin-bottom: 18px;
        line-height: 1.1;
        letter-spacing: -1px;
    }
    
    .name-line {
        display: inline-block;
    }
    
    .hero-subtitle {
        font-size: 22px;
        margin-bottom: 25px;
        min-height: 32px;
    }
    
    .hero-description {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 35px;
        padding: 0 5px;
        opacity: 0.95;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .shape-1 {
        width: 100px;
        height: 100px;
        top: 20%;
        left: 15%;
    }
    
    .shape-2 {
        width: 70px;
        height: 70px;
        top: 55%;
        right: 20%;
    }
    
    .shape-3 {
        width: 50px;
        height: 50px;
        bottom: 15%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .about-content {
        padding: 30px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    #home {
        padding: 70px 15px 50px;
    }
    
    .hero-name {
        font-size: 40px;
        letter-spacing: -0.5px;
    }
    
    .hero-subtitle {
        font-size: 19px;
    }
    
    .greeting {
        font-size: 16px;
    }
    
    .hero-description {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .hero-visual {
        height: 150px;
    }
    
    .shape-1 {
        width: 80px;
        height: 80px;
    }
    
    .shape-2 {
        width: 60px;
        height: 60px;
    }
    
    .shape-3 {
        width: 40px;
        height: 40px;
    }
}
