/* =========================================================
   KUNAL GUPTA - DATA ANALYST PORTFOLIO
   ========================================================= */


/* =========================
   Global
========================= */

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #00bfff;
    --primary-dark: #008fcc;
    --primary-light: #eaf9ff;
    --dark: #0b0f14;
    --white: #ffffff;
    --text: #171717;
    --muted: #667085;
    --light-bg: #f6f9fc;
    --border: #e4e9ef;
    --border-hover: #b8e6fe;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}


/* =========================
   Navigation
========================= */

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 28px 7%;
}

.nav-container {
    max-width: 1250px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo::after {
    content: ".";
    color: var(--primary);
}

.nav-links {
    list-style: none;

    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    position: relative;

    font-size: 15px;
    font-weight: 600;

    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-dark);
}

.nav-links a:hover::after {
    width: 100%;
}


/* =========================
   Hero
========================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(0, 191, 255, 0.14),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f5fbff 55%,
            #eaf8ff 100%
        );

    padding: 130px 7% 90px;
}

.hero-container {
    width: 100%;
    max-width: 1250px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 80px;
}

.hero-content {
    flex: 1;
    max-width: 700px;
}

.hero-intro {
    font-size: 23px;
    font-weight: 600;

    margin-bottom: 5px;

    color: var(--primary-dark);
}

.hero-content h1 {
    font-size: clamp(48px, 6vw, 76px);

    line-height: 1.05;
    letter-spacing: -2px;

    margin-bottom: 18px;
}

.animated-role {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    min-height: 48px;

    font-size: 30px;
    font-weight: 700;

    margin-bottom: 22px;
}

.role-prefix {
    color: #222;
}

.role-text {
    color: var(--primary-dark);

    display: inline-block;

    animation:
        roleFade 1.5s ease,
        roleChange ;
}

@keyframes roleFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes roleChange {
    0%, 18% { opacity: 1; }
    23%, 27% { opacity: 0; transform: translateY(-10px); }
    32%, 68% { opacity: 1; transform: translateY(0); }
    73%, 77% { opacity: 0; transform: translateY(-10px); }
    82%, 100% { opacity: 1; transform: translateY(0); }
}

.hero-description {
    max-width: 620px;

    color: #555f6d;

    font-size: 19px;
    line-height: 1.8;

    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 14px;

    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 13px 22px;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    border: 1px solid transparent;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.primary-btn {
    background: var(--dark);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-3px);

    background: var(--primary-dark);

    box-shadow:
        0 10px 25px rgba(0, 143, 204, 0.25);
}

.secondary-btn {
    background: white;
    color: var(--dark);

    border-color: #d7dce2;
}

.secondary-btn:hover {
    transform: translateY(-3px);

    border-color: var(--primary);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08);
}

.hero-socials {
    display: flex;
    gap: 13px;
}

.hero-socials a {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: white;

    border: 1px solid #dce3e9;

    font-size: 17px;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.hero-socials a:hover {
    transform: translateY(-4px);

    background: var(--dark);
    color: white;
}


/* =========================
   Hero Image
========================= */

.hero-image-wrapper {
    position: relative;

    flex: 0 0 430px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-glow {
    position: absolute;

    width: 390px;
    height: 390px;

    border-radius: 50%;

    background: rgba(0, 191, 255, 0.12);

    filter: blur(10px);
}

.hero-image {
    position: relative;

    width: 360px;
    height: 360px;

    object-fit: cover;
    object-position: center top;

    border-radius: 50%;

    border: 8px solid white;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.14);

    animation: floatingImage 4s ease-in-out infinite;
}

@keyframes floatingImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


/* =========================
   Sections
========================= */

.section {
    padding: 110px 7%;
}

.section-container {
    max-width: 1250px;
    margin: auto;
}

.section-heading {
    text-align: center;

    margin-bottom: 60px;
}

.section-number {
    display: block;

    color: var(--primary-dark);

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 7px;
}

.section-heading h2 {
    font-size: clamp(38px, 5vw, 52px);

    line-height: 1.1;

    margin-bottom: 15px;

    letter-spacing: -1px;
}

.section-heading p {
    max-width: 650px;
    margin: auto;

    color: var(--muted);

    font-size: 17px;
}


/* =========================
   About
========================= */

.about-content {
    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    gap: 70px;

    align-items: center;
}

.about-text p {
    color: #555f6d;

    font-size: 18px;
    line-height: 1.9;

    margin-bottom: 20px;
}

