/* CSS RESET & GLOBAL STYLES */
:root {
    --primary-color: #10B981;
    /* Emerald Green */
    --bg-color: #111827;
    /* Very Dark Blue/Gray */
    --surface-color: #1F2937;
    /* Darker Gray */
    --text-color: #F9FAFB;
    /* Off-white */
    --text-secondary: #9CA3AF;
    /* Lighter Gray */
    --border-color: #374151;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #34D399;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    display: none;
    /* Hidden by default for SPA functionality */
}

.section.active {
    display: block;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--surface-color);
    border-color: var(--surface-color);
}

.button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    text-align: cente
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.sticky {
    background-color: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

.nav-links .hire-me-btn {
    display: none;
}

.header-cta {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* HERO SECTION */
#home {
    min-height: 100vh;
    /* display: flex; */
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-content .tertiary-cta {
    color: var(--text-secondary);
    text-decoration: underline;
    font-weight: 500;
}

.hero-content .tertiary-cta:hover {
    color: var(--text-color);
}

.tech-stack-bar {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0.7;
}

.tech-label {
    display: inline-block;
    font-size: 22px;
    font-weight: bold;
    background-color: #374151;
    padding: 12px 24px;
    border-radius: 10px;
    color: #F9FAFB;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.tech-stack-bar svg {
    height: 30px;
    width: auto;
    fill: var(--text-secondary);
    transition: fill 0.3s ease, transform 0.3s ease;
}

.tech-stack-bar svg:hover {
    fill: var(--text-color);
    transform: scale(1.1);
}

/* Core Stack */


.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
}

.tech-item {
    flex: 0 1 120px;
    /* grow = 0, shrink = 1, basis = 120px */
    background-color: #2D3748;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    min-height: 120px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tech-item img {
    max-width: 60px;
    max-height: 60px;
    margin-bottom: 8px;
}

.tech-item span {
    font-size: 14px;
    color: #F3F4F6;
}

.tech-item:hover {
    background-color: #4B5563;
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.1);
    cursor: pointer;
}



a {
    color: inherit;
    text-decoration: none;
}


/* VALUE PROPOSITION SECTION (ON HOMEPAGE) */
.value-prop-section {
    background-color: var(--surface-color);
    padding: 80px 0;
    text-align: center;
}

.value-prop-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.value-prop-section p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ABOUT SECTION */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 1/1;
    margin: 0 auto;
    border: 4px solid var(--border-color);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}


/* SKILLS SECTION */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-item {
    color: #9CA3AF;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 500;
}

/* SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--surface-color);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
}

/* PROJECTS SECTION */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #333;
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-content .project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.project-tag {
    background-color: var(--bg-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links a {
    margin-right: 15px;
    font-weight: 600;
}

/* TESTIMONIALS SECTION */
.testimonial-placeholder {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
}

.testimonial-placeholder p {
    font-style: italic;
    color: var(--text-secondary);
}

.testimonial-placeholder .cta-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
}

/* CONTACT SECTION */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    background-color: var(--surface-color);
    padding: 50px;
    border-radius: 12px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 20px;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-info .info-item svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

/* FOOTER */
.footer {
    background-color: var(--surface-color);
    padding: 50px 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-col p,
.footer-col a {
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--text-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
    transition: fill 0.3s ease;
}

.social-links a:hover svg {
    fill: var(--bg-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: var(--surface-color);
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-links .hire-me-btn {
        display: block;
        margin-top: 20px;
    }

    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .section-title {
        font-size: 2rem;
    }
}


/* Core Stack Responsive */


@media (max-width: 768px) {
    .tech-item {
        flex: 0 1 calc(33.33% - 20px);
        /* 3 columns on mobile */
    }

    .tech-item img {
        max-width: 40px;
        max-height: 40px;
    }

    .tech-item span {
        font-size: 12px;
    }
}