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

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: #f9f9f9;
    color: #222;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
    padding: 1rem 2rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #21F3AA;
}

/* Welcome Section */
.welcome {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to right, #0ABAB5, #21F3AA);
    color: white;
}

.welcome h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.welcome p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    background: white;
    color: #0ABAB5;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
    font-family: 'Poppins', sans-serif;
}

.btn:hover {
    background: #21F3AA;
    color: white;
}

/* Sections */
.section {
    padding: 3rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0ABAB5;
}

.section ul {
    padding-left: 1.25rem;
}

.section li {
    padding-left: 0.25rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background-color: #1a1a1a;
    color: #ccc;
    font-size: 0.9rem;
}

.footer a {
    color: #21F3AA;
    transition: color 0.3s;
}

.footer a:hover {
    color: #0ABAB5;
}

.footer .social-links {
    margin-top: 0.7rem;
}

.footer .social-links a {
    color: #21F3AA;
    font-size: 1.5rem;
    margin: 0 0.6rem;
    transition: color 0.3s;
    text-decoration: none;
}

.footer .social-links a:hover {
    color: #0ABAB5;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .section {
        padding: 2rem 1rem;
    }

    .section ul {
        padding-left: 1.25rem;
    }

    .section li {
        padding-left: 0.25rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .btn {
        display: inline-block;
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }

    .footer {
        text-align: center;
    }

    .footer .social-links a {
        font-size: 1.2rem;
        margin: 0 0.4rem;
    }

    .hamburger {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 1000;
        position: absolute;
        top: 1.2rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 1rem;
    }
}

/* Textareas */
textarea {
    width: 100%;
    max-width: 600px;
    font-family: monospace;
    font-size: 1rem;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Script List (Script Hub) */
.script-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.script-list li {
    margin: 0.5rem 0;
    padding-left: 1rem;
    position: relative;
}

.script-list li::before {
    content: "📄";
    position: absolute;
    left: 0;
}

/* Project Block (home/projects) */
.project {
    margin-bottom: 2rem;
}

.project h3 {
    margin-bottom: 0.5rem;
}

.project p {
    margin-bottom: 1rem;
}

.toast {
    visibility: hidden;
    min-width: 200px;
    background-color: #21F3AA;
    color: #000;
    text-align: center;
    border-radius: 8px;
    padding: 12px 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-family: 'Rubik', sans-serif;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

/* Hamburger Menu Toggle */
.hamburger {
    display: none;
}

#hamburger-icon,
#close-icon {
    display: none;
}

/* Show hamburger icon and toggle menu on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
    }

    #hamburger-icon {
        display: block;
    }

    #navbar ul {
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #1a1a1a;
        width: 100%;
        padding: 0;
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    #navbar.open ul {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
        padding: 1rem;
    }

    #navbar.open #hamburger-icon {
        display: none;
    }

    #navbar.open #close-icon {
        display: block;
    }
}

