* {
    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;
    align-items: center;
    height: 100vh;
    background-color: #0c0c0c;
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#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-left: 200px;
    margin-right: 800px;
    color: white;
}

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;
    transform: scale(1.05); 
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    align-items: center;
    margin-left: 740px;
    margin-top: 50px;
}

input, textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

.left-content {
    width: 70%;
    text-align: left;
}

.right-content {
    width: 70%;
    text-align: center;
}

.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);
}

.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: "";
    background: linear-gradient(
        45deg,
        red, orange, yellow, green,
        blue, purple, hotpink,red
    );
    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); 
    animation: fadeInAnimation 1s ease-out forwards;
}

.fade-in2 {
    width: 100%; 
    opacity: 0;
    transform: translateY(20px); 
    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 {
    border: 2px solid white;
    width: 80%;
    border-radius: 10px;
}

.container h1{
    text-align: left;
    margin-bottom: 5px;
}

.container img {
    max-width: 300px;
    height: auto;
    align-items: right;
}

.text {
    max-width: 500px;
}

.icon-container {
    display: flex;
    justify-content: left; /
    gap: 15px;
    margin-top: 10px;
    margin-left: 40px;
}

.icon-container a {
    transition: transform 0.3s;
}

.icon-container a:hover {
    transform: scale(1.15); 
}

.container {
    background: #111;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    margin: 60px auto;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    color: white;
}

.contact-heading {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: cyan;
}

.contact-form input,
.contact-form textarea {
    background-color: #1a1a1a;
    border: 1px solid #444;
    color: white;
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border: 1px solid cyan;
    outline: none;
    background-color: #222;
}

.contact-form button.btn {
    margin-top: 10px;
}

.success-msg {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    text-align: center;
    margin-top: 10px;
    color: #00ffae;
    font-size: 1rem;
}

.success-msg.show {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: #111;
    color: #00ffae;
    margin: 15% auto;
    padding: 30px;
    border: 2px solid #00ffff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: row;      
        flex-wrap: wrap;            
        justify-content: center;
        gap: 8px;                
    }
    
    .nav a {
        margin: 0;
        flex: 1 0 auto;             
        text-align: center;
    }
    
    .photo-grid {
        grid-template-columns: 1fr; 
    }
  
    .social-icons {
        justify-content: center;
        flex-wrap: wrap;
    }
}
