:root {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --accent-color: #7dd3fc;
    /* Lighter Cyan (Sky-300) */
    --secondary-color: #a78bfa;
    /* Lighter Violet (Violet-400) */
    --glass-bg: rgba(30, 41, 59, 0.85);
    /* Increased opacity and slightly darker for contrast */
    --glass-border: rgba(255, 255, 255, 0.3);
    /* More visible border */
    --card-hover: rgba(56, 189, 248, 0.1);
    --font-main: 'Outfit', sans-serif;
}

.text-white {
    color: #fff;
    font-weight: 600;
}

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

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

/* Background Gradient Animation */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1e293b, #0f172a);
    z-index: -1;
}

.background-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
        radial-gradient(circle, rgba(129, 140, 248, 0.1) 0%, transparent 50%);
    background-size: 50% 50%, 50% 50%;
    background-position: 0 0, 100% 100%;
    animation: bgMove 20s linear infinite alternate;
}

@keyframes bgMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-10%, -10%);
    }
}

/* Glassmorphism Utilities */
.glass-nav,
.glass-card,
.glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-left: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Main Layout */
main {
    padding-top: 80px;
    /* Space for fixed nav */
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
}

.hero-content {
    padding: 3rem;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
}

.profile-image-container {
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-size: 3rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    border: 3px solid var(--accent-color);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero .bio {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.primary {
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn.secondary:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

/* Sections */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* About Section */
.about-section {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.about-card {
    padding: 3rem;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.about-card p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-card strong {
    color: var(--accent-color);
}

.about-content h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.about-content p {
    text-align: left;
    margin-bottom: 1rem;
}

.about-list {
    list-style: none;
    text-align: left;
    padding: 0;
    margin-bottom: 1.5rem;
}

.about-list li {
    margin-bottom: 0.8rem;
    color: #cbd5e1;
}

.about-list li strong {
    color: var(--secondary-color);
}

/* Skills Grid */
.skills-section {
    padding: 4rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.skill-card {
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    border-color: var(--accent-color);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Projects Grid */
.projects-section {
    padding: 4rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    border-color: var(--accent-color);
}

.project-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-card p {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.project-link:hover {
    gap: 0.8rem;
}

/* Footer */
.glass-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    color: #94a3b8;
}

.glass-footer i {
    color: #ef4444;
}

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

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}