/* ===== PREMIUM DARK + DEPTH THEME ===== */

/* --- 1. ROOT --- */
:root {
    --bg-main: #020617;
    --bg-section: #050a1a;
    --bg-card: #0f172a;

    --accent: #22c55e;
    --accent-soft: rgba(34,197,94,0.15);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    --border: rgba(255,255,255,0.08);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* --- 2. RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
}

/* --- 3. CONTAINER --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* --- 4. HERO HEADER (FIXED YOUR MAIN ISSUE) --- */
header {
    text-align: center;
    padding: 120px 0 100px;
    background: radial-gradient(circle at top, rgba(34,197,94,0.15), transparent 60%);
}

/* header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: 1.5px;

    background: linear-gradient(90deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow: 0 10px 40px rgba(255,255,255,0.1);
}

header p {
    color: var(--text-secondary);
    margin-top: 15px;
    font-size: 1.2rem;
} */

header h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 10px 40px rgba(0,0,0,0.9);
}

header p {
    color: #cbd5f5;
    font-size: 1.2rem;
}

/* subtle glow */
header h1 {
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* --- SOCIAL --- */
.social-links {
    margin-top: 25px;
}

.social-links a {
    color: var(--text-primary);
    margin: 0 12px;
    font-size: 1.4rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* --- NAVBAR --- */
nav {
    position: sticky;
    top: 0;
    background: rgba(2,6,23,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li a {
    color: var(--text-primary);
    padding: 15px 22px;
    display: block;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--accent);
}

/* --- SECTIONS (THIS CREATES DEPTH) --- */
.section {
    padding: 100px 0;
    background: var(--bg-section);
}

.section:nth-child(even) {
    background: var(--bg-main);
}

.section h2 {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 60px;
    font-family: var(--font-heading);
}

.section {
    padding: 100px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- ABOUT (GLASS CARD EFFECT) --- */
.about-card {
    display: flex;
    gap: 40px;
    align-items: center;

    background: rgba(15,23,42,0.7);
    backdrop-filter: blur(12px);

    padding: 40px;
    border-radius: 18px;
    border: 1px solid var(--border);

    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.about-image img {
    width: 340px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.about-text p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.8;
}

.hidden-text {
    display: none;
}

/* --- BUTTON --- */
.btn-read {
    margin-top: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #022c22;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-read:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34,197,94,0.4);
}

/* --- PROJECTS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: 0.4s;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-card-content {
    padding: 25px;
}

.project-card-content h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.project-card-content p {
    color: var(--text-secondary);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #022c22;
    padding: 10px 16px;
    border-radius: 6px;
    margin-top: 10px;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

/* --- SKILLS --- */
.skills-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 14px;
}

/* Bigger icons */
.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.skill-header i {
    font-size: 2.2rem;
    color: var(--accent);
}

.skill-header h3 {
    font-size: 1.5rem;
}

/* Clean list */
.skill-list li {
    list-style: none;
    padding: 10px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.skill-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* --- CONTACT --- */
.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #020617;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px;
    background: #010409;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* --- RESPONSIVE --- */
@media(max-width:768px){
    .about-card {
        flex-direction: column;
        text-align: center;
    }

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

    header h1 {
        font-size: 2.5rem;
    }
}


nav ul li a {
    color: var(--text-primary);
    padding: 15px 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: 0.3s;
}

nav ul li a i {
    font-size: 0.9rem;
    opacity: 0.7;
}

nav ul li a:hover {
    color: var(--accent);
}


/* Section spacing */
.section h2 {
    margin-bottom: 30px;
}

/* Centered text blocks */
.section p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* CTA button upgrade */
.btn {
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(34,197,94,0.4);
}


/* ===== HERO COLLAGE BACKGROUND ===== */

/* ===== HERO BACKGROUND SLIDER (PREMIUM) ===== */

/* ===== HERO BACKGROUND SLIDER (PREMIUM) ===== */

.hero-bg {
    position: relative;
    overflow: hidden;
}

/* Background layer */
.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;

    animation: heroSlider 18s infinite ease-in-out;
    z-index: 0;
}

/* Dark overlay */
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1;
}

/* Keep content above */
.hero-bg .container {
    position: relative;
    z-index: 2;
}

/* SLIDER ANIMATION */
@keyframes heroSlider {
    0% {
        background-image: url("../images/honors1.jpg");
    }
    33% {
        background-image: url("../images/honors2.jpg");
    }
    66% {
        background-image: url("../images/honors3.jpg");
    }
    100% {
        background-image: url("../images/honors1.jpg");
    }
}

/* ===== JOURNEY SECTION ===== */

.journey-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 60px 0;
}

.journey-block img {
    width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.journey-block div {
    flex: 1;
}

.journey-block h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

.journey-block p {
    color: #cbd5f5;
    line-height: 1.7;
}

/* alternating layout */
.journey-block.reverse {
    flex-direction: row-reverse;
}


/* ===== RENOLAB HERO (IMAGE SLIDER) ===== */

/* ===== RENOLAB HERO (3 IMAGE SLIDER) ===== */

.hero-renolab {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Dark overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1;
}

/* Content */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Background slideshow */
.hero-renolab::before {
    content: "";
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center top; /* prevents head cropping */

    animation: renolabSlider 18s infinite ease-in-out;
    z-index: 0;
}

/* 🔥 RENOLAB IMAGES ONLY */
@keyframes renolabSlider {
    0% {
        background-image: url("../images/renolab1.jpg");
    }
    33% {
        background-image: url("../images/renolab2.jpg");
    }
    66% {
        background-image: url("../images/renolab3.jpg");
    }
    100% {
        background-image: url("../images/renolab1.jpg");
    }
}

/* ===== PROBLEM SECTION BACKGROUND ===== */

.problem-section {
    position: relative;
    background: url('../images/kidney-problem.jpg') center/cover no-repeat;
    color: white;
}

.problem-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}

.problem-section .container {
    position: relative;
    z-index: 2;
}

.problem-section p {
    max-width: 700px;
    margin: auto;
    color: #e5e7eb;
}

/* ===== QUICK LINKS (DESKTOP) ===== */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.95rem;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.08);
}

