/* static/css/main.css */

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

/* --- Base HTML/Body --- */
html,
body.dark-background {
    background-color: transparent !important; /* Forces transparency for particle background */
    background-image: none !important;
    
    margin: 0;
    width: 100vw;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #fff;
    font-size: 15px;
    letter-spacing: 1px;
    overflow-x: hidden;
    height: 100vh;
}

/* --- Layout Styles (Two Columns) --- */
.main-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: flex-start; /* flush to the left */
}

/* Left column: profile + nav */
.left {
    flex: 0 0 390px; /* wider sidebar ~1.5x previous 260px */
    max-width: 430px;
    background-color: rgba(6, 182, 212, 0.08);
    padding: 20px 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;

    position: sticky;
    top: 0;
    align-self: flex-start;
}

/* Right column: fills all remaining space */
.right {
    flex: 1 1 auto;
    width: auto;
    padding: 20px 50px 100px 50px;  /* bottom padding for fixed footer */
    overflow-y: auto;
    height: 100vh;
}

/* --- Profile & Navigation Styles --- */
.avatar {
    border-radius: 80%;
    width: 150px;
    height: 150px;
    border: 3px solid #06b6d4;
    margin-bottom: 25px;
}

.profile-name h1,
.socials h5 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.profile-name h1 {
    font-size: 2rem;
    padding-top: 20px;
    font-family: 'Playfair Display', serif;
}

/* Email / contact text */
.socials h5 {
    font-weight: 400;
    font-size: 0.9rem;
}

/* --- Links (Navigation Buttons on the left) --- */

/* Base anchor style */
a {
    text-decoration: none;
    color: #06b6d4;
    transition: color 0.3s ease;
}

/* Nav buttons on the left sidebar */
.links {
    text-align: center;
    margin-top: 20px;
    padding: 15px 10px;
    background-color: rgba(15, 23, 42, 0.9);
    color: #06b6d4;
    border: 2px solid #06b6d4;
    width: 90%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 40px;
    font-weight: 500;
}

/* Button hover effect */
.links:hover {
    color: #ffde21;
    background-color: #020617;
    border-color: #ffde21;
}

/* Inline links in main content */
.main a {
    text-decoration: underline;
}

.main a:hover {
    color: #ffde21;
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 per row on desktop */
    gap: 16px;
    margin-top: 10px;
}

.project-tag {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #06b6d4;
}

.project-card {
    display: block;
    padding: 16px 18px;
    background-color: rgba(15, 23, 42, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(96, 165, 250, 0.55); /* keep blue border */
    text-decoration: none !important;
    color: #e5e7eb;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.project-card h4,
.project-card p {
    text-decoration: none !important; /* remove underline entirely */
    transition: color 0.25s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.9);
    border-color: #3b82f6; /* brighter blue on hover */
    background-color: rgba(15, 23, 42, 0.95);
}

/* Gold on hover for title + description */
.project-card:hover h4,
.project-card:hover p {
    color: #facc15; /* gold */
}

/* --- Content & Sections Styles (Right Column) --- */
.main {
    margin-bottom: 40px;
}

hr {
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    margin: 10px 0 20px 0;
}

hr.experience {
    border-top: 1px dashed #444;
    margin: 20px 0;
}

.experience-title {
    color: #0066ff;
    margin-top: 30px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.main p {
    line-height: 1.7;
    margin-bottom: 15px;
    /* no max-width here – use full available width */
}

.main ul {
    margin-left: 20px;
    padding-left: 0;
}

.main ul li {
    margin-bottom: 6px;
}

.main h4 {
    color: #e5e7eb;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

/* --- Experience Cards --- */

.experience-block {
    position: relative;
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 18px;

    /* Match the project card background */
    background-color: rgba(15, 23, 42, 0.9);

    border: 1px solid rgba(148, 163, 184, 0.35);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
    overflow: hidden;
}

/* Glow overlay on hover */
.experience-block::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Keep the hover lift */
.experience-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

/* Make glow overlay visible on hover */
.experience-block:hover::before {
    opacity: 1;
}

/* Title inside cards */
.experience-block h4 {
    margin-bottom: 6px;
    font-size: 1.15rem;
    font-weight: 600;
}

.experience-block > div:first-child {
    margin-bottom: 2px;
}

.experience-block ul {
    margin-top: 8px;
}

/* Accent variants: purple, green, gold */

.experience-block--purple {
    border-color: rgba(192, 132, 252, 0.55); /* purple */
}

.experience-block--purple::before {
    background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.25), transparent 55%);
}

.experience-block--purple:hover {
    border-color: rgba(216, 180, 254, 0.95);
    box-shadow: 0 20px 50px rgba(88, 28, 135, 0.8);
}

.experience-block--green {
    border-color: rgba(74, 222, 128, 0.55); /* green */
}

.experience-block--green::before {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.22), transparent 55%);
}

.experience-block--green:hover {
    border-color: rgba(187, 247, 208, 0.95);
    box-shadow: 0 20px 50px rgba(22, 101, 52, 0.8);
}

.experience-block--gold {
    border-color: rgba(250, 204, 21, 0.6); /* gold */
}

