:root {
    --accent: #eb0d7f;
    --accent-light: #ffa1b8;
    --background-dark: #0e0d1a;
    --card-dark: #1a1a2e;
    --text-light: #f5f5f5;
    --text-muted: #cccccc;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    font-size: 16px;
    background-color:   #0e0d1a ;
    color:              #F5F5F5;
    overflow-x: hidden;
}

#header {
    height: 100vh;
    width: 100%;
    background: 
    linear-gradient(to bottom, rgba(10,10,10,0) 60%, rgba(14,13,26,0.95) 100%),
    url(assets/background-dark-sqoosh.webp) no-repeat center/cover;
    background-size: cover;
    background-position:right
}

.container {
    padding: 10px 18px;
    margin: 0 auto; 
    max-width: 100%;
    overflow-x: hidden;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    width: auto;
    height: 22vh;
}

nav {
    margin-top: -30px;
}

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

nav ul li a {
    position: relative;
    color: #F5F5F5;
    text-decoration: none;
    font-size: 18px;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #C8ACD6;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

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

.header-text {
    padding-left: 20px;
    margin-top: 6%;
    font-size: 28px;
}

.header-text h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.header-text h1 span {
    color: var(--accent);
}

.header-text p span {
    color: var(--accent);
    font-weight: 800;
}
/* -----About Me section----- */
#about {
    padding: 60px 40px;
    color:#C8ACD6;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 4pt;
}

.about-col-2 {
    flex-basis: 60%;
    margin-right: 18px;
}

.about-text {
    font-size: 60px;
    font-weight: 600;
    color: #f5f5f5;
}

.tab-titles{
    color: #f5f5f5;
    display: flex;
    margin: 40px 0 30px;
}
.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background-color: #C8ACD6;
    position: absolute;
    left: 0;
    bottom: -2px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 70%;
    background: var(--accent);
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
    font-size: 14px;
}

.tab-contents ul li span {
    color: #f5f5f5;
    font-size: 16px;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;

}

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

.services-list div {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: var(--background-dark) 0.5s, transform 0.5s;
}

.services-list div i {
    font-size: 40px;
    margin-bottom: 30px;
}

.services-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div a{
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    margin-top: 20px;
    display: inline-block;
}

.services-list div:hover {
    background-color: var(--card-dark);
    transform: translateY(-10px);
}

/* Projects */
#projects {
    padding: 50px 0;

}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transform: 0.5s;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6), var(--card-dark));
    border-radius: 10px;
    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;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3 {
    font-weight: 5000;
    margin-bottom: 20px;
}

.layer a {
    margin-top: 20px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    background-color: var(--accent);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    display: block;
    margin: 20px auto;
    width: fit-content;
    border: 1px solid var(--accent);
    padding: 14px 50px;
    border-radius: 6px;
    color: white;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent);
    color: #f5f5f5;
}


/* Contact */

.contact-left {
    flex-basis: 35%;
    
}

.contact-left p { 
    margin-top: 30px;
}

.contact-left i { 
    columns: var(--card-dark);
;
    margin-right: 15px;
    font-size: 20px;
}

.contact-left p a {
    color: var(--accent);
}

.contact-right {
    flex-basis: 60%;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 2px;
    color: var(--accent);
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover{
    color: var(--accent);
    transform: translateY(-5px);
}

.contact-right form {
    width: 100%;

}

form input, form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background-color: var(--card-dark);
    padding: 15px;
    margin: 15px 0;
    color: #f5f5f5;
    font-size: 18px;
    border-radius: 6px;
}


.btn2 {
    display: inline-block;
    border: 1px solid var(--accent);
    padding: 14px 50px;
    border-radius: 6px;
    color: white;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}

.btn2:hover {
    background-color: var(--accent);
    color: #f5f5f5;
}


.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background-color: var(--card-dark);
    font-weight: 300;
    margin-top: 20px;
}


/* Education Section */
#education {
    padding: 60px 40px;
    color: var(--text-light);
    background-color: transparent;
}

.education-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}


.education-col {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border-radius: 10px;
    color: var(--text-light);
}

.education-col h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent);
}

.education-col p strong {
    color: var(--accent);
    font-weight: 700;
}


.education-col p {
    font-size: 16px;
    line-height: 1.6;
}



/* Responsive */

#menu, 
#xmark {
    display: none;
}

@media only screen and (max-width: 600px) {
    #menu, 
    #xmark {
        display: block;
        font-size: 25px;
        color: var(--accent);
        cursor: pointer; 
    }

    nav ul {
        background-color: var(--card-dark);
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100%;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    .fa-bars {
        display: block;
        font-size: 25px;
        cursor: pointer;
    }

    .fa-xmark {
        display: block;
        position: absolute;
        top: 25px;
        left: 25px;
        font-size: 25px;
        cursor: pointer;
    }

    #header {
        height: auto;
        margin-top: -50px;
    }

    .header-text {
        padding-left: 10px;
        margin-top: 50px;
        margin-bottom: 20px;
        font-size: 24px;
    }

    .header-text h1 {
        font-size: 40px;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
        margin-left: 0;
    }

    .row {
        flex-direction: column;
    }

    .about-col-1,
    .about-col-2,
    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }

    .about-col-1,
    .about-col-2 {
        margin-bottom: 30px;
    }
    
    .about-col-2 {
        font-size: 18px;
        
    }

    .about-text {
        margin: 30px 0;
        font-size: 24px;
    }
    
    .tab-links {
        margin-top: 40px;
        margin-bottom: -10px;
        margin-right: 20px;
        font-size: 20px;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .project-list {
        grid-template-columns: 1fr;
    }

    .social-icons a {
        font-size: 24px;
    }

    form input, form textarea {
        font-size: 16px;
    }

    form .btn2 {
        padding: 10px 30px;
        font-size: 16px;
    }

    .btn {
        padding: 10px 30px;
        font-size: 16px;
    }
}

#flashMsg {
    color: #078a1f;
    margin-top: -10px;
    display: block;
}

.alert-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-bottom: 3px solid #28a745;
    text-align: center;
    font-size: 16px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: top 0.3s ease-in-out;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
} 

    .education-wrapper {
        flex-direction: column;
    }

    .education-col {
        padding: 30px 20px;
    }

    #education {
        margin-top: -90px;
        padding-left: 0;
    }
