
/*
 * Google Fonts: Poppins
 * Used for all text on the page for a modern, clean look.
 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
        font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        color: #e4e6ea;
        background-color: #0a0a0a;
        background-image:
            linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
        background-size: 32px 32px;
        min-height: 100vh;
        padding: 2rem;
        position: relative;
        overflow-x: hidden;
}

body::before {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Bento Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
    width: 100%;
}

/* Card base styles */
.card {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    min-width: 0;
    opacity: 0;
    animation: fade-in 1s forwards;
    z-index: 1;
}

.card:hover {
    transform: translateY(-4px);
    background: rgba(30, 30, 30, 0.4);
    border-color: rgba(253, 54, 110, 0.2);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.15),
        0 0 8px 1px rgba(253, 54, 110, 0.25);
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Bento-style grid item spans */
.hero {
    grid-column: 1 / span 12;
    grid-row: span 3;
    background: rgba(20, 20, 20, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation-delay: 0.1s;
}

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(50, 3fr);
    grid-template-rows: repeat(25, 3fr);
    gap: 1px;
    z-index: 0;
    pointer-events: none;
}

.star {
    width: 1px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: transform 0.3s ease-out, background-color 0.3s ease-out;
    will-change: transform, background-color, box-shadow;
}

.star.glowing {
    background-color: #ffffff;
    transform: scale(3);
    box-shadow: 0 0 10px 0px rgba(253, 54, 110, 1);
    transition: transform 0.1s ease-out, background-color 0.1s ease-out;
}

/* New blinking animation for mobile */
@keyframes blink {
    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

.star.blinking {
    animation: blink 2s infinite ease-in-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #fd366e 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1;
}

.hero .tagline {
    font-size: 1.3rem;
    color: #fd366e;
    font-weight: 500;
    margin-bottom: 0.5rem;
    z-index: 1;
}

.hero .subtitle {
    font-size: 1rem;
    color: #a0a0a0;
    max-width: 400px;
    margin: 0 auto;
    z-index: 1;
}

.resume-button {
    margin-top: 1.5rem;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: #ffffff;
    background: #fd366e;
    border-radius: 8px;
    border: 1px solid #fd366e;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.resume-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fd366e;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
}

.resume-button:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(253, 54, 110, 0.2);
    color: #fff;
}

.resume-button:hover::after {
    transform: translateX(0);
}

.resume-button:focus {
    outline: 2px solid #fd366e;
    outline-offset: 4px;
}

/* Profile Section */
.profile {
    grid-column: 1 / span 4;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(253, 54, 110, 0.1) 0%, rgba(20, 20, 20, 0.8) 100%);
    justify-content: center;
    align-items: center;
    text-align: center;
    animation-delay: 0.2s;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #fd366e, #ff6b9d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }

    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
}

.profile-status {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.about {
    grid-column: 5 / span 4;
    grid-row: span 2;
    animation-delay: 0.3s;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-emoji {
    font-size: 1.2rem;
}

.about p {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.focus {
    grid-column: 9 / span 4;
    grid-row: span 2;
    animation-delay: 0.4s;
}

.focus-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.focus-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(253, 54, 110, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(253, 54, 110, 0.1);
    transition: all 0.3s ease;
}

.focus-item:hover {
    background: rgba(253, 54, 110, 0.1);
    border-color: rgba(253, 54, 110, 0.2);
}

.skills {
    grid-column: 1 / span 4;
    grid-row: span 3;
    animation-delay: 0.5s;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(253, 54, 110, 0.05);
    border-color: rgba(253, 54, 110, 0.2);
    transform: translateY(-2px);
}

.projects {
    grid-column: 5 / span 8;
    grid-row: span 3;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    animation-delay: 0.6s;
}

.projects h2 {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(253, 54, 110, 0.2);
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.project-description {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-tag {
    font-size: 0.75rem;
    color: #fd366e;
    background: rgba(253, 54, 110, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(253, 54, 110, 0.2);
}

.contact {
    grid-column: 1 / span 6;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(253, 54, 110, 0.05) 0%, rgba(20, 20, 20, 0.8) 100%);
    animation-delay: 0.7s;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-item:hover {
    background: rgba(253, 54, 110, 0.1);
    border-color: rgba(253, 54, 110, 0.3);
    transform: translateY(-2px);
}

.contact-item:focus {
    outline: 2px solid #fd366e;
    outline-offset: 4px;
}

.contact-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-label {
    font-size: 0.8rem;
    color: #a0a0a0;
}

.learning {
    grid-column: 7 / span 6;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.05) 0%, rgba(20, 20, 20, 0.8) 100%);
    animation-delay: 0.8s;
}

.learning-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.learning-icon {
    font-size: 2rem;
}

.learning-text {
    flex: 1;
}

.learning-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.learning-subtitle {
    font-size: 0.85rem;
    color: #4ade80;
}

/* Mouse Follower Styles - Single Implementation */
.mouse-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 35px;
    height: 35px;
    background: transparent;
    border-radius: 50%;
    pointer-events: none;
        z-index: 2147483647;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease-in-out;
    box-shadow: none;
    border: 2px solid #fd366e;
    background: transparent;
    /* No animation, no gradient */
    display: flex;
    justify-content: center;
    align-items: center;
}
.mouse-follower::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 7px;
    width: 21px;
    height: 21px;
    border: 1.5px solid #fd366e;
    border-radius: 50%;
    pointer-events: none;
    box-sizing: border-box;
    transform: translate(var(--inner-ring-x, 0), var(--inner-ring-y, 0));
}
.mouse-follower.visible {
    opacity: 1;
}
.inner-follower {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: none;
    pointer-events: none;
}
/* Responsive Design */

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero,
    .profile,
    .about,
    .focus,
    .skills,
    .projects,
    .contact,
    .learning {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .hero,
    .profile,
    .about,
    .focus,
    .skills,
    .projects,
    .contact,
    .learning {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}