
/* =========================================
   INSHAL PORTFOLIO
   Modern Light Coding Theme
========================================= */

/* ---------- Google Font Fallback ---------- */

:root {
    --primary: #635bff;
    --primary-dark: #4f46e5;
    --secondary: #06b6a4;
    --accent: #f59e0b;

    --text: #172033;
    --text-light: #64748b;
    --heading: #101828;

    --background: #fbfcff;
    --surface: #ffffff;
    --surface-soft: #f1f4ff;
    --border: #e7eaf3;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;

    --shadow: 0 12px 35px rgba(72, 84, 150, 0.08);
    --shadow-hover: 0 20px 45px rgba(72, 84, 150, 0.15);

    --transition: 0.3s ease;
}

/* ---------- Reset ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
}

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

/* ---------- Reusable Layout ---------- */

.container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.section {
    padding: 110px 0;
    position: relative;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 55px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.2;
    letter-spacing: -1.5px;
    color: var(--heading);
    margin: 12px 0 20px;
}

.section-heading h2 span {
    color: var(--primary);
}

.section-heading > p:last-child {
    color: var(--text-light);
    max-width: 560px;
}

/* ---------- Background ---------- */

.background-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
    z-index: -1;
}

.shape-one {
    width: 420px;
    height: 420px;
    background: rgba(99, 91, 255, 0.07);
    top: 80px;
    right: -180px;
}

.shape-two {
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 164, 0.06);
    top: 650px;
    left: -180px;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(251, 252, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(231, 234, 243, 0.8);
}

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.6px;
    white-space: nowrap;
}

.logo-symbol {
    color: var(--primary);
    font-family: "JetBrains Mono", monospace;
    font-size: 1rem;
}

.logo-dot {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -8px;
    left: 0;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-button {
    background: var(--primary);
    color: white;
    padding: 11px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}

.nav-button span {
    margin-left: 8px;
}

.nav-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    border: none;
    background: var(--surface);
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--heading);
    transition: var(--transition);
}

/* ---------- Hero ---------- */

.hero {
    padding-top: 85px;
    padding-bottom: 120px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 65px;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #eafbf5;
    color: #087f5b;
    border: 1px solid #c8f1e1;
    border-radius: 50px;
    padding: 7px 14px;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #12b886;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.eyebrow {
    font-family: "JetBrains Mono", monospace;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.code-symbol {
    color: var(--secondary);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.12;
    letter-spacing: -2.5px;
    color: var(--heading);
    margin: 18px 0 25px;
}

.gradient-text {
    background: linear-gradient(
        110deg,
        #635bff,
        #8b5cf6,
        #0d9488
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 500px;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 23px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
}

.button-primary {
    color: white;
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(99, 91, 255, 0.22);
}

.button-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(99, 91, 255, 0.3);
}

.button-secondary {
    background: white;
    border: 1px solid var(--border);
    color: var(--heading);
}

.button-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 35px;
    color: var(--text-light);
    font-size: 0.78rem;
}

.hero-socials a {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: white;
    border: 1px solid var(--border);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    font-weight: 700;
    transition: var(--transition);
}

.hero-socials a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ---------- Code Window ---------- */

.hero-visual {
    position: relative;
    min-width: 0;
    padding: 25px;
}

.code-window {
    position: relative;
    background: #ffffff;
    border: 1px solid #e4e8f5;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(72, 84, 150, 0.13);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px;
    background: #f7f8fd;
    border-bottom: 1px solid #e7eaf3;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-dots span:nth-child(1) {
    background: #ff8b8b;
}

.window-dots span:nth-child(2) {
    background: #ffd166;
}

.window-dots span:nth-child(3) {
    background: #65d6a5;
}

.window-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    color: #7b849a;
}

.window-status {
    font-size: 0.7rem;
    color: #16a34a;
}

.code-content {
    padding: 25px 18px;
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(0.55rem, 1.2vw, 0.76rem);
    line-height: 2.1;
    overflow-x: auto;
}

.code-line {
    display: flex;
    white-space: pre;
}

.line-number {
    width: 30px;
    margin-right: 12px;
    flex-shrink: 0;
    color: #b5bdd0;
    user-select: none;
}

.keyword {
    color: #8b5cf6;
}

.function {
    color: #2563eb;
}

.string {
    color: #059669;
}

.indent {
    padding-left: 25px;
}

.indent-double {
    padding-left: 50px;
}

.indent-triple {
    padding-left: 75px;
}

.cursor-line {
    color: #334155;
}

.typing-cursor {
    display: inline-block;
    width: 7px;
    height: 16px;
    background: var(--primary);
    vertical-align: middle;
    margin-left: 4px;
    animation: blink 1s infinite;
}

.window-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 20px;
    background: #f7f8fd;
    border-top: 1px solid #e7eaf3;
    color: #8791a8;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.63rem;
}

/* ---------- Floating Cards ---------- */

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 13px 17px;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    animation: float 5s ease-in-out infinite;
}

.floating-card strong {
    display: block;
    color: var(--heading);
    font-size: 0.75rem;
}

.floating-card small {
    display: block;
    color: var(--text-light);
    font-size: 0.65rem;
}

.floating-icon {
    font-size: 1.4rem;
}

.card-python {
    top: 0;
    left: -15px;
}

.card-data {
    right: -15px;
    bottom: 0;
    animation-delay: 1.5s;
}

/* ---------- About ---------- */

.about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.about-text {
    color: var(--text-light);
    max-width: 520px;
}

.about-text p + p {
    margin-top: 20px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 28px;
    transition: var(--transition);
}

.text-link:hover {
    gap: 18px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-card {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 16px;
}

.stat-number {
    display: block;
    color: var(--primary);
    font-family: "JetBrains Mono", monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--heading);
}

