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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background-color: #000;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #111;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #fff;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero h2 span {
    color: #00ff88;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: #00ff88;
    color: #000;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #00cc6a;
    transform: translateY(-2px);
}

section {
    padding: 6rem 0;
    border-bottom: 1px solid #222;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
}

.about {
    background: #0a0a0a;
}

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

.about-content img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-right: 3rem;
    border: 2px solid #333;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.skills {
    background: #000;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-item {
    background: #111;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #222;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-color: #00ff88;
}

.skill-item h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
}

.skill-item p {
    color: #ccc;
}

.projects {
    background: #0a0a0a;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-item {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #222;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-color: #00ff88;
}

.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #222;
}

.project-item h3 {
    padding: 1.5rem;
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.project-item p {
    padding: 0 1.5rem 1.5rem;
    color: #ccc;
    margin: 0;
}

.contact {
    background: #000;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #f0f0f0;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #111;
    color: #f0f0f0;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ff88;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

footer {
    background: #111;
    color: #f0f0f0;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #333;
}

footer p {
    font-size: 1rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem 0;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin: 0 1rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content img {
        margin: 0 0 2rem;
    }

    .container {
        width: 90%;
    }
}

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

    .hero p {
        font-size: 1.2rem;
    }

    section {
        padding: 4rem 0;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.python-course {
    background: #0a0a0a;
    color: #f0f0f0;
}

.python-course-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 700;
}

.python-course-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.python-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.python-course-card {
    background: #111;
    border-radius: 15px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #222;
}

.python-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border-color: #00ff88;
}

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

.course-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    color: #00ff88;
}

.python-course-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.course-desc {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.lesson-content {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #00ff88;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lesson-content h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.lesson-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.lesson-content li {
    color: #ccc;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.lesson-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
}

.code-example {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid #333;
}

.code-title {
    color: #888;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.code-example pre {
    margin: 0;
    overflow-x: auto;
}

.code-example code {
    color: #a5d6ff;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}