:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(22, 28, 45, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem; /* Mobile padding */
    position: relative;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    body {
        padding: 3rem 1.5rem;
    }
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 10s infinite ease-in-out alternate;
}

@media (min-width: 768px) {
    .glow-orb {
        filter: blur(80px);
        opacity: 0.4;
    }
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: #1e3a8a;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: #4c1d95;
    animation-delay: -5s;
}

.orb-3 {
    top: 30%;
    left: 30%;
    width: 50vw;
    height: 50vw;
    background: #831843;
    animation-duration: 15s;
}

/* Layout */
.container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    z-index: 1;
}

@media (min-width: 992px) {
    .container {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }
}

/* Glassmorphism Cards */
.sidebar, .main-content {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem; /* Mobile padding */
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .sidebar, .main-content {
        padding: 2.5rem;
        border-radius: 24px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }
}

.sidebar {
    flex: 1;
    position: relative; /* Fallback for mobile */
}

@media (min-width: 992px) {
    .sidebar {
        position: sticky;
        top: 3rem;
    }
}

.main-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .main-content {
        gap: 3rem;
    }
}

/* Profile Section */
.profile-img-container {
    position: relative;
    width: 140px; /* Mobile size */
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 3px;
    background: var(--accent-gradient);
}

@media (min-width: 768px) {
    .profile-img-container {
        width: 180px;
        height: 180px;
        margin-bottom: 2rem;
        padding: 4px;
    }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bg-color);
}

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

.status-badge {
    position: absolute;
    bottom: 0px;
    right: -10px;
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    border: 2px solid var(--bg-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .status-badge {
        bottom: 5px;
        right: -15px;
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
}

.name {
    font-size: 1.8rem; /* Mobile */
    font-weight: 700;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
}

@media (min-width: 768px) {
    .name {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
}

.role {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 400;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .role {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
}

.bio {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .bio {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
}

@media (min-width: 768px) {
    .contact-info {
        gap: 1rem;
        margin-bottom: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    word-break: break-word;
}

@media (min-width: 768px) {
    .contact-item {
        font-size: 0.9rem;
        gap: 1rem;
    }
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-primary);
}

.icon {
    font-size: 1.1rem;
    background: rgba(255,255,255,0.05);
    padding: 0.4rem;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .icon {
        font-size: 1.2rem;
        padding: 0.5rem;
        border-radius: 10px;
        width: 36px;
        height: 36px;
    }
}

/* Skills */
h3.section-title, .skills-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

@media (min-width: 768px) {
    h3.section-title, .skills-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
}

h3.section-title::after, .skills-section h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

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

@media (min-width: 768px) {
    .skills-container {
        gap: 0.8rem;
    }
}

.skill-tag {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .skill-tag {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

.skill-tag:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 1.2rem;
}

@media (min-width: 768px) {
    .timeline {
        padding-left: 1.5rem;
    }
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .timeline-item {
        margin-bottom: 2.5rem;
    }
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.2rem;
    transform: translateX(-4px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    top: 6px;
}

@media (min-width: 768px) {
    .timeline-dot {
        left: -1.5rem;
    }
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .timeline-date {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .timeline-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
}

.timeline-content h5 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.6rem;
}

@media (min-width: 768px) {
    .timeline-content h5 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (min-width: 768px) {
    .timeline-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 14px;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .project-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.project-card h4 {
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    font-size: 1rem;
}

@media (min-width: 768px) {
    .project-card h4 {
        margin-bottom: 0.8rem;
        font-size: 1.05rem;
    }
}

.project-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (min-width: 768px) {
    .project-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-20px) scale(1.05); }
}

.slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .hide-on-mobile { display: none !important; }
}
@media (min-width: 992px) {
    .hide-on-desktop { display: none !important; }
}
@media (min-width: 992px) {
    .sidebar, .main-content {
        height: calc(100vh - 6rem);
        overflow-y: auto;
    }
    
    .sidebar::-webkit-scrollbar, .main-content::-webkit-scrollbar {
        width: 6px;
    }
    .sidebar::-webkit-scrollbar-track, .main-content::-webkit-scrollbar-track {
        background: transparent;
    }
    .sidebar::-webkit-scrollbar-thumb, .main-content::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 10px;
    }
    .sidebar::-webkit-scrollbar-thumb:hover, .main-content::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }
}
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
img {
    -webkit-user-drag: none;
}
