* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0e27;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1419 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(100, 150, 255, 0.2);
    transition: background 0.3s;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #64a0ff 0%, #9b7fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav ul,
.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #64a0ff 0%, #9b7fff 100%);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    opacity: 0.9;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(100, 150, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(150, 100, 255, 0.1) 0%, transparent 50%);
    color: white;
    padding: 150px 2rem 100px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    transition: filter 0.3s ease;
}

.hero::before {
    content: '⭐';
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: twinkle 3s infinite;
    top: 20%;
    left: 10%;
}

.hero::after {
    content: '✨';
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.2;
    animation: twinkle 4s infinite 1s;
    top: 60%;
    right: 15%;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    background: linear-gradient(135deg, #ffffff 0%, #64a0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #4a90e2 0%, #7b68ee 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease 0.4s both;
    border: 1px solid rgba(100, 150, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(100, 150, 255, 0.4);
    background: linear-gradient(135deg, #5aa0f2 0%, #8b78fe 100%);
}

/* Sections */
section {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #e0e0e0;
    text-shadow: 0 0 20px rgba(100, 150, 255, 0.3);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #64a0ff 0%, #9b7fff 100%);
    border-radius: 2px;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1419 100%);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(100, 150, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(100, 150, 255, 0.3);
    border-color: rgba(100, 150, 255, 0.5);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #64a0ff;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #b0b0b0;
}

/* Courses Section */
.courses {
    background: #0f1419;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1419 100%);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(100, 150, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #64a0ff 0%, #9b7fff 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(100, 150, 255, 0.3);
    border-color: rgba(100, 150, 255, 0.5);
}

.course-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.course-card h3 {
    color: #64a0ff;
    margin-bottom: 0.5rem;
}

.course-card p {
    color: #b0b0b0;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.course-link {
    color: #64a0ff;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.course-link:hover {
    gap: 10px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1419 100%);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(100, 150, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(100, 150, 255, 0.3);
    border-color: rgba(100, 150, 255, 0.5);
}

.project-title {
    color: #64a0ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-description {
    color: #b0b0b0;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: rgba(100, 150, 255, 0.2);
    color: #64a0ff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(100, 150, 255, 0.3);
}

.project-link {
    color: #64a0ff;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.project-link:hover {
    gap: 10px;
}

/* About Section */
.about {
    background: #0f1419;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #b0b0b0;
}

.about-image {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1419 100%);
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(100, 150, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(150, 100, 255, 0.2) 0%, transparent 50%);
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64a0ff;
    font-size: 3rem;
    border: 1px solid rgba(100, 150, 255, 0.2);
}

/* Footer */
footer {
    background: #0a0e27;
    color: #b0b0b0;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(100, 150, 255, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #64a0ff;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #64a0ff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul,
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: linear-gradient(135deg, #1a1f3a 0%, #0f1419 100%);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 20px rgba(0,0,0,0.5);
    }

    nav ul.active,
    .nav-menu.active {
        left: 0;
    }

    nav ul li,
    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    nav ul a,
    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        width: 100%;
    }

    nav a::after {
        display: none;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 120px 1rem 80px;
        margin-top: 60px;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    /* Sections Mobile */
    section {
        padding: 60px 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .section-title::after {
        width: 60px;
    }

    /* Features Grid Mobile */
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    /* Courses Grid Mobile */
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .course-card {
        padding: 1.5rem;
    }

    .course-icon {
        font-size: 2rem;
    }

    .course-card h3 {
        font-size: 1.2rem;
    }

    .course-card p {
        font-size: 0.95rem;
    }

    /* Projects Grid Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-description {
        font-size: 0.95rem;
    }

    .project-tech {
        gap: 0.4rem;
    }

    .tech-tag {
        font-size: 0.8rem;
        padding: 4px 10px;
    }

    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .about-image {
        height: 250px;
        font-size: 2.5rem;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .footer-section {
        text-align: center;
    }

    footer {
        padding: 2rem 1rem;
    }

    footer p {
        font-size: 0.9rem;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-card,
    .course-card,
    .project-card {
        padding: 1.2rem;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}
