/* assets/css/style.css */

/* Light, modern, slightly futuristic theme with glassmorphism */
:root {
    
    --primary: #5511f8;
    --primary-soft: #f2f0fe;
    --text-main: #121212;
    --text-muted: #2e3236;
    --card-bg: #ffffff;
    --border-soft: #e6e6ff;

    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 18px 40px rgba(43, 64, 136, 0.18);
    --transition-fast: 0.18s ease-out;
    --container-max: 1120px;
    --nav-height: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, 
html, body, button, input, textarea, select {
    font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

*, *::before, *::after {
    font-family: inherit;
}



/* Base page background */
/* Base background */
body {
    margin: 0;
    padding: 0;
    font-family: "Nunito Sans", system-ui, sans-serif;
    background: #f2f0fe;   /* your main background */
    color: var(--text-main, #111827);
    position: relative;
    overflow-x: hidden;
}

/* Soft rainbow overlay – more columns + faster */
body::before {
    content: "";
    position: fixed;
    inset: -10vh -10vw; /* a bit bigger than viewport */
    pointer-events: none;
    z-index: -1;

    /* More, narrower purple–blue bands with smooth transitions */
    background-image: linear-gradient(
        115deg,
        rgba(232, 121, 249, 0.00) 0%,
        rgba(232, 121, 249, 0.45) 10%,
        rgba(96, 165, 250, 0.38) 20%,
        rgba(0, 0, 0, 0.00)       30%,
        rgba(96, 165, 250, 0.32) 40%,
        rgba(232, 121, 249, 0.40) 50%,
        rgba(0, 0, 0, 0.00)       60%,
        rgba(232, 121, 249, 0.45) 72%,
        rgba(96, 165, 250, 0.38) 84%,
        rgba(0, 0, 0, 0.00)       100%
    );

    background-size: 170% 170%;
    opacity: 0.55;

    /* Faster animation */
    animation: rainbowSoftSlide 16s ease-in-out infinite alternate;
}

/* Smooth movement */
@keyframes rainbowSoftSlide {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 45% 12%;
    }
    100% {
        background-position: 90% 0%;
    }
}







/* Ensure headings also use Nunito Sans and consistent weight */
/* Global heading font and reset */
h1, h2, h3, h4, h5, h6 {
    font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.7rem;
}

/* Size hierarchy – Desktop first */
h1 { font-size: 2.4rem; }   /* Page titles / Hero text */
h2 { font-size: 1.9rem; }   /* Section titles */
h3 { font-size: 1.45rem; }  /* Card headings / sub-section */
h4 { font-size: 1.2rem; }   /* small headings inside cards */
h5 { font-size: 1.05rem; }  /* labels / smaller headings */
h6 { font-size: 0.95rem; }  /* very small heading / captions */

/* Responsive scaling for mobile */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.65rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
}


/* Utility */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.2rem;
}

.section {
    padding: 4.5rem 0;
}

.section,
.section-alt,
.hero {
    background: transparent !important;
    backdrop-filter: none !important;
}

.section-heading {
    text-align: center;
    margin-bottom: 2.4rem;
}

.section-heading h1,
.section-heading h2 {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.section-heading p {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0.4rem auto 0;
}

.section-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
}

.centered {
    text-align: center;
    margin-top: 2rem;
}

/* Shared glassmorphism card style */

.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(26px);
}

/* Header */

.site-header,
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);  /* soft tinted background */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);     /* for Safari */
    border-bottom: 1px solid rgba(230, 230, 255, 0.9);
}


.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    gap: 1.5rem;
}

