/* SumitSaha.me Inspired Theme */

:root {
    --bg-page: #f8fafc; /* slate-50 */
    --bg-card: #ffffff;
    --text-primary: #0f172a; /* slate-900 */
    --text-secondary: #475569; /* slate-600 */
    --text-tertiary: #64748b; /* slate-500 */
    --border-color: #e2e8f0; /* slate-200 */
    --border-light: #f1f5f9; /* slate-100 */
    --accent-bg: #1e293b; /* slate-800 */
    --pill-bg: #f1f5f9; /* slate-100 */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Background Glow */
.page-background {
    min-height: 100vh;
    position: relative;
    padding: 2rem 1rem;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.glow-left {
    top: 10%;
    left: -200px;
}

.glow-right {
    bottom: 10%;
    right: -200px;
}

/* Container */
.container {
    max-width: 1024px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-circle {
    width: 32px;
    height: 32px;
    background-color: var(--text-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Central Card */
.central-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 3rem;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-section {
        flex-direction: row;
    }
}

.hero-content {
    flex: 1;
    max-width: 65%;
}

.name {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.role {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.bio {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

/* Location Badge */
.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background-color: var(--pill-bg);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Social Buttons */
.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background-color: var(--bg-page);
    color: var(--text-primary);
}

/* Profile Image Ring */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-image-wrapper {
        width: auto;
    }
}

.profile-ring {
    background: conic-gradient(#34a853 0deg 90deg, #fbbc05 90deg 180deg, #4285f4 180deg 270deg, #ea4335 270deg 360deg);
    padding: 5px;
    border-radius: 9999px;
    display: inline-block;
    /* Optional rotation animation */
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.profile-img {
    border-radius: 9999px;
    border: 5px solid var(--bg-card);
    width: 160px;
    height: 160px;
    object-fit: cover;
    display: block;
    /* Counter-rotate the image so it stays upright */
    animation: counter-rotate 10s linear infinite;
}

@keyframes counter-rotate {
    100% {
        transform: rotate(-360deg);
    }
}

@media (min-width: 768px) {
    .profile-img {
        width: 192px;
        height: 192px;
    }
}

/* Divider */
.divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 2rem 0;
}

/* Sections */
.section-container {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Tabs */
.tab-buttons {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.375rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background-color: var(--accent-bg);
    color: white;
    border-color: var(--accent-bg);
}

.tab-btn:hover:not(.active) {
    background-color: var(--bg-page);
}

/* Experience List */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.job-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-bg);
}

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

.exp-date {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.exp-desc {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Skills */
.pb-8 {
    padding-bottom: 2rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-pill {
    background-color: var(--accent-bg);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .central-card {
        padding: 1.5rem;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}
