/* Global Styles */
:root {
    --bg-color: #0b0d17;
    --card-bg: rgba(21, 25, 43, 0.6); /* Transparent for glassmorphism */
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    --accent-primary: #00f2ff; /* Cyan Neon */
    --accent-secondary: #bd00ff; /* Purple Neon */
    --accent-tertiary: #0051ff; /* Deep Blue */
    --gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 8px rgba(189, 0, 255, 0.4);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header / Hero Section */
header {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    padding: 4rem 0 2rem;
    gap: 2rem;
    animation: fadeIn 1s ease-out;
}

@media (min-width: 768px) {
    header {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

.profile-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #b4b4b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.typing-text {
    border-right: 2px solid var(--accent-primary);
    white-space: nowrap;
    overflow: hidden;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.profile-text h2 {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .contact-info {
        justify-content: flex-start;
    }
}

.contact-item {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.2);
    color: #fff;
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 40px rgba(0, 81, 255, 0.4);
    transition: transform 0.5s ease;
}

.avatar:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--accent-primary);
}

/* Sections */
section {
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.section-title i {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px var(--accent-primary));
}

/* Glass Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.card:hover::before {
    transform: translateX(100%);
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.8rem;
    flex-wrap: nowrap;
}

.card-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    flex: 1;
    min-width: 0;
}

.card-subtitle {
    color: var(--accent-primary);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.card-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-content {
    font-size: 1rem;
    color: #ced4da;
    line-height: 1.7;
}

.card-content ul {
    list-style-position: inside;
    margin-top: 0.5rem;
}

.card-content li {
    margin-bottom: 0.4rem;
}

/* Author Highlighting */
.author-list {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.author-me {
    color: #fff;
    font-weight: 700;
    border: none !important;
    text-decoration: none !important;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(0, 242, 255, 0.08);
    color: var(--accent-primary);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 242, 255, 0.2);
    transition: all 0.3s;
}

.tag:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 15px var(--accent-primary);
}

/* Blog Content Styles */
.blog-content h2, .blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.blog-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-content hr {
    border: 0;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 2rem 0;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 6rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
    .card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    .profile-text h1 {
        font-size: 2rem;
    }
}
