:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f8fafc;
    --accent: #f59e0b;
    --text: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border-radius: 0.75rem;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)
}

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

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--secondary) 0, #e2e8f0 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem
}

header {
    background: linear-gradient(135deg, var(--primary) 0, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1.25rem 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(data:image/svg+xml,SVG_REPLACED);
    background-size: cover
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.025em
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: .5rem 1rem;
    border-radius: var(--border-radius);
    transition: all .3s ease;
    position: relative
}

nav a.active,
nav a:hover {
    background: rgba(255, 255, 255, .15);
    transform: translateY(-2px)
}

nav a.active {
    background: rgba(255, 255, 255, .2)
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: .5rem 0
}

footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto
}

.top-section {
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0
}

.top-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(37, 99, 235, .1)
}

.section-header {
    display: flex;
    justify-content: flex-start;
}

.portfolio-section {
    margin-top: 0.1rem;
}

.portfolio-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
    text-align: center;
    position: relative;
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(226, 232, 240, .8);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.portfolio-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.company-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    /* padding: 0.25rem; */
    box-shadow: var(--shadow);
}

.company-name {
    font-size: 0.9rem;
    color: var(--text-light);
}

.incoming-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.incoming-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 1rem;
}

.incoming-status .dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.45;
    animation: dotPulse 1s infinite ease-in-out;
}

.incoming-status .dot-1 {
    animation-delay: 0s;
}

.incoming-status .dot-2 {
    animation-delay: 0.2s;
}

.incoming-status .dot-3 {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.45;
    }
    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.portfolio-description {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.6;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills span {
    background: var(--secondary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-dark);
    box-shadow: var(--shadow);
}


.projects-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(226, 232, 240, .8);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.projects-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.k8s-project:hover {
    transform: none;
}
.portfolio-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.portfolio-text {
    flex: 1 1 55%;
}
.portfolio-video {
    flex: 1 1 40%; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.portfolio-video video,
.image-placeholder {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.portfolio-video video {
    height: auto;
}
.k8s-media {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
}
.k8s-media video {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #0f172a;
}
.k8s-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: #f8fafc;
}
.k8s-media .expandable-img {
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}
.k8s-media .expandable-img:hover {
    box-shadow: var(--shadow-hover);
}
.image-placeholder {
    min-height: 280px;
    border: 2px dashed rgba(100, 116, 139, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: var(--text-light);
    text-align: center;
    padding: 1.5rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.demo-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.demo-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.demo-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f8f9fa;
}

.demo-item img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}


@media (max-width:1024px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    .top-section h1 {
        font-size: 2.5rem
    }

    .header-content {
        flex-direction: column;
        gap: 1rem
    }

    .logo {
        font-size: 1.5rem
    }

    nav ul {
        gap: 1rem
    }
}

@media (max-width:480px) {
    .top-section {
        padding: 1rem 0;
        margin-bottom: 2rem
    }

    .container {
        padding: 0 1rem
    }

    main {
        padding: 2rem 0
    }
}
