/* ------------------------------
   HERO SECTION STYLES
--------------------------------*/

.hero-section .hero-container {
    width: 80%;
    margin: 0 auto;
}

.hero-section .hero-container .gridview {
    height: 700px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 0.7rem;
}

.gridcolumn {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    background-color: var(--grid-bg);
    color: var(--text-color);
    font-size: 15px;
}

.extra-content {
    padding: 20px;
}

/* Media Cell with Background Image */
.media-cell {
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.media-cell * {
    position: relative;
    z-index: 2;
}

.media-cell::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--carousel-image);
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: background-image 0.3s ease, opacity 0.3s ease;
}

/* Grid Positioning */
.gcel1 {
    grid-column: span 2;
    grid-row: span 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.gcel2 {
    grid-column: span 3;
    grid-row: span 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.gcel4 {
    grid-column: span 2;
    grid-row: span 5;
    background-color: var(--primary-color);
}

.gcel4 .extra-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gcel4 .intro {
    padding: 10px;
}

.gcel4 .intro h1 {
    font-size: var(--font-1xl);
    margin: 0;
    color: var(--text-color);
}

.gcel4 .intro p {
    font-size: var(--font-xl);
}

.gcel4 .gbubble {
    position: absolute;
    height: 200px;
    width: 200px;
    right: -15%;
    bottom: -15%;
    border-radius: 50%;
    background: var(--eq-bar-color);
}

.gcel5 {
    grid-column: span 2;
    grid-row: span 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.gcel5 .extra-content h2 {
    text-align: center;
    font-size: var(--font-xl);
    margin-top: 0.3rem;
}

.resumebox {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Resume Button Styles */
.theme-aware-resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    color: var(--button-text) !important;
    font-family: inherit;
    font-weight: 600;
    background-color: var(--primary-color);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.theme-aware-resume-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-aware-resume-btn:active {
    transform: translateY(0);
}

.theme-aware-resume-btn:hover .btn-icon {
    transform: translateX(3px) rotate(10deg);
    transition: transform 0.3s ease;
}

.btn-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Consistent Styling for gcel3 */
.gcel3 {
    grid-column: span 3;
    grid-row: span 6;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    /* min-height: 100vh; */
    /* background: linear-gradient(to bottom, transparent 23px, #aaa 24px),
        linear-gradient(to right, transparent 23px, #aaa 24px);
    background-size: 24px 24px; */
}

/* Adjust padding and gap to reduce content height */
.gcel3 .extra-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    box-sizing: border-box;
}

/* Side-by-Side Layout for Socials and Contact */
.social-contact-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.socials-section,
.contact-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 250px; /* Ensure sections don’t collapse too much */
}

.socials-section h2,
.contact-section h2,
.skills-section h2 {
    font-size: var(--font-xl);
    color: var(--text-color);
    margin-bottom: 0.5rem;
    position: relative;
    text-align: center;
}

.socials-section h2::after,
.contact-section h2::after,
.skills-section h2::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--eq-bar-color)
    );
    border-radius: 2px;
}

/* Social Links Styles */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        rgba(106, 48, 147, 0.8) 100%
    );
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.social-link:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--eq-bar-color) 0%, #a3e3ff 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.social-link:focus {
    outline: 2px solid #a3e3ff;
    outline-offset: 2px;
}

.social-icon {
    width: 28px;
    height: 28px;
    fill: var(--button-text);
    color: var(--button-text);
}

/* Contact Link Styles */
.contact-link {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.theme-aware-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 12px;
    color: var(--button-text) !important;
    font-family: inherit;
    font-weight: 600;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        rgba(106, 48, 147, 0.8) 100%
    );
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-aware-contact-btn:hover {
    background: linear-gradient(135deg, var(--eq-bar-color) 0%, #a3e3ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-aware-contact-btn:focus {
    outline: 2px solid #a3e3ff;
    outline-offset: 2px;
}

.theme-aware-contact-btn:active {
    transform: translateY(0);
}

.theme-aware-contact-btn:hover .btn-icon {
    transform: translateX(3px) rotate(10deg);
    transition: transform 0.3s ease;
}

/* HR Styles */
.gcel3 hr {
    width: 60%;
    margin: 0.75rem auto;
    border: none;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary-color),
        transparent
    );
}

/* Skills Section Styles */
.skills-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-category {
    width: 100%;
    margin-bottom: 1rem;
}

