/* ===================================
   HIMANSHU — PORTFOLIO STYLESHEET
   =================================== */

/* ----- RESET & BASE ----- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #0f0f1a;
    color: #e0e0ef;
    line-height: 1.7;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    display: block;
}

/* ----- REUSABLE ----- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.section-header p {
    font-size: 1.05rem;
    color: #94a3b8;
}

/* ----- BUTTONS ----- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.35s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #a78bfa;
    border: 2px solid #a78bfa;
}

.btn-secondary:hover {
    background: rgba(167, 139, 250, 0.12);
    transform: translateY(-3px);
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.82rem;
}

.btn-outline {
    background: transparent;
    color: #38bdf8;
    border: 1.5px solid #38bdf8;
}

.btn-outline:hover {
    background: rgba(56, 189, 248, 0.1);
}

/* =========================
         NAVBAR
   ========================= */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
    padding: 0 40px;
}

.nav-com {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo span {
    color: #a78bfa;
}

.nav-item {
    display: flex;
    gap: 32px;
}

.nav-item a {
    font-size: 0.92rem;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.3s;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #a78bfa;
    transition: width 0.3s;
}

.nav-item a:hover {
    color: #fff;
}

.nav-item a:hover::after {
    width: 100%;
}

/* =========================
      HERO SECTION
   ========================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 120px 60px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
}

.hero-greeting {
    font-size: 1.1rem;
    color: #a78bfa;
    margin-bottom: 8px;
    font-weight: 500;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-com {
    font-size: 1.4rem;
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-btm {
    display: flex;
    gap: 16px;
}

.hero-image {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.hero-image img {
    border-radius: 24px;
    object-fit: cover;
    width: 100%;
    aspect-ratio: 4/5;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.2);
    border: 2px solid rgba(167, 139, 250, 0.15);
}

/* =========================
      PROJECTS SECTION
   ========================= */
.project {
    padding: 100px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.pro-heading {
    text-align: center;
    margin-bottom: 50px;
}

.pro-heading h2 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.pro-heading p {
    font-size: 1.05rem;
    color: #94a3b8;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: linear-gradient(145deg, #1a1a2e, #16162a);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.2);
}

.pro-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.pro-content {
    padding: 24px;
}

.pro-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.pro-content>p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 16px;
    line-height: 1.6;
}

.pro-techlist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.pro-techlist span {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.pro-btm {
    display: flex;
    gap: 10px;
}

/* =========================
    PROFESSIONAL JOURNEY
   ========================= */
.prof-journey {
    padding: 100px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #7c3aed, #2563eb, transparent);
    border-radius: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: #7c3aed;
    border-radius: 50%;
    border: 3px solid #0f0f1a;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
}

.timeline-content {
    background: linear-gradient(145deg, #1a1a2e, #16162a);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(167, 139, 250, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
}

.timeline-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 8px 0 4px;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 12px;
}

.timeline-content>p {
    font-size: 0.92rem;
    color: #94a3b8;
    margin-bottom: 16px;
    line-height: 1.7;
}

/* =========================
      SKILLS SECTION
   ========================= */
.skill {
    padding: 100px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 24px;
}

.skill-item {
    background: linear-gradient(145deg, #1a1a2e, #16162a);
    border-radius: 16px;
    padding: 28px 16px;
    text-align: center;
    border: 1px solid rgba(167, 139, 250, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: default;
}

.skill-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.18);
    border-color: rgba(167, 139, 250, 0.3);
}

.skill-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.skill-item h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.skill-item p {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* =========================
      CONTACT SECTION
   ========================= */
.contact {
    padding: 100px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: linear-gradient(145deg, #1a1a2e, #16162a);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(167, 139, 250, 0.1);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateX(6px);
}

.contact-card span {
    font-size: 1.6rem;
    margin-bottom: 8px;
    display: block;
}

.contact-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.9rem;
    color: #94a3b8;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid rgba(167, 139, 250, 0.15);
    background: #1a1a2e;
    color: #e0e0ef;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #64748b;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    align-self: flex-start;
    font-family: 'Inter', sans-serif;
}

/* =========================
         FOOTER
   ========================= */
footer {
    border-top: 1px solid rgba(167, 139, 250, 0.1);
    padding: 40px 60px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #a78bfa;
}

.footer-copy {
    font-size: 0.85rem;
    color: #64748b;
}

.footer-policy {
    display: flex;
    gap: 20px;
}

.footer-policy a {
    font-size: 0.82rem;
    color: #64748b;
    transition: color 0.3s;
}

.footer-policy a:hover {
    color: #94a3b8;
}

/* =========================
     RESPONSIVE DESIGN
   ========================= */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 120px 30px 60px;
        gap: 40px;
    }

    .hero-desc {
        margin: 0 auto 32px;
    }

    .hero-btm {
        justify-content: center;
    }

    .hero-image {
        max-width: 300px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .nav-com {
        flex-direction: column;
        height: auto;
        padding: 14px 0;
        gap: 10px;
    }

    .nav-item {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-com {
        font-size: 1.1rem;
    }

    .project,
    .prof-journey,
    .skill,
    .contact {
        padding: 60px 20px;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .skill-content {
        grid-template-columns: repeat(2, 1fr);
    }
}