/* Minimal Monotone Theme */
:root {
    --color-primary: #0a0f1c;
    --color-secondary: rgba(23, 32, 52, 0.7);
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-accent: #e2e8f0;
    --transition: all 0.3s ease;
    --skill-bg-color: rgba(23, 32, 52, 0.2);
    --skill-bg-hover-color: rgba(23, 32, 52, 0.4);
    --skill-border-color: rgba(255, 255, 255, 0.1);
    --skill-border-hover-color: rgba(255, 255, 255, 0.2);
    --skill-transition: all 0.3s ease;
    --skill-border-radius: 12px;
    --skill-padding: 1rem 1.2rem;
    --skill-icon-size: 1.8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: linear-gradient(180deg, #071014 0%, #1b4251 100%);
    font-size: 16px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: calc(100vh - 4rem);
}

/* Container and Content */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 3rem 0 2rem;
    gap: 0.5rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 300;
    letter-spacing: -0.5px;
    font-family: 'Inter', sans-serif;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

h2::after, h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    height: 2px;
    background-color: white;
    width: 100%;
    max-width: max-content;
    left: 50%;
    transform: translateX(-50%);
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
    margin: 1rem 0 1rem;
    letter-spacing: 0.5px;
}

/* Intro Section */
.intro {
    text-align: center;
    /* padding-top: 1rem; */
    margin-bottom: 0;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    margin: 0.5rem 0 1rem;
}

.location-icon {
    width: 14px;
    height: 14px;
    margin-right: 1px;
    filter: 
        invert(50%)
        sepia(10%)
        saturate(100%)
        hue-rotate(160deg)
        brightness(100%)
        contrast(90%);
}

@keyframes pin-glow {
    0% {
        filter: 
            invert(20%) 
            sepia(100%) 
            saturate(7000%) 
            hue-rotate(350deg) 
            brightness(100%) 
            contrast(112%)
            drop-shadow(0 0 4px rgba(255, 0, 0, 0.4));
    }
    100% {
        filter: 
            invert(20%) 
            sepia(100%) 
            saturate(7000%) 
            hue-rotate(350deg) 
            brightness(120%) 
            contrast(112%)
            drop-shadow(0 0 8px rgba(255, 0, 0, 0.7));
    }
}

.subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