.skills-category h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skills-snapshot {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.skill-tag {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.skill-tag:focus {
    outline: 2px solid #a3e3ff;
    outline-offset: 2px;
}

/* Unique Gradients for Each Skill */
.skill-tag[data-skill="html"] {
    background: linear-gradient(
        135deg,
        #e34c26 0%,
        #f06529 100%
    ); /* HTML orange */
}

.skill-tag[data-skill="css"] {
    background: linear-gradient(
        135deg,
        #264de4 0%,
        #2965f1 100%
    ); /* CSS blue */
}

.skill-tag[data-skill="javascript"] {
    background: linear-gradient(
        135deg,
        #f0db4f 0%,
        #e4c93f 100%
    ); /* JavaScript yellow */
}

.skill-tag[data-skill="react"] {
    background: linear-gradient(
        135deg,
        #61dafb 0%,
        #00d8ff 100%
    ); /* React cyan */
}

.skill-tag[data-skill="nextjs"] {
    background: linear-gradient(
        135deg,
        #000000 0%,
        #333333 100%
    ); /* Next.js black */
}

.skill-tag[data-skill="nodejs"] {
    background: linear-gradient(
        135deg,
        #3c873a 0%,
        #68a063 100%
    ); /* Node.js green */
}

.skill-tag[data-skill="docker"] {
    background: linear-gradient(
        135deg,
        #0db7ed 0%,
        #2496ed 100%
    ); /* Docker blue */
}

.skill-tag[data-skill="tailwind"] {
    background: linear-gradient(
        135deg,
        #38bdf8 0%,
        #06b6d4 100%
    ); /* Tailwind teal */
}

.skill-tag[data-skill="gsap"] {
    background: linear-gradient(
        135deg,
        #88ce02 0%,
        #66a103 100%
    ); /* GSAP green */
}

.skill-tag[data-skill="animejs"] {
    background: linear-gradient(
        135deg,
        #ff4d4d 0%,
        #ff6666 100%
    ); /* Anime.js red */
}

.skill-tag[data-skill="restapi"] {
    background: linear-gradient(
        135deg,
        #6a3093 0%,
        #a044ff 100%
    ); /* REST API purple */
}

.skill-tag[data-skill="mongodb"] {
    background: linear-gradient(
        135deg,
        #4db33d 0%,
        #3f9c35 100%
    ); /* MongoDB green */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gcel3 .extra-content {
        padding: 1rem;
        gap: 1rem;
    }

    .social-contact-wrapper {
        flex-direction: column; /* Stack vertically on mobile */
        align-items: center;
    }

    .socials-section,
    .contact-section {
        width: 100%;
        color: var(--text-color);
        min-width: unset;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-icon {
        width: 24px;
        height: 24px;
    }

    .theme-aware-contact-btn {
        padding: 8px 20px;
    }

    .skill-tag {
        font-size: 0.9rem;
        padding: 5px 10px;
    }

    .skills-snapshot {
        gap: 0.5rem;
    }
}
.herocolumn-container {
    text-align: center;
    max-width: 800px;
}

.typing-container {
    display: inline-block;
    position: relative;
    /* min-width: 120px; */
    height: 1.2em;
    vertical-align: top;
}

.typing-text {
    background: linear-gradient(45deg, var(--primary-color), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    display: inline-block;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--primary-color);
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: top;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .typing-container {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .typing-container {
        min-width: 80px;
    }
}

.email-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.email-container:hover {
    transform: translateY(-5px);
}

.email-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.email-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.email-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.copy-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.copy-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.copy-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #50e3c2;
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.copy-feedback.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(80, 227, 194, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .email-container {
        padding: 1.5rem;
    }

    .email-content {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 8px;
    }

    .email-text {
        font-size: 1rem;
    }
}

.lava-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
}

.lava-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    opacity: 0.7;
    /* No transition; rely on JavaScript lerp */
}

.blob:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation: float-1 12s infinite ease-in-out;
}

.blob:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 60%;
    animation: float-2 10s infinite ease-in-out;
}

.blob:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 30%;
    animation: float-3 14s infinite ease-in-out;
}

.card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: var(--card-bg-overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    color: var(--text-color);
    text-align: center;
}

.card-content h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: var(--text-color);
}

.card-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--secondary-text);
}

/* Organic float animations for each blob */
@keyframes float-1 {
    0% {
        top: 20%;
        left: 10%;
    }
    25% {
        top: 40%;
        left: 15%;
    }
    50% {
        top: 60%;
        left: 12%;
    }
    75% {
        top: 30%;
        left: 8%;
    }
    100% {
        top: 20%;
        left: 10%;
    }
}

@keyframes float-2 {
    0% {
        top: 50%;
        left: 60%;
    }
    25% {
        top: 70%;
        left: 55%;
    }
    50% {
        top: 40%;
        left: 65%;
    }
    75% {
        top: 60%;
        left: 58%;
    }
    100% {
        top: 50%;
        left: 60%;
    }
}

@keyframes float-3 {
    0% {
        top: 70%;
        left: 30%;
    }
    25% {
        top: 50%;
        left: 35%;
    }
    50% {
        top: 80%;
        left: 25%;
    }
    75% {
        top: 60%;
        left: 32%;
    }
    100% {
        top: 70%;
        left: 30%;
    }
}

/* Disable animations during hover and return */
.lava-card:hover .blob,
.blob.returning {
    animation: none;
}
