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

:root {
    --bg-main: #0a0a0f;
    --bg-card: rgba(25, 25, 35, 0.6);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --accent-primary: #00f2fe;
    --accent-secondary: #4facfe;
    --accent-purple: #8a2be2;
    --gradient-glow: linear-gradient(90deg, var(--accent-primary), var(--accent-purple));
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body{
    background: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

html{
    scroll-behavior: smooth;
}

/* --- Container & Utilities --- */
.container{
    padding: 10px 10%;
}
.sub-title{
    font-size: 50px;
    font-weight: 600;
    color: var(--text-main);
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: inline-block;
}

/* --- Header / Navigation --- */
#header{
    width: 100%;
    min-height: 100vh;
    background-image: linear-gradient(rgba(10, 10, 15, 0.8), rgba(10, 10, 15, 0.9)), url('Images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.header{
    width: 100%;
    min-height: 10vh;
    background-image: linear-gradient(rgba(10, 10, 15, 0.8), rgba(10, 10, 15, 0.9)), url('Images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    margin: -10px -11.11%; /* Counter container padding */
    padding: 20px 10%;
}

.logo{
    width: 120px;
    filter: drop-shadow(0 0 5px var(--accent-primary));
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a{
    color: var(--text-main);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    letter-spacing: 1px;
    transition: 0.3s;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: var(--gradient-glow);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.4s ease-in-out;
    border-radius: 2px;
}

nav ul li a:hover::after{
    width: 100%;
}
nav ul li a:hover{
    color: var(--accent-primary);
}

/* --- Hero Text --- */
.header-text{
    margin-top: 15%;
    font-size: 24px;
    font-weight: 300;
    animation: fadeIn 1.5s ease-out;
}

.header-text h1{
    font-size: 65px;
    margin-top: 10px;
    line-height: 1.2;
}

.header-text h1 span{
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- About Section --- */
#about{
    padding: 100px 0;
    color: var(--text-muted);
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}
.about-col-100 {
    flex-basis: 100%;
}
.header-center {
    display: block;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}
.glass-panel {
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 60px 80px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.about-bio {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Tabs --- */
.tab-titles{
    display: flex;
    justify-content: center;
    margin: 20px 0 40px;
}
.tab-links{
    margin: 0 25px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    color: var(--text-main);
    transition: color 0.3s;
}
.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: var(--gradient-glow);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.4s ease-in-out;
    border-radius: 2px;
}
.tab-links.active-link::after{
    width: 100%;
}
.tab-links.active-link {
    color: var(--accent-primary);
}

.tab-contents{
    list-style: none;
    display: none;
    animation: fadeIn 0.5s ease-out;
}
.tab-contents.active-tab{
    display: block;
}
.clean-list li {
    margin-bottom: 20px;
    font-size: 15px;
    background: rgba(10, 10, 15, 0.5);
    padding: 20px;
    border-radius: 12px;
    border-left: 3px solid var(--accent-purple);
    line-height: 1.6;
}
.clean-list li span{
    color: var(--accent-primary);
    font-size: 17px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-gap: 20px;
    margin-top: 20px;
}
.skill-badge {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(0, 242, 254, 0.1);
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.skill-badge:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
    border-color: rgba(0, 242, 254, 0.6);
}
.skill-badge span {
    color: var(--text-main);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.skill-badge p {
    font-size: 13px;
    color: var(--accent-primary);
}

/* --- Services --- */
#services{
    padding: 80px 0;
}
.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div{
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    font-size: 14px;
    font-weight: 300;
    border-radius: 20px;
    transition: all 0.5s ease;
    color: var(--text-muted);
}
.services-list div i{
    font-size: 45px;
    margin-bottom: 25px;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.services-list div h2{
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

.services-list div a{
    text-decoration: none;
    color: var(--accent-primary);
    font-size: 14px;
    margin-top: 20px;
    display: inline-block;
    font-weight: 500;
    transition: 0.3s;
}
.services-list div a:hover {
    color: var(--text-main);
    letter-spacing: 1px;
}
.services-list div:hover{
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.2);
    border-color: rgba(0, 242, 254, 0.5);
}

/* --- Portfolio --- */
#portfolio{
    padding: 80px 0;
}
.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work{
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.work img{
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(10,10,15,0.4), rgba(138,43,226,0.9));
    backdrop-filter: blur(5px);
    border-radius: 20px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    transition: height 0.5s ease-in-out;
}
.layer h3{
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 22px;
    color: #fff;
}
.layer p {
    font-size: 14px;
    color: #eee;
    line-height: 1.6;
}
.layer a{
    margin-top: 20px;
    color: var(--accent-purple);
    text-decoration: none;
    font-size: 18px;
    line-height: 50px;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
    transition: transform 0.3s;
}
.layer a:hover {
    transform: scale(1.1);
}

.work:hover img{
    transform: scale(1.1);
}
.work:hover .layer{
    height: 100%;
}

.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 2px solid var(--accent-primary);
    padding: 14px 40px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.4s ease;
    background: transparent;
    cursor: pointer;
}
.btn:hover{
    background: var(--gradient-glow);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    transform: translateY(-3px);
}

/* --- Contact --- */
#contact {
    padding: 80px 0;
}
.contact-left{
    flex-basis: 35%;
}
.contact-right{
    flex-basis: 60%;
}
.contact-left p{
    margin-top: 30px;
    color: var(--text-muted);
}
.contact-left p i{
    color: var(--accent-primary);
    margin-right: 15px;
    font-size: 22px;
}
.social-icons{
    margin-top: 30px;
}
.social-icons a{
    text-decoration: none;
    font-size: 26px;
    margin-right: 20px;
    color: var(--text-muted);
    display: inline-block;
    transition: all 0.4s ease;
}
.social-icons a:hover{
    color: var(--accent-primary);
    transform: translateY(-5px);
    filter: drop-shadow(0 0 5px var(--accent-primary));
}

.contact-right form{
    width: 100%;
}
form input, form textarea{
    width: 100%;
    border: 1px solid var(--glass-border);
    outline: none;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 18px;
    margin: 15px 0;
    color: var(--text-main);
    font-size: 16px;
    border-radius: 10px;
    transition: border 0.3s;
}
form input:focus, form textarea:focus {
    border-color: var(--accent-primary);
}
.btn.btn2{
    display: inline-block;
    background: var(--gradient-glow);
    border: none;
    font-size: 18px;
    padding: 14px 50px;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}
.btn.btn2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.4);
}

.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: rgba(10, 10, 15, 0.8);
    font-weight: 300;
    margin-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}
.copyright i{
    color: var(--accent-primary);
}

/* --- Mobile Responsiveness --- */
nav .fa-solid{
    display: none;
}
@media only screen and (max-width: 768px){
    .header-text{
        margin-top: 30%;
        font-size: 18px;
    }
    .header-text h1{
        font-size: 45px;
    }
    nav .fa-solid{
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: var(--accent-primary);
    }
    nav ul{
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(15px);
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        padding-top: 80px;
        z-index: 2;
        transition: right 0.5s ease;
        border-left: 1px solid var(--glass-border);
    }
    nav ul li{
        display: block;
        margin: 25px;
    }
    nav ul .fa-solid{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .sub-title{
        font-size: 40px;
    }
    .about-col-100{
        flex-basis: 100%;
    }
    .glass-panel {
        padding: 30px 20px;
    }
    .about-bio {
        font-size: 15px;
    }
    .tab-links{
        font-size: 16px;
        margin-right: 20px;
    }
    .services-list, .work-list {
        grid-template-columns: 1fr;
    }
}
#msg{
    color: #00f2fe;
    margin-top: -40px;
    display: block;
    margin-bottom: 20px;
}