.stat-card p {
    font-size: 0.72rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-top: 8px;
}

/* ---------- Skills ---------- */

.skills {
    background: var(--background);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 23px;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: #d5d2ff;
}

.skill-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--surface-soft);
    font-size: 1.6rem;
    margin-bottom: 22px;
}

.skill-card h3 {
    font-size: 1rem;
    color: var(--heading);
    margin-bottom: 10px;
}

.skill-card p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.skill-tag,
.project-label {
    display: inline-block;
    background: #eeecff;
    color: var(--primary-dark);
    border-radius: 50px;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 700;
}

/* ---------- Projects ---------- */

.projects {
    background: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    height: 200px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.project-image::before,
.project-image::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
}

.project-image::before {
    width: 220px;
    height: 220px;
}

.project-image::after {
    width: 320px;
    height: 320px;
}

.project-image-one {
    background: linear-gradient(135deg, #dce8ff, #e5ddff);
}

.project-image-two {
    background: linear-gradient(135deg, #d8f8ef, #dce8ff);
}

.project-image-three {
    background: linear-gradient(135deg, #fff0d4, #ffe1ed);
}

.project-label {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    background: white;
    color: var(--heading);
}

.project-symbol {
    position: relative;
    z-index: 1;
    font-family: "JetBrains Mono", monospace;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(99, 91, 255, 0.65);
}

.project-info {
    padding: 25px;
}

.project-category {
    color: var(--primary);
    font-size: 0.7rem;
    font-family: "JetBrains Mono", monospace;
    margin-bottom: 10px;
}

.project-info h3 {
    color: var(--heading);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.project-info > p:not(.project-category) {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---------- Contact ---------- */

.contact {
    background: var(--background);
}

.contact-box {
    background: linear-gradient(120deg, #eeecff, #e4faf5);
    border: 1px solid #e0e2f5;
    border-radius: 32px;
    padding: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    overflow: hidden;
}

.contact-content h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.2;
    letter-spacing: -1.5px;
    color: var(--heading);
    margin: 15px 0 20px;
}

.contact-content h2 span {
    color: var(--primary);
}

.contact-content > p:not(.eyebrow) {
    color: var(--text-light);
    font-size: 0.9rem;
    max-width: 430px;
    margin-bottom: 30px;
}

.contact-decoration {
    position: relative;
    min-height: 240px;
    display: grid;
    place-items: center;
}

.contact-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px dashed rgba(99, 91, 255, 0.35);
    display: grid;
    place-items: center;
    animation: spin 25s linear infinite;
}

.contact-circle span {
    font-size: 4rem;
    color: var(--primary);
}

.contact-code {
    position: absolute;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: var(--shadow);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: var(--text);
}

.contact-code span:first-child {
    color: #8b5cf6;
}

.contact-code span:last-child {
    color: #059669;
}

/* ---------- Footer ---------- */

.footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer p {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

.back-to-top {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--primary);
    background: var(--surface-soft);
    font-weight: 700;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ---------- Scroll Animations ---------- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Keyframes ---------- */

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(18, 184, 134, 0.35);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(18, 184, 134, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(18, 184, 134, 0);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
    .hero-grid {
        gap: 35px;
    }

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

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

    .project-card:last-child {
        grid-column: span 2;
        max-width: calc(50% - 12px);
    }

    .about-grid {
        gap: 35px;
    }

    .contact-box {
        padding: 50px;
    }
}

/* ---------- Mobile Navigation ---------- */

@media (max-width: 768px) {
    .container {
        width: min(100% - 30px, 600px);
    }

    .section {
        padding: 75px 0;
    }

    .navbar {
        min-height: 72px;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: absolute;
        top: 72px;
        left: 15px;
        right: 15px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px;
        background: white;
        border: 1px solid var(--border);
        border-radius: 18px;
        box-shadow: var(--shadow-hover);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
    }

    .nav-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        padding: 12px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-button {
        text-align: center;
        margin-top: 10px;
    }

    .hero {
        padding-top: 55px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-actions,
    .hero-socials {
        justify-content: center;
    }

    .hero-visual {
        max-width: 580px;
        width: 100%;
        margin-inline: auto;
        padding: 15px;
    }

    .card-python {
        left: -5px;
    }

    .card-data {
        right: -5px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        max-width: none;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .contact-box {
        grid-template-columns: 1fr;
        padding: 40px 25px;
        text-align: center;
    }

    .contact-content > p:not(.eyebrow) {
        margin-inline: auto;
    }

    .contact-decoration {
        min-height: 190px;
    }

    .footer-content {
        flex-direction: column;
    }
}

/* ---------- Small Mobile ---------- */

@media (max-width: 450px) {
    .hero h1 {
        letter-spacing: -1.5px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hero-socials {
        flex-wrap: wrap;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .floating-card {
        padding: 9px 11px;
    }

    .floating-card strong {
        font-size: 0.65rem;
    }

    .floating-card small {
        font-size: 0.56rem;
    }

    .floating-icon {
        font-size: 1.1rem;
    }

    .card-python {
        top: -10px;
        left: -5px;
    }

    .card-data {
        right: -5px;
        bottom: -10px;
    }

    .code-content {
        padding: 18px 10px;
        font-size: 0.55rem;
    }

    .indent {
        padding-left: 12px;
    }

    .indent-double {
        padding-left: 24px;
    }

    .indent-triple {
        padding-left: 36px;
    }

    .line-number {
        width: 20px;
        margin-right: 6px;
    }

    .window-footer {
        font-size: 0.55rem;
    }

    .contact-code {
        font-size: 0.6rem;
        padding: 10px 12px;
    }
}

/* ---------- Reduced Motion ---------- */

@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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}