.about-text strong {
    color: #111;
}

.about-highlights {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.highlight-card {
    padding: 25px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: #fff;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-6px);

    border-color: var(--primary);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.07);
}

.highlight-card i {
    font-size: 25px;

    color: var(--primary-dark);

    margin-bottom: 14px;
}

.highlight-card h3 {
    font-size: 19px;

    margin-bottom: 5px;
}

.highlight-card p {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.6;
}


/* =========================
   Skills
========================= */

.skills-section {
    background: var(--light-bg);
}

.skills-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 22px;
}

.skill-card {
    display: flex;
    align-items: flex-start;

    gap: 22px;

    padding: 30px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-6px);

    border-color: var(--primary);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.08);
}

.skill-icon {
    flex: 0 0 55px;

    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--primary-light);

    color: var(--primary-dark);

    font-size: 25px;
}

.skill-content {
    flex: 1;
}

.skill-content h3 {
    font-size: 24px;

    margin-bottom: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.skill-tags span {
    padding: 6px 11px;

    border-radius: 20px;

    background: #f2f4f7;

    border: 1px solid #e4e7ec;

    color: #475467;

    font-size: 13px;
    font-weight: 600;
}


/* =========================
   Projects (White Background)
========================= */

.projects-section {
    background: #ffffff;
}

.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.project-card {
    position: relative;

    overflow: hidden;

    min-height: 360px;

    display: flex;

    background: #ffffff;

    color: var(--text);

    border-radius: 16px;

    border: 1px solid var(--border);

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);

    border-color: var(--primary);

    box-shadow:
        0 18px 40px rgba(0, 143, 204, 0.12);
}

.project-number {
    flex: 0 0 70px;

    padding: 30px 0 0 25px;

    color: var(--primary-dark);

    font-size: 15px;
    font-weight: 800;

    letter-spacing: 2px;
}

.project-content {
    position: relative;

    padding: 30px 30px 30px 10px;

    display: flex;
    flex-direction: column;

    flex: 1;
}

.project-category {
    color: var(--primary-dark);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    margin-bottom: 12px;
}

.project-card h3 {
    font-size: 26px;

    line-height: 1.3;

    margin-bottom: 14px;

    color: #111820;
}

.project-card p {
    color: #555f6d;

    font-size: 15px;

    line-height: 1.75;

    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 25px;
}

.project-tags span {
    padding: 5px 12px;

    border-radius: 20px;

    background: var(--primary-light);

    border: 1px solid rgba(0, 191, 255, 0.25);

    color: var(--primary-dark);

    font-size: 12px;
    font-weight: 700;
}

.project-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: auto;

    width: fit-content;

    color: var(--dark);

    font-size: 14px;
    font-weight: 700;

    transition:
        color 0.3s ease,
        gap 0.3s ease;
}

.project-link:hover {
    color: var(--primary-dark);

    gap: 13px;
}

.project-more {
    background: linear-gradient(135deg, #ffffff 0%, #f4fbff 100%);
    border-style: dashed;
    border-color: #c9e9fa;
}


/* =========================
   Certificates (Brand Badges)
========================= */

.certificates-section {
    background: var(--light-bg);
}

.certificates-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.certificate-card {
    display: flex;
    flex-direction: column;

    min-height: 290px;

    padding: 28px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-6px);

    border-color: var(--primary);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.08);
}

.certificate-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}

.org-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 14px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.brand-deloitte {
    background: #f0fdf4;
    color: #111827;
    border: 1px solid #bbf7d0;
}
.brand-deloitte i {
    font-size: 10px;
    color: #86bc25;
}

.brand-tata {
    background: #eff6ff;
    color: #0b4f8a;
    border: 1px solid #bfdbfe;
    letter-spacing: 1px;
}
.brand-tata i {
    font-size: 13px;
    color: #005699;
}