.experience-block--gold::before {
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.22), transparent 55%);
}

.experience-block--gold:hover {
    border-color: rgba(254, 240, 138, 0.95);
    box-shadow: 0 20px 50px rgba(133, 77, 14, 0.8);
}

/* Make the glow overlay visible on hover */
.experience-block:hover::before {
    opacity: 1;
}

/* Optional: small subheading style stays the same */
.experience-subheading {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Color variants: borders, hover glows, and heading colors */

.experience-block--purple {
    border-color: rgba(192, 132, 252, 0.55);
}
.experience-block--purple::before {
    background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.25), transparent 55%);
}
.experience-block--purple:hover {
    border-color: rgba(216, 180, 254, 0.95);
    box-shadow: 0 20px 50px rgba(88, 28, 135, 0.8);
}
.experience-block--purple h4 {
    color: #c4b5fd;
}

.experience-block--green {
    border-color: rgba(74, 222, 128, 0.55);
}
.experience-block--green::before {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.22), transparent 55%);
}
.experience-block--green:hover {
    border-color: rgba(187, 247, 208, 0.95);
    box-shadow: 0 20px 50px rgba(22, 101, 52, 0.8);
}
.experience-block--green h4 {
    color: #bbf7d0;
}

.experience-block--gold {
    border-color: rgba(250, 204, 21, 0.6);
}
.experience-block--gold::before {
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.22), transparent 55%);
}
.experience-block--gold:hover {
    border-color: rgba(254, 240, 138, 0.95);
    box-shadow: 0 20px 50px rgba(133, 77, 14, 0.8);
}
.experience-block--gold h4 {
    color: #facc15;
}

.experience-block--teal {
    border-color: rgba(45, 212, 191, 0.6);
}
.experience-block--teal::before {
    background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.22), transparent 55%);
}
.experience-block--teal:hover {
    border-color: rgba(153, 246, 228, 0.95);
    box-shadow: 0 20px 50px rgba(15, 118, 110, 0.8);
}
.experience-block--teal h4 {
    color: #5eead4;
}

.experience-block--rose {
    border-color: rgba(244, 114, 182, 0.6); /* soft pink */
}
.experience-block--rose::before {
    background: radial-gradient(circle at top left, rgba(244, 114, 182, 0.22), transparent 55%);
}
.experience-block--rose:hover {
    border-color: rgba(251, 207, 232, 0.95);
    box-shadow: 0 20px 50px rgba(190, 24, 93, 0.75);
}
.experience-block--rose h4 {
    color: #f472b6; /* pink */
}

/* Tan / sand variant for Corn Calculator & similar panels */
.experience-block--sand {
    border-color: rgba(209, 202, 182, 0.75); /* close to #d1cab6 */
}

.experience-block--sand::before {
    background: radial-gradient(
        circle at top left,
        rgba(209, 202, 182, 0.32), /* soft tan glow */
        transparent 55%
    );
}

.experience-block--sand:hover {
    border-color: rgba(243, 232, 201, 0.95);
    box-shadow: 0 20px 50px rgba(92, 64, 28, 0.9); /* warm brownish shadow */
}

.experience-block--sand h4 {
    color: #fef3c7; /* warm, sandy heading */
}

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

.skills-section {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.skill-category {
    margin-bottom: 0; /* grid handles spacing */
}

.skill-category-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #e5e7eb;
}

.skill-sublist {
    list-style-type: disc;
    margin-left: 20px;
    margin-top: 4px;
}

.skill-sublist li {
    margin-bottom: 4px;
    line-height: 1.5;
    color: #d1d5db;
}

@media (max-width: 640px) {
    .skills-section {
        grid-template-columns: 1fr;
    }
}

/* --- Footer Styles (The Blinking Cursor!) --- */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    /* Make footer completely invisible */
    background: transparent !important;

    /* Only blur what’s behind it */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    color: #06b6d4;
    text-align: center;
    padding: 10px 0;

    z-index: 100;
}

.footer p {
    justify-content: center;
    display: flex;
    align-items: center;
    margin: 0;
}

/* Blinking Cursor Animation */
@-webkit-keyframes blink {
    0% { opacity: 1.0; }
    50% { opacity: 0.0; }
    100% { opacity: 1.0; }
}

@keyframes blink {
    0% { opacity: 1.0; }
    50% { opacity: 0.0; }
    100% { opacity: 1.0; }
}

.footer p::after {
    content: " ";
    background-color: #06b6d4;
    width: 8px;
    height: 17px;
    margin-left: 5px;
    display: block;
    -webkit-animation: blink 1s step-end infinite;
    animation: blink 1s step-end infinite;
}

/* --- Responsive: Mobile & narrow screens --- */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        align-items: stretch;
    }

    .left,
    .right {
        flex: 1 1 100%;
        width: 100%;
        min-height: auto;
        height: auto;
        position: static; /* disable sticky on small screens */
    }

    .right {
        padding: 20px 20px 100px 20px;
        overflow-y: visible;
    }

    .avatar {
        margin-bottom: 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr; /* 1 per row on mobile */
    }
}
