:root {
    --bg-dark: #090f1d;
    --bg-card: #141e30;
    --bg-card-hover: #1f2d44;
    --border-color: #24354c;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    --color-meta: #0081fb;
    --color-meta-glow: rgba(0, 129, 251, 0.4);
    --color-nutanix: #00ff87;
    --color-nutanix-glow: rgba(0, 255, 135, 0.4);
    --color-cyan: #00f2fe;
    --color-cyan-glow: rgba(0, 242, 254, 0.4);
    --color-orange: #ff9f43;
    --color-yellow: #feca57;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background grid styling representing network connections */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(9, 15, 29, 0) 0%, var(--bg-dark) 85%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 60px 60px, 60px 60px;
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography styles */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-meta));
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: var(--color-cyan);
    box-shadow: 0 6px 15px rgba(0, 242, 254, 0.15);
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-cyan);
    background-color: rgba(0, 242, 254, 0.08);
    border: 2px solid rgba(0, 242, 254, 0.3);
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header / Hero Section */
.hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 50%, var(--text-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-text .subtitle strong {
    color: var(--text-primary);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-svg {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
}

/* --- SVG Illustration Styles & Animations --- */
.led-blink {
    transform-origin: center;
}

.led-blink.fast {
    animation: led-glow-anim 0.5s alternate infinite ease-in-out;
}

.led-blink.medium {
    animation: led-glow-anim 1s alternate infinite ease-in-out;
}

.led-blink.slow {
    animation: led-glow-anim 1.8s alternate infinite ease-in-out;
}

@keyframes led-glow-anim {
    0% {
        opacity: 0.25;
    }

    100% {
        opacity: 1;
    }
}

.cable-pulse {
    stroke-dasharray: 12, 120;
    stroke-dashoffset: 132;
    animation: cable-flow-anim 4s linear infinite;
}

.pulse-meta {
    animation-duration: 3s;
}

.pulse-nutanix {
    animation-duration: 3.5s;
    animation-delay: 0.5s;
}

.pulse-laptop {
    animation-duration: 2.5s;
    animation-delay: 0.2s;
}

@keyframes cable-flow-anim {
    to {
        stroke-dashoffset: 0;
    }
}

.port-lite {
    animation: port-glow 0.8s alternate infinite ease-in-out;
}

.port-lite:nth-child(even) {
    animation-delay: 0.4s;
}

@keyframes port-glow {
    0% {
        fill-opacity: 0.3;
    }

    100% {
        fill-opacity: 1;
        filter: drop-shadow(0 0 4px currentColor);
    }
}

/* Sections layout */
.section {
    padding: 70px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px auto;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-nutanix));
    border-radius: 2px;
}

/* --- Timeline Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Central Fiber Line */
.timeline-cable {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to bottom, var(--color-meta) 0%, var(--color-nutanix) 60%, rgba(20, 30, 48, 0.4) 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 129, 251, 0.15);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 80px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Node Icons Representing Switches */
.timeline-icon {
    position: absolute;
    left: 19px;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
}

.timeline-icon.color-meta {
    border-color: var(--color-meta);
    box-shadow: 0 0 12px var(--color-meta-glow);
    color: var(--color-meta);
}

