@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap);
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Darumadrop+One&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background-color: #f7fafc;
    color: #2d3748;
    font-family: 'Poppins', sans-serif;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    z-index: 10;
    color: white;
}

nav.blur-bg {
    color: #718096;
    background-color: rgba(255, 255, 255, 0.917);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease-in-out, backdrop-filter 0.3s ease-in-out;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #5a67d8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    position: relative;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #667eea;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
}

.menu-btn {
    color: #718096;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-btn:hover {
    color: #2d3748;
}

.mobile-menu {
    display: none;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu-links {
    padding: 0.5rem;
}

.mobile-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: #718096;
    text-decoration: none;
    border-radius: 0.375rem;
}

.mobile-link:hover {
    color: #2d3748;
    background-color: #f7fafc;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding-top: 7rem;
    padding-bottom: 3rem;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 .8rem;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    width: 70%;
    margin-bottom: 2.5rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-title span {
    color: #c3dafe;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: .85rem;
    color: #ebf4ff;
    margin-bottom: 2rem;
    max-width: 32rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    font-size: .8rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
    border: 1px solid #ffffff;
}

.btn.primary {
    background-color: #ffffff;
    color: #5a67d8;
}

.btn.primary:hover {
    background-color: #f7fafc;
}

.btn.secondary {
    color: #ffffff;
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn:active {
    transform: scale(.9);
}

.hero-image {
    width: 50%;
    display: flex;
    justify-content: center;
}

.hero-image-container {
    width: 16rem;
    height: 16rem;
    background-color: #5a67d8;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.hero-animation {
    animation: bounce 3.5s ease-in-out infinite;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, #a3bffa, #9f7aea);
    opacity: 0.8;
}

.hero-image-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #ffffff;
    opacity: 0.3;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}



/* About Section */
.about {
    padding: 1rem 0;
    background-color: #ffffff;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
}

.section-divider {
    width: 5rem;
    height: 0.25rem;
    background-color: #5a67d8;
    margin: 0 auto;
    margin-bottom: 1.5rem;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    /* Adjust as needed */
    margin: 0 auto;

}

.about-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
    width: 20rem;
    height: 16rem;
    margin: auto;
}

.about-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    /* Image sits between back and front squares */
}

.square {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* Semi-transparent white border */
    background: rgba(0, 102, 255, 0.173);
    /* Subtle transparent background */
}

.square-large {
    width: 150px;
    height: 150px;
}

.square-medium {
    width: 100px;
    height: 100px;
}

.square-small {
    width: 50px;
    height: 50px;
}

.square-back {
    z-index: 1;
    /* Behind the image */
}

.square-front {
    z-index: 3;
    /* In front of the image */
}

/* Positioning for each square */
.square-large.square-back {
    top: -20px;
    left: -20px;
}

.square-medium.square-back {
    bottom: 10px;
    right: -10px;
}

.square-small.square-back {
    top: 30px;
    right: 20px;
}

.square-large.square-front {
    bottom: -10px;
    right: 30px;
}

.square-medium.square-front {
    top: 20px;
    left: 50px;
}

.square-small.square-front {
    bottom: 50px;
    left: 10px;
}

.about-content {
    width: 66%;
}

