:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --text-color: #333;
    --light-text: #f4f4f4;
    --border-radius: 5px;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

ul {
    list-style: none;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2176bd 100%);
    color: var(--light-text);
}

nav {
    display: flex;
    align-items: center;
    padding: 20px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--light-text);
    margin-left: 30px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-primary {
    background-color: #fff;
    color: var(--primary-color) !important;
    padding: 8px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600 !important;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.hero {
    height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bj.avif') no-repeat center center/cover;
    opacity: 0.15;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: #fff;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--secondary-color);
    z-index: -1;
    opacity: 0.5;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.btn-hero {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    background-color: #27ae60;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--primary-color);
}

.section-header p {
    font-size: 1.2rem;
    color: #777;
}

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

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.code-container {
    background-color: var(--dark-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.code-container::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--danger-color);
    box-shadow: 20px 0 0 #f39c12, 40px 0 0 var(--secondary-color);
}

.code-container pre {
    margin-top: 10px;
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    font-size: 14px;
    overflow-x: auto;
}

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

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: #777;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    margin-bottom: 30px;
}

.skill-category h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

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

.skill-tags span {
    background-color: #f1f1f1;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}

.skill-tags span:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Process Section */
.process-flow {
    display: flex;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
}

.process-flow::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 180px;
}

.process-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.process-step h3 {
    margin-bottom: 10px;
}

.process-step p {
    color: #777;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-button-container {
    margin-top: 40px;
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0088cc;
    color: #fff;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.telegram-button:hover {
    background-color: #0077b5;
    transform: scale(1.05);
}

.telegram-button i {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 20px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .process-flow {
        justify-content: center;
        gap: 30px;
    }
    
    .process-flow::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}