/* Social Icons */
@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.social-container {
    margin: 0.5rem auto;
    max-width: 250px;
    text-align: center;
    background: rgba(23, 32, 52, 0.2);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-container::before,
.social-container::after {
    content: '';
    position: absolute;
    inset: -2px;
    background-image: conic-gradient(from var(--angle), #87CEEB, #E0FFFF, #00CED1, #1E90FF, #87CEEB);
    border-radius: 12px;
    z-index: -1;
    animation: 6s spin linear infinite;
}

.social-container::before {
    filter: blur(1.5rem);
    opacity: 0.5;
}

.social-container::after {
    filter: blur(1px);
    opacity: 0.2;
}

@keyframes spin {
    from {
        --angle: 0deg;
    }
    to {
        --angle: 360deg;
    }
}

.social-container:hover {
    background: rgba(23, 32, 52, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icons a {
    color: var(--color-text-muted);
    font-size: 1.4rem;
    transition: var(--transition);
}

.social-icons a:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.social-icons a.x-link {
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.social-icons a.x-link:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.social-icons .social-icon svg {
    width: 1.4rem;
    height: 1.4rem;
    transition: var(--transition);
}

.social-icons .social-icon:hover svg {
    transform: translateY(-2px);
    fill: #ffffff;
}

.social-icons .x-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    margin-bottom: -1px; /* Slight vertical adjustment */
    transition: var(--transition);
}

.social-icons .x-icon:hover svg {
    transform: translateY(-2px);
    fill: #ffffff;
}

/* Skills Section */
.skills-wrapper {
    margin: 0 -1rem;
    padding: 0.25rem 0; /* Add a small padding to prevent hover border from being cut off */
    overflow: hidden; /* Ensure padding doesn't cause unexpected scrolling */
}

.skills-container {
    margin: 2rem auto;
    max-width: 1000px;
}

.skills {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin: 0 auto;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0; /* Add vertical padding */
}

.skills::-webkit-scrollbar {
    display: none;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    transition: var(--skill-transition);
    min-width: 85px;
    background: var(--skill-bg-color);
    padding: var(--skill-padding);
    border-radius: var(--skill-border-radius);
    backdrop-filter: blur(8px);
    border: 1px solid var(--skill-border-color);
    flex: 0 0 auto;
}

.skill:hover {
    color: var(--color-text);
    transform: translateY(-2px);
    background: var(--skill-bg-hover-color);
    border-color: var(--skill-border-hover-color);
}

.skill i {
    font-size: var(--skill-icon-size);
    opacity: 0.8;
    transition: var(--skill-transition);
}

.skill:hover i {
    opacity: 1;
}

.skill span {
    font-size: 0.85rem;
    text-align: center;
}

h3 + .skills .skill {
    min-width: 100px;
    padding: 1rem 1.4rem;
}

@media screen and (max-width: 1024px) {
    .skills {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 90%;
        margin: 0 auto;
        gap: 1rem;
    }

    .skill {
        flex-basis: calc(25% - 1rem);
        max-width: calc(25% - 1rem);
    }
}

@media screen and (max-width: 768px) {
    .skills {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .skill {
        width: 80%;
        max-width: 300px;
        flex-basis: auto;
    }

    .skill i {
        font-size: 1.5rem;
    }

    .skill span {
        font-size: 0.8rem;
    }
}

/* About Section */
.about {
    max-width: 1200px;
    margin: 1rem auto 0;
    padding: 0 1rem;
}

.about-text {
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 1rem auto 0;
    text-align: center;
    /* line-height: 1.6; */
}

.about p {
    text-align: center;
    margin-bottom: 1rem;
}

.about h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 550;
    background: linear-gradient(to bottom, #68acb3, #265156);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: slowGlow 3s ease-in-out infinite;
}

@keyframes slowGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(104, 172, 179, 0.4);
    }
    50% {
        text-shadow: 0 0 15px rgba(105, 177, 185, 0.668);
    }
}

/* Projects Section */
.projects {
    width: 100%;
    padding: 3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

.project-card {
    background: rgba(23, 32, 52, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(23, 32, 52, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-image {
    height: 200px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-links {
    margin-top: 1rem;
}

.link {
    color: var(--color-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.link:hover {
    color: var(--color-text-muted);
}

.link i {
    font-size: 0.9rem;
}

.highlight {
    color: var(--color-accent);
}

/* Shooting Stars */
.shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shooting-star:nth-child(1) {
    top: 0;
    left: 75%;
    animation: shootingStar1 10s linear infinite;
    animation-delay: 0s;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.95)) 
            drop-shadow(0 0 15px rgba(64, 224, 208, 0.7));
}

.shooting-star:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 2.5px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(64, 224, 208, 0.7) 40%,
        rgba(64, 224, 208, 0.4) 70%,
        transparent);
}

.shooting-star:nth-child(2) {
    top: 0;
    left: 30%;
    animation: shootingStar2 15s linear infinite;
    animation-delay: 4s;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.75)) 
            drop-shadow(0 0 8px rgba(64, 224, 208, 0.4));
}

.shooting-star:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 1.5px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.75), 
        rgba(64, 224, 208, 0.4) 30%,
        rgba(64, 224, 208, 0.2) 60%,
        transparent);
}

.shooting-star:nth-child(3) {
    top: 0;
    left: 55%;
    animation: shootingStar3 12s linear infinite;
    animation-delay: 8s;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85)) 
            drop-shadow(0 0 12px rgba(64, 224, 208, 0.6));
}

.shooting-star:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.85), 
        rgba(64, 224, 208, 0.6) 30%,
        rgba(64, 224, 208, 0.3) 60%,
        transparent);
}

.shooting-star.right-side {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    top: 0;
    right: -20px;
    animation: shootingStarRight 10s linear infinite;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85)) 
            drop-shadow(0 0 12px rgba(64, 224, 208, 0.6));
}

.shooting-star.right-side::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.85), 
        rgba(64, 224, 208, 0.6) 30%,
        rgba(64, 224, 208, 0.3) 60%,
        transparent);
}

