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

body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: white;
}

/* HEADER */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 15px 40px;
    background: #111827;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #38bdf8;
}

/* NAVIGATION */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: blue;
    color: white;
    transition: 0.3s;
}

nav a:hover {
    color: #38bdf8;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.subtitle {
    margin-top: 10px;
    color: #94a3b8;
}

/* ROTATING CIRCLE IMAGE */
.circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #38bdf8;
    animation: rotate 8s linear infinite;
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ABOUT SECTION */
.about {
    min-height: 130vh;
    background: linear-gradient(to right, #0f172a, #111827);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 10%;
}

.about-container {
    max-width: 1000px;
}

.about-text h2 {
    font-size: 48px;
    margin-bottom: 30px;
    color: #38bdf8;
}

.about-text p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-btn {
    padding: 14px 35px;
    border: none;
    background: #38bdf8;
    color: black;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}

.about-btn:hover {
    background: white;
    transform: translateY(-3px);
}

/* OTHER SECTIONS */
.section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
}

/* MOBILE */
@media (max-width: 768px) {

    nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 220px;
        height: 100vh;
        background: #1f2937;
        transition: 0.3s;
    }

    nav ul {
        flex-direction: column;
        padding: 40px;
        gap: 20px;
    }

    nav.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }
}

/* DETAILED SKILLS SECTION */
.skills {
    min-height: 150vh;
    background: #111827;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 120px 10%;
    text-align: left;
    flex-direction: column;
}

.skills-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.skills-container h2 {
    font-size: 48px;
    color: #38bdf8;
    margin-bottom: 20px;
    text-align: center;
}

.skills-container p {
    font-size: 20px;
    color: #94a3b8;
    margin-bottom: 50px;
    text-align: center;
}

/* Skill Details */
.skill-detail {
    margin-bottom: 35px;
    background: #1f2937;
    padding: 25px 30px;
    border-radius: 12px;
    transition: 0.3s;
}

.skill-detail h3 {
    font-size: 24px;
    color: #38bdf8;
    margin-bottom: 12px;
}

.skill-detail p {
    font-size: 18px;
    line-height: 1.8;
    color: #e5e7eb;
}

/* Hover effect */
.skill-detail:hover {
    transform: translateY(-5px);
    background: #2563eb33;
}

/* Responsive */
@media (max-width: 768px) {
    .skills {
        padding: 100px 5%;
    }
    .skills-container h2 {
        font-size: 36px;
    }
    .skills-container p {
        font-size: 18px;
        margin-bottom: 40px;
    }
    .skill-detail {
        padding: 20px 20px;
    }
    .skill-detail h3 {
        font-size: 20px;
    }
    .skill-detail p {
        font-size: 16px;
    }
}

/* PROJECTS SECTION */
.projects {
    min-height: 150vh;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 120px 10%;
    flex-direction: column;
}

.projects-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.projects-container h2 {
    font-size: 48px;
    color: #38bdf8;
    margin-bottom: 20px;
    text-align: center;
}

.projects-container p {
    font-size: 20px;
    color: #94a3b8;
    margin-bottom: 50px;
    text-align: center;
}

/* Project Cards */
.project-card {
    background: #1f2937;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    transition: 0.3s;
}

.project-card h3 {
    font-size: 24px;
    color: #38bdf8;
    margin-bottom: 15px;
}

.project-card p {
    font-size: 18px;
    color: #e5e7eb;
    margin-bottom: 15px;
}

.project-card:hover {
    transform: translateY(-5px);
    background: #2563eb33;
}

/* Embedded iframe for playgrounds */
.project-frame {
    width: 100%;
    height: 400px;
    border: 2px solid #38bdf8;
    border-radius: 8px;
    background: white;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-container h2 {
        font-size: 36px;
    }
    .projects-container p {
        font-size: 18px;
        margin-bottom: 30px;
    }
    .project-card h3 {
        font-size: 20px;
    }
    .project-card p {
        font-size: 16px;
    }
    .project-frame {
        height: 300px;
    }
}

