:root {
    /* Color System */
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 217.2 91.2% 59.8%;
    --primary-foreground: 222.2 84% 4.9%;
    --primary-glow: 217.2 91.2% 69.8%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 224.3 76.3% 94.1%;
    --radius: 0.5rem;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
    --gradient-subtle: linear-gradient(180deg, hsl(var(--background)), hsl(217.2 32.6% 8%));
    --hero-gradient: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-glow)) 50%, hsl(var(--accent)) 100%);
    --card-gradient: linear-gradient(145deg, hsl(var(--card)) 0%, hsl(217.2 32.6% 8%) 100%);

    /* Shadows */
    --shadow-elegant: 0 10px 30px -10px hsl(var(--primary) / 0.3);
    --shadow-glow: 0 0 40px hsl(var(--primary-glow) / 0.4);
    --shadow-card: 0 4px 6px -1px hsl(0 0% 0% / 0.1);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
}

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

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

.hero-background {
    position: absolute;
    inset: 0;
    background: var(--hero-gradient);
    opacity: 0.1;
}

.floating-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.particle-1 {
    top: 5rem;
    left: 5rem;
    width: 0.5rem;
    height: 0.5rem;
    background: hsl(var(--primary));
}

.particle-2 {
    top: 10rem;
    right: 8rem;
    width: 0.25rem;
    height: 0.25rem;
    background: hsl(var(--primary-glow));
    animation-delay: 1s;
}

.particle-3 {
    bottom: 8rem;
    left: 25%;
    width: 0.375rem;
    height: 0.375rem;
    background: hsl(var(--accent));
    animation-delay: 0.5s;
}

.particle-4 {
    bottom: 5rem;
    right: 5rem;
    width: 0.25rem;
    height: 0.25rem;
    background: hsl(var(--primary));
    animation-delay: 0.7s;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

.profile-section {
    flex-shrink: 0;
}

.profile-wrapper {
    position: relative;
}

.profile-glow {
    position: absolute;
    inset: 0;
    background: var(--hero-gradient);
    border-radius: 50%;
    filter: blur(3rem);
    opacity: 0.3;
    transform: scale(1.1);
}

.profile-image {
    position: relative;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    border: 4px solid hsla(0, 0%, 100%, 0.2);
}

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

.content-section {
    flex: 1;
    text-align: center;
}

.badge {
    display: inline-block;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.main-title {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.main-title span:first-child {
    display: block;
    color: hsl(var(--foreground));
}

.gradient-text {
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--primary-glow)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.highlight {
    color: hsl(var(--primary));
    font-weight: 600;
}

.skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.skill-badge {
    display: inline-block;
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-elegant);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-full {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.social-link:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* About Section */
.about {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.expertise-card {
    background: var(--card-gradient);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.expertise-card:hover {
    box-shadow: var(--shadow-elegant);
    border-color: hsl(var(--primary) / 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: hsl(var(--primary) / 0.1);
    border-radius: var(--radius);
    margin-right: 1rem;
    transition: var(--transition-smooth);
}

.expertise-card:hover .icon-wrapper {
    background: hsl(var(--primary) / 0.2);
}

.icon-wrapper i {
    color: hsl(var(--primary));
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.expertise-card p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
    line-height: 1.6;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-block;
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    transition: var(--transition-smooth);
}

.expertise-card:hover .skill-tag {
    border-color: hsl(var(--primary) / 0.3);
}

.tech-stack {
    max-width: 64rem;
    margin: 0 auto;
}

.tech-card {
    background: var(--card-gradient);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.tech-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tech-badge {
    display: inline-block;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    cursor: default;
}

.tech-badge:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Contact Section */
.contact {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 96rem;
    margin: 0 auto;
}

.contact-info,
.contact-social {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card,
.social-card,
.cta-card {
    background: var(--card-gradient);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.info-card h3,
.social-card h3,
.cta-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    color: hsl(var(--muted-foreground));
    gap: 0.75rem;
}

.cooperation-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cooperation-item {
    display: flex;
    align-items: center;
    color: hsl(var(--muted-foreground));
}

.cooperation-item::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: hsl(var(--primary));
    border-radius: 50%;
    margin-right: 0.75rem;
}

.social-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: hsl(var(--secondary));
    border-radius: var(--radius);
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: var(--transition-smooth);
}

.social-item:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.social-info {
    flex: 1;
    margin-left: 1rem;
}

.social-title {
    font-weight: 500;
}

.social-subtitle {
    font-size: 0.875rem;
    opacity: 0.7;
}

.social-arrow {
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.social-item:hover .social-arrow {
    opacity: 1;
}

.cta-card {
    border: 1px solid hsl(var(--primary) / 0.2);
    text-align: center;
}

.cta-card h3 {
    color: hsl(var(--primary));
    justify-content: center;
}

.cta-card p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: hsl(var(--card));
    border-top: 1px solid hsl(var(--border));
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.footer-info p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}

.footer-bottom p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        gap: 5rem;
    }

    .content-section {
        text-align: left;
    }

    .profile-image {
        width: 20rem;
        height: 20rem;
    }

    .main-title {
        font-size: 4rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .skills-badges,
    .action-buttons,
    .social-links {
        justify-content: flex-start;
    }

    .action-buttons {
        flex-direction: row;
    }

    .section-header h2 {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}