/* ==========================================
   GLOBAL DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
    /* Premium Light / White Theme Color Palette */
    --bg-darker: #f8fafc;
    /* Very soft clean slate-50 light background */
    --bg-dark: #ffffff;
    /* Pure white background for navbar & cards */
    --bg-card: rgba(255, 255, 255, 0.85);
    /* Semi-transparent white card */
    --border-color: rgba(15, 23, 42, 0.08);
    /* Very subtle elegant border */
    --border-hover: rgba(79, 70, 229, 0.25);
    /* Subtle border-hover Indigo color */

    --primary: #4f46e5;
    /* Premium Indigo */
    --secondary: #0ea5e9;
    /* Bright Ocean Blue */
    --accent: #d97706;
    /* Sophisticated Amber/AWS Orange */
    --success: #16a34a;
    /* Green-600 */
    --warning: #ca8a04;
    --danger: #dc2626;

    --text-main: #1e293b;
    /* slate-800: extremely dark, bold slate for readable body text */
    --text-muted: #334155;
    /* slate-700: much darker secondary text */
    --text-bright: #000000;
    /* pitch black: maximum contrast for headings and titles */

    /* Layout Tokens */
    --max-width: 1200px;
    --header-height: 56px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    background-image: url('space_bg.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(248, 250, 252, 0.50);
    /* High opacity background image with 50% white overlay */
    z-index: -1;
}

