@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0F1419;
    color: #E8E9ED;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

a {
    color: #E8E9ED;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF6B35;
}

/* Animated Background Layers */
.bg-gradient {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 107, 53, 0.15) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -3;
}

.bg-gradient-2 {
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 60%, rgba(232, 233, 237, 0.08) 0%, transparent 50%);
    animation: float 25s ease-in-out infinite reverse;
    z-index: -2;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(232, 233, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 233, 237, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* Corner layout */
.corner {
    position: fixed;
    font-size: 13px;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Top Left - Company Name */
.top-left {
    top: 30px;
    left: 30px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Top Right - Projects */
.top-right {
    top: 30px;
    right: 30px;
    text-align: right;
    max-width: 320px;
}

/* Bottom Left - About */
.bottom-left {
    bottom: 30px;
    left: 30px;
    max-width: 280px;
}

/* Bottom Right - Footer */
.bottom-right {
    bottom: 30px;
    right: 30px;
    text-align: right;
    font-size: 11px;
    opacity: 0.6;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.7;
    letter-spacing: 1.5px;
}

.content {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 15px;
}

.about-intro {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #E8E9ED;
    font-weight: 500;
}

.about-detail {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: rgba(232, 233, 237, 0.8);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.skill-tag {
    font-size: 10px;
    padding: 4px 8px;
    background: rgba(232, 233, 237, 0.1);
    border: 1px solid rgba(232, 233, 237, 0.2);
    color: rgba(232, 233, 237, 0.8);
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: #FF6B35;
}

/* Projects Card Styling */
.projects-minimal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-card {
    background: rgba(30, 41, 54, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(232, 233, 237, 0.1);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6B35, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateX(-8px) translateY(-2px);
    background: rgba(30, 41, 54, 0.7);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 107, 53, 0.1);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card.award-card {
    cursor: default;
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.project-logo-small {
    width: 28px;
    height: 28px;
    object-fit: contain;
    background: #E3DFD0;
    border-radius: 6px;
    padding: 4px;
    transition: all 0.3s ease;
}

.project-card:hover .project-logo-small {
    background: #E3DFD0;
    transform: scale(1.1);
}

.project-card-header svg {
    flex-shrink: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.project-card:hover svg {
    opacity: 1;
    color: #FF6B35;
}

.project-name {
    font-size: 14px;
    font-weight: 500;
    color: #E8E9ED;
    flex: 1;
}

.link-icon {
    margin-left: auto;
    width: 14px;
    height: 14px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.project-card:hover .link-icon {
    opacity: 1;
    color: #FF6B35;
    transform: translateX(2px) translateY(-2px);
}

.project-card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card-details {
    max-height: 200px;
}

.project-description {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(232, 233, 237, 0.7);
    margin-bottom: 8px;
    padding-top: 4px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    font-size: 10px;
    padding: 3px 8px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: #FF6B35;
    border-radius: 12px;
    font-weight: 500;
}

.award-tag {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.4);
}

/* LinkedIn button */
.linkedin-btn {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #FF6B35;
    color: #E8E9ED;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.linkedin-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
    color: #E8E9ED;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    /* Keep cards expanded on tablets and mobile */
    .project-card-details {
        max-height: 500px !important;
    }

    .project-card {
        transform: none !important;
    }

    .link-icon {
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
    }

    .corner {
        position: relative;
        font-size: 12px;
        max-width: 100%;
        padding: 20px;
    }

    /* Stack vertically in order */
    .top-left {
        position: relative;
        top: auto;
        left: auto;
        font-size: 16px;
        padding: 20px;
        border-bottom: 1px solid rgba(232, 233, 237, 0.1);
    }

    .logo-img {
        height: 40px;
    }

    .top-right {
        position: relative;
        top: auto;
        right: auto;
        text-align: left;
        max-width: 100%;
        padding: 20px;
        border-bottom: 1px solid rgba(232, 233, 237, 0.1);
    }

    .bottom-left {
        position: relative;
        bottom: auto;
        left: auto;
        max-width: 100%;
        padding: 20px;
        border-bottom: 1px solid rgba(232, 233, 237, 0.1);
    }

    .bottom-right {
        position: relative;
        bottom: auto;
        right: auto;
        text-align: center;
        font-size: 10px;
        padding: 20px;
        opacity: 0.6;
    }

    .project-logo-small {
        width: 24px;
        height: 24px;
    }

    .project-card {
        padding: 10px;
    }

    .project-name {
        font-size: 13px;
    }

    .project-description {
        font-size: 11px;
    }

    /* Ensure cards stay expanded on mobile */
    .project-card-details {
        max-height: 500px !important;
    }

    .section-label {
        text-align: left;
    }

    .about-intro {
        font-size: 12px;
    }

    .about-detail {
        font-size: 11px;
    }

    .skill-tag {
        font-size: 9px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .corner {
        padding: 15px;
    }

    .top-left {
        font-size: 14px;
        gap: 8px;
        padding: 15px;
    }

    .logo-img {
        height: 35px;
    }

    .top-right {
        padding: 15px;
    }

    .bottom-left {
        padding: 15px;
    }

    .bottom-right {
        padding: 15px;
    }

    .section-label {
        font-size: 10px;
    }

    .content {
        font-size: 12px;
    }

    .project-name {
        font-size: 12px;
    }

    .project-description {
        font-size: 10px;
    }

    .tech-tag {
        font-size: 9px;
        padding: 2px 6px;
    }

    .about-intro {
        font-size: 11px;
    }

    .about-detail {
        font-size: 10px;
    }

    .skill-tag {
        font-size: 8px;
        padding: 2px 5px;
    }
}