/* =====================================================
   NIKHIL YADAV - PORTFOLIO
   cPanel Friendly CSS
===================================================== */


/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #07050b;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.container {
    width: 1180px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}


/* ================= LIGHT MODE ================= */

body.light {
    background: #faf9ff;
    color: #17121f;
}

body.light .header {
    background: rgba(250, 249, 255, 0.88);
}

body.light .grid-background {
    background-image:
        linear-gradient(
            rgba(124, 58, 237, 0.10) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(124, 58, 237, 0.10) 1px,
            transparent 1px
        );
}

body.light .hero-description,
body.light .about-text p,
body.light .skill-card p,
body.light .project-content p,
body.light .timeline-content p,
body.light .certificate p,
body.light .connect-box > p {
    color: #686171;
}

body.light .card,
body.light .skill-card,
body.light .project-card,
body.light .certificate,
body.light .about-card,
body.light .connect-box {
    background: rgba(124, 58, 237, 0.045);
}

body.light .photo-card {
    background: #eee9fa;
}


/* ================= GRID BACKGROUND ================= */

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: -5;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(139, 92, 246, 0.09) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(139, 92, 246, 0.09) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            rgba(0, 0, 0, 0.7),
            transparent
        );
}


/* ================= CURSOR GLOW ================= */

.cursor-glow {
    position: fixed;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    pointer-events: none;

    z-index: -2;

    background:
        radial-gradient(
            circle,
            rgba(139, 92, 246, 0.14),
            transparent 65%
        );

    transform: translate(-50%, -50%);
}


/* ================= HEADER ================= */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 100;

    background: rgba(7, 5, 11, 0.72);

    backdrop-filter: blur(20px);

    border-bottom: 1px solid transparent;

    transition: 0.3s ease;
}

.header.scrolled {
    border-color: rgba(180, 120, 255, 0.18);
}

.navbar {
    height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo {
    display: flex;

    align-items: center;

    gap: 10px;

    font-weight: 800;
}

.logo-box {
    width: 36px;
    height: 36px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #5b21b6
        );

    color: #ffffff;

    font-size: 12px;

    box-shadow:
        0 0 25px rgba(139, 92, 246, 0.35);
}

.nav-right {
    display: flex;

    align-items: center;

    gap: 15px;
}

.nav-links {
    display: flex;

    align-items: center;

    gap: 26px;

    font-size: 14px;

    color: #a4a0ac;
}

.nav-links a {
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: #a78bfa;

    transform: translateY(-2px);
}

.nav-button {
    padding: 9px 16px;

    border:
        1px solid rgba(180, 120, 255, 0.18);

    border-radius: 100px;
}

.theme-toggle {
    width: 38px;
    height: 38px;

    border:
        1px solid rgba(180, 120, 255, 0.18);

    background: rgba(255, 255, 255, 0.045);

    color: #ffffff;

    border-radius: 50%;

    cursor: pointer;

    transition: 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(20deg) scale(1.08);

    border-color: #8b5cf6;
}

body.light .theme-toggle {
    color: #17121f;
}

.menu-button {
    display: none;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.menu-button span {
    display: block;

    width: 24px;
    height: 2px;

    background: #ffffff;

    margin: 5px;
}

body.light .menu-button span {
    background: #17121f;
}


/* ================= HERO ================= */

.hero {
    min-height: 100vh;

    display: flex;

    align-items: center;

    padding: 140px 0 80px;

    position: relative;
}

.hero-container {
    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 70px;
}

.availability {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 7px 12px;

    border:
        1px solid rgba(180, 120, 255, 0.18);

    border-radius: 100px;

    font-size: 11px;

    color: #a4a0ac;

    margin-bottom: 22px;

    background: rgba(255, 255, 255, 0.045);
}

.availability span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #00e5a8;

    box-shadow:
        0 0 12px #00e5a8;
}

.hero-label {
    color: #a78bfa;

    font-size: 12px;

    letter-spacing: 0.18em;

    font-weight: 700;

    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(65px, 9vw, 120px);

    line-height: 0.88;

    letter-spacing: -0.08em;

    margin-bottom: 25px;
}

