@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
  --bg: #0B0F19; /* Deep Space Slate */
  --bg-glass: rgba(14, 20, 34, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  
  --accent-1: #00F2FE; /* Neon Cyan */
  --accent-2: #4FACFE; /* Soft Blue */
  --accent-3: #8B5CF6; /* Vibrant Violet */
  
  --gradient-main: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  --gradient-subtle: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(139, 92, 246, 0.1));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6, #title, .subt {
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Animated Particles */
.circles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.08), var(--bg) 60%);
    overflow: hidden;
}

.circles-bg span {
    position: absolute;
    bottom: -150px;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
    border-radius: 50%;
    animation: floatUp 15s linear infinite;
    backdrop-filter: blur(2px);
}

/* Map the 50 spans randomly generated speeds/sizes */
.circles-bg span:nth-child(even) { background: radial-gradient(circle, rgba(0,242,254,0.1) 0%, transparent 70%); box-shadow: 0 0 20px rgba(139,92,246, 0.1); }
.circles-bg span:nth-child(1) { left: 10%; width: 80px; height: 80px; animation-duration: 25s; filter: blur(5px); }
.circles-bg span:nth-child(2) { left: 25%; width: 50px; height: 50px; animation-duration: 18s; }
.circles-bg span:nth-child(3) { left: 40%; width: 30px; height: 30px; animation-duration: 14s; }
.circles-bg span:nth-child(4) { left: 55%; width: 120px; height: 120px; animation-duration: 30s; filter: blur(10px); }
.circles-bg span:nth-child(5) { left: 70%; width: 25px; height: 25px; animation-duration: 12s; }
.circles-bg span:nth-child(6) { left: 85%; width: 45px; height: 45px; animation-duration: 16s; }
.circles-bg span:nth-child(7) { left: 95%; width: 15px; height: 15px; animation-duration: 9s; }
.circles-bg span:nth-child(n+8) { display: none; } /* Only keep a few elegant ones */

@keyframes floatUp {
    0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(-120vh) scale(1.5) rotate(360deg); opacity: 0; }
}

/* Header & Nav */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: 0.3s;
}

.navBar {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

#bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

#ln {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

#logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    border: 2px solid var(--accent-1);
}

#title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1.5px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
}

#navContainer {
    display: flex;
    gap: 35px;
}

.navigation {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.navigation::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-main);
    transition: 0.3s ease;
    border-radius: 2px;
}

.navigation:hover { color: var(--text-main); }
.navigation:hover::after, .navigation.active::after { width: 100%; }

/* Global Layout */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    min-height: 100vh;
    padding: 100px 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.subt {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main);
    position: relative;
}

.subt .s {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Home / Hero Section */
#intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

#introbox {
    flex: 1.2;
    min-width: 320px;
}

#profile {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

#picture {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 35px;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient-main) border-box;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(139, 92, 246, 0.2);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#picture:hover {
    transform: translateY(-10px) scale(1.02);
}

#phrase {
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 45px;
}

#name {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: var(--gradient-main);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

#d:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.5);
}

#contactContainer {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    margin-top: 0;
}

#contact_links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    animation: slideInRight 1.2s ease-out forwards;
}

@keyframes slideInRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.socialLinks {
    position: relative;
    animation: floatIcon 3s ease-in-out infinite alternate;
}

.socialLinks:nth-child(1) { animation-delay: 0s; }
.socialLinks:nth-child(2) { animation-delay: 0.5s; }
.socialLinks:nth-child(3) { animation-delay: 1s; }
.socialLinks:nth-child(4) { animation-delay: 1.5s; }

@keyframes floatIcon {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-8px) scale(1.05); }
}

.clink, .clink1, .eduProfile {
    width: 50px;
    height: 50px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    cursor: pointer;
    object-fit: contain;
}

.clink:hover, .clink1:hover {
    transform: translateY(-8px);
    border-color: var(--accent-1);
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
}

#git { filter: invert(0.6) sepia(1) saturate(5) hue-rotate(180deg) brightness(1.2) opacity(0.8); }
#git:hover { filter: invert(0.6) sepia(1) saturate(5) hue-rotate(180deg) brightness(1.2) drop-shadow(0 0 8px rgba(0,242,254,0.6)); opacity: 1; }

/* About Section */
#aboutId {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

#fnameId, #lnameId {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

#skillContainer {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    background: var(--bg-glass);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

#blk {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#backlist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 15px;
}

.c {
    color: var(--accent-2);
    font-weight: 600;
    width: 100px;
    display: inline-block;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

#bContainer { display: flex; gap: 20px; flex-wrap: wrap; }

.btnId {
    padding: 10px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-highlight);
    border-radius: 50px;
    cursor: pointer;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
}

