:root {
    --primary-bg: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --gradient-1: #8b5cf6;
    --gradient-2: #3b82f6;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    /* Prevent horizontal scroll only */
    overflow-y: auto;
    /* Allow vertical scroll */
}

/* Background Animation */
.background-animation {
    position: fixed;
    /* Fixed so it stays while scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    overflow: hidden;
}

.background-animation::before,
.background-animation::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: float 10s infinite ease-in-out;
}

.background-animation::before {
    background: var(--gradient-1);
    top: -100px;
    left: -100px;
}

.background-animation::after {
    background: var(--gradient-2);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, 50px);
    }
}

/* Container & Card */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    width: 100%;
}

.deployment-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.lang-switch {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.container {
    padding: 40px 20px;
    width: 100%;
    max-width: 600px;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition: background 0.1s ease;
}

.about-section,
.tech-section {
    text-align: left;
    margin-bottom: 40px;
}

.about-section h2,
.tech-section h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-main);
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Content Styles */
.logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo-img {
    width: 80px;
    /* Slightly larger since it's standalone */
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
    transition: transform 0.4s ease;
}

.logo:hover .logo-img {
    transform: rotate(10deg) scale(1.05);
}

h1 {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 300;
    /* Lighter weight for professional feel */
    margin: 0 0 20px 0;
    padding: 0 10px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-stack {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0 25px 0;
}

.tech-stack i {
    font-size: 2rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.tech-stack i:hover {
    transform: translateY(-5px);
}

.tech-more {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding-left: 5px;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: help;
}

.tech-more:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateX(5px);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.subtitle.justified {
    text-align: justify;
    hyphens: auto;
}

/* Social Buttons */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;

    /* Base State - Glassy */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);

    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-btn i {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

/* Elegant Hover Effect */
.social-btn:hover {
    transform: translateY(-3px) scale(1.01);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Specific Brand Glows (Subtle) */
.social-btn.github:hover {
    box-shadow: 0 10px 20px -10px rgba(255, 255, 255, 0.2);
}

.social-btn.linkedin:hover {
    box-shadow: 0 10px 20px -10px rgba(0, 119, 181, 0.3);
    color: #fff;
    /* Keeping text white for consistency/elegance */
    border-color: rgba(0, 119, 181, 0.4);
}

.social-btn.linkedin:hover i {
    color: #0077b5;
}

/* Icon keeps brand color */

.social-btn.credly:hover {
    box-shadow: 0 10px 20px -10px rgba(255, 107, 0, 0.3);
    color: #fff;
    border-color: rgba(255, 107, 0, 0.4);
}

.social-btn.credly:hover i {
    color: #ff6b00;
}

/* Icon gentle rotation on hover */
.social-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Featured Projects */
.featured-projects {
    margin-bottom: 40px;
    text-align: left;
}

.featured-projects h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 15px;
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.3);
}

.project-icon {
    width: 40px;
    height: 40px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
}

.project-info {
    flex: 1;
}

.project-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
}

.project-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.arrow-icon {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.project-card:hover .arrow-icon {
    transform: translate(3px, -3px);
    color: var(--accent);
}

/* Contact Section */
.contact-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-bottom: 20px;
}

.contact-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.contact-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: #7dd3fc;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.contact-link:hover::after {
    width: 100%;
}


footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

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

footer p {
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.8rem;
    margin: 0;
}

/* Responsive */
@media (min-width: 600px) {
    .social-links {
        flex-direction: row;
        justify-content: center;
    }

    .social-btn {
        flex: 1;
        flex-direction: column;
        padding: 20px;
    }

    .social-btn i {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
}

/* Mobile Compact View */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .glass-card {
        padding: 25px 20px;
    }

    h1 {
        font-size: 1.2rem;
        /* Smaller title */
        margin-bottom: 15px;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .tech-stack {
        margin: 10px 0 20px 0;
        gap: 15px;
    }

    .tech-stack i {
        font-size: 1.8rem;
        /* Slightly smaller icons */
    }

    .social-links {
        gap: 10px;
        margin-bottom: 25px;
    }

    .social-btn {
        padding: 12px;
        /* More compact buttons */
    }

    .featured-projects {
        margin-bottom: 25px;
    }

    .logo-img {
        width: 70px;
        height: 70px;
    }

    .top-nav {
        top: 10px;
        right: 10px;
        gap: 8px;
    }

    .deployment-status {
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .lang-switch {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}