/* --- Base Styles & Variables --- */
:root {
    --bg-color: #000000; /* black */
    --text-main: #ffffff;
    --text-accent: #30E540; /* green */
    --font-main: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px; /* Slight rounding for the square */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text-accent);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    min-height: calc(100vh - 100px);
    position: relative;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.text-left {
    text-align: left;
    margin-left: 100px;
    margin-right: -100px;
    margin-bottom: 200px;
   
}

.text-right {
    text-align: left;
    margin-bottom: -50px;
    margin-left: 50px;
    margin-right: -50px;
     /* Aligned left within its own block to match design */
}

/* Typography */
.greeting, .role-prefix {
    color: var(--text-accent);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.role-prefix {
    color: var(--text-main); /* White in the reference */
}

.name, .role-title {
    font-size: 3.2rem;
    line-height: 1.1;
    font-weight: 700;
}

.highlight {
    color: var(--text-accent);
    background: -webkit-linear-gradient(45deg, #30E540, #00c853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Center Image & Glow */
.hero-image-container {
    flex: 1.5;
    display: flex;
    justify-content: center;
    position: relative;
    height: 80vh; /* Adjust based on your portrait's aspect ratio */
}

.profile-img {
    height: 100%;
    object-fit: cover;
    z-index: 2;
    position: relative;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.glow-effect {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(48, 229, 64, 0.5) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
}

/* --- Bottom Elements --- */
/* --- Bottom Elements (Now inside Hero) --- */
.bottom-container {
    position: absolute;
    bottom: 2rem;
    left: 0; /* Ensure it spans from the left edge */
    width: 100%;
    padding: 0 5%; /* Matches hero horizontal padding */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 10;
}

/* All other styles (social-icons, btn-resume, animations, etc.) remain exactly the same */

/* Social Icons (Hover float & zoom) */
.social-icons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-main);
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
    display: inline-block; /* Required for transform to work properly */
}

.social-icons a:hover {
    color: var(--text-accent);
    transform: translateY(-8px) scale(1.3); /* Float up and zoom */
}

/* Liquid Glass Resume Button */
.btn-resume {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05); /* Highly transparent white */
    backdrop-filter: blur(16px); /* The "Glass" effect */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle glowing edge */
    padding: 12px 24px;
    border-radius: 30px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.btn-resume:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(48, 229, 64, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.1); /* Glows purple on hover */
    transform: translateY(-2px);
}

/* --- Responsive Design (Mobile & Tablets) --- */
@media (max-width: 1024px) {
    .name, .role-title {
        font-size: 3rem;
    }
    .glow-effect {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    /* Mobile Navigation Dropdown */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(6, 4, 13, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Hidden by default */
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Reveals menu */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    /* Stack Hero Section */
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 2rem;
        padding-top: 2rem;
        padding-bottom: 100px; /* Space for bottom icons */
    }

    .text-left,
    .text-right {
        text-align: center;
        margin: 0; /* reset all desktop offsets */
    }


    .hero-image-container {
        height: 50vh;
        order: -1; /* Puts image at the top on mobile */
    }


    .social-icons {
        flex-direction: row; /* Horizontal socials on mobile */
    }
    
    .social-icons a:hover {
        transform: translateY(-5px) scale(1.2); /* Adjust hover for horizontal */
    }
}

/* --- Global Section Styles --- */
section {
    padding: 6rem 5%;
    position: relative;
    z-index: 5;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title span {
    color: var(--text-accent);
}

/* --- About Section --- */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.skills-container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Glassmorphism Skill Pills */
.skill-pill {
    display: inline-flex; /* Changed from inline-block to align icon/text */
    align-items: center;
    gap: 10px; /* Space between logo and text */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(48, 229, 64, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.skill-pill i {
    font-size: 1.1rem; /* Makes the logo slightly larger than the text */
    color: var(--text-accent); /* Makes the logo your signature green */
}

/* Maintain your existing hover effect */
.skill-pill:hover {
    background: rgba(48, 229, 64, 0.1);
    border-color: var(--text-accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(48, 229, 64, 0.2);
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Luxury Glassmorphism Cards */
.project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Subtle glow effect behind cards on hover */
.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(48, 229, 64, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.project-card {
    padding: 0; /* Remove padding from card to let image touch edges */
    display: flex;
    flex-direction: column;
}

.project-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(48, 229, 64, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

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

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.project-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 0.8rem;
    color: var(--text-accent);
    background: rgba(48, 229, 64, 0.1);
    padding: 5px 12px;
    border-radius: 12px;
}

.project-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--text-accent);
}

/* --- Centered Pill Button --- */
.more-projects-container {
    display: flex;
    justify-content: center;
    margin-top: -1rem; /* Pulls it slightly closer to the project grid */
    margin-bottom: 5rem; /* Creates space before the Contact section */
    position: relative;
    z-index: 10;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(48, 229, 64, 0.2);
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-pill:hover {
    background: rgba(48, 229, 64, 0.1);
    border-color: var(--text-accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(48, 229, 64, 0.2);
    color: var(--text-main); /* Ensures text stays white on hover */
}

/* --- Contact Section --- */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
}

.input-group {
    margin-bottom: 2rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-bottom-color: var(--text-accent);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

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

/* --- Footer Section --- */
footer {
    padding: 3rem 5%;
    background: rgba(255, 255, 255, 0.02); /* Very subtle glass effect */
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    margin-top: 4rem;
}

.footer-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6); /* Muted white */
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.footer-content .attribution {
    font-weight: 300;
}

.footer-content span {
    color: var(--text-accent); /* Your signature green */
    font-weight: 600;
}

/* Ensure it looks good on mobile */
@media (max-width: 768px) {
    footer {
        padding: 2rem 5%;
    }
    
    .footer-content p {
        font-size: 0.8rem;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .skills-container {
        justify-content: center;
    }

    .contact-container {
        padding: 2rem;
    }
}

/* --- Form Submit Button --- */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 30px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(48, 229, 64, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* --- Back to Top Button Positioning --- */
.back-to-top-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    margin-bottom: 1rem;
}

/* Reusing your pill style logic */
.back-to-top-container .btn-pill {
    font-size: 0.8rem;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(48, 229, 64, 0.2);
    /* All other animations are inherited from your .btn-pill class */
}

.back-to-top-container .btn-pill:hover {
    border-color: var(--text-accent);
    box-shadow: 0 0 20px rgba(48, 229, 64, 0.3);
}