@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* IT / Cyber Palette */
    --bg-dark: #020617;
    /* Very dark slate/blue */
    --bg-gradient-1: #1e3a8a;
    /* Blue-900 */
    --bg-gradient-2: #0f172a;
    /* Slate-900 */
    --bg-gradient-3: #111827;
    /* Gray-900 */

    --glass-bg: rgba(15, 23, 42, 0.6);
    /* Darker glass for better contrast */
    --glass-border: rgba(56, 189, 248, 0.1);
    /* Sky blue hint */
    --glass-highlight: rgba(56, 189, 248, 0.05);

    --text-primary: #f0f9ff;
    /* Sky-50 */
    --text-secondary: #bae6fd;
    /* Sky-200 */
    --text-accent: #38bdf8;
    /* Sky-400 */

    --accent-color: #0ea5e9;
    /* Sky-500 */
    --accent-glow: rgba(14, 165, 233, 0.4);

    --card-radius: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    /* Tech Background */
    background-image:
        radial-gradient(circle at 50% 0%, rgba(30, 58, 138, 0.3), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.15), transparent 50%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* changed from center to allow scrolling */
    padding: 4rem 1rem;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Grid/Noise */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
}

.main-container {
    width: 100%;
    max-width: 700px;
    /* Reduced width for single column readability */
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Base Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 2.5rem;
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
    opacity: 0.5;
}

/* Profile Section (Now Top of Flow) */
.profile-card {
    text-align: center;
    background: transparent;
    /* Remove background for top header feel */
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    margin-bottom: 1rem;
}

.profile-name {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.profile-title {
    font-size: 1.1rem;
    color: var(--text-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    text-decoration: none;
}

.social-btn:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.social-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Content Area */
.content-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

section {
    position: relative;
}

h2 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h2::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-glow);
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Experience Grid */
.exp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .exp-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.info-card {
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid rgba(56, 189, 248, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(2, 6, 23, 0.6);
}

.info-title {
    color: var(--text-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1rem;
}

.info-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Professional Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
    transform: translateX(-4px);
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.timeline-org {
    font-size: 0.9rem;
    color: var(--text-accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Skills Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    /* more technical square look */
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.1);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
    cursor: default;
}

/* Certificates List */
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.4);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.cert-item:hover {
    border-color: rgba(56, 189, 248, 0.2);
    background: rgba(2, 6, 23, 0.6);
}

.cert-icon {
    width: 36px;
    height: 36px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.cert-name {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.6;
}

.footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--text-accent);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}