.hero h1 span {
    display: block;

    background:
        linear-gradient(
            100deg,
            #ffffff,
            #a78bfa,
            #8b5cf6
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}

.hero h2 {
    font-size: clamp(24px, 3vw, 40px);

    letter-spacing: -0.04em;

    margin-bottom: 18px;
}

.hero h2 span {
    color: #a78bfa;
}

.hero-description {
    max-width: 600px;

    color: #a4a0ac;

    font-size: 17px;
}

.hero-buttons {
    display: flex;

    gap: 12px;

    margin-top: 32px;
}

.button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 14px 21px;

    border-radius: 100px;

    font-size: 13px;

    font-weight: 700;

    transition: 0.3s ease;
}

.primary-button {
    background: #8b5cf6;

    color: #ffffff;

    box-shadow:
        0 10px 35px rgba(124, 58, 237, 0.25);
}

.primary-button:hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 45px rgba(124, 58, 237, 0.4);
}

.secondary-button {
    border:
        1px solid rgba(180, 120, 255, 0.18);

    background: rgba(255, 255, 255, 0.045);
}

.secondary-button:hover {
    border-color: #8b5cf6;

    color: #a78bfa;

    transform: translateY(-4px);
}

.hero-stats {
    display: flex;

    gap: 32px;

    margin-top: 42px;
}

.hero-stats div {
    display: flex;

    flex-direction: column;
}

.hero-stats strong {
    font-size: 14px;
}

.hero-stats small {
    color: #a4a0ac;

    font-size: 11px;
}


/* ================= PHOTO ================= */

.hero-photo-wrapper {
    min-height: 570px;

    position: relative;

    display: grid;

    place-items: center;
}

.photo-grid-ring {
    position: absolute;

    width: 470px;
    height: 470px;

    border:
        1px solid rgba(139, 92, 246, 0.4);

    border-radius: 50%;

    box-shadow:
        0 0 70px rgba(139, 92, 246, 0.12);

    animation:
        rotateRing 20s linear infinite;
}

.photo-grid-ring::before {
    content: "";

    position: absolute;

    inset: 35px;

    border:
        1px dashed rgba(139, 92, 246, 0.22);

    border-radius: 50%;
}

.photo-grid-ring::after {
    content: "";

    position: absolute;

    inset: 75px;

    border:
        1px dashed rgba(139, 92, 246, 0.22);

    border-radius: 50%;
}

@keyframes rotateRing {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

.photo-card {
    width: 350px;
    height: 430px;

    position: relative;

    overflow: hidden;

    border-radius: 35px;

    border:
        1px solid rgba(167, 139, 250, 0.35);

    background:
        linear-gradient(
            145deg,
            #171020,
            #08070b
        );

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.55);

    z-index: 2;

    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.photo-card:hover {
    transform:
        translateY(-10px)
        rotate(1deg);

    box-shadow:
        0 40px 100px rgba(124, 58, 237, 0.25);
}

.photo-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    filter:
        saturate(1.05)
        contrast(1.03);
}

.photo-overlay {
    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 18px;

    padding: 16px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 18px;

    background:
        rgba(5, 5, 8, 0.68);

    backdrop-filter: blur(15px);

    display: flex;

    flex-direction: column;
}

.photo-overlay strong {
    font-size: 17px;
}

.photo-overlay span {
    font-size: 11px;

    color: #aaaaaa;
}

.floating-badge {
    position: absolute;

    padding: 11px 15px;

    background:
        rgba(12, 8, 18, 0.88);

    border:
        1px solid rgba(180, 120, 255, 0.18);

    border-radius: 13px;

    font-size: 12px;

    z-index: 4;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4);

    transition: 0.3s ease;
}

.floating-badge:hover {
    transform: scale(1.08);

    border-color: #8b5cf6;
}

.badge-one {
    left: 0;
    top: 25%;
}

.badge-two {
    right: 0;
    bottom: 25%;
}


/* ================= SECTIONS ================= */

.section {
    padding: 110px 0;

    position: relative;
}

.section-dark {
    background:
        rgba(0, 0, 0, 0.16);
}

.section-title {
    max-width: 780px;

    margin-bottom: 60px;
}

.section-title > span,
.section-label {
    display: block;

    color: #a78bfa;

    font-size: 11px;

    letter-spacing: 0.18em;

    font-weight: 800;

    margin-bottom: 17px;
}

.section-title h2 {
    font-size:
        clamp(40px, 5vw, 67px);

    line-height: 1.02;

    letter-spacing: -0.06em;
}