@keyframes shootingStar1 {
    0% {
        transform: translate(100vw, -100vh) rotate(-45deg) scale(0);
        opacity: 1;
    }
    2% {
        transform: translate(calc(-20px - 100%), -80%) rotate(-45deg) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    98% {
        transform: translate(-120vh, 100vh) rotate(-45deg) scale(0.5);
        opacity: 0.3;
    }
    100% {
        transform: translate(-120vh, 100vh) rotate(-45deg) scale(0.5);
        opacity: 0;
    }
}

@keyframes shootingStar2 {
    0% {
        transform: translate(100vw, -100vh) rotate(-45deg) scale(0);
        opacity: 1;
    }
    2% {
        transform: translate(calc(-20px - 100%), -80%) rotate(-45deg) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    98% {
        transform: translate(-120vh, 100vh) rotate(-45deg) scale(0.5);
        opacity: 0.3;
    }
    100% {
        transform: translate(-120vh, 100vh) rotate(-45deg) scale(0.5);
        opacity: 0;
    }
}

@keyframes shootingStar3 {
    0% {
        transform: translate(100vw, -100vh) rotate(-45deg) scale(0);
        opacity: 1;
    }
    2% {
        transform: translate(calc(-20px - 100%), -80%) rotate(-45deg) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    98% {
        transform: translate(-120vh, 100vh) rotate(-45deg) scale(0.5);
        opacity: 0.3;
    }
    100% {
        transform: translate(-120vh, 100vh) rotate(-45deg) scale(0.5);
        opacity: 0;
    }
}

@keyframes shootingStarRight {
    0% {
        transform: translate(100vw, -100vh) rotate(-45deg) scale(0);
        opacity: 1;
    }
    2% {
        transform: translate(calc(-20px - 100%), -80%) rotate(-45deg) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    98% {
        transform: translate(-120vh, 100vh) rotate(-45deg) scale(0.5);
        opacity: 0.3;
    }
    100% {
        transform: translate(-120vh, 100vh) rotate(-45deg) scale(0.5);
        opacity: 0;
    }
}

/* Matrix Rain Effect */
.matrix-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.matrix-char {
    position: fixed;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.1);
    will-change: opacity, transform;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 6rem 0 2rem;
        gap: 3rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

/* Greeting Text Transition */
.greeting-text {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.greeting-wrapper {
    position: relative;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.greeting-wrapper::before {
    content: 'नमस्ते';
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.greeting-wrapper.transition {
    opacity: 0.6;
    transform: scale(0.95);
}

.greeting-wrapper.transition::before {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Gradient Text */
.header {
    text-align: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
}

.about-text .logo-icon {
    vertical-align: middle;
    margin-right: 5px;
    font-size: 1em;
}

.about-text .gradient-text,
.about-text .android-gradient,
.about-text .fa-java,
.about-text .fa-android {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.about-text .gradient-text,
.about-text .fa-java {
    background: linear-gradient(to right, 
        #ff8a00 0%, 
        #da1b21 50%, 
        #ff8a00 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 15s linear infinite;
}

.about-text .android-gradient,
.about-text .fa-android {
    background: linear-gradient(to right, 
        #008500 0%, 
        #00ff00 50%, 
        #008500 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 15s linear infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Experience Timeline Styles */
.experience-timeline {
    position: relative;
    padding: 3rem 0;
}

.experience-timeline h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--color-accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    top: 0;
    bottom: 0;
    left: 26px;
    background: linear-gradient(
        to bottom, 
        transparent 0%, 
        rgba(226, 232, 240, 0.05) 10%, 
        rgba(226, 232, 240, 0.1) 50%, 
        rgba(226, 232, 240, 0.05) 90%, 
        transparent 100%
    );
    box-shadow: 
        0 0 5px rgba(226, 232, 240, 0.05),
        inset 0 0 10px rgba(226, 232, 240, 0.05);
    border-radius: 2px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.timeline:hover::before {
    opacity: 1;
    background: linear-gradient(
        to bottom, 
        transparent 0%, 
        rgba(226, 232, 240, 0.1) 10%, 
        rgba(226, 232, 240, 0.2) 50%, 
        rgba(226, 232, 240, 0.1) 90%, 
        transparent 100%
    );
    box-shadow: 
        0 0 10px rgba(226, 232, 240, 0.1),
        inset 0 0 15px rgba(226, 232, 240, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 40px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.timeline-item:hover {
    opacity: 1;
}

.timeline-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    left: 11px;
    top: 10px;
    transform: translateX(-50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0.9;
}

.timeline-item:hover .timeline-dot {
    /* background: rgba(255, 255, 255, 1); Fully white background on hover */
    border-color: var(--color-accent);
    opacity: 1;
}

.timeline-content {
    background: rgba(23, 32, 52, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(23, 32, 52, 0.6);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
    color: var(--color-accent);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.timeline-content h5 {
    margin-bottom: 0.5rem;
    color: rgba(226, 232, 240, 0.7);
    font-weight: 300;
    font-size: 0.95rem;
}

.timeline-date {
    display: block;
    color: rgba(226, 232, 240, 0.5);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.timeline-content p {
    color: rgba(226, 232, 240, 0.6);
    line-height: 1.6;
    font-size: 0.7rem;
}

/* Experience & Projects Link Styles */
.experience-timeline a {
    color: var(--color-accent);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
    display: inline-block;
    padding-bottom: 2px;
    font-weight: 500;
}

.experience-timeline a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

.experience-timeline a:hover {
    color: #ffffff;
}

.experience-timeline a:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

.experience-timeline a:hover {
    text-shadow: 0 0 5px rgba(226, 232, 240, 0.5);
}

/* Footer Styles */
footer {
    margin-top: 2rem;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.5rem;
    width: 100%;
}
