:root {
    --bg-color: #050505;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-glow: rgba(0, 240, 255, 0.4);
    --accent-color: #00f0ff;
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Glowing Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    animation: drift 15s ease-in-out infinite alternate;
}

.orb-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.6) 0%, rgba(20, 20, 20, 0) 70%);
}

.orb-2 {
    bottom: -150px;
    right: -50px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(20, 20, 20, 0) 70%);
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translateY(0) translateX(0) scale(1);
    }

    100% {
        transform: translateY(50px) translateX(-50px) scale(1.1);
    }
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #00f0ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Navigation Glassmorphism */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -1px;
    text-transform: none;
    text-decoration: none;
    color: var(--text-primary);
}

.logo:hover {
    cursor: pointer;
}

.logo-accent {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    /* Increased size */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-only {
    display: none !important;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Main Container */
main {
    padding-top: 12vh;
    /* Reduced padding from 15 to 12 */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.fade-enter {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    min-height: 70vh;
    padding: 2rem 0;
}

.hero-text {
    flex: 1;
    max-width: 55%;
}

.hero-visual {
    flex-shrink: 0;
}

.hero-title {
    font-size: 3.8rem;
    /* Slightly reduced size */
    line-height: 1.1;
    margin: 1rem 0;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2rem;
}


/* Buttons */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 50;
}

button,
.glow-button,
.glow-button-small {
    background: none;
    border: none;
    font-family: 'Outfit';
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    /* Prevents button shifting on hover expanding */
}

.glow-button.primary {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 1rem 2rem;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.glow-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
    background: var(--accent-color);
}

.glow-button.secondary {
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
}

.glow-button.secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-secondary);
}

.glow-button-small {
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.glow-button-small:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Contact Pill Hover Effect */
.contact-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0 1.2rem;
    height: 54px;
    /* Matches normal button height */
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    margin: 0;
    flex-shrink: 0;
}

.contact-pill i {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.contact-pill:hover {
    background: var(--glass-bg);
    border-color: var(--text-secondary);
}

.contact-pill:hover i {
    color: var(--text-primary);
}

.contact-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1rem;
    font-weight: 600;
}

.contact-pill:hover .contact-text {
    max-width: 250px;
    opacity: 1;
    margin-left: 0.8rem;
}

/* Components: Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Resume Layout */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.divider {
    height: 2px;
    width: 60px;
    background: var(--accent-color);
    margin-top: 1rem;
    border-radius: 2px;
}

.resume-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 4rem;
}

/* Timeline items */
.exp-item {
    border-left: 2px solid var(--glass-border);
    padding-left: 2rem;
    position: relative;
    margin-bottom: 3rem;
}

.exp-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

.exp-header {
    margin-bottom: 1rem;
}

.exp-role {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.exp-meta {
    display: flex;
    gap: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

.exp-item ul {
    list-style: none;
    color: var(--text-secondary);
}

.exp-item li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.exp-item li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Skills styling */
.skill-card h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.skill-group {
    margin-bottom: 1.5rem;
}

.skill-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    user-select: none;
}

.tag:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
    transform: translateY(-3px);
    color: #ffffff;
}

/* Project Cards */
.project-card {
    margin-bottom: 2rem;
}

