/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

html { overflow-y: scroll; }

body {
    background: #f1f5f9;
    color: #0f172a;
}

header { position: relative; z-index: 10000; }
.navbar { position: relative; z-index: 10001; }

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
   /* --padding: 18px 8% */;
    background: #0f172a;
    padding: 8px 5%;
}

.nav-links a,
.dropdown-menu a {
    text-decoration: none;
}

.logo a {
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 26px;
    align-items: center;
}

.nav-links li { position: relative; }

.nav-links > li > a {
    display: flex;
    align-items: center;
    height: 42px;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: 0.3s;
}

.nav-links a:hover { background: #1e293b; }

/* ===== DROPDOWN ===== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #161b22;
    min-width: 260px;
    border-radius: 6px;
    padding: 8px 0;
    z-index: 4000;
}

.dropdown-menu li { list-style: none; }

.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 15px;
    color: #ffffff;
}

.dropdown-menu a:hover { background: #1f6feb; }

.nav-links li:hover > .dropdown-menu { display: block; }

/* ================= HERO ================= */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 130px 8% 90px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.hero-left {
    flex: 1;
}

.hero-left h1 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.hero-left span { color: #1f6feb; }

.hero-tagline {
    font-size: 20px;
    margin: 18px 0 14px;
    color: #334155;
}

.hero-buttons { margin-bottom: 20px; }

.btn-main,
.btn-resume {
    padding: 9px 18px;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 10px;
    color: #ffffff;
    background: #0f172a;
    transition: 0.3s;
}

.btn-main:hover,
.btn-resume:hover { background: #1f6feb; }

.hero-right img {
    width: 300px;
    border-radius: 50%;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

/* ===== ROTATING TEXT ===== */
.highlight-wrapper { height: 30px; margin-top: 6px; }

.highlight-text {
    margin-top: 28px;
    display: block;
    font-size: 20px;
    color: #1f6feb;
    font-weight: 600;
}

/* ================= AI HIGHLIGHT ================= */
.ai-highlight {
    margin: 70px 8%;
    margin-top: 50px;
    padding: 60px 80px;
   /* padding: 60px 70px; */
    border-radius: 12px;
    background: linear-gradient(90deg, #e8f2ff, #f4f9ff);
    border-left: 8px solid #1f6feb;
    font-size: 20px;
}

.ai-highlight p {
    line-height: 1.6;
    font-weight: 500;
    opacity: 0.75;
    max-width: 700px;
    font-size: 18px;
}

.ai-highlight h2 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* ================= WHAT I BUILD ================= */
.what-i-build {
    padding: 100px 8%;
    background: #f4f7fb;
    text-align: center;
    margin-top: 60px;
}

.build-intro {
    font-size: 18px;
    color: #555;
    margin: 20px auto 40px;
    max-width: 800px;
}

.build-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.build-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 14px;
    text-align: left;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    transition: 0.3s;
}

.build-card:hover { transform: translateY(-6px); }

/* ================= COMMON TYPOGRAPHY ================= */
h2 {
    font-size: 34px;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

section { margin-bottom: 60px; }

/* ================= SKILLS GRID ================= */
.skills-section {
    padding: 60px 8%;
    background: #ffffff;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-card {
    background: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.skill-card:hover {
    background: #1f6feb;
    color: #ffffff;
    transform: translateY(-5px);
}

/* ================= CONTACT ================= */
.contact-section {
    padding: 60px 8%;
    text-align: center;
}

.contact-form {
    display: grid;
    gap: 15px;
    max-width: 420px;
    margin: auto;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #cbd5e1;
}

.contact-form button {
    padding: 12px;
    border: none;
    background: #0f172a;
    color: #ffffff;
    border-radius: 5px;
}

.contact-form button:hover { background: #1f6feb; }

/* ================= ACCENT LINE ================= */
.accent-line {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #1f6feb, #60a5fa, #1f6feb);
    background-size: 200% 100%;
    animation: flowline 8s linear infinite;
    opacity: 0.6;
}

@keyframes flowline {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ================= CSS GUARD RULES (STABILITY) ================= */

/* Prevent hero name from breaking into two lines again */
.hero-left h1 {
    white-space: nowrap;
}

/* Prevent flexbox from shrinking important text sections */
.hero-left,
.ai-highlight,
.what-i-build,
.skills-section {
    flex-shrink: 0;
}

/* Prevent images from overflowing layout in future */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure dropdown always appears above everything */
.dropdown-menu {
    z-index: 9999;
}

/* Prevent future accidental link color/underline issues */
a {
    color: inherit;
}

.name-highlight {
    color: #1f6fff;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
}

.hero-tagline {
    font-weight: 500;
    opacity: 0.75;
    letter-spacing: 0.5px;
}

.hero-intro {
    opacity: 0.65;
    line-height: 1.6;
    max-width: 650px;
}

.hero-domains {
    margin-top: 15px;
    margin-bottom: 20px;
    font-weight: 500;
    opacity: 0.7;
}

.hero-impact {
    margin-top: 10px;
    margin-bottom: 25px;
    font-weight: 500;
    opacity: 0.7;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
}


.hero {
    padding-bottom: 80px;
}

.build-card h3 {
    font-weight: 700;
}

.build-card p {
    opacity: 0.75;
}

/* Professional cursor without breaking copy */
body {
    cursor: default;
}

/* Keep text selectable everywhere */
h1, h2, h3, h4, h5, h6,
p, span, li, div {
    user-select: text;
}

/* Links and buttons show pointer */
a, button {
    cursor: pointer;
}
/* Professional cursor without breaking copy */

/* Prevent text containers from receiving focus (caret) */
div:focus,
p:focus,
span:focus,
h1:focus,
h2:focus,
h3:focus,
h4:focus,
h5:focus,
h6:focus {
    outline: none;
}
/* Allow selection but prevent caret */
body * {
    caret-color: transparent;
}

/* ===== Flash / Rotating Professional Text ===== */
.highlight-text {
    color: #1e6fff;
    font-size: 19px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-top: 18px;
    min-height: 28px;
}

/* Core Technical Skillset Changes */

.capability-block p {
    font-size: 17px;
    color: #4a5568;
    line-height: 1.7;
    max-width: 1200px;
}

.capability-block h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0b1f3a;
}

.capability-divider {
    width: 48px;
    height: 3px;
    background: #1e6fff;
    border-radius: 4px;
    margin: 10px 0 18px 0;
}

.capability-block {
    margin-bottom: 52px;
}

.content-section {
    padding-top: 60px;   /* increase to 70 if you want more air */
    padding: 80px 8%;
    /*margin-top: -30px;*/
}

.content-section h2 {
    margin-bottom: 40px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
/* Core Technical Skillset Changes */
/* Indentation only for Core Technical Skillset page */
.skillset-section .capability-block {
    margin-left: 32px;
}

.skillset-section h2 {
    font-size: 30px;
    font-weight: 600;   /* reduce from bold */
    letter-spacing: -0.3px;
    color: #0f172a;
}

/* Reduce gap between consecutive sections like Projects -> Case Studies */
.content-section + .content-section {
    margin-top: -180px;
}

/* Remove extra top margin for section headings */
.content-section h2 {
    margin-top: 0;
}


/* Space after System Design intro paragraph */
.skillset-section > p {
    margin-bottom: 40px;
}

.tools-line {
    margin-top: 12px;
    margin-left: 22px;   /* subtle tab */
    color: #334155;
    font-weight: 500;
}

/* Only for System Design Approach */
.system-design-section h2 {
    margin-bottom: 6px;
    font-size: 30px;
    font-weight: 600;   /* reduce from bold */
    letter-spacing: -0.3px;
    color: #0f172a;
}



/* Indentation only for Core Technical Skillset page */
.system-design-section .capability-block {
    margin-left: 32px;
    margin-top: 30px;
}

.skillset-section h2 {
    font-size: 30px;
    font-weight: 600;   /* reduce from bold */
    letter-spacing: -0.3px;
    color: #0f172a;
}
.jd-analyzer-section {
    margin-top: 60px;
    padding: 40px;
    background: #0f172a;
    color: white;
    border-radius: 10px;
}

.jd-box textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    border-radius: 8px;
    border: none;
    margin-top: 10px;
}

.jd-box button {
    margin-top: 15px;
    padding: 12px 25px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.jd-result {
    margin-top: 30px;
    background: #1e293b;
    padding: 20px;
    border-radius: 8px;
}
