:root {
    --bg-primary: #0d0d0f;
    --bg-secondary: #161618;
    --bg-card: #1c1c1f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a5;
    --accent: #c0c0c8;
    --accent-hover: #e0e0e8;
    --gradient: linear-gradient(135deg, #c0c0c8 0%, #808088 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    color: #ffffff;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: #404045;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #404045;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.1);
    border-color: #606065;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.gradient-orb:nth-child(1) {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 100, 110, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.gradient-orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(80, 80, 90, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

.pipeline-canvas {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
}
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #a0a0a5;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-role {
    font-size: 1.8rem;
    color: #c0c0c8;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-description {
    font-size: 1.1rem;
    color: #a0a0a5;
    max-width: 600px;
    margin: 0 auto 40px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.9rem;
    color: #a0a0a5;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: #ffffff;
    color: #0d0d0f;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #404045;
}

.btn-secondary:hover {
    background: #252528;
    border-color: #606065;
}

.btn-download {
    background: transparent;
    color: #ffffff;
    border: 1px solid #404045;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    background: #252528;
    border-color: #606065;
    transform: translateY(-2px);
}

.hero-social {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    font-size: 1.5rem;
    transition: var(--transition);
    color: #a0a0a5;
}

.social-link:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-details {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    gap: 10px;
}

.detail-label {
    color: #c0c0c8;
    font-weight: 500;
}

.detail-value {
    color: var(--text-secondary);
}

.about-skills h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: 4px;
    font-size: 0.9rem;
    color: #a0a0a5;
    border: 1px solid #252528;
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: #404045;
    color: #ffffff;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #303035;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 0;
    width: 12px;
    height: 12px;
    background: #606065;
    border-radius: 50%;
    border: 2px solid #0d0d0f;
}

.timeline-content {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #252528;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: #404045;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.timeline-date {
    color: #a0a0a5;
    font-size: 0.9rem;
    white-space: nowrap;
}

.timeline-company {
    font-size: 1.1rem;
    color: #c0c0c8;
    margin-bottom: 5px;
}

.timeline-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.timeline-description {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.timeline-list {
    list-style: none;
    margin-top: 15px;
}

.timeline-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.timeline-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #606065;
}

/* Skills Section */
.skills-container {
    display: grid;
    gap: 60px;
}

.skills-category-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

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

.skill-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #252528;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    font-weight: 500;
    color: var(--text-primary);
}

.skill-level {
    color: #a0a0a5;
    font-size: 0.9rem;
}

.skill-bar {
    height: 4px;
    background: #252528;
    border-radius: 2px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: #606065;
    border-radius: 2px;
    width: 0;
    transition: width 1.5s ease-out;
}

.soft-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.soft-skill-tag {
    padding: 10px 20px;
    background: var(--bg-card);
    border-radius: 4px;
    color: #a0a0a5;
    border: 1px solid #252528;
    transition: var(--transition);
}

.soft-skill-tag:hover {
    border-color: #404045;
    color: #ffffff;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.education-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #252528;
    transition: var(--transition);
}

.education-card:hover {
    border-color: #404045;
}

.education-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.education-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.education-card h4 {
    color: #c0c0c8;
    margin-bottom: 10px;
    font-weight: 500;
}

.education-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.certifications-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.cert-card {
    background: var(--bg-card);
    padding: 15px 20px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #252528;
}

.cert-name {
    color: #a0a0a5;
}

.cert-hours {
    color: #c0c0c8;
    font-weight: 500;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #252528;
    transition: var(--transition);
}

.project-card:hover {
    border-color: #404045;
}

.project-image {
    height: 180px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 4rem;
    opacity: 0.5;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

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

.project-tech span {
    padding: 4px 10px;
    background: #252528;
    border-radius: 3px;
    font-size: 0.75rem;
    color: #a0a0a5;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item a,
.contact-item span {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-telegram {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #252528;
    text-align: center;
}

.contact-telegram h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.contact-telegram > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.telegram-handle {
    color: #c0c0c8;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #252528;
}

.footer p {
    color: var(--text-secondary);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(2) { transition-delay: 0.1s; }
.timeline-item:nth-child(3) { transition-delay: 0.2s; }
.timeline-item:nth-child(4) { transition-delay: 0.3s; }
.timeline-item:nth-child(5) { transition-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Navigation Mobile */
    .navbar {
        padding: 15px 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 26, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .hamburger {
        display: flex;
        z-index: 1000;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Mobile */
    .hero {
        min-height: 100vh;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-role {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .hero-stats {
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-cta {
        gap: 15px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-social {
        gap: 25px;
    }
    
    .social-link svg {
        width: 22px;
        height: 22px;
    }
    
    /* About Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .skill-tags {
        justify-content: center;
    }
    
    /* Timeline Mobile */
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 45px;
    }
    
    .timeline-dot {
        left: 8px;
        width: 14px;
        height: 14px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-header h3 {
        font-size: 1.1rem;
    }
    
    .timeline-company {
        font-size: 1rem;
    }
    
    .timeline-date {
        font-size: 0.8rem;
    }
    
    .timeline-list li {
        font-size: 0.9rem;
    }
    
    /* Skills Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skill-item {
        padding: 15px;
    }
    
    .soft-skills {
        justify-content: center;
    }
    
    .soft-skill-tag {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    /* Education Mobile */
    .education-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .education-card {
        padding: 25px;
        text-align: center;
    }
    
    .education-card h3 {
        font-size: 1.1rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cert-card {
        padding: 12px 15px;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    /* Projects Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-image {
        height: 150px;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .project-info h3 {
        font-size: 1.1rem;
    }
    
    .project-tech {
        justify-content: center;
    }
    
    /* Contact Mobile */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-details {
        align-items: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .contact-telegram {
        padding: 30px 20px;
    }
    
    .contact-telegram h3 {
        font-size: 1.3rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 25px 0;
    }
    
    .footer p {
        font-size: 0.85rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-role {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}

/* Data Flow Animations */
@keyframes dataFlow {
    0% { transform: translateX(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

@keyframes nodeGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 25px rgba(0, 212, 255, 0.6); }
}

/* Timeline enhanced animations */
.timeline-item {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

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

/* Skill bar enhanced animation */
.skill-item {
    animation: slideInLeft 0.5s ease-out forwards;
    opacity: 0;
}

.skill-item:nth-child(odd) { animation-delay: 0.1s; }
.skill-item:nth-child(even) { animation-delay: 0.2s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Project card hover enhanced */
.project-card {
    animation: scaleIn 0.5s ease-out forwards;
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Education card animation */
.education-card {
    animation: rotateIn 0.6s ease-out forwards;
    opacity: 0;
}

.education-card:nth-child(1) { animation-delay: 0.1s; }
.education-card:nth-child(2) { animation-delay: 0.2s; }
.education-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotateY(-10deg) translateY(20px);
    }
    to {
        opacity: 1;
        transform: rotateY(0) translateY(0);
    }
}
