/* =========================================
   MODERN DEVELOPER PORTFOLIO - STYLES
   Theme: Midnight Glass (Linear/Vercel inspired)
   ========================================= */

:root {
    --bg-base: #000000;
    --bg-surface: #111111;
    --bg-surface-hover: #1a1a1a;
    
    --text-main: #ffffff;
    --text-muted: #888888;
    
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(255, 255, 255, 0.2);
    
    --accent-glow-1: rgba(66, 133, 244, 0.4); /* Blue */
    --accent-glow-2: rgba(161, 84, 242, 0.4); /* Purple */
    
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Selection */
::selection {
    background: rgba(161, 84, 242, 0.3);
    color: #fff;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow-1) 0%, transparent 60%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    animation: float-glow 20s ease-in-out infinite alternate;
}

.bg-glow-2 {
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow-2) 0%, transparent 60%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    animation: float-glow 15s ease-in-out infinite alternate-reverse;
}

@keyframes float-glow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(100px, 100px) scale(1.2); opacity: 0.8; }
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: #4285f4;
    border-radius: 50%;
    box-shadow: 0 0 10px #4285f4;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    max-width: 600px;
}

.hero-photo {
    position: relative;
    flex-shrink: 0;
}

.photo-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.25) 0%, rgba(161, 84, 242, 0.1) 40%, transparent 70%);
    border-radius: 32px;
    filter: blur(40px);
    z-index: 0;
}

.profile-card {
    position: relative;
    z-index: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    overflow: hidden;
    width: 280px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(66, 133, 244, 0.1);
    transition: var(--transition-smooth);
}

.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(66, 133, 244, 0.15);
    border-color: var(--border-glow);
}

.profile-card-img {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.profile-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.profile-card:hover .profile-card-img img {
    transform: scale(1.05);
}

.profile-card-info {
    padding: 1.5rem;
    text-align: center;
}

.profile-card-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.profile-card-role {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4285f4;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.role-dot {
    width: 6px;
    height: 6px;
    background: #34a853;
    border-radius: 50%;
    box-shadow: 0 0 8px #34a853;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.profile-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.profile-card-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 28px;
    background: var(--border-subtle);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

.status-indicator {
    width: 6px;
    height: 6px;
    background: #34a853;
    border-radius: 50%;
    box-shadow: 0 0 10px #34a853;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #AAAAAA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glow);
}

/* Bento Grid System */
.section {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    border-color: var(--border-glow);
    background: var(--bg-surface-hover);
    transform: translateY(-4px);
}

/* Card Sizes */
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.row-span-2 { grid-row: span 2; }

/* Specific Cards */
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Skills Tags */
.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.skill-tag {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Code Snippet Card */
.code-card {
    background: #000;
    border-radius: 12px;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #a9b7c6;
    border: 1px solid #222;
    margin-top: 1.5rem;
    position: relative;
}

.code-keyword { color: #cc7832; }
.code-function { color: #ffc66d; }
.code-string { color: #6a8759; }

/* Timeline */
.timeline {
    border-left: 2px solid var(--border-subtle);
    padding-left: 2rem;
    margin-top: 2rem;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--bg-surface);
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.timeline-item:hover::before {
    background: var(--text-main);
    border-color: var(--text-main);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.timeline-company {
    color: #4285f4;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.social-links a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--text-main);
}

/* Footer Enhancement */
.footer-content {
    flex-wrap: wrap;
    gap: 1rem;
}

/* Mobile Nav Toggle */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2, .col-span-3, .row-span-2 {
        grid-column: span 1;
        grid-row: auto;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-cta {
        flex-wrap: wrap;
    }
    .hero-layout {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-cta {
        justify-content: center;
    }
    .status-badge {
        margin-left: auto;
        margin-right: auto;
    }
    .profile-card {
        width: 240px;
        margin: 0 auto;
    }
    .profile-card-img {
        height: 200px;
    }
    .section-title {
        font-size: 2rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}