.btnId:hover {
    background: var(--text-main);
    color: var(--bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

/* Skills progress */
#holderId { flex: 1.2; min-width: 320px; }

#overId {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
    border-left: 4px solid var(--accent-1);
    padding-left: 12px;
}

.elementId {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.percentageId { width: 100%; }

.pId1 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.pId { letter-spacing: 0.5px; }

.line2 {
    height: 6px;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.line {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

#line1{width:78%;} #line3{width:80%;} #line4{width:69%;} #line5{width:49%;}
#line6{width:75%;} #line7{width:76%;} #line8{width:65%;} #line9{width:90%;}
#line10{width:60%;} #line11{width:46%;}

/* Education / Experience */
#info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.edu {
    flex: 1;
    min-width: 320px;
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

/* Glassmorphism subtle glow */
.edu::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
}

#t, #t1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: center;
}

.eduObject {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.eduObject:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.eduProfile {
    width: 45px;
    height: 45px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    margin: 0 auto 15px;
    display: block;
}
.eduProfile[src*="student"], .eduProfile[src*="user-network"]{
    filter: invert(0.8) sepia(1) hue-rotate(180deg) saturate(3) opacity(0.8);
}

.nd {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
    text-align: center;
}

.period {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-1);
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.desc, .expdesc {
    list-style-position: inside;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 13px;
}

.desc li, .expdesc li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 15px;
    list-style-type: none;
}

.desc li::before, .expdesc li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-2);
    font-size: 18px;
}

/* Projects & Services Grid */
section#projects .serviceId > div, section#services .serviceId, .certGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    width: 100%;
}

.certImg {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-highlight);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.certBox {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.certBox img[src*="student-icon"] {
    filter: invert(0.8) sepia(1) hue-rotate(180deg) saturate(3) opacity(0.8);
    width: 80px;
    object-fit: contain;
    border: none;
    box-shadow: none;
}

.serviceBox, .projectContainer {
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.serviceBox::before, .projectContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-20deg);
    transition: 0.6s;
    z-index: 1;
}

.serviceBox:hover::before, .projectContainer:hover::before { left: 150%; }

.serviceBox:hover, .projectContainer:hover {
    transform: translateY(-12px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.1);
}

.serviceTitle {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.logoBox {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.sLogo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 20px;
    background: rgba(255,255,255,0.02);
    padding: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
}
.sLogo[src*="icons"] { filter: invert(0.8) sepia(1) hue-rotate(180deg) saturate(3); }

.sp {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 15px;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.projectNav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.liveBtn1 {
    padding: 12px 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-highlight);
    border-radius: 50px;
    color: var(--text-main);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
}

.liveBtn1:hover {
    background: var(--text-main);
    color: var(--bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

.lp { text-decoration: none; }
.subtitle { color: var(--accent-1); text-align: center; margin-bottom: 15px; font-size: 16px; font-weight: 600; letter-spacing: 0.5px; z-index:2; position:relative;}

/* Contacts */
#contacts { text-align: center; margin-bottom: 40px;}

#ct {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 50px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#contactForm {
    max-width: 600px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-glass);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.inputGroup input, .inputGroup textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-highlight);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: 0.3s;
}

.inputGroup textarea {
    resize: vertical;
    min-height: 150px;
}

.inputGroup input:focus, .inputGroup textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.submitBtn {
    padding: 16px;
    background: var(--gradient-main);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

.submitBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5);
}

footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Responsiveness */
@media(max-width: 900px) {
    #navContainer { display: none; } /* Could add a hamburger menu, but let's hide for clean UI like old */
    #bar { flex-direction: column; gap: 20px; padding: 20px; }
    #navContainer { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; margin: 0; gap: 15px; }
    
    .subt { font-size: 38px; margin-bottom: 50px; }
    
    #intro { text-align: center; justify-content: center; margin-top: 40px;}
    #picture { width: 300px; height: 300px; margin: 0 auto; }
    #introbox { margin-top: 20px; text-align: center; }
    
    #contactContainer {
        position: static;
        transform: none;
        margin-top: 40px;
        display: flex;
        justify-content: center;
    }
    #contact_links {
        flex-direction: row;
        animation: none;
    }
    
    #skillContainer { padding: 30px; }
    #blk { text-align: center; }
    #backlist { align-items: center; }
    .c { display: block; margin-bottom: 5px; width: auto; }
    #bContainer { justify-content: center; }
    
    .elementId { grid-template-columns: 1fr; }
}

@media(max-width: 600px) {
    section { padding: 100px 0 40px; }
    .subt { font-size: 32px; margin-bottom: 40px; }
    #title { font-size: 22px; }
    #picture { width: 250px; height: 250px; }
    #name { font-size: 26px; }
    #phrase { font-size: 16px; margin-bottom: 30px; }
    #d { padding: 14px 28px; font-size: 14px; }
    
    .edu { padding: 30px 20px; }
    .serviceBox { padding: 25px 20px; }
    section#projects .serviceId > div, section#services .serviceId, .certGrid { grid-template-columns: 1fr; }
    
    #ct { font-size: 30px; }
    #contactForm { padding: 20px; gap: 15px; }
    .clink, .clink1 { width: 45px; height: 45px; padding: 10px; }
}
