:root {
    --bg-body: #f5f5f7;
    --bg-card: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent: #0071e3;
    --border-radius: 24px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-primary);
    padding: 40px 20px;
    line-height: 1.6;
}

.bento-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    grid-auto-rows: 200px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Profile Card */
.profile-card {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.status-badge {
    background: #f0fdf4;
    color: #16a34a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.profile-card h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
}

.bio {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s;
}

.social-btn:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

/* Tech Stack Card */
.tech-card {
    grid-column: span 2;
    grid-row: span 1;
}

.tech-card h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.tech-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Experience Card */
.experience-card {
    grid-column: span 2;
    grid-row: span 2;
}

.experience-card h2 {
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.exp-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exp-item {
    display: flex;
    gap: 15px;
}

.exp-year {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    min-width: 100px;
}

.exp-info h3 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.exp-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Project Cards */
.project-card {
    grid-column: span 1;
    grid-row: span 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.p1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.p2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 10px;
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.project-card p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.project-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    text-align: right;
}

/* Education Card */
.education-card {
    grid-column: span 2;
    grid-row: span 1;
}

.education-card h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.edu-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.edu-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-body);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
}

.edu-item h3 {
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.edu-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Location Card */
.location-card {
    grid-column: span 1;
    grid-row: span 1;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.map-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    opacity: 0.3;
}

.location-info {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.location-info i {
    color: var(--accent);
}

@media (max-width: 768px) {
    .bento-container {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: 200px;
    }

    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}/* Layout Switcher Card */
.layout-switcher-card {
    grid-column: span 1;
    grid-row: span 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout-switcher {
    position: relative;
}

.layout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px !important;
    background: var(--bg-body);
    border: 2px solid #e5e5e7;
    border-radius: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.layout-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.layout-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--bg-card);
    border-radius: 16px;
    min-width: 200px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    border: 1px solid #e5e5e7;
    overflow: hidden;
}

.layout-switcher:hover .layout-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.layout-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid #e5e5e7;
}

.layout-dropdown a:last-child {
    border-bottom: none;
}

.layout-dropdown a:hover {
    background: #f5f5f7;
    color: var(--accent);
    padding-left: 24px;
}

.layout-dropdown a.active {
    background: #f0f8ff;
    color: var(--accent);
    font-weight: 600;
}

.layout-dropdown a i {
    width: 16px;
    text-align: center;
}
