/* ==========================================================================
   HOMEPAGE SPECIFIC STYLES (styles-index.css)
   ========================================================================== */

/* Hero Section */
.hero {
    background-color: var(--bg-dark);
    min-height: 50vh;
    display: flex;
    align-items: center;
    width: 100%;
    padding-top: 150px;
    padding-bottom: 20px;
}

.hero-content {
    flex: 1;
    z-index: 2;
    margin: 0 auto;
    padding: 0 var(--page-margin);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.name {
    font-family: var(--font-main);
    font-size: clamp(4rem, 11vw, 10rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 1.5rem;
}

.tagline {
    font-size: var(--font-size-h4);
    line-height: 1.4;
    color: var(--text-light);
    max-width: 100%;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Projects Section */
.projects {
    background-color: var(--bg-dark);
    padding-top: 1rem;
    padding-bottom: 6rem;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem 2.5rem;
    margin-top: 2rem;
}

/* Card base */
.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    border-radius: 28px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.4s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(238, 206, 230, 0.35);
    box-shadow: 0 24px 50px -15px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(238, 206, 230, 0.2);
}

/* Image container */
.project-image-wrapper {
    position: relative;
    width: 100%;
}

.project-image {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(33, 30, 73, 0.4) 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Info section */
.project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding-top: 1.25rem;
    width: 100%;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.25rem;
}

.project-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-pill {
    font-size: 0.85rem;
    color: var(--accent);
    background: rgba(238, 206, 230, 0.08);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-transform: lowercase;
    border: 1px solid rgba(238, 206, 230, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
}

.project-card:hover .tag-pill {
    border-color: rgba(238, 206, 230, 0.55);
    background: rgba(238, 206, 230, 0.14);
    transform: translateY(-1px);
}

/* Arrow indicator button */
.project-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    transform: translate(3px, -3px) rotate(45deg);
}

.project-title {
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--accent);
}

.project-summary {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
    margin: 0;
    max-width: 95%;
}

.projects-cta {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.btn-outline {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    border-radius: 50px;
    text-decoration: none;
    font-size: var(--font-size-p);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

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

.about.section-padding {
    padding-top: 10rem;
    padding-bottom: 10rem;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about h2 {
    text-align: center;
    margin-bottom: 4rem;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.about-text p {
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

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

/* Accordion */
.accordion-section {
    padding-bottom: 4rem;
}

.accordion-title h1 {
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
    max-width: 900px;
}

.accordion-subtitle {
    font-size: var(--font-size-h5);
    margin-top: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.accordion {
    display: flex;
    flex-direction: column;
}

.accordion-item {
    border-top: 1px solid rgba(33, 30, 73, 0.2);
}

.accordion-item:last-child {
    border-bottom: 1px solid rgba(33, 30, 73, 0.2);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 0;
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: var(--font-size-h4);
    font-weight: 400;
    font-family: var(--font-main);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    opacity: 0.8;
}

.accordion-header .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-header .icon svg {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-header .icon svg {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding-bottom: 2rem;
}

.accordion-content p {
    font-size: var(--font-size-h5);
    line-height: 1.6;
    max-width: 1200px;
    font-weight: 300;
}

/* Marquee Section */
.tools-marquee-container {
    padding: 3rem 0;
    overflow: hidden;
}

.tools-title {
    text-align: center;
    font-size: var(--font-size-h5);
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.tools-marquee-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background: var(--bg-light);
}

.tools-marquee {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    width: max-content;
    padding: 1rem 0;
}

.tools-marquee:hover {
    animation-play-state: paused;
}

.tools-marquee span {
    font-size: var(--font-size-h5);
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--text-dark);
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
}

.tools-marquee span.separator {
    color: var(--text-dark);
    font-size: var(--font-size-h5);
    font-weight: 400;
    position: relative;
    top: 3px;
    padding: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Contact Section */
.contact {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

#contact.section-padding {
    padding-top: 8rem;
    padding-bottom: 1rem;
}

.contact-content {
    width: 100%;
}

.contact-content h1 {
    color: var(--accent);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.contact-content p {
    color: var(--text-light);
    max-width: 1200px;
    opacity: 0.9;
}

.contact-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 18rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(238, 206, 230, 0.4);
}

.contact-location {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--font-size-small);
    font-weight: 500;
    color: var(--text-light);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1rem;
}

.contact-info a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contact-info a:hover {
    color: var(--accent);
    opacity: 0.8;
}

.social-link {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.social-link a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Responsive (Home specific) */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        gap: 4rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .projects-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .name {
        font-size: clamp(3rem, 10vw, 5rem);
    }

    .experience-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .social-link {
        justify-content: flex-start;
    }
}

/* Footer on Homepage: Seamless match with #contact dark purple background */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 2rem 0 3.5rem;
}

footer p {
    color: var(--text-light);
    opacity: 0.7;
}

