/* Ashish Narayan Portfolio - Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #953C32;
    --light: #F6F6F6;
    --beige: #EEE4DA;
    --sage: #7C8869;
    --white: #ffffff;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: var(--light);
    color: var(--sage);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(246, 246, 246, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
}

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-link {
    font-size: 18px;      /* Bigger text */
    font-weight: 600;     /* Semi-bold */
    padding: 8px 14px;    /* Better spacing */
}

..logo {
    
    max-height: 40px;
}

    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
}

.logo-img {
    height: 36px;
    width: auto;
}


.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--sage);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-icon {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    left: 0;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

.mobile-menu {
    display: none;
    padding: 1.5rem 0;
    border-top: 1px solid var(--beige);
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--sage);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--light), var(--beige));
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 5rem 2rem;
}

.badge {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 0.95;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--sage);
    margin-bottom: 3rem;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(149, 60, 50, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    transform: scale(1.05);
}

.btn-full {
    width: 100%;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-container {
    display: flex;
    justify-content: center;
    position: relative;
}

.portrait-frame {
    width: 350px;
    height: 450px;
    border-radius: 1rem;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.decor-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.decor-1 {
    width: 6rem;
    height: 6rem;
    background-color: var(--beige);
    bottom: -1rem;
    right: -1rem;
}

.decor-2 {
    width: 8rem;
    height: 8rem;
    background-color: var(--primary);
    opacity: 0.1;
    top: -1rem;
    left: -1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--sage);
    margin-bottom: 1.5rem;
}

.text-accent {
    color: var(--primary);
}

.about-text {
    font-size: 1.125rem;
    color: var(--sage);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--sage);
}

.key-points {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.key-point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.key-point-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.key-point-icon svg {
    stroke: var(--primary);
}

.key-point span {
    color: var(--sage);
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--beige);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-center {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--sage);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--sage);
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary);
}

.service-icon svg {
    stroke: var(--primary);
    transition: stroke 0.3s ease;
}

.service-card:hover .service-icon svg {
    stroke: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--sage);
    line-height: 1.6;
}

/* Container Window */
.testimonials {
    padding: 100px 0;
    background-color: var(--white);
    overflow: hidden; /* Essential: Hides the off-screen cards */
    width: 100%;
    position: relative;
}

/* The Sliding Ribbon */
.testimonials-grid {
    display: flex !important; /* Forces cards into a horizontal line */
    flex-direction: row;
    width: 100%;
    /* Transition is handled by JavaScript for the infinite loop logic */
}

/* Individual Card */
.testimonial-card {
    min-width: 100%; /* Each card takes exactly 100% of the viewport width */
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Internal Card Box (The beige part) */
.testimonial-content-box {
    background-color: var(--beige);
    padding: 3.5rem;
    border-radius: 1.5rem;
    max-width: 850px; /* Optimal width for readability */
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.testimonial-card:hover .testimonial-content-box {
    border-color: var(--primary);
    transform: translateY(-8px); /* Subtle lift on hover */
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.testimonial-card p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--sage);
    font-style: italic;
    margin-bottom: 2rem;
}

.client-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.client-role {
    font-size: 0.9rem;
    color: var(--sage);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--sage), var(--primary));
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.text-light {
    color: var(--beige);
}

.cta-text {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Projects Page */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--sage), var(--primary));
    text-align: center;
}

.page-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--beige);
    max-width: 800px;
    margin: 0 auto;
}

.projects-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.project-item:nth-child(even) .project-image {
    order: 2;
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 4px solid var(--beige);
}

.project-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-image:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--primary), transparent);
    opacity: 0.6;
}

.project-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.project-details h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.project-section {
    margin-bottom: 1.25rem;
}

.project-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.project-section p {
    font-size: 0.875rem;
    color: var(--sage);
    line-height: 1.6;
}

.project-results {
    background-color: var(--beige);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid var(--primary);
}

.project-results h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-alt {
    padding: 5rem 0;
    background-color: var(--beige);
}

/* Contact Page */
.contact-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--sage);
    margin-bottom: 1.5rem;
}

.contact-text {
    font-size: 1.125rem;
    color: var(--sage);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-card {
    background-color: var(--beige);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: start;
    gap: 1rem;
}

.contact-card:hover {
    border-color: var(--primary);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    stroke: var(--white);
}

.contact-card h3 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 0.875rem;
    color: var(--sage);
}

.availability-card {
    margin-top: 2.5rem;
    background: linear-gradient(135deg, var(--sage), var(--primary));
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.availability-card h3 {
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.availability-item {
    display: flex;
    justify-content: space-between;
    color: var(--white);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.availability-item span:last-child {
    font-weight: 600;
}

/* Contact Form */
.contact-form-container {
    background-color: var(--beige);
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.text-secondary {
    color: var(--sage);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--white);
    border: 2px solid var(--sage);
    border-radius: 0.5rem;
    color: var(--sage);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: none;
}

.form-message {
    display: none;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background-color: var(--beige);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid var(--primary);
}

.faq-card h3 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.faq-card p {
    font-size: 0.875rem;
    color: var(--sage);
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--sage);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--beige);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--beige);
    color: var(--primary);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--beige);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--light);
}

.footer-contact ul {
    list-style: none;
}

.footer-contact ul li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    color: var(--beige);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.footer-contact ul li svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(149, 60, 50, 0.3);
}

.footer-bottom p {
    color: var(--beige);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid,
    .project-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-item:nth-child(even) .project-image {
        order: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-grid,
    .testimonials-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .portrait-frame {
        width: 280px;
        height: 360px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