/* Project Playgrounds */
textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #38bdf8;
    background: #1f2937;
    color: white;
    font-family: monospace;
    margin-bottom: 10px;
    resize: vertical;
}

button {
    padding: 10px 25px;
    background: #38bdf8;
    color: black;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    transition: 0.3s;
}

button:hover {
    background: white;
}

.project-frame {
    width: 100%;
    height: 300px;
    border: 2px solid #38bdf8;
    border-radius: 8px;
    background: white;
    margin-bottom: 20px;
}

/* Website Extraction Inputs */
input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #38bdf8;
    background: #1f2937;
    color: white;
    font-family: monospace;
    margin-bottom: 10px;
}

input::placeholder {
    color: #94a3b8;
}

/* HTML Extractor */
textarea#html-output-area {
    width: 100%;
    height: 400px;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #38bdf8;
    background: #1f2937;
    color: white;
    font-family: monospace;
    margin-top: 10px;
    resize: vertical;
}

/* HTML + CSS Extractor */
input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #38bdf8;
    background: #1f2937;
    color: white;
    font-family: monospace;
    margin-bottom: 10px;
}

input::placeholder {
    color: #94a3b8;
}

textarea#html-output,
textarea#css-output {
    width: 100%;
    height: 300px;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #38bdf8;
    background: #1f2937;
    color: white;
    font-family: monospace;
    margin-bottom: 20px;
    resize: vertical;
}

button {
    padding: 10px 25px;
    background: #38bdf8;
    color: black;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    transition: 0.3s;
}

button:hover {
    background: white;
}

/* Other Projects Page */
.other-projects {
    min-height: 100vh;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 10%;
    text-align: center;
    flex-direction: column;
}

.other-projects h2 {
    font-size: 48px;
    color: #38bdf8;
    margin-bottom: 20px;
}

.other-projects p {
    font-size: 20px;
    color: #94a3b8;
    margin-bottom: 40px;
}

.project-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.project-buttons button {
    padding: 20px 40px;
    background: #38bdf8;
    color: black;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.project-buttons button:hover {
    background: white;
    transform: translateY(-3px);
}

/* YouTube Project Page */
.youtube-project {
    min-height: 100vh;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 10%;
    flex-direction: column;
    text-align: center;
}

.youtube-project h2 {
    font-size: 48px;
    color: #38bdf8;
    margin-bottom: 20px;
}

.youtube-project p {
    font-size: 20px;
    color: #94a3b8;
    margin-bottom: 30px;
}

/* Search Bar */
.youtube-search {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.youtube-search input {
    width: 60%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #38bdf8;
    background: #1f2937;
    color: white;
}

.youtube-search button {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background: #38bdf8;
    color: black;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.youtube-search button:hover {
    background: white;
}

/* Search Results */
.video-results {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.video-card {
    width: 200px;
    cursor: pointer;
    background: #1f2937;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card img {
    width: 100%;
    height: auto;
}

.video-card p {
    padding: 10px;
    color: #e5e7eb;
    font-size: 14px;
}

/* Movie Box */
.movie-box {
    min-height: 100vh;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 10%;
    flex-direction: column;
    text-align: center;
}

.movie-box h2 {
    font-size: 48px;
    color: #38bdf8;
    margin-bottom: 20px;
}

.movie-box p {
    font-size: 20px;
    color: #94a3b8;
    margin-bottom: 30px;
}

/* Search Bar */
.movie-search {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.movie-search input {
    width: 60%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #38bdf8;
    background: #1f2937;
    color: white;
}

.movie-search button {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background: #38bdf8;
    color: black;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.movie-search button:hover {
    background: white;
}

/* Movie Results */
.movie-results {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.movie-card {
    width: 150px;
    cursor: pointer;
    background: #1f2937;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    text-align: center;
}

.movie-card:hover {
    transform: translateY(-5px);
}

.movie-card img {
    width: 100%;
    height: auto;
}

.movie-card p {
    padding: 10px;
    color: #e5e7eb;
    font-size: 14px;
}

/* Trailer Player */
.movie-trailer iframe {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}
