body{
   margin:0;
   padding:20px;
   padding-top:110px;
   min-height:100vh;
   background-image:url('Images/Technology2.gif');
   background-attachment:fixed;
   background-size:cover;
   background-repeat:no-repeat;
   background-position:center;
}

.top-nav{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    background:rgba(10,20,60,0.6);
    backdrop-filter:blur(12px);
    border-bottom:2px solid rgb(3,242,250);
}

.top-nav ul{
    display:flex;
    justify-content:center;
    flex-direction: row; 
    gap:40px;
    list-style:none;
    margin:0;
    padding:15px;
}

.top-nav a{
    border-radius:8px;
    position:relative;
    text-decoration:none;
    color:white;
    font-family: 'Times New Roman', Times, serif;
    font-size:18px;
    letter-spacing:1px;
    padding:8px 10px;
    transition:0.3s;
}

.top-nav a:hover{
    color:rgb(3,242,250);
    text-shadow:
        0 0 5px rgb(3,242,250),
        0 0 15px rgb(3,242,250),
        0 0 30px rgb(3,242,250);
}

.top-nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0%;
    height:3px;
    background:linear-gradient(90deg,
        rgb(3,242,250),
        rgb(76,166,240),
        rgb(3,242,250));
    transition:0.4s;
}

@keyframes neonPulse{
    0%{box-shadow:0 0 5px rgb(3,242,250);}
    50%{box-shadow:0 0 25px rgb(3,242,250);}
    100%{box-shadow:0 0 5px rgb(3,242,250);}
}

.top-nav{
    animation:neonPulse 3s infinite;
}

.top-nav a:hover::after{
    width:100%;
}

*{
    box-sizing:border-box;
}
.intro-container{
    text-align:center;
    margin-top:30px;
    display:flex;
}

.typing-text{
    text-align: center;
    color:#cf1818;
    font-family:Impact, sans-serif;
    font-size:30px;
    overflow:hidden;
    white-space:nowrap;
    border-right:3px solid #db5a5a;
    width:100%;
    margin:auto;
    animation:
        typing 3s steps(30,end) forwards,
        blink 0.7s infinite;
        
}

@keyframes typing{
    from{width:0}
    to{width:70%}
}

@keyframes blink{
    50%{border-color:transparent}
}

.profile-card{
    width:95%;
    max-width:900px;
    margin:40px auto;
    text-align:center;
    padding:20px;
    border-radius:20px;
    background:rgba(0,0,0,0.65);
    border:2px solid rgb(3,242,250);
    backdrop-filter:blur(10px);

    box-shadow:
        0 0 20px rgb(3,242,250),
        0 0 40px rgba(3,242,250,0.4);

    transition:0.4s;
}

.profile-card:hover{
    transform:scale(1.02);
}

.profile-image img{
    width:180px;
    height:180px;
    border-radius:50%;
    object-fit:cover;
    border:5px solid rgb(3,242,250);

    box-shadow:
        0 0 20px rgb(3,242,250),
        0 0 50px rgb(3,242,250);

    transition:0.4s;
}

.profile-image img:hover{
    transform:scale(1.1);
}

.profile-name{
    text-align: center;
    background:none;
    color:white;
    margin-top:15px;
    letter-spacing:2px;
    font-family: 'Times New Roman', Times, serif
}

.profile-info{
    background:none;
    color:#07cad8;
}

.profile-description{
    background:none;
    color:#e6f7ff;
    margin-top:15px;
    line-height:1.6;
}

.content-card{
    width:95%;
    margin:30px auto;
    max-width:1000px;
    padding:25px;
    border-radius:15px;

    background:rgba(0,0,0,0.55);
    border-left:5px solid rgb(76,166,240);

    backdrop-filter:blur(8px);

    box-shadow:0 0 15px rgba(76,166,240,0.6);
    transition:0.3s;
}

.content-card:hover{
    transform:translateX(8px);
    box-shadow:
        0 0 20px rgb(3,242,250),
        0 0 35px rgba(3,242,250,0.5);
}

.content-card p,
.content-card li{
    background:none;
}

h2{
   font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
   color: rgb(48, 68, 133);
   background-color: rgb(76, 166, 240);
   border-radius: 20px;
       }
    
h3{
   font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
   color: rgb(48, 68, 133);
   background-color: rgb(76, 166, 240);
   border-radius: 5px;
       }

