:root {
    --primary-blue: #007BFF;
    --primary-purple: #9c27b0;
    --secondary-bg-light: #f5f8ff;
    --text-dark: #212529;
    --text-medium: #6c757d;
    --card-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    --gradient-light-pink: linear-gradient(135deg, #fceaff 0%, #a6d9ff 100%);
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    font-weight: 700;
}

/* --- Header / Hero Section --- */
.hero-section {
    background: var(--gradient-light-pink);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    text-align: left;
    padding-top: 40px;
}

.hero-text {
    max-width: 500px;
}

.hero-text h4,
.hii {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.hero-text h1 {
    font-size: 3.5rem;
    margin: 0;
    line-height: 1.1;
}

.name-blue {
    color: var(--primary-blue);
}

.hero-text p.role {
    font-size: 1.25rem;
    margin-top: 5px;
    font-weight: 600;
}

.hero-text p.description {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--text-medium);
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: var(--card-shadow);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #fff;
    border: 2px solid var(--primary-blue);
    display: flex;
    align-items: center;
}

.btn-secondary {
    background-color: #fff;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    display: flex;
    align-items: center;
}

.btn:hover {
    transform: translateY(-2px);
}

.hero-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: #fff;
    /* Placeholder background for image */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-icons {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.social-icon {
    text-decoration: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, color 0.3s;
}

.social-icon:hover {
    background-color: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

/* --- About Me Section --- */
.section {
    padding: 80px 0;
    background-color: #fff;
}

.section-light {
    background-color: var(--secondary-bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.section-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
}

.feature-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.card {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    flex: 1;
    max-width: 350px;
    text-align: center;
}

.card .icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.card-clean-code .icon {
    color: var(--primary-blue);
    background-color: rgba(0, 123, 255, 0.1);
}

.card-fast-perf .icon {
    color: var(--primary-purple);
    background-color: rgba(156, 39, 176, 0.1);
}

.card-team-player .icon {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-top: 0;
}

.card p {
    color: var(--text-medium);
}

.journey-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.journey-card h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.journey-card p {
    font-size: 1.25rem;
    color: var(--text-medium);
}


/* --- Skills Section --- */
.skills-section {
    background: var(--gradient-light-pink);
    padding: 80px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
}

.skill-bar {
    background-color: #e9ecef;
    border-radius: 5px;
    height: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-purple));
}

.progress-react {
    width: 95%;
}

.progress-typescript {
    width: 90%;
}

.progress-javascript {
    width: 95%;
}

.progress-nodejs {
    width: 85%;
}

.progress-htmlcss {
    width: 98%;
}

.progress-tailwind {
    width: 92%;
}

.progress-git {
    width: 88%;
}

.progress-rest {
    width: 90%;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.project-image-placeholder {
    height: 150px;
    /* Placeholder for the colorful header */
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.project-card:nth-child(1) .project-image-placeholder {
    background: linear-gradient(135deg, #0072ff 0%, #00c6ff 100%);
}

.project-card:nth-child(2) .project-image-placeholder {
    background: linear-gradient(135deg, #a03cff 0%, #ff52e0 100%);
}

.project-card:nth-child(3) .project-image-placeholder {
    background: linear-gradient(135deg, #ff4e00 0%, #ffae40 100%);
}

.project-card:nth-child(4) .project-image-placeholder {
    background: linear-gradient(135deg, #10e051 0%, #00935d 100%);
}


.project-details {
    padding: 20px;
}

.project-details h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.project-details p {
    color: var(--text-medium);
    margin-bottom: 15px;
    min-height: 40px;
    /* To keep card height consistent */
}

.tech-tags {
    margin-bottom: 15px;
}

.tech-tag {
    display: inline-block;
    background-color: var(--secondary-bg-light);
    color: var(--primary-blue);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
}

.project-actions .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.project-actions {
    margin-top: auto;
    /* Push actions to the bottom */
    display: flex;
    gap: 10px;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--secondary-bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding-bottom: 80px;
}

.contact-info {
    display: flex;
    /* flex-direction: column; */
    gap: 20px;
}

.info-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
}

.info-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
}

.info-email .icon {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-blue);
}

.info-phone .icon {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.info-location .icon {
    background-color: rgba(156, 39, 176, 0.1);
    color: var(--primary-purple);
}

.info-card h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--text-medium);
    font-weight: 500;
}

.info-card p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group .btn-primary {
    width: 100%;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1.1rem;
}

.form-group .btn-primary i {
    margin-right: 5px;
}

/* --- Footer Nav (Bottom Bar) --- */
.footer-nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    z-index: 1000;
    pointer-events: none;
    /* Allows clicks through the empty space */
}

.footer-nav {
    background-color: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    display: flex;
    gap: 30px;
    pointer-events: auto;
}

.footer-nav a {
    color: var(--text-medium);
    font-size: 1.5rem;
    padding: 5px;
    border-radius: 50%;
    transition: color 0.3s, background-color 0.3s;
}

.footer-nav a:hover,
.footer-nav a.active {
    color: var(--primary-blue);
    background-color: var(--secondary-bg-light);
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-image {
        margin-top: 40px;
        order: -1;
        /* Move image above text on mobile */
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .feature-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        max-width: 100%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}