body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #000000 0%, #222222 100%);
    color: white;
    padding: 3rem 1rem;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1), 0 4px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    text-align: center;
    margin-bottom: 1rem;
}

.hero-content h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: glow 2s ease-in-out infinite alternate, colorShift 4s ease-in-out infinite;
}

@keyframes colorShift {
    0% {
        background: linear-gradient(135deg, #ffffff 0%, #cccccc 50%, #ffffff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    25% {
        background: linear-gradient(135deg, #e0e0e0 0%, #b0b0b0 50%, #e0e0e0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    50% {
        background: linear-gradient(135deg, #ffffff 0%, #aaaaaa 50%, #ffffff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    75% {
        background: linear-gradient(135deg, #f0f0f0 0%, #c0c0c0 50%, #f0f0f0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    100% {
        background: linear-gradient(135deg, #ffffff 0%, #cccccc 50%, #ffffff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

.tagline {
    font-size: 1.3rem;
    opacity: 0.9;
    margin: 0.5rem 0 0 0;
    font-weight: 300;
    color: #ffffff;
}

header p {
    margin: 2rem 0 0 0;
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.2);
    }
}

.github-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff, #dddddd);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.github-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff, #f2f2f2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 300;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

header p {
    margin: 1rem 0 0 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

nav {
    margin-top: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-controls {
    display: flex;
    align-items: center;
}

.theme-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.theme-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

#projects h2 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

.project-item {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: none;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: #333;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
}

.project-item h3 {
    margin-top: 0;
    color: #000000;
}

.project-item h3 a {
    color: #000000;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
}

.project-item h3 a:hover {
    color: #333333;
    text-decoration: underline;
}

.project-item p {
    color: #666666;
    margin-bottom: 0;
}

section h2, section h3 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

section h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

ul {
    list-style-type: disc;
    margin-left: 2rem;
    padding-left: 0;
    color: #ffffff;
}

li {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

footer {
    background: linear-gradient(135deg, #000000 0%, #222222 100%);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* About Section */
#about {
    margin-top: 3rem;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

#about h2 {
    margin-bottom: 1rem;
}

#about p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

.feature {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    padding: 2rem;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: fadeIn 1.5s ease-out;
    color: #333;
    text-align: center;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature p {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.project-item {
    animation: fadeInUp 1s ease-out;
}

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

.view-all {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
}

.view-all-link {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff, #dddddd);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.view-all-link:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ffffff, #f2f2f2);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.7);
}

/* Tutorials Section */
#tutorials {
    margin: 3rem 0;
}

#tutorials h2 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

.tutorial-item {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: #333;
    text-align: center;
}

.tutorial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
}

.tutorial-item h3 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.view-all-tutorials {
    text-align: center;
    margin-top: 2rem;
}

/* Topics section */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.topic-item {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: #333;
    text-align: center;
}

.topic-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
}

.topic-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.topic-item h3 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.topic-item p {
    font-size: 0.9rem;
    color: #666;
}

.view-all-topics {
    text-align: center;
    margin-top: 2rem;
}

/* Topic page content */
.topic-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.topic-content h3 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 0.5rem;
}

.topic-content h4 {
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.topic-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #cccccc;
}

.topic-content ul, .topic-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.topic-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: #cccccc;
}

.topic-content li strong {
    color: #ffffff;
}

.topic-content a {
    color: #4da6ff;
    text-decoration: none;
}

.topic-content a:hover {
    text-decoration: underline;
}

/* Topic section specific styles */
#topic h2 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Light Theme Styles */
body.light-theme {
    color: #333333;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

body.light-theme header {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: #333333;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.light-theme header::before {
    background: radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.05) 0%, transparent 50%);
}

body.light-theme .hero-content h1 {
    background: linear-gradient(135deg, #333333 0%, #666666 50%, #333333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

body.light-theme .tagline {
    color: #666666;
}

body.light-theme header p {
    color: #555555;
}

body.light-theme .theme-btn {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
    color: #333333;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body.light-theme .theme-btn:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

body.light-theme main {
    color: #333333;
}

body.light-theme #projects h2,
body.light-theme #tutorials h2,
body.light-theme #topics h2 {
    color: #333333;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

body.light-theme .project-item,
body.light-theme .tutorial-item {
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    color: #333333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 255, 255, 0.5);
}

body.light-theme .project-item h3,
body.light-theme .tutorial-item h3 {
    color: #000000;
}

body.light-theme .project-item p,
body.light-theme .tutorial-item p {
    color: #555555;
}

body.light-theme .feature {
    background: linear-gradient(135deg, #f0f0f0 0%, #d0d0d0 100%);
    color: #333333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .feature h3 {
    color: #000000;
}

body.light-theme .feature p {
    color: #666666;
}

body.light-theme footer {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: #333333;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .footer-link {
    color: #333333;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

body.light-theme .footer-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

body.light-theme footer p a {
    color: #666666;
}

body.light-theme footer p a:hover {
    color: #333333;
}

/* Topic page light theme */
body.light-theme .topic-content h3 {
    color: #333333;
    border-bottom: 2px solid #333333;
}

body.light-theme .topic-content h4 {
    color: #333333;
}

body.light-theme .topic-content p,
body.light-theme .topic-content li {
    color: #555555;
}

body.light-theme .topic-content li strong {
    color: #333333;
}

body.light-theme .topic-content a {
    color: #0066cc;
}

/* Search functionality */
.search-container {
    text-align: center;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #333;
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.7);
}