p{
   font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
   color: rgb(241, 241, 245);
   background-color: rgb(76, 166, 240);
       } 

li{
   font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
   color: rgb(241, 241, 245);
   background-color: rgb(76, 166, 240);
    }
    
.section-titles1 {
   font-family: 'Times New Roman', Times, serif;
   color: rgb(2, 52, 99);
   background-color: rgb(76, 166, 240);
   width: 20%;
        
    }
    
.lab-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.lab-box{
    width: 100%;
    max-width:260px;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: white;
    background: rgba(0,0,0,0.65);
    border: 2px solid rgb(76,166,240);
    backdrop-filter: blur(6px);
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgb(76,166,240);
}

.lab-box h4{
    margin: 10px 0;
    font-family: Impact,'Times New Roman', serif sans-serif;
    color: rgb(239, 240, 240);
}

.lab-box p{
    background: transparent;
    font-size: 14px;
    color: #07cad8;
}

.lab-box:hover{
    transform: translateY(-10px) scale(1.05);
    box-shadow:
        0 0 15px rgb(250, 3, 3),
        0 0 30px rgb(250, 3, 3),
        0 0 45px rgb(250, 3, 3);
    border-color: rgb(250, 3, 3);
}

.lab-box:active{
    transform: scale(0.97);
}

.language-container{
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
    margin:30px 0;
    padding:10px;
}

.language-card{
    width:100%;
    max-width:180px;
    text-align:center;
    padding:20px;
    border-radius:15px;
    background:rgba(0,0,0,0.65);
    border:2px solid rgb(76,166,240);
    transition:0.4s;
    box-shadow:0 0 15px rgb(76,166,240);
}

.language-card img{
    width:120px;
    height:120px;
    object-fit:contain;
    transition:0.4s;
}

.language-card h4{
    color:#07cad8;
    margin-top:10px;
}

.language-card:hover{
    transform:translateY(-10px) scale(1.05);
    box-shadow:
        0 0 20px rgb(3,242,250),
        0 0 40px rgb(3,242,250);
}

.language-card:hover img{
    transform:rotate(5deg) scale(1.1);
}

.projects-title{
    text-align:center;
    width:90%;
    max-width:500px;
    margin:40px auto;
    padding:12px;
    letter-spacing:2px;
    box-shadow:
        0 0 10px rgb(250, 3, 3),
        0 0 25px rgb(250, 3, 3);
}

.finals-title{
    text-align:center;
    width:90%;
    max-width:350px;
    margin:30px auto;
    padding:10px;
    border:2px solid rgb(250,3,3);
    box-shadow:
        0 0 10px rgb(250,3,3),
        0 0 25px rgb(250,3,3);
    color:rgb(48, 68, 133);
    border-radius: 20px;
}

.social-container{
    display:flex;
    justify-content:center;
    gap:30px;
    margin:30px 0;
}

.social-icon{
    width:90px;
    height:90px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    background:rgba(0,0,0,0.6);
    border:2px solid rgb(3,242,250);
    transition:0.4s;
    box-shadow:0 0 10px rgb(3,242,250);
}

.social-icon img{
    width:55px;
}

.social-icon:hover{
    transform:scale(1.2);
    box-shadow:
        0 0 20px rgb(250,3,3),
        0 0 40px rgb(250,3,3);
        border-color: rgb(250, 3, 3);
}

@media (max-width:768px){

.top-nav ul{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:6px;              /* tighter spacing */
    padding:8px 5px;
}

.top-nav li{
    flex:1;               /* equal width */
}

.top-nav a{
    display:block;
    font-size:11px;       /* smaller text */
    padding:6px 4px;
    white-space:nowrap;
    text-align:center;
}

.typing-text{
    font-size:20px;
    width:90%;
}

.profile-image img{
    width:140px;
    height:140px;
}

.profile-name{
    font-size:20px;
}

.content-card{
    padding:18px;
}

.language-card img{
    width:90px;
    height:90px;
}

.lab-box{
    max-width:100%;
}

.social-container{
    gap:15px;
}

.social-icon{
    width:70px;
    height:70px;
}

.social-icon img{
    width:40px;
}

h2{
    font-size:20px;
}

p, li{
    font-size:14px;
}
}

body, html{
    overflow-x:hidden;
}
@media (max-width:480px){

.top-nav a{
    font-size:10px;
    padding:5px 2px;
}
}