/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

/* General Section Styling */
section {
    padding: 40px 20px;
    text-align: center;
}

/* Hero Section Styling */
h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #00FF80; /* Neon Green */
    text-shadow: 0 0 10px #00FF80;
}

p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #b0b0b0;
}

/* Button Styling */
.btn {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #00FF80;
    color: #00FF80;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s, color 0.3s;
    margin-top: 20px;
}

.btn:hover {
    background-color: #00FF80;
    color: #0d0d0d;
    transform: translateY(-3px);
}

/* Hero Button Container */
.hero-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

/* Adjust spacing for the button */
.hero-button a {
    margin: 0 auto;
}

/* Responsive Fix */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    p {
        font-size: 1rem;
    }
    .btn {
        width: 80%;
        padding: 10px;
    }
}


body, html {
    background-color: #0d0d0d;
    color: #e0e0e0;
    overflow-x: hidden;
}

/* Loader Styles */
.loader-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #0a0a0a;
    color: #00ff00;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    overflow: hidden;
}

.loader-logo {
    width: 180px;
    max-width: 90%;
    height: auto;
    animation: logoFlicker 3s ease-in-out infinite alternate;
}

.loading-text {
    text-align: center;
    color: #00aaff; /* Blue for loading text */
    margin-top: 20px;
}

.loading-line {
    display: inline-block;
    animation: typing 2s steps(10, end) infinite alternate;
}

.dots {
    animation: blink 1.5s steps(5, start) infinite;
}

@keyframes logoFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #101010;
    border-bottom: 1px solid #00aaff;
    z-index: 1000;
}

.header .logo {
    font-size: 1.5em;
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00;
}

.header nav a {
    color: #b3b3b3;
    margin-left: 20px;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

.header nav a:hover {
    color: #00ff00;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    color: #00ff00;
    background: #101010;
}

.hero h1 {
    font-size: 2.8em;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0px 0px 10px #00ff00;
}

.hero p {
    font-size: 1.2em;
    max-width: 600px;
    color: #b3b3b3;
}

.hero .btn {
    margin-top: 20px;
    padding: 12px 24px;
    background-color: transparent;
    color: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.hero .btn:hover {
    background-color: #00ff00;
    color: #101010;
}

/* Section Titles */
h2 {
    color: #00aaff; /* Blue for section headers */
    text-align: center;
    font-size: 2em;
    margin: 30px 0 20px;
}

/* About Section */
.about-preview, .about {
    background-color: #121212;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #00aaff;
    border-bottom: 1px solid #00aaff;
}

.about-preview p, .about p, .about ul {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    color: #b3b3b3;
}

.about ul {
    list-style: none;
    margin-top: 20px;
}

.about li {
    margin: 10px 0;
}

/* Projects Section */
.projects-preview, .projects {
    background-color: #121212;
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid #00ff00;
}

.project-card {
    background-color: #181818;
    margin: 15px auto;
    padding: 20px;
    border: 1px solid #00ff00;
    border-radius: 5px;
    width: 90%;
    max-width: 400px;
    text-align: left;
    color: #e0e0e0;
    box-shadow: 0px 0px 15px rgba(0, 255, 0, 0.2);
}

.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0px 0px 15px rgba(0, 255, 0, 0.4);
}

.project-card pre {
    color: #00aaff; /* Blue for coding syntax */
    font-size: 1.1em;
    margin-bottom: 5px;
    font-weight: bold;
}

.project-card h3 {
    color: #00ff00; /* Green for project titles */
    margin-bottom: 10px;
}

.project-card p {
    color: #b3b3b3;
}

.project-card .btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 12px;
    background-color: transparent;
    color: #00ff00;
    border: 1px solid #00ff00;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s, color 0.3s;
}

.project-card .btn:hover {
    background-color: #00ff00;
    color: #181818;
}

/* Playground Section */
.playground {
    padding: 50px 20px;
    background-color: #101010;
    text-align: center;
    color: #e0e0e0;
    border-top: 1px solid #00ff00;
}

.playground h1, .playground h3 {
    color: #00aaff;
}

.code-editor {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #181818;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #00ff00;
    margin-top: 20px;
}