.about-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.about-text {
    color: #718096;
    margin-bottom: 1.5rem;
    font-size: .85rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-item {
    display: flex;
    align-items: flex-start;
}

.about-icon-container {
    background-color: #ebf4ff;
    padding: 0.5rem;
    border-radius: 50%;
    margin-right: 1rem;
}

.about-icon {
    color: #5a67d8;
}

.about-item-title {
    font-weight: 500;
    color: #2d3748;
}

.about-item-text {
    color: #718096;
    font-size: 0.75rem;
}

.about-link {
    color: #5a67d8;
    font-weight: 500;
    font-size: .8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.about-link:hover {
    color: #2c5282;
}

/* Skills Section */
.skills {
    padding: 1.5rem 0;
    background-color: #f7fafc;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.skills-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-size: .875rem;
    font-weight: 500;
    color: #4a5568;
}

.skill-percentage {
    font-size: .7rem;
    color: #718096;
}

.skill-bar-container {
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 9999px;
    height: 0.625rem;
}

.skill-bar {
    height: 0.625rem;
    background-color: #5a67d8;
    border-radius: 9999px;
}

.skills-competencies {
    margin-top: 1rem;
}

.competencies-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
}

.competencies-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.competency-item {
    background-color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.competency-item span {
    font-size: .7rem;
    text-align: center;
}

.competency-icon {
    color: #5a67d8;
    margin-right: 0.5rem;
}

/* Projects Section */
.projects {
    padding: 1rem 0;
    background-color: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
}

.project-image {
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    img {
        height: 100%;
        width: 100%;
    }
}

.project-image.bg-indigo {
    background-color: #ebf4ff;
}

.project-image.bg-blue {
    background-color: #bee3f8;
}

.project-image.bg-purple {
    background-color: #e9d8fd;
}

.project-meta {
    display: grid;
    grid-template-columns: 2fr 2fr;
    margin-bottom: 1rem;
}

.meta-info {
    color: #6b7280;
    margin-right: 1rem;
    font-size: .8rem;
    display: flex;
    flex-direction: column;
}

.meta-label {
    text-transform: uppercase;
    font-weight: bold;
    font-size: .65rem;
}

.meta-info i {
    margin-right: 0.5rem;
}

.meta-row {
    color: #6b7280;
    margin-right: 1rem;
    font-size: .8rem;
    margin-bottom: 1rem;
}

.meta-link {
    color: #4f46e5;
    text-decoration: none;
    margin-left: 0.25rem;
}

.meta-link:hover {
    text-decoration: underline;
}


.project-icon {
    font-size: 3.5rem;
    opacity: 0.5;
}

.project-icon.indigo {
    color: #5a67d8;
}

.project-icon.blue {
    color: #3182ce;
}

.project-icon.purple {
    color: #805ad5;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.project-text {
    font-size: .8rem;
    color: #718096;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.project-tag.indigo {
    background-color: #ebf4ff;
    color: #5a67d8;
}

.project-tag.blue {
    background-color: #bee3f8;
    color: #3182ce;
}

.project-tag.purple {
    background-color: #e9d8fd;
    color: #805ad5;
}

.project-links {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-link {
    color: #5a67d8;
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: right;
}

.project-link:hover {
    color: #2c5282;
}

.project-link.blue {
    color: #3182ce;
}

.project-link.blue:hover {
    color: #2b6cb0;
}

.project-link.purple {
    color: #805ad5;
}

.project-link.purple:hover {
    color: #6b46c1;
}

.projects-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid #5a67d8;
    color: #5a67d8;
    font-weight: 500;
    font-size: .8rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
}

.projects-btn:hover {
    background-color: #ebf4ff;
}

/* Timelime Section */
.dev-journey {
    padding: 1rem 0;
}

/* Contact Section */
.contact {
    padding: 1rem 0;
    background-color: #ffffff;
}

.contact-flex {
    display: flex;
    gap: 2rem;
}

.contact-info {
    width: 50%;
    margin-bottom: 2.5rem;
}

.contact-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.contact-text {
    color: #718096;
    font-size: .875rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon-container {
    background-color: #ebf4ff;
    padding: 0.75rem;
    border-radius: 50%;
    margin-right: 1rem;
}

.contact-icon {
    color: #5a67d8;
}

.contact-item-title {
    font-weight: 500;
    font-size: .875rem;
    color: #2d3748;
}

.contact-item-text {
    font-size: .8rem;
    color: #718096;
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    color: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-link.github {
    background-color: #2d3748;
}

.social-link.github:hover {
    background-color: #1a202c;
}

.social-link.linkedin {
    background-color: #3182ce;
}

.social-link.linkedin:hover {
    background-color: #2b6cb0;
}

.social-link.whatsapp {
    background-color: #6aed63;
}

.social-link.whatsapp:hover {
    background-color: #42e152;
}

.social-link.youtube {
    background-color: #e53e3e;
}

.social-link.youtube:hover {
    background-color: #c53030;
}

.contact-form {
    width: 50%;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 0.rem;
    font-size: .9rem;
}

.form-input,
.form-textarea {
    width: 100%;
    font-size: .8rem;
    padding: 0.8rem .6rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input::placeholder,
.form-textarea::placeholder {
    font-size: .7rem;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #5a67d8;
    box-shadow: 0 0 0 2px rgba(90, 103, 216, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 6rem;
}

.form-submit {
    width: 100%;
    background-color: #5a67d8;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: .85rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-submit:hover {
    background-color: #4c51bf;
}

.form-submit:active {
    transform: scale(0.98);
}

/* Footer */
footer {
    background-color: #1a202c;
    color: #ffffff;
    padding: 3rem 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-info {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    color: #a0aec0;
    max-width: 28rem;
    font-size: .8rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-link {
    font-size: .8rem;
    color: #a0aec0;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    color: #a0aec0;
    text-decoration: none;
    font-size: 1.25rem;
    transition: color 0.3s;
}

.footer-social-link:hover {
    color: #ffffff;
}

.footer-email {
    color: #a0aec0;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: .8rem;
    margin-top: 1.5rem;
    transition: color 0.3s;
}

.footer-email:hover {
    color: #ffffff;
}

.footer-divider {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
}

.footer-copyright {
    color: #a0aec0;
    font-size: 0.8rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .mobile-menu.show {
        display: block;
    }

    .section-title {
        font-size: 1.45rem;
    }

    .hero-flex,
    .about-flex,
    .contact-flex {
        flex-direction: column;
    }

    .nav-container {
        padding: 0 .5rem;
    }

    .hero-content,
    .hero-image,
    .about-content,
    .about-image-container,
    .contact-info,
    .contact-form {
        width: 100%;
    }

    /*     .hero-title {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    } */

    .hero-image-container {
        width: 12rem;
        height: 12rem;
    }

    .hero-image-icon {
        font-size: 4rem;
    }

    .btn {
        padding: 0.75rem .8rem;
    }

    .about-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-flex,
    .footer-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding-top: 9rem;
        padding-bottom: 5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.75rem;
    }

    .hero-image-container {
        width: 20rem;
        height: 20rem;
    }
}