.section-title strong {
    color: #a78bfa;
}


/* ================= ABOUT ================= */

.about-layout {
    display: grid;

    grid-template-columns:
        0.8fr 1.2fr;

    gap: 80px;
}

.about-text p {
    color: #a4a0ac;

    font-size: 19px;

    margin-bottom: 20px;
}

.about-cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}

.about-card {
    padding: 25px;

    min-height: 210px;

    border:
        1px solid rgba(180, 120, 255, 0.18);

    border-radius: 22px;

    background:
        rgba(255, 255, 255, 0.045);

    transition: 0.3s ease;
}

.about-card:hover {
    transform: translateY(-8px);

    border-color: #8b5cf6;

    box-shadow:
        0 20px 50px rgba(124, 58, 237, 0.1);
}

.about-card > span {
    color: #a78bfa;

    font-size: 11px;
}

.about-card h3 {
    margin-top: 65px;

    font-size: 21px;
}

.about-card p {
    color: #a4a0ac;

    font-size: 12px;

    margin-top: 5px;
}


/* ================= SKILLS ================= */

.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;
}

.skill-card {
    padding: 27px;

    min-height: 180px;

    border:
        1px solid rgba(180, 120, 255, 0.18);

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.045);

    transition: 0.3s ease;

    position: relative;

    overflow: hidden;
}

.skill-card::before {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -40px;
    top: -40px;

    border-radius: 50%;

    background:
        rgba(139, 92, 246, 0.15);

    filter: blur(25px);

    transition: 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);

    border-color: #8b5cf6;

    box-shadow:
        0 20px 60px rgba(124, 58, 237, 0.12);
}

.skill-card:hover::before {
    transform: scale(2);
}

.skill-card > span {
    color: #a78bfa;

    font-size: 14px;

    font-weight: 900;
}

.skill-card h3 {
    margin-top: 40px;

    font-size: 18px;
}

.skill-card p {
    color: #a4a0ac;

    font-size: 12px;

    margin-top: 5px;
}


/* ================= PROJECTS ================= */

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}

.project-card {
    min-height: 390px;

    padding: 28px;

    border:
        1px solid rgba(180, 120, 255, 0.18);

    border-radius: 25px;

    background:
        rgba(255, 255, 255, 0.045);

    display: flex;

    flex-direction: column;

    transition: 0.3s ease;

    overflow: hidden;

    position: relative;
}

.project-card::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -100px;
    bottom: -100px;

    background:
        rgba(139, 92, 246, 0.12);

    border-radius: 50%;

    filter: blur(40px);

    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);

    border-color: #8b5cf6;

    box-shadow:
        0 30px 70px rgba(124, 58, 237, 0.12);
}

.project-card:hover::after {
    transform: scale(1.5);
}

.project-card.featured {
    background:
        linear-gradient(
            145deg,
            rgba(124, 58, 237, 0.14),
            rgba(255, 255, 255, 0.045)
        );
}

.project-number {
    color: #a78bfa;

    font-size: 12px;

    font-weight: 800;
}

.project-content {
    margin-top: auto;

    position: relative;

    z-index: 2;
}

.project-content small {
    color: #a4a0ac;

    font-size: 10px;

    letter-spacing: 0.15em;
}

.project-content h3 {
    font-size: 32px;

    margin: 10px 0;
}

.project-content p {
    color: #a4a0ac;

    font-size: 13px;

    margin-bottom: 20px;
}

.tags {
    display: flex;

    gap: 7px;

    flex-wrap: wrap;
}

.tags span {
    padding: 6px 9px;

    border:
        1px solid rgba(180, 120, 255, 0.18);

    border-radius: 100px;

    font-size: 10px;

    color: #a4a0ac;
}


/* ================= TIMELINE ================= */

.timeline {
    max-width: 900px;

    border-left:
        1px solid rgba(180, 120, 255, 0.18);

    margin-left: 8px;
}

.timeline-item {
    display: grid;

    grid-template-columns:
        120px 20px 1fr;

    gap: 25px;

    padding:
        0 0 55px 30px;

    position: relative;
}

.timeline-date {
    color: #a78bfa;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.1em;
}

.timeline-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #a78bfa;

    box-shadow:
        0 0 15px #8b5cf6;

    margin-top: 5px;

    margin-left: -35px;
}