.brand-bcg {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.brand-bcg i {
    font-size: 13px;
    color: #059669;
}

.brand-mckinsey {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}
.brand-mckinsey i {
    font-size: 13px;
    color: #002b49;
}

.brand-excel {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.brand-excel i {
    font-size: 15px;
    color: #107c41;
}

.certificate-year {
    color: var(--primary-dark);

    font-size: 13px;
    font-weight: 800;

    background: var(--primary-light);

    padding: 4px 10px;

    border-radius: 20px;
}

.certificate-card h3 {
    font-size: 20px;

    line-height: 1.35;

    margin-bottom: 8px;

    color: #111820;
}

.certificate-card p {
    color: var(--muted);

    font-size: 14px;

    margin-bottom: 20px;
}

.certificate-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: auto;

    width: fit-content;

    color: var(--primary-dark);

    font-size: 14px;
    font-weight: 700;

    transition: color 0.3s ease;
}

.certificate-link:hover {
    color: var(--dark);
}


/* =========================
   Contact
========================= */

.contact-section {
    background: white;
}

.contact-wrapper {
    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 70px;

    max-width: 1050px;

    margin: auto;
}

.contact-info h3 {
    font-size: 34px;

    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--muted);

    font-size: 16px;

    line-height: 1.8;

    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;

    gap: 15px;

    color: #333;

    font-size: 15px;
    font-weight: 600;

    margin-bottom: 18px;

    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--primary-dark);
}

.contact-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--primary-light);

    color: var(--primary-dark);
}

.contact-form {
    display: flex;
    flex-direction: column;

    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 15px 16px;

    border: 1px solid #d9dfe6;

    border-radius: 8px;

    outline: none;

    background: #fff;

    color: #111;

    font-size: 15px;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(0, 191, 255, 0.1);
}

.contact-form textarea {
    resize: vertical;

    min-height: 150px;
}

.contact-form .btn {
    width: fit-content;
}


/* =========================
   Footer (Compact Light Theme)
========================= */

.footer {
    background: #f8fbfe;

    color: var(--text);

    border-top: 1px solid var(--border);

    padding: 24px 7%;
}

.footer-container {
    max-width: 1250px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 800;
    color: #111820;
}

.footer-divider-dot {
    color: var(--muted);
    font-size: 14px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--muted);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-socials a {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: white;

    color: #4b5563;

    font-size: 14px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.footer-socials a:hover {
    background: var(--primary-dark);

    color: white;

    border-color: var(--primary-dark);

    transform: translateY(-2px);
}

.footer-copyright {
    font-size: 13px;
    color: var(--muted);
}


/* =========================
   Responsive - 1000px
========================= */

@media (max-width: 1000px) {

    .nav-links {
        gap: 18px;
    }

    .hero-container {
        gap: 40px;
    }

    .hero-image-wrapper {
        flex-basis: 350px;
    }

    .hero-image {
        width: 300px;
        height: 300px;
    }

    .hero-image-glow {
        width: 330px;
        height: 330px;
    }

    .about-content {
        gap: 40px;
    }

    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================
   Responsive - 768px
========================= */

@media (max-width: 768px) {

    .navbar {
        position: relative;
        padding: 20px;
    }

    .nav-container {
        flex-direction: column;
        gap: 18px;
    }

    .logo {
        font-size: 25px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }

    .nav-links a {
        font-size: 13px;
    }

    /* Hero */
    .hero {
        padding: 70px 20px 80px;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 600px;
    }

    .hero-intro {
        font-size: 20px;
    }

    .hero-content h1 {
        font-size: 50px;
        letter-spacing: -1px;
    }

    .animated-role {
        justify-content: center;
        font-size: 25px;
    }

    .hero-description {
        font-size: 17px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-image-wrapper {
        flex-basis: auto;
    }

    .hero-image {
        width: 250px;
        height: 250px;
    }

    .hero-image-glow {
        width: 280px;
        height: 280px;
    }

    /* Sections */
    .section {
        padding: 80px 20px;
    }

    .section-heading {
        margin-bottom: 45px;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: 340px;
    }

    /* Certificates */
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-left {
        flex-direction: column;
        gap: 4px;
    }

    .footer-divider-dot {
        display: none;
    }
}


/* =========================
   Responsive - 480px
========================= */

@media (max-width: 480px) {

    .nav-links {
        gap: 10px 14px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .hero {
        padding-top: 55px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .animated-role {
        font-size: 21px;
        min-height: 38px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-image {
        width: 210px;
        height: 210px;
    }

    .hero-image-glow {
        width: 235px;
        height: 235px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 270px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 22px;
    }

    .skill-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        font-size: 21px;
    }

    .skill-content h3 {
        font-size: 21px;
    }

    .project-number {
        flex-basis: 48px;
        padding-left: 17px;
    }

    .project-content {
        padding: 25px 20px 25px 0;
    }

    .project-card h3 {
        font-size: 23px;
    }

    .certificate-card {
        min-height: 260px;
        padding: 22px;
    }

    .contact-info h3 {
        font-size: 29px;
    }

    .footer {
        padding: 20px;
    }
}


/* =========================
   Accessibility
========================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}