/* Typography Customizations */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Fira Code exclusively for code elements */
.fira-code,
pre,
code,
.terminal-body,
.api-client-window input,
.api-client-window textarea {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

/* ==========================================
   AMBIENT GLOW SYSTEM
   ========================================== */
.ambient-glow {
    position: absolute;
    width: 35vw;
    height: 35vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    top: 5%;
    right: 5%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-2 {
    top: 40%;
    left: -10%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.glow-3 {
    bottom: 5%;
    right: -10%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

/* ==========================================
   REUSABLE UTILITIES & BUTTONS
   ========================================== */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 24px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: 'Fira Code', monospace;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-darker);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.social-icon-btn:hover {
    background: var(--bg-darker);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Glass Card Base */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   NAVIGATION BAR (GLASSBAR)
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--text-main);
    margin-left: 12px;
    gap: 24px;
    line-height: 1;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link {
    font-size: 0.82rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
}

.nav-link i {
    font-size: 0.85rem;
    opacity: 0.7;
}

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

.nav-btn {
    border: 1px solid var(--border-hover);
    background: rgba(0, 242, 254, 0.05);
    color: var(--primary);
}

.nav-btn:hover {
    background: rgba(0, 242, 254, 0.15);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* ==========================================
   HERO / LIVE CONSOLE & METRICS
   ========================================== */
.hero-section {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-container-centered {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.status-badge {
    background: rgba(22, 163, 74, 0.06);
    border: 1px solid rgba(22, 163, 74, 0.15);
    color: var(--success);
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse 1.8s infinite;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-bright) 40%, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    color: var(--text-muted);
}

/* Metrics Grid inside Hero */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 500px;
    margin-bottom: 40px;
}

.metric-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Interactive DevOps Simulator (Visual Half) */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Profile Photo */
.profile-photo-container {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.12);
    flex-shrink: 0;
    margin: 0 auto 30px auto;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-dark);
    display: block;
}

.terminal-window {
    background: #1e293b;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
}

.terminal-header {
    background: #0c0f17;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background-color: #ff5f56;
}

.dot.yellow {
    background-color: #ffbd2e;
}

.dot.green {
    background-color: #27c93f;
}

.terminal-title {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-status i {
    color: var(--success);
}

.terminal-body {
    padding: 20px;
    min-height: 220px;
    max-height: 250px;
    overflow-y: auto;
    color: #e2e8f0;
}

.terminal-line {
    margin-bottom: 8px;
    line-height: 1.5;
}

.text-comment {
    color: #5c6370;
}

.text-success {
    color: var(--success);
    font-weight: bold;
}

.text-prompt {
    color: var(--accent);
}

.text-cyan {
    color: var(--primary);
}

.text-warning {
    color: var(--warning);
}

.text-orange {
    color: #e67e22;
}

/* Cluster Dashboard Widget */
.live-dashboard {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.dash-title {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aws-region-badge {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    background: rgba(255, 153, 0, 0.1);
    color: var(--accent);
    border: 1px solid rgba(255, 153, 0, 0.2);
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.resource-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.res-name {
    color: var(--text-muted);
}

.res-status {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
}

.resource-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
}

.resource-bar {
    height: 100%;
    background: var(--success);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.resource-bar.bg-cyan {
    background: var(--primary);
}

.mt-2 {
    margin-top: 12px;
}

/* ==========================================
   ABOUT & JOURNEY SECTION
   ========================================== */
.about-section {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.about-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.about-card p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-card strong {
    color: var(--text-bright);
}

/* Journey/Education timeline */
.about-card-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    margin-top: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .about-card-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.journey-status {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    padding-left: 8px;
}

/* Vertical line connecting the timeline steps */
.journey-status::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: 0.25;
    z-index: 0;
}

.journey-step {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 38px;
    height: 38px;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.journey-step:hover .step-icon {
    border-color: var(--primary);
    color: var(--secondary);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
}

.step-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-bright);
}

.step-info p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--text-muted);
}




/* Certifications Layout */
.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cert-item {
    display: flex;
    gap: 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.cert-item:hover {
    border-color: var(--primary);
    background: var(--bg-darker);
}

.cert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cert-details h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cert-details p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.spinner-dot {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 242, 254, 0.2);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* ==========================================
   TECHNICAL SKILLS SECTION
   ========================================== */
.skills-section {
    position: relative;
    z-index: 1;
}

.skills-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.skill-item {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.12);
}

.skill-icon {
    font-size: 3.5rem;
    margin: 0 auto 15px;
    display: block;
}

.skill-name {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
}

/* ==========================================
   PROJECTS (ARCHITECTURES & DETAILS)
   ========================================== */
.projects-section {
    position: relative;
    z-index: 1;
}

.projects-vertical-flow {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.project-container.reversed {
    direction: rtl;
}

.project-container.reversed .project-meta {
    direction: ltr;
    /* Reset text direction for content */
}

.project-container.reversed .project-diagram {
    direction: ltr;
}

.project-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.proj-badge {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.project-name {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.tech-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.project-highlights {
    list-style: none;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-highlights li {
    position: relative;
    padding-left: 24px;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.project-highlights li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* SVG Architecture Canvas styling */
.project-diagram {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
}

.diagram-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.svg-container {
    width: 100%;
    aspect-ratio: 500 / 220;
}

.architecture-svg {
    width: 100%;
    height: 100%;
}

/* SVG Node Graphics styling */
.node-box {
    fill: var(--bg-darker);
    stroke: var(--border-color);
    stroke-width: 1.5;
    transition: var(--transition-fast);
}

.node-text {
    fill: var(--text-main);
    font-size: 10px;
    font-family: 'Inter', sans-serif;
}

.node-subtext {
    fill: var(--text-muted);
    font-size: 7px;
    font-family: 'Fira Code', monospace;
}

.accent-border {
    stroke: var(--secondary);
}

.active-node {
    stroke: var(--primary);
    fill: rgba(0, 242, 254, 0.03);
}

.success-node {
    stroke: var(--success);
    fill: rgba(0, 230, 118, 0.02);
}

.font-bold {
    font-weight: bold;
    fill: var(--text-bright);
}

.connector-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1.5;
}

.arrowhead {
    fill: rgba(255, 255, 255, 0.3);
}

/* Architecture Packet Flow Animations */
.animated-pulse {
    stroke: var(--primary);
    stroke-dasharray: 6, 6;
    animation: flow 20s linear infinite;
}

.bidirection-pulse {
    stroke: var(--success);
    stroke-dasharray: 4, 4;
    animation: flow-reverse 20s linear infinite;
}

@keyframes flow {
    to {
        stroke-dashoffset: -200;
    }
}

@keyframes flow-reverse {
    to {
        stroke-dashoffset: 200;
    }
}

/* Hover effects inside SVG */
.svg-node:hover .node-box {
    fill: var(--bg-dark);
    stroke: var(--primary);
    filter: drop-shadow(0px 0px 8px rgba(79, 70, 229, 0.15));
}

/* ==========================================
   SSH / API CONTACT CLIENT SECTION
   ========================================== */
.contact-section {
    position: relative;
    z-index: 1;
}

.contact-terminal-container {
    max-width: 800px;
    margin: 0 auto;
}

.api-client-window {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.api-header {
    background: var(--bg-darker);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
}

.method {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 4px;
}

.badge-post {
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.url {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--text-bright);
    flex-grow: 1;
}

.status-indicator {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.success-text {
    color: var(--success);
}

.api-body {
    display: grid;
    grid-template-columns: 0.3fr 0.7fr;
    min-height: 280px;
}

.api-sidebar {
    background: var(--bg-darker);
    border-right: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.header-item {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-dark);
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.api-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.json-syntax {
    font-family: 'Fira Code', monospace;
    color: var(--primary);
    font-size: 0.85rem;
    padding-top: 8px;
    flex-shrink: 0;
    width: 80px;
}

.input-container {
    flex-grow: 1;
}

.api-form input,
.api-form textarea {
    width: 100%;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-bright);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    outline: none;
}

.api-form input::placeholder,
.api-form textarea::placeholder {
    color: var(--text-muted);
}

.api-form input:focus,
.api-form textarea:focus {
    background: var(--bg-dark);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.08);
}

.text-area-container textarea {
    min-height: 100px;
    resize: vertical;
}

.form-action-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

/* API response body container */
.api-response-container {
    border-top: 1px solid var(--border-color);
    background: var(--bg-darker);
    padding: 24px;
    animation: slideDown 0.3s ease-out;
}

.response-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.response-body {
    margin: 0;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-darker);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* ==========================================
   KEYFRAMES & ANIMATIONS
   ========================================== */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(0, 230, 118, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   MEDIA QUERIES (RESPONSIVE ADAPTATIONS)
   ========================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .project-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-container.reversed {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .profile-photo-container {
        width: 160px;
        height: 160px;
    }

    /* Navigation burger */
    .mobile-nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-nav-toggle .bar {
        background-color: var(--text-bright);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 80px 40px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
    }

    .nav-menu.open {
        right: 0;
    }

    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-section {
    position: relative;
    z-index: 1;
}

.services-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.1);
}

.service-icon {
    font-size: 2.8rem;
    display: block;
    margin: 0 auto 18px;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-bright);
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================
   PROJECTS SIMPLE GRID
   ========================================== */
.projects-section {
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.project-card-simple {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card-simple:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.1);
}

.project-card-simple .project-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0;
}

/* GitHub repo link — highlighted */
.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(14, 165, 233, 0.06) 100%);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    word-break: break-all;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.05);
}

.github-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

.github-link i {
    font-size: 1.05rem;
    transition: transform 0.3s ease;
}

.github-link:hover i {
    transform: scale(1.2) rotate(-8deg);
}

.github-link strong {
    font-weight: 600;
}

/* Medium blog link — highlighted separately */
.blog-link {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.06) 0%, rgba(251, 191, 36, 0.06) 100%) !important;
    border: 1px solid var(--accent) !important;
    color: var(--accent) !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.05) !important;
}

.blog-link:hover {
    background: linear-gradient(135deg, var(--accent), #f59e0b) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3) !important;
}

.blog-link:hover i {
    transform: translate(3px, -3px) scale(1.1);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================
   CONTACT SECTION (CLEAN TWO-COLUMN)
   ========================================== */
.contact-section {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
}

.contact-form-card,
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 36px;
}

.form-heading,
.info-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-darker);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

/* Contact info list */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.info-item:hover {
    background: rgba(79, 70, 229, 0.04);
    border-color: var(--border-hover);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.info-value {
    font-size: 0.92rem;
    color: var(--text-bright);
    font-weight: 500;
}

.mt-3 {
    margin-top: 8px;
}

/* ==========================================
   RESPONSIVE: NEW SECTIONS
   ========================================== */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .services-grid-simple {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 480px) {
    .services-grid-simple {
        grid-template-columns: 1fr;
    }

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

/* ==========================================
   BLOG SECTION
   ========================================== */
.blog-section {
    position: relative;
    z-index: 1;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.1);
}

.blog-platform {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-bright);
    margin: 0;
}

.blog-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.blog-link {
    align-self: flex-start;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   SUBMIT BUTTON ANIMATIONS
   ========================================== */
.submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating paper plane icon on hover */
.submit-btn .btn-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px) translateY(-4px) rotate(15deg);
}