.logo {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo * {
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.logo-title {
    font-weight: 800;
    letter-spacing: 0.03em;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.main-nav a:hover {
    color: var(--primary);
    background: rgba(230, 230, 255, 0.9);
    transform: translateY(-1px);
}

.nav-cta {
    display: flex;
    align-items: center;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}

.btn-gradient {
    background-image: linear-gradient(120deg, #5511f8, #da46ef);
    color: #ffffff;
    box-shadow: 0 6px 12px rgba(85, 17, 248, 0.35);
}

.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(85, 17, 248, 0.45);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(85, 17, 248, 0.25);
}

.btn-ghost:hover {
    background: rgba(85, 17, 248, 0.06);
    border-color: rgba(85, 17, 248, 0.5);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
}

.full-width {
    width: 100%;
}

/* Hero */

.hero {
    padding: 4.5rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    line-height: 1.1;
    margin: 0 0 0.9rem;
}

.gradient-text {
    background: linear-gradient(120deg, #5511f8, #da46ef);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-sub {
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 1.4rem;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-card {
    padding: 1.4rem 1.4rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 0 0, rgba(85, 17, 248, 0.12), transparent 55%);
    opacity: 1;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(242, 240, 254, 0.95);
    border: 1px solid rgba(85, 17, 248, 0.34);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-app-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.hero-app-list li {
    padding: 0.7rem 0.2rem;
    border-bottom: 1px dashed rgba(230, 230, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hero-app-list li:last-child {
    border-bottom: none;
}

.hero-app-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.8rem;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.hero-app-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.hero-app-type {
    font-size: 0.75rem;
    color: #0f766e;
    margin-bottom: 0.1rem;
}

.hero-app-link {
    font-size: 0.8rem;
    color: #5511f8;
    text-decoration: none;
}

.hero-app-link:hover {
    text-decoration: underline;
}

.hero-more-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.hero-more-link:hover {
    color: var(--primary);
}

/* Cards, lists */

.info-card,
.cta-card,
.form-card,
.process-card,
.skills-card,
.page-card {
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.85));
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(22px);
    padding: 2.1rem 1.9rem;
}

/* ==== Tech Stack & How I Work – Clean Cards ==== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.3rem;
    margin-top: 1.4rem;
}

.skill-card {
    position: relative;
    padding: 1.1rem 1rem 1rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(230, 230, 255, 0.8);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease-out,
                box-shadow 0.2s ease-out,
                border-color 0.2s ease-out,
                background 0.2s ease-out;
}

/* Alternate soft backgrounds */
.skill-card:nth-child(odd) {
    background: rgba(248, 247, 255, 0.9);
}

.skill-card:hover {
    transform: translateY(-3px);
    border-color: rgba(85, 17, 248, 0.6);
    background: linear-gradient(
        135deg,
        rgba(85, 17, 248, 0.07),
        rgba(218, 70, 239, 0.04)
    );
    box-shadow: 0 18px 40px rgba(85, 17, 248, 0.16);
}

.skill-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.45rem;
    background: rgba(85, 17, 248, 0.08);
}

/* Titles & bullet dots inside */
.skill-card h3 {
    font-size: 1rem;
    margin: 0 0 0.35rem;
}

.skill-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-points li {
    position: relative;
    padding-left: 0.95rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.skill-points li::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.65rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(85, 17, 248, 0.7);
}

/* ===== How I Work steps ===== */

.process-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.4rem;
}

.process-step {
    padding: 0.95rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(230, 230, 255, 0.85);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease-out,
                box-shadow 0.2s ease-out,
                border-color 0.2s ease-out,
                background 0.2s ease-out;
}

.process-step:nth-child(odd) {
    background: rgba(248, 247, 255, 0.9);
}

.process-step:hover {
    transform: translateY(-2px);
    border-color: rgba(85, 17, 248, 0.6);
    background: linear-gradient(
        135deg,
        rgba(85, 17, 248, 0.06),
        rgba(218, 70, 239, 0.03)
    );
    box-shadow: 0 14px 32px rgba(85, 17, 248, 0.14);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
}

.step-number {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(85, 17, 248, 0.09);
}

.process-step h3 {
    font-size: 0.98rem;
    margin: 0;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

/* Responsive tweaks if needed */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}



.check-list,
.bullet-list {
    list-style: none;
    padding-left: 0;
    margin: 0.8rem 0 1.4rem;
}

.check-list li,
.bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.check-list li::before {
    content: "✔";
    font-size: 0.8rem;
    margin-top: 0.1rem;
    color: #198754;
}

.bullet-list li::before {
    content: "•";
    font-size: 1.1rem;
    margin-top: -0.05rem;
    color: var(--primary);
}

.process-list {
    list-style: none;
    padding-left: 0;
    margin: 0.8rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.process-list li {
    margin-bottom: 0.8rem;
}

/* Apps grid */

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.6rem;
}

.app-card {
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border: 1px solid var(--border-soft);
    padding: 1.4rem 1.2rem 1.2rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.app-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0 0, rgba(85, 17, 248, 0.12), transparent 55%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(85, 17, 248, 0.18);
    border-color: rgba(85, 17, 248, 0.6);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 240, 254, 0.98));
}

.app-card:hover::before {
    opacity: 1;
}

.app-card h3,
.app-card h2 {
    font-size: 1.05rem;
    margin: 0.4rem 0 0.4rem;
}

.app-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.6rem 0 1rem;
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.6rem;
    object-fit: cover;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
}