.timeline-content h3 {
    font-size: 21px;
}

.timeline-content p {
    color: #a4a0ac;

    font-size: 13px;

    margin-top: 6px;
}


/* ================= CERTIFICATES ================= */

.certificate-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;
}

.certificate {
    padding: 27px;

    min-height: 200px;

    border:
        1px solid rgba(180, 120, 255, 0.18);

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.045);

    transition: 0.3s ease;
}

.certificate:hover {
    transform:
        translateY(-8px)
        rotate(1deg);

    border-color: #8b5cf6;

    box-shadow:
        0 25px 60px rgba(124, 58, 237, 0.1);
}

.certificate > span {
    color: #a78bfa;

    font-size: 11px;
}

.certificate h3 {
    margin-top: 60px;

    font-size: 18px;
}

.certificate p {
    color: #a4a0ac;

    font-size: 12px;
}


/* ================= CONNECT ================= */

.connect-section {
    padding-top: 70px;
}

.connect-box {
    padding: 75px 30px;

    text-align: center;

    border:
        1px solid rgba(180, 120, 255, 0.18);

    border-radius: 35px;

    background:
        radial-gradient(
            circle at 50% 0,
            rgba(139, 92, 246, 0.16),
            transparent 55%
        ),
        rgba(255, 255, 255, 0.045);
}

.connect-box h2 {
    font-size:
        clamp(50px, 7vw, 90px);

    line-height: 0.95;

    letter-spacing: -0.07em;
}

.connect-box h2 strong {
    color: #a78bfa;
}

.connect-box > p {
    max-width: 550px;

    margin: 25px auto;

    color: #a4a0ac;
}

.social-links {
    display: flex;

    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;
}

.social-links a {
    padding: 10px 16px;

    border:
        1px solid rgba(180, 120, 255, 0.18);

    border-radius: 100px;

    font-size: 12px;

    transition: 0.3s ease;
}

.social-links a:hover {
    background: #8b5cf6;

    color: #ffffff;

    border-color: #8b5cf6;

    transform: translateY(-4px);
}


/* ================= FOOTER ================= */

footer {
    border-top:
        1px solid rgba(180, 120, 255, 0.18);

    padding: 30px 0;
}

.footer-content {
    display: flex;

    align-items: center;

    justify-content: space-between;
}

.footer-content p {
    color: #a4a0ac;

    font-size: 11px;
}


/* ================= REVEAL ================= */

.reveal {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* ================= TABLET ================= */

@media (max-width: 950px) {

    .hero-container {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-description {
        margin: auto;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .hero-photo-wrapper {
        min-height: 500px;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .certificate-grid {
        grid-template-columns:
            1fr 1fr;
    }
}


/* ================= MOBILE ================= */

@media (max-width: 720px) {

    .container {
        width:
            calc(100% - 28px);
    }

    .navbar {
        height: 68px;
    }

    .nav-links {
        display: none;

        position: absolute;

        top: 70px;

        left: 14px;
        right: 14px;

        padding: 20px;

        flex-direction: column;

        align-items: stretch;

        background: #0d0914;

        border:
            1px solid rgba(180, 120, 255, 0.18);

        border-radius: 20px;
    }

    body.light .nav-links {
        background: #f1eff9;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-button {
        text-align: center;
    }

    .menu-button {
        display: block;
    }

    .hero {
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 70px;
    }

    .hero h2 {
        font-size: 27px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-stats {
        gap: 18px;
    }

    .hero-photo-wrapper {
        min-height: 440px;
    }

    .photo-card {
        width: 280px;
        height: 350px;
    }

    .photo-grid-ring {
        width: 350px;
        height: 350px;
    }

    .badge-one {
        left: 0;
    }

    .badge-two {
        right: 0;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 42px;
    }

    .about-cards,
    .skills-grid,
    .projects-grid,
    .certificate-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns:
            1fr 15px;

        gap: 10px;

        padding-left: 25px;
    }

    .timeline-date {
        grid-column: 1 / -1;
    }

    .timeline-dot {
        position: absolute;

        left: -5px;
    }

    .timeline-content {
        grid-column: 1 / -1;
    }

    .connect-box {
        padding:
            55px 20px;
    }

    .connect-box h2 {
        font-size: 54px;
    }

    .footer-content {
        flex-direction: column;

        gap: 15px;

        text-align: center;
    }
}