/* Ripple effect */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: none;
    pointer-events: none;
    width: 0;
    height: 0;
}

.btn-ripple.ripple-animate {
    animation: ripple-expand 0.6s linear;
}

@keyframes ripple-expand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Hover glow pulse */
.submit-btn:hover {
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    transform: translateY(-3px);
}

.submit-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Loading state */
.submit-btn.is-loading {
    pointer-events: none;
    opacity: 0.85;
    animation: btn-pulse 1s ease-in-out infinite;
}

@keyframes btn-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2); }
    50%       { box-shadow: 0 4px 25px rgba(79, 70, 229, 0.5); }
}

/* Success state */
.submit-btn.is-success {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
    animation: success-bounce 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes success-bounce {
    0%  { transform: translateY(-3px) scale(1); }
    30% { transform: translateY(-6px) scale(1.04); }
    60% { transform: translateY(-2px) scale(0.98); }
    100%{ transform: translateY(-3px) scale(1); }
}

/* ==========================================
   ABOUT SINGLE (FULL WIDTH)
   ========================================== */
.about-single {
    margin: 0 auto;
}

/* ==========================================
   CERTIFICATIONS STANDALONE SECTION
   ========================================== */
.certs-section { position: relative; z-index: 1; }

.certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.cert-card-full {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 24px 24px 28px;
    backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Left accent bar */
.cert-card-full::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px 0 0 4px;
}

.cert-card-full.in-progress::before {
    background: linear-gradient(180deg, var(--warning), var(--accent));
}

.cert-card-full:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.1);
    transform: translateY(-4px);
}

/* Status icon circle */
.cert-status-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.08);
    border: 2px solid rgba(22, 163, 74, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--success);
    flex-shrink: 0;
}

.cert-status-icon.in-progress-icon {
    background: rgba(202, 138, 4, 0.08);
    border-color: rgba(202, 138, 4, 0.25);
}

.cert-info { flex: 1; }

.cert-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-bright);
}

.cert-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cert-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
}

.completed-badge {
    background: rgba(22, 163, 74, 0.08);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.progress-badge {
    background: rgba(202, 138, 4, 0.08);
    color: var(--warning);
    border: 1px solid rgba(202, 138, 4, 0.2);
}

.cert-view-btn {
    white-space: nowrap;
    flex-shrink: 0;
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    margin-top: auto;
}

.cert-view-btn:hover {
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

.disabled-btn {
    background: var(--bg-darker) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .certs-grid {
        grid-template-columns: 1fr;
    }
}

}