.project-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tech-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tech-tags span {
    color: var(--accent-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Certifications */
/* Certifications - "Figa" Layout */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.cert-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    position: relative;
    padding: 0.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.cert-card:hover {
    transform: translateY(-8px) scale(1.05);
}

.cert-icon-large {
    width: 225px;
    height: 225px;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    z-index: 2;
    transition: transform 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cert-icon-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
    /* Stronger drop shadow since no box */
    transition: all 0.4s ease;
}

.cert-card:hover .cert-icon-large img {
    filter: drop-shadow(0 20px 30px var(--cert-color));
    /* Glows on hover */
}

.cert-info {
    flex: 1;
    z-index: 2;
}

.cert-info h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.cert-level {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.contact-icon {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
}

/* Tech Node Blueprint Showcase */
.node-graph {
    position: relative;
    width: 400px;
    height: 400px;
    flex-shrink: 0;
    margin: 2rem auto;
    animation: float 8s ease-in-out infinite;
}

.node-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.glow-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    background: rgba(10, 15, 20, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--accent-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 50px rgba(0, 240, 255, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    z-index: 10;
    animation: corePulse 4s ease-in-out infinite alternate;
}

@keyframes corePulse {
    0% {
        box-shadow: 0 0 40px rgba(0, 240, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
    }

    100% {
        box-shadow: 0 0 70px rgba(0, 240, 255, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.1);
    }
}

.satellite {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(15, 20, 30, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, background 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sat-1 {
    left: 50%;
    top: 10%;
    transform: translate(-50%, -50%);
}

.sat-2 {
    left: 84.65%;
    top: 30%;
    transform: translate(-50%, -50%);
}

.sat-3 {
    left: 84.65%;
    top: 70%;
    transform: translate(-50%, -50%);
}

.sat-4 {
    left: 50%;
    top: 90%;
    transform: translate(-50%, -50%);
}

.sat-5 {
    left: 15.35%;
    top: 70%;
    transform: translate(-50%, -50%);
}

.sat-6 {
    left: 15.35%;
    top: 30%;
    transform: translate(-50%, -50%);
}

.satellite img {
    width: 26px;
    height: 26px;
    filter: grayscale(40%) opacity(0.75);
    transition: all 0.4s ease;
}

/* AWS specific visibility fix */
.satellite.aws img {
    filter: brightness(0) invert(1) opacity(0.7);
}

.satellite:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(20, 25, 35, 0.95);
}

.satellite:hover img {
    filter: grayscale(0%) opacity(1);
}

.satellite.aws:hover img {
    filter: brightness(1) invert(0) grayscale(0%) opacity(1);
}

/* Authentic Brand Glows */
.satellite.aws:hover {
    box-shadow: 0 0 25px rgba(255, 153, 0, 0.4);
    border-color: rgba(255, 153, 0, 0.5);
}

.satellite.gcp:hover {
    box-shadow: 0 0 25px rgba(66, 133, 244, 0.4);
    border-color: rgba(66, 133, 244, 0.5);
}

.satellite.k8s:hover {
    box-shadow: 0 0 25px rgba(50, 108, 229, 0.4);
    border-color: rgba(50, 108, 229, 0.5);
}

.satellite.tf:hover {
    box-shadow: 0 0 25px rgba(132, 79, 186, 0.4);
    border-color: rgba(132, 79, 186, 0.5);
}

.satellite.argo:hover {
    box-shadow: 0 0 25px rgba(239, 123, 77, 0.4);
    border-color: rgba(239, 123, 77, 0.5);
}

.satellite.prom:hover {
    box-shadow: 0 0 25px rgba(230, 82, 44, 0.4);
    border-color: rgba(230, 82, 44, 0.5);
}



.site-footer {
    width: 100%;
    text-align: center;
    padding: 1rem 5%;
    margin-top: 3rem;
    border-top: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.site-footer:hover {
    opacity: 1;
}

/* Responsive */
@media (min-width: 993px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 992px) {

    .resume-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 2rem;
        gap: 2rem;
        min-height: auto;
    }

    .hero-text {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: clamp(2.5rem, 6vw, 3.8rem);
        line-height: 1.1;
    }

    .hero-subtitle {
        text-align: center;
        font-size: clamp(1.1rem, 3vw, 1.4rem);
    }

    .hero-cta {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-visual {
        transform: scale(0.85);
        margin: -2rem 0;
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 10vh;
        width: 85%;
        min-height: auto;
    }

    nav.glass-nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 7.5%;
    }

    .mobile-only {
        display: inline-flex !important;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: -1;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.nav-active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links .nav-item {
        font-size: 1.5rem;
    }

    /* Restored transform scaling for fixed 400px radar */
    .hero-visual {
        display: none !important;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .certs-grid {
        grid-template-columns: 1fr;
        /* 1 card per row on mobile to keep them huge and visible */
        gap: 1.5rem;
    }

    .cert-icon-large {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-cta a,
    .hero-cta button {
        justify-content: center;
        width: 100%;
        margin: 0;
    }

    .cert-icon-large {
        width: 140px;
        height: 140px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}