.app-pill {
    display: inline-flex;
    padding: 0.25rem 0.7rem;
    font-size: 0.7rem;
    border-radius: 999px;
    background: rgba(242, 240, 254, 0.95);
    color: #5511f8;
    border: 1px solid rgba(85, 17, 248, 0.35);
    margin-bottom: 0.2rem;
}

.app-actions {
    display: flex;
    gap: 0.6rem;
}

/* Forms */

.form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-field label {
    font-size: 0.85rem;
    color: var(--text-main);
}

.form-field input,
.form-field select,
.form-field textarea {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.55rem 0.7rem;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(85, 17, 248, 0.25);
    background: #ffffff;
}

.form-field textarea {
    resize: vertical;
    min-height: 130px;
}

/* Alerts */

.alert {
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.alert-success {
    background: rgba(25, 135, 84, 0.08);
    border: 1px solid rgba(25, 135, 84, 0.4);
    color: #146c43;
}

.alert-error {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #b02a37;
}

.cta-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Footer */

.site-footer {
    margin-top: 3rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(242, 240, 254, 0.9));
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.7fr));
    gap: 2rem;
    padding: 2.7rem 0 1.8rem;
    font-size: 0.85rem;
}

.site-footer h4 {
    margin: 0 0 0.5rem;
}

.site-footer h5 {
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
}

.site-footer p {
    color: var(--text-muted);
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 0.35rem;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.site-footer a:hover {
    color: var(--primary);
}

.social-list li {
    word-break: break-all;
}

.icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 240, 254, 0.95);
    border: 1px solid rgba(85, 17, 248, 0.25);
    flex-shrink: 0;
}

.icon-circle svg {
    width: 15px;
    height: 15px;
    
    stroke: #5511f8;
}

.footer-bottom {
    border-top: 1px solid rgba(221, 221, 255, 0.9);
    padding: 0.8rem 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


        .policy-meta {
            font-size: 12px;
            color: var(--text-muted);
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 18px;
        }

        .meta-pill {
            padding: 3px 10px;
            border-radius: 999px;
            background: #f7f7ff;
            border: 1px solid #e5e4ff;
        }
        
        
         .toc {
            background: #f7f6ff;
            border-radius: 14px;
            padding: 10px 12px;
            border: 1px dashed rgba(85, 17, 248, 0.28);
            margin-bottom: 18px;
        }
        .toc-title {
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.13em;
            color: var(--primary);
            margin-bottom: 4px;
        }
        .toc ul {
            margin: 0;
            padding-left: 18px;
        }
        .toc li {
            font-size: 13px;
            margin-bottom: 4px;
        }
        .toc a {
            text-decoration: none;
            color: var(--text-main);
        }
        .toc a:hover {
            text-decoration: underline;
            color: var(--primary);
        }
        
         .chip-group {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 4px;
        }
        .chip {
            font-size: 11px;
            padding: 3px 9px;
            border-radius: 999px;
            background: #f5f3ff;
            border: 1px solid rgba(85, 17, 248, 0.16);
            color: var(--text-muted);
        }

        .highlight-box {
            background: #fdfcff;
            border-radius: 12px;
            padding: 10px 12px;
            border: 1px solid #ecebff;
            font-size: 13px;
            margin-top: 6px;
            margin-bottom: 12px;
        }

/* Responsive */

@media (max-width: 960px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 0.7rem;
    }
    .main-nav {
        display: none; /* simple mobile behaviour, can replace with burger menu later */
    }
    .nav-cta {
        margin-left: auto;
    }
    .hero-grid,
    .section-grid-2,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero {
        padding-top: 3.5rem;
    }
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-grid {
        padding: 1.9rem 1rem !important;
        gap: 1.2rem;
    }
}