.quick-links a i {
    font-size: 1rem;
}

.quick-links a:hover {
    background: #22c55e;
    color: #000;
    transform: translateY(-2px);
}



@media (max-width: 768px) {

    .quick-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 per row */
        gap: 10px;
        margin-top: 20px;
    }

    .quick-links a {
        flex-direction: column; /* ICON ON TOP */
        justify-content: center;
        padding: 12px 5px;
        font-size: 0.75rem;
        text-align: center;
    }

    .quick-links a i {
        font-size: 1.3rem; /* bigger icons */
        margin-bottom: 5px;
    }
}


/* =========================
   FINAL FIX PACK (DO NOT EDIT ABOVE THIS)
========================= */

/* ===== FIX QUICK LINKS (FORCE MOBILE STABILITY) ===== */
@media (max-width: 768px) {

    .quick-links {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 0 10px;
    }

    .quick-links a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 12px 6px;
        font-size: 0.75rem;
        border-radius: 10px;
        background: rgba(255,255,255,0.05);
    }

    .quick-links a i {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }
}


/* ===== FIX RENOLAB JOURNEY MOBILE ===== */
@media (max-width: 768px) {

    .journey-block {
        flex-direction: column !important;
        text-align: center;
        gap: 20px;
    }

    .journey-block.reverse {
        flex-direction: column !important;
    }

    .journey-block img {
        width: 100%;
        height: auto;
        max-height: 260px;
        object-fit: cover;
    }

    .journey-block div {
        width: 100%;
    }
}


/* ===== FIX HERO IMAGE CROPPING ===== */
.hero-renolab::before {
    background-size: cover;
    background-position: center top; /* THIS FIXES HEAD CUTTING */
}


/* ===== FIX PROBLEM BACKGROUND NOT SHOWING ===== */
.problem-section {
    position: relative !important;
    background-image: url("../images/kidney-problem.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.problem-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1;
}

.problem-section .container {
    position: relative;
    z-index: 2;
}


/* ===== GENERAL MOBILE TEXT FIX ===== */
@media (max-width: 768px) {

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .section p {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .hero-renolab {
        height: 60vh;
        padding: 40px 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }
}



/* ===== FINAL MOBILE NAV FIX (DO NOT MOVE) ===== */
@media (max-width: 768px) {

    nav ul {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr); /* 3 per row */
        gap: 5px;
        padding: 8px;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        flex-direction: column !important; /* icon above text */
        justify-content: center;
        align-items: center;

        padding: 10px 5px;
        font-size: 0.7rem;
        text-align: center;
    }

    nav ul li a i {
        font-size: 1.2rem; /* bigger icons */
        margin-bottom: 4px;
    }
}
