* {
    box-sizing: border-box;
  }

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    max-width: 100vw;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: #0c0c0c;
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent this from scrolling */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.25s ease;
    text-align: left;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}
    
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #000;
}

body.modal-open {
    overflow: hidden;
}

.modal-image-gallery {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.modal-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.modal-body {
    overflow-y: auto;
    padding: 1rem;
    max-height: 100%; 
    flex-grow: 1;     
}

.modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

#glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #7F00FF 0%, rgba(0, 255, 255, 0) 100%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.05s linear;
    filter: blur(200px);
    z-index: -1;
    opacity: 60%;
    animation-delay: 1ms;
}

.about {
    margin-top: 10px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
}

.project button {
    background-color: #333;    
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.project button:hover {
    background-color: #444;
    transform: translateY(-2px);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 15px;
    width: 100%;
    max-width: 700px;
    margin: 20px auto 0 auto;
    box-sizing: border-box;
}

nav a {
    display: inline-block;
    padding: 4px;
    transition: background-color 0.3s, transform 0.3s;
    box-sizing: border-box;
    text-decoration: None;
    color: white;
    border-radius: 10px;
}

nav a img {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
    filter: invert(100%) sepia(90%) hue-rotate(120deg);
}

nav a:hover {
    background-color: gray;
    border-radius: 10px;
    /* no padding added here */
    transform: scale(1.05); /* optional for a slight effect */
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    padding: 50px 20px;
    max-width: 1100px;
    margin: auto;
}

.left-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 400px;
}

.right-content {
    flex: 2 1 400px;
    color: white;
}

.right-content h1 {
    text-align: center;
    font-size: 2rem;
}

.about,
.experience {
    text-align: left;
}

.right-content h2 {
    font-size: 1.5rem;
    margin: 30px 0 10px;
    color: cyan;
}

.experience h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 5px;
}

.experience h4 {
    font-size: 1rem;
    color: #bbb;
    margin-top: 0;
    margin-bottom: 5px;
}

.experience ul {
    padding-left: 20px;
    margin-top: 0;
    margin-bottom: 25px;
}

.experience li {
    color: #ccc;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.intro-text {
    max-width: 500px;
    margin-top: 10px;
    font-size: 1.2rem;
    color: #fff;
    text-align: left;
}

.tagline {
    font-size: 1.5rem;
    font-weight: bold;
    color: cyan;
    margin-top: 10px;
}

.social-icons {
    display: flex;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 10px;
    justify-content: center;
}

.social-icons a img {
    transition: 0.3s;
    text-decoration: none;
    filter: invert(100%) sepia(90%) hue-rotate(120deg);
    margin: 0 10px;
}

.social-icons a:hover img {
    transform: scale(1.3);
    filter: brightness(2);
    filter: invert(200%) sepia(10%) hue-rotate(120deg);
}

.project {
    margin-top: 0; /* Avoid extra spacing */
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 40px;
    font-size: 1.2rem;
    color: white;
    background: cyan;
    border-radius: 300px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    z-index: 0;
    position: relative;
    cursor: pointer;
    color: #FFF;
    outline: none;
    border: none;
}

.btn::after {
    content: "";
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #333;
    left: 0;
    top: 0;
    border-radius: 300px;
}

.btn::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 600%;
    z-index: -1;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    filter: blur(8px); 
    animation: glowing 20s linear infinite;
    transition: opacity .3s ease-in-out;
    border-radius: 300px;
    opacity: 1;
}

.fade-in {
    width: 100%; 
    opacity: 0;
    transform: translateY(20px); /* Slight move-up effect */
    animation: fadeInAnimation 1s ease-out forwards;
}

.fade-in2 {
    width: 100%; 
    opacity: 0;
    transform: translateY(20px); /* Slight move-up effect */
    animation: fadeInAnimation2 1s ease-out forwards;
}

@keyframes fadeInAnimation {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInAnimation2 {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowing {
    0% {background-position: 0 0;}
    50% {background-position: 400% 0;}
    100% {background-position: 0 0;}
}

.btn:hover::before {
    opacity: 1;

}

.btn:active:after {
    background: transparent;
}

.btn:active {
    color: red;
    font-weight: bold;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.container img {
    max-width: 300px;
    height: auto;
    align-items: right;
}

.text {
    max-width: 500px;
}

.icon-container {
    display: flex;
    justify-content: left; /* Centers icons horizontally */
    gap: 15px; /* Adds spacing between icons */
    margin-top: 10px;
    margin-left: 40px;
}

.icon-container a {
    transition: transform 0.3s;
}

.icon-container a:hover {
    transform: scale(1.15); /* Makes icons slightly larger on hover */
}

@media (max-width: 768px) {
    .nav-wrapper {
        position: sticky;
        top: 0;
        z-index: 999;
        background-color: #0c0c0c; /* Ensure it doesn't overlap with white text */
        padding-top: 10px;
    }

    .nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .nav a {
        flex: 1 0 auto;
        text-align: center;
        margin: 4px;
    }
    
    .photo-grid {
        grid-template-columns: 1fr; /* stack photos on mobile */
    }
    
    .social-icons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}






















