/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-top: 70px;
    /* Offset for navbar */
    overflow: hidden;
}

/* Nav Ticker */
.nav-ticker {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    padding: 0 1rem;
    border-radius: 50px;
    font-family: var(--font-outfit);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    overflow: hidden;
    height: 30px;
    margin: 0 0.5rem 0 0;
}

.nav-ticker-label {
    color: var(--color-text-muted);
    padding-right: 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.nav-ticker-track {
    position: relative;
    height: 30px;
    width: 120px;
    /* Width to accommodate project names */
}

.nav-ticker-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--color-yellow);
    height: 30px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    opacity: 0;
    animation: tickerFadeOutIn 12s infinite;
}

.nav-ticker-item:nth-child(1) {
    animation-delay: 0s;
}

.nav-ticker-item:nth-child(2) {
    animation-delay: 4s;
}

.nav-ticker-item:nth-child(3) {
    animation-delay: 8s;
}

@keyframes tickerFadeOutIn {

    0%,
    5% {
        opacity: 0;
        transform: translateY(10px);
    }

    10%,
    28% {
        opacity: 1;
        transform: translateY(0);
    }

    33%,
    38% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 0;
    }
}

@media screen and (max-width: 1024px) {
    .nav-ticker {
        display: none;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: top;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

/* .badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-family: var(--font-outfit);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}*/

.display-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    font-family: var(--font-outfit);
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Visual (Mandala/Petals) */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-transparent {
    width: 380px;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    transition: var(--transition-normal);
}

.hero-avatar-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.fallback-avatar-icon {
    font-size: 18rem;
    color: var(--color-yellow);
    position: absolute;
    bottom: 0;
    z-index: 1;
    opacity: 0.5;
}

.mandala-petals {
    position: relative;
    width: 300px;
    height: 300px;
    animation: rotateSlow 40s linear infinite;
}

.petal {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px solid;
    border-radius: 0 50% 50% 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    background-color: rgba(11, 17, 32, 0.4);
    backdrop-filter: blur(4px);
    transition: var(--transition-normal);
}

.petal:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

.petal-1 {
    top: 0;
    left: 0;
    border-color: var(--color-yellow);
    color: var(--color-yellow);
    transform: rotate(45deg);
}

.petal-2 {
    top: 0;
    right: 0;
    border-color: var(--color-pink);
    color: var(--color-pink);
    transform: rotate(135deg);
}

.petal-3 {
    bottom: 0;
    right: 0;
    border-color: var(--color-yellow);
    color: var(--color-yellow);
    transform: rotate(225deg);
}

.petal-4 {
    bottom: 0;
    left: 0;
    border-color: var(--color-pink);
    color: var(--color-pink);
    transform: rotate(315deg);
}

/* Reverse animation for icons so they stay upright-ish */
.petal i {
    animation: rotateReverseSlow 40s linear infinite;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateReverseSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.hero-bottom-decoration {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    opacity: 0.6;
}

/* =========================================================================
   About Section
   ========================================================================= */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hexagon-clip {
    width: 380px;
    height: 420px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(to bottom, var(--color-darker-bg), #1e293b);
    border: 2px solid var(--color-yellow);
    /* Hex border approximation */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
}

.est-badge {
    position: absolute;
    bottom: -1rem;
    right: 20%;
    background-color: var(--color-primary-bg);
    border: 1px solid var(--color-yellow);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-align: right;
    color: var(--color-text-muted);
}

.est-text {
    color: var(--color-yellow);
    font-family: var(--font-outfit);
    font-weight: 600;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.info-badge {
    background-color: var(--color-primary-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =========================================================================
   Skills Tree
   ========================================================================= */
.skills-title {
    font-family: var(--font-playfair);
    font-size: 2.5rem;
    color: var(--color-text-main);
}

.skills-subtitle {
    font-family: var(--font-outfit);
    color: var(--color-text-muted);
    margin-bottom: 4rem;
}

.skills-tree {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
    margin: 0 auto;
}

.skills-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background-color: rgba(11, 17, 32, 0.8);
    border: 2px solid var(--color-yellow);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 0 30px rgba(252, 211, 77, 0.2);
}

.skills-center i {
    font-size: 2.5rem;
    color: var(--color-yellow);
    margin-bottom: 0.5rem;
}

.skills-center span {
    font-family: var(--font-outfit);
    font-weight: 700;
    color: var(--color-white);
}

.skills-center small {
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

.skill-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    z-index: 5;
    transition: var(--transition-normal);
}

.skill-node:hover {
    transform: scale(1.1);
}

.node-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.skill-node h4 {
    font-family: var(--font-outfit);
    font-size: 0.9rem;
    color: var(--color-text-main);
    margin-bottom: 0.25rem;
}

.skill-node p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* Positioning of nodes around the center circle */
.node-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.node-top:hover {
    transform: translateX(-50%) scale(1.1);
}

.node-right {
    top: 25%;
    right: 5%;
}

.node-bottom-right {
    bottom: 10%;
    right: 15%;
}

.node-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.node-bottom:hover {
    transform: translateX(-50%) scale(1.1);
}

.node-bottom-left {
    bottom: 10%;
    left: 15%;
}

.node-left {
    top: 25%;
    left: 5%;
}

/* =========================================================================
   Timeline / Experience Section
   ========================================================================= */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* The vertical line in the middle */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--color-yellow);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    opacity: 0.5;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-yellow);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 15px;
    z-index: 1;
    font-size: 1rem;
}

.left .timeline-dot {
    right: -18px;
}

.right .timeline-dot {
    left: -18px;
}

.timeline-content {
    background-color: var(--color-card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--color-pink);
    position: relative;
    transition: var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-yellow);
}

.timeline-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.4rem;
    color: var(--color-text-main);
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.timeline-tasks {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.timeline-item.left .timeline-tasks {
    list-style-type: none;
    padding: 0;
}

.timeline-item.right .timeline-tasks {
    list-style-type: none;
    padding: 0;
}

.timeline-tasks li {
    margin-bottom: 0.5rem;
    position: relative;
}

/* Bullet points logic for alignment */
.timeline-item.right .timeline-tasks li {
    padding-left: 1.25rem;
}

.timeline-item.right .timeline-tasks li::before {
    content: "•";
    color: var(--color-yellow);
    position: absolute;
    left: 0;
}

.timeline-item.left .timeline-tasks li {
    padding-right: 1.25rem;
}

.timeline-item.left .timeline-tasks li::after {
    content: "•";
    color: var(--color-yellow);
    position: absolute;
    right: 0;
}


/* =========================================================================
   Projects Section
   ========================================================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: var(--color-card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.project-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-header h4 {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.project-image-placeholder {
    height: 180px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Image Placeholder Gradients */
.p-gradient-1 {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

.p-gradient-2 {
    background: linear-gradient(135deg, #3730a3, #0f172a);
}

.p-gradient-3 {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.p-gradient-4 {
    background: linear-gradient(135deg, #581c87, #0f172a);
}

.glow-orb {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(8px);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.65rem;
    font-family: var(--font-outfit);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--color-text-muted);
}

.project-links {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-links a {
    font-family: var(--font-outfit);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-yellow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-links a:hover {
    color: #fff;
}

/* =========================================================================
   Contact & Utilities
   ========================================================================= */
.icon-spin {
    animation: spinSlow 10s linear infinite;
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hover-white:hover {
    color: var(--color-text-main) !important;
}

/* =========================================================================
   Responsive Adjustments
   ========================================================================= */
@media screen and (max-width: 1024px) {
    .display-title {
        font-size: 3.5rem;
    }

    .hero-container {
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .display-title {
        font-size: 2.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        height: auto;
        padding-top: 2rem;
    }

    .avatar-transparent {
        width: 280px;
        height: 310px;
        margin: 0 auto;
    }

    .fallback-avatar-icon {
        font-size: 13rem;
    }

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

    .about-content {
        text-align: center;
    }

    .badge-group {
        justify-content: center;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 1rem;
        text-align: left;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 15px;
    }

    .timeline-item.left .timeline-tasks li {
        padding-right: 0;
        padding-left: 1.25rem;
    }

    .timeline-item.left .timeline-tasks li::after {
        display: none;
    }

    .timeline-item.left .timeline-tasks li::before {
        content: "•";
        color: var(--color-yellow);
        position: absolute;
        left: 0;
    }

    /* Skill Tree Mobile Reset */
    .skills-tree {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding-bottom: 4rem;
    }

    .skills-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto 1rem;
    }

    .skill-node {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .skills-connections {
        display: none;
    }
}