/* Base and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #080808;
    --second-bg-color: #121212;
    --text-color: #ffffff;
    --second-text-color: #a0a0a0;
    --main-color: #00ff66; /* Neon/Phosphor Green */
    --main-color-hover: #00cc52;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 255, 102, 0.1);
    transition: 0.3s;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: default;
    letter-spacing: 1px;
}

.logo span {
    color: var(--main-color);
    text-shadow: 0 0 10px var(--main-color);
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: 0.3s;
    font-weight: 500;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}

.menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* Hero Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
}

.home-content {
    flex: 1;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

.multiple-text {
    color: var(--main-color);
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.6);
}

.home-content p {
    font-size: 1.6rem;
    color: var(--second-text-color);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.6;
}

.social-media {
    margin-bottom: 3rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin-right: 1.5rem;
    transition: 0.5s ease;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-color);
}

.btn-group {
    display: flex;
    gap: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 15px var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.5s ease;
    border: 0.2rem solid var(--main-color);
    cursor: pointer;
}

.btn:hover {
    box-shadow: none;
    background: transparent;
    color: var(--main-color);
}

.btn-outline {
    background: transparent;
    color: var(--main-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--main-color);
}

.home-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Avatar Placeholder */
.avatar-placeholder {
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: relative;
}

.glow-box {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(0, 255, 102, 0.05);
    border: 2px dashed var(--main-color);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.3), inset 0 0 30px rgba(0, 255, 102, 0.1);
    animation: float 4s ease-in-out infinite;
}

.glow-box span {
    font-size: 2rem;
    color: var(--main-color);
    font-weight: 600;
    text-shadow: 0 0 10px var(--main-color);
    text-align: center;
    padding: 2rem;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Global Headings */
.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 5rem;
}

.heading span {
    color: var(--main-color);
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}

/* About Section */
.about {
    background: var(--second-bg-color);
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1 1 40rem;
}

.about-text h3 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--main-color);
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.about-text p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--second-text-color);
    margin-bottom: 2rem;
}

.about-text .btn {
    margin-top: 1rem;
}

.about-cards {
    flex: 1 1 40rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.about-card:hover {
    border-color: var(--main-color);
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.1);
}

.about-card i {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.about-card h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-card p {
    font-size: 1.4rem;
    color: var(--second-text-color);
    line-height: 1.5;
}

.about-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid rgba(0, 255, 102, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 255, 102, 0.05);
}

.stat-item {
    flex: 1 1 15rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}

.stat-item p {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 3rem;
    text-align: center;
    transition: 0.5s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,255,102,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: 0.5s;
    z-index: -1;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.2);
}

.skill-card i {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}

.skill-card h3 {
    font-size: 2rem;
}

/* Services Section */
.services {
    background: var(--second-bg-color);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.services-box {
    background: var(--bg-color);
    padding: 4rem 3rem;
    border-radius: 2rem;
    text-align: center;
    border: 1px solid rgba(0, 255, 102, 0.1);
    transition: 0.5s ease;
}

.services-box:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--main-color);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.2);
}

.services-box i {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 2rem;
}

.services-box h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.services-box p {
    font-size: 1.5rem;
    color: var(--second-text-color);
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio-text {
    text-align: center;
    font-size: 1.6rem;
    color: var(--second-text-color);
    max-width: 600px;
    margin: 0 auto 5rem;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.portfolio-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0,0,0,0.5);
    overflow: hidden;
    height: 250px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.1), var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: 0.5s ease;
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 2.5rem;
    color: var(--bg-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.portfolio-layer p {
    font-size: 1.6rem;
    color: var(--bg-color);
    font-weight: 500;
}

/* Why Work With Me */
.why-me {
    background: var(--second-bg-color);
}

.why-me-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.why-card {
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 4px solid var(--main-color);
    transition: 0.3s;
}

.why-card:hover {
    transform: translateX(10px);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.1);
}

.why-card i {
    font-size: 3.5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.why-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.why-card p {
    font-size: 1.5rem;
    color: var(--second-text-color);
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    gap: 5rem;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-card {
    background: rgba(255,255,255,0.03);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.contact-card:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.1);
}

.contact-card i {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 1.4rem;
    color: var(--second-text-color);
}

.contact form {
    flex: 1;
    width: 100%;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.contact form .input-box input {
    width: 48%;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(0,255,102,0.2);
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 1rem;
    cursor: pointer;
    width: 100%;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
    border-top: 1px solid rgba(0, 255, 102, 0.1);
}

.footer-text p {
    font-size: 1.6rem;
    color: var(--second-text-color);
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: var(--main-color);
    border-radius: 1rem;
    transition: 0.5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 15px var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg-color);
}

/* Reveal Animation Class */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 5%;
    }
    section {
        padding: 10rem 5% 2rem;
    }
    .home {
        flex-direction: column;
        text-align: center;
    }
    .home-content h3 {
        font-size: 2.6rem;
    }
    .home-content h1 {
        font-size: 5rem;
    }
    .home-content p {
        margin: 0 auto 3rem;
    }
    .btn-group {
        justify-content: center;
    }
    .contact-wrapper {
        flex-direction: column;
    }
    .contact-info {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 5px 10px rgba(0,0,0,0.5);
        display: none;
    }
    .navbar.active {
        display: block;
    }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        text-align: center;
    }
    .contact form .input-box input {
        width: 100%;
    }
    .avatar-placeholder, .glow-box {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
    .contact-info {
        grid-template-columns: 1fr;
    }
    .avatar-placeholder, .glow-box {
        width: 250px;
        height: 250px;
    }
}