textarea {
    width: 90%;
    max-width: 600px;
    margin: 10px 0;
    padding: 10px;
    background-color: #121212;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #00ff00;
    color: #101010;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #00e600;
}

/* Contact Section */
.contact {
    background-color: #121212;
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid #00ff00;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact input, .contact textarea {
    padding: 10px;
    background-color: #1a1a1a;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 5px;
}

.contact input[type="submit"] {
    cursor: pointer;
    background-color: #00ff00;
    color: #101010;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s, color 0.3s;
}

.contact input[type="submit"]:hover {
    background-color: #1a1a1a;
    color: #00ff00;
    border: 1px solid #00ff00;
}

/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #101010;
    color: #b3b3b3;
    border-top: 1px solid #00ff00;
}

.footer a {
    color: #00ff00;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer img.icon {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-right: 5px;
}

.footer a:hover {
    color: #e0e0e0;
}

/* Media Queries */
@media (max-width: 768px) {
    .header, .hero, .about-preview, .projects-preview, .contact, .footer {
        padding: 15px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .project-card, .code-editor, .contact form {
        width: 90%;
    }

    .footer img.icon {
        width: 16px;
    }
}

/* Loader Styles */
.loader-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #0a0a0a;
    color: #00ff00;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    overflow: hidden;
}

.loader-logo {
    font-size: 2em;
    font-weight: bold;
    animation: logoFlicker 3s ease-in-out infinite alternate;
    color: #00ff00;
}

.loading-text {
    text-align: center;
    color: #00aaff;
    margin-top: 20px;
}

.dots {
    animation: blink 1.5s steps(5, start) infinite;
}

@keyframes logoFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Loader Styles */
.loader-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #0a0a0a;
    color: #00ff00;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    overflow: hidden;
}

.loader-logo {
    font-size: 2em;
    font-weight: bold;
    color: #00ff00;
}

.loading-text {
    text-align: center;
    color: #00aaff;
    margin-top: 20px;
}

.dots {
    animation: blink 1.5s steps(5, start) infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Main Content Styles */
#main-content {
    display: block;
    padding: 20px;
}

/* General Styles */
body {
    font-family: 'Courier New', monospace;
    background-color: #0d0d0d;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #141414;
    padding: 15px;
    border-bottom: 2px solid #007bff;
}

.logo {
    font-size: 24px;
    color: #ff4b4b;
}

nav a {
    color: #61dafb;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff4b4b;
}

/* Project Details */
.project-details {
    max-width: 800px;
    margin: 40px auto;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.project-title, .code-title {
    text-align: center;
    color: #61dafb;
    animation: fadeIn 1s ease-in-out;
}

.project-info h2 {
    color: #007bff;
    margin-top: 20px;
}

.project-info ul {
    list-style: none;
    padding-left: 0;
}

.project-info ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.project-info ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ff4b4b;
}

/* Highlight Text */
.highlight {
    color: #ff4b4b;
    font-weight: bold;
}

/* Button */
.btn {
    display: inline-block;
    background-color: #007bff;
    color: #e0e0e0;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #ff4b4b;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #141414;
    color: #61dafb;
}

.footer a {
    color: #61dafb;
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #ff4b4b;
}

/* Binary Background */
.binary-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.binary-bg span {
    position: absolute;
    color: rgba(0, 255, 0, 0.3);
    font-size: 16px;
    animation: fall linear infinite;
}

@keyframes fall {
    from { transform: translateY(-100vh); }
    to { transform: translateY(100vh); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero Section Styling */
.hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #0d0d0d;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #00FF80;
    text-shadow: 0 0 10px #00FF80;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #b0b0b0;
    line-height: 1.5;
}

/* Button Styling */
.hero .btn {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #00FF80;
    color: #00FF80;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s, color 0.3s;
    margin-top: 20px;
}

.hero .btn:hover {
    background-color: #00FF80;
    color: #0d0d0d;
    transform: translateY(-3px);
}

/* Responsive Fix for Mobile */
@media screen and (max-width: 768px) {
    .hero {
        padding: 40px 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero .btn {
        padding: 10px 20px;
        width: 80%;
    }
}