.timeline-icon.color-nutanix {
    border-color: var(--color-nutanix);
    box-shadow: 0 0 12px var(--color-nutanix-glow);
    color: var(--color-nutanix);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.timeline-content {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 14px;
    width: 20px;
    height: 20px;
    background-color: var(--bg-card);
    border-bottom: 2px solid var(--border-color);
    border-left: 2px solid var(--border-color);
    transform: rotate(45deg);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.timeline-date {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

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

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

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.timeline-content .company {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-content .team {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tag {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.timeline-item:hover .tag {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- Education Section --- */
.education-timeline {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.edu-node {
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.edu-node:hover {
    transform: translateY(-4px);
    border-color: var(--color-yellow);
    box-shadow: 0 10px 25px rgba(254, 202, 87, 0.1);
}

.edu-cap {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background-color: rgba(254, 202, 87, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

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

.edu-details h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.edu-details .school {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.edu-link {
    color: var(--color-yellow);
    text-decoration: none;
    border-bottom: 1.5px dashed rgba(254, 202, 87, 0.4);
    transition: var(--transition-smooth);
}

.edu-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--color-yellow);
}

/* --- Skills Dashboard (Server Cabinet) --- */
.skills-dashboard {
    max-width: 750px;
    margin: 0 auto;
    background-color: #0b1120;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 4px solid #1e293b;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.8), 0 20px 40px rgba(0, 0, 0, 0.5);
}

.cabinet {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.server-blade {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: default;
}

/* Decorative side handle for rack unit */
.blade-handle {
    width: 12px;
    height: 60px;
    background-color: #2e3f56;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
}

.blade-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blade-title-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blade-title-strip h3 {
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

.status-indicator {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.indicators {
    display: flex;
    gap: 10px;
}

.indicator-led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #334155;
    transition: var(--transition-smooth);
}

/* LED glow classes */
.indicator-led.green.glowing {
    background-color: var(--color-nutanix);
    box-shadow: 0 0 10px var(--color-nutanix-glow);
}

.indicator-led.blue.glowing {
    background-color: var(--color-meta);
    box-shadow: 0 0 10px var(--color-meta-glow);
}

.indicator-led.cyan.glowing {
    background-color: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan-glow);
}

.indicator-led.blinking {
    animation: led-glow-anim 0.6s alternate infinite ease-in-out;
}

.indicator-led.cyan.blinking {
    background-color: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan-glow);
}

.indicator-led.pink.blinking {
    background-color: var(--color-orange);
    box-shadow: 0 0 10px rgba(255, 159, 67, 0.4);
}

.indicator-led.yellow.blinking {
    background-color: var(--color-yellow);
    box-shadow: 0 0 10px rgba(254, 202, 87, 0.4);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.skill-tags li {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-secondary);
}

/* Blade Hover states: looks like blade slides forward and outputs full power */
.server-blade:hover {
    transform: translateY(-4px) scale(1.015);
    border-color: var(--color-cyan);
    background-color: var(--bg-card-hover);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.15);
}

.server-blade:hover .status-indicator {
    color: var(--bg-dark);
    background-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.server-blade:hover .blade-handle {
    background-color: var(--color-cyan);
    border-color: var(--color-cyan);
}

.server-blade:hover .skill-tags li {
    border-color: rgba(0, 242, 254, 0.2);
    color: var(--text-primary);
}

/* --- Patch Panel (Contact) --- */
.patch-panel {
    max-width: 750px;
    margin: 0 auto;
    background-color: #1e293b;
    border: 3px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.panel-rack {
    background-color: #0f172a;
    border: 2px solid #334155;
    padding: 24px;
    border-radius: var(--radius-md);
}

.rack-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.patch-port {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px 10px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: var(--transition-smooth);
    color: var(--text-primary);
    cursor: pointer;
}

.port-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.port-socket {
    width: 50px;
    height: 38px;
    background-color: #090f1d;
    border: 2.5px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 4px;
    transition: var(--transition-smooth);
}

.port-pins {
    width: 25px;
    height: 12px;
    background-image: repeating-linear-gradient(90deg, var(--border-color) 0px, var(--border-color) 2px, transparent 2px, transparent 4px);
    margin-bottom: 4px;
}

.plug-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #334155;
    position: absolute;
    top: 6px;
    right: 6px;
    transition: var(--transition-smooth);
}

/* Sockets hover animations: Plugged RJ45 style */
.patch-port:hover {
    border-color: var(--color-cyan);
    background-color: var(--bg-card-hover);
    transform: translateY(-6px);
}

.patch-port:hover .port-label {
    color: var(--color-cyan);
}

.patch-port:hover .port-socket {
    border-color: var(--color-cyan);
    box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.4);
}

.patch-port:hover .plug-indicator {
    background-color: var(--color-cyan);
    box-shadow: 0 0 8px var(--color-cyan-glow);
}

.linkedin-port:hover {
    border-color: var(--color-meta);
}

.linkedin-port:hover .port-label {
    color: var(--color-meta);
}

.linkedin-port:hover .port-socket {
    border-color: var(--color-meta);
}

.linkedin-port:hover .plug-indicator {
    background-color: var(--color-meta);
    box-shadow: 0 0 8px var(--color-meta-glow);
}

.github-port:hover {
    border-color: var(--color-nutanix);
}

.github-port:hover .port-label {
    color: var(--color-nutanix);
}

.github-port:hover .port-socket {
    border-color: var(--color-nutanix);
}

.github-port:hover .plug-indicator {
    background-color: var(--color-nutanix);
    box-shadow: 0 0 8px var(--color-nutanix-glow);
}

.email-port:hover {
    border-color: var(--color-yellow);
}

.email-port:hover .port-label {
    color: var(--color-yellow);
}

.email-port:hover .port-socket {
    border-color: var(--color-yellow);
}

.email-port:hover .plug-indicator {
    background-color: var(--color-yellow);
    box-shadow: 0 0 8px rgba(254, 202, 87, 0.5);
}

.fiber-cable-deco {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.cable-svg {
    width: 60%;
    max-height: 50px;
}

.fiber-glow {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: fiber-pulse 4s linear infinite;
}

@keyframes fiber-pulse {
    to {
        stroke-dashoffset: 0;
    }
}

/* --- Footer --- */
footer {
    padding: 60px 0;
    border-top: 2px solid var(--border-color);
    text-align: center;
    background-color: #060a14;
}

footer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Scroll reveal classes for Intersection Observer */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline specific adjustment for smaller screens */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .timeline-cable {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-icon {
        left: -1px;
    }

    .rack-row {
        grid-template-columns: 1fr;
    }
}