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

/* Page transition animations */
body {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

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

/* Page transition overlay */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #080808;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}
html{
    scroll-behavior: smooth;
}

body{
    background: #080808;
    color: #fff; 
}
#header {
    width: 100%;
    height: 100vh;
    background-image: url(images/headshot_circle.jpg);
    background-size: contain; /*Ensures entire image is visible*/ 
    background-position: right center;
    background-repeat: no-repeat; /*prevents image form being repeated */ 
}
.container{
    padding: 10px 10%;
}

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

.logo {
    width: 400px; /* Set the width to make the image smaller */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensures it behaves like a block element */
}

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

nav ul li a{
    color: #fff;
    text-decoration: none; /*removes underline */
    font-size: 18px;
    position: relative;
}

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

nav ul li a:hover::after{
    width:100%;
}

.header-text{
    margin-top: 20%;
    font-size: 30px;
}

.header-text h1{
    font-size: 40px;
    margin-top: 10px;
}
.header-text h1 span{
    color: #ff004f; 
}

.about-col-1 img {
    width: 600px; /* Adjust the width to make the image smaller */
    height: auto; /* Maintain the aspect ratio */
    display: block; /* Ensures it behaves like a block element */
    margin-left: 0; /* Aligns the image to the left side */
}

#about{
    padding: 80px 0;
    color: #ababab;
}

.row{
    display: flex; /*space-between; */ 
    justify-content: space-between; /*This ensures that the child elements of .row are spaced out evenly, */ 
    flex-wrap: wrap; /* This allows the child elements to wrap to the next line if there isn't enough space to display them on a single line. */
}

.about-col-1{
    flex-basis: 40%
}

.about-col-1 img{
    width: 100%;
    border-radius: 15px; 
}

.about-col-2 {
    flex-basis: 58%;  /* gives some room back */
    padding-left: 2%; /* nudges text without pushing total width too far */
}

.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}

.hello {
    max-width: 600px; /* Adjust to make the paragraph skinnier */
    margin: 0 auto;   /* Center horizontally within its container */
  /* Add horizontal padding for better spacing */
    line-height: 1.6; /* Improves readability by increasing line spacing */
    text-align: justify; /* Optional: Aligns text for a cleaner appearance */
    color: #ababab;  /* Ensures text color matches your theme */
}

.exp {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1;
    text-align: justify;
    color: #ababab;
    font-size: 13px; 
}

.tab-titles{
    display: flex;
    margin: 20px 0 40px;
}

.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer; 
    position: relative;
    color: #fff;
    display: inline-block;
}

.tab-links::after{
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: width 0.5s;
}

.tab-links:hover::after{
    width: 100%;
}

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

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

.highlight {
    /* No background-color! */
    background: linear-gradient(90deg, rgba(255, 111, 0, 0.685) 0 0);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: left;
    color: inherit; /* Inherit the surrounding text color */
    padding: 0.02em 0.2em;
    border-radius: 0.15em;
    position: relative;
    overflow: hidden;
    animation: highlight-wipe 1s cubic-bezier(.77,0,.18,1) forwards;
    animation-delay: var(--reveal-delay, 0s);
}

@keyframes highlight-wipe {
    from {
        background-size: 0% 100%;
    }
    to {
        background-size: 100% 100%;
    }
}
/* Style each block with uniform spacing */
.year,
.school-name,
.heading,
.involvement-text,
.course-list { 
  margin: 10px 0;  /* or whatever consistent space you prefer */
  color: #fff;     /* keep them white or #ababab, etc. */
}

/* If you want headings (Course Work, Involvement) in red: */
.heading {
  color: #ff004f;
  font-weight: bold;
}

.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: #262626;
    padding:40px;
    font-size: 13px;
    font-weight: 300;
    border-right: 10px;
    border-radius: 10px; 
    transition: background 0.5s, transform 0.5s;
}

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

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

.services-list div a{
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.services-list div:hover {
    background: #ff004f;
    transform: translateY(-10px);
}


/*-----------------portfolio----------------/*/

#portfolio{
    padding: 80px 0; 
}

.work-list {
    display: flex;
    justify-content: space-evenly; /* Spreads boxes evenly across the row */
    gap: 20px; /* Keeps spacing consistent */
    flex-wrap: wrap; /* Ensures responsiveness */
    align-items: center;
}

.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px; /* Increases space below header */
}




.work {
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: white;
    flex: 1;
    min-width: 400px; /* Increase the minimum width */
    max-width: 600px; /* Allows more horizontal space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers text inside */
    align-items: center;
    transition: transform 0.3s ease;
    box-sizing: border-box; /* Ensures padding doesn’t affect size */
}

.work p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}



.work:hover {
    /* Remove any hover effects on the container */
}

.work img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.work img:hover + div,
.work div:hover {
    height: 100% !important;
    opacity: 1 !important;
}

.work div {
    transition: height 0.5s ease, opacity 0.5s ease !important;
}


.layer {
    width: 100%;
    height: auto;
    background: none; /* Remove gradient background */
    border-radius: 10px;
    position: relative;
    left: 0;
    bottom: 0;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px; 
    text-align: center;
    font-size: 14px; 
}


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

.layer a{
    margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center; 
}

.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff; 
}

.btn:hover{
    background: #ff004f;
}

/*-------------------contact---------------*/
.contact-left{
    flex-basis: 35%;
}
.contact-right{
    flex-basis: 60%;
}

.contact-left p{
    margin-top: 30px;
    margin-bottom: 30px; 
}
.contact-left p i{
    color: #ff004f;
    margin-right: 15px;
    font-size: 25px; 

}
.social-icons a{
    text-decoration: none;
    font-size: 30px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s; 
}

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

.btn.btn2{
    display: inline-block;
    background: #ff004f;
}

.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px; 
}

form .btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer; 
}

.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: auto;
    position: sticky;
    bottom: 0;
}

.copyright i{
    color: #ff004f;
}
/* ---------------css for small screens --------- */
nav .fa-solid{
    display:none;
}


@media only screen and (max-width: 600px){
    #header{
        background-image: none;
        position: relative;
    }
    
    /* Mobile home screen layout */
    #header::before {
        content: '';
        position: absolute;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 250px;
        height: 250px;
        background-image: url(images/headshot_circle.jpg);
        background-size: cover;
        background-position: center;
        border-radius: 50%;
        z-index: 1;
    }
    
    .header-text{
        margin-top: 370px;
        font-size: 16px;
        padding-top: 20px;
        position: relative;
        z-index: 2;
    }
    .header-text h1{
        font-size: 30px;
    }
    nav .fa-solid{
        display: block;
        font-size: 25px;
        position: absolute;
        right: 20px;
        top: 60px;
        z-index: 10000;
        cursor: pointer;
    }

    nav ul{
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -220px; 
        width: 200px;
        height: 100vh;
        padding-top: 50px; 
        z-index: 2; 
        transition: right 0.5s;
        overflow: hidden;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
        transform: translateX(0);
    }
    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-1, .about-col-2{
        flex-basis: 100%;
    }

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

    .tab-links{
        font-size: 16px;
        margin-right: 20px; 
    }

    .contact-left, .contact-right{
        flex-basis: 100%;
    }
    
    /* Mobile logo layout */
    .logo-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px;
    }
    
    .logo-text {
        font-size: 1.5rem !important;
        margin-left: 20px;
        margin-bottom: 0;
    }
    
    .logo-typing {
        font-size: 1.2rem !important;
        margin-left: 20px;
        margin-top: 0;
    }
    
    /* Mobile navigation positioning */
    nav {
        position: relative;
        padding: 10px 0;
    }
    
    /* Mobile contact layout */
    .contact-left {
        text-align: left;
    }
    
    .contact-left p {
        display: flex;
        align-items: center;
        margin: 10px 0;
        justify-content: flex-start;
    }
    
    /* LinkedIn icon positioning for mobile */
    .social-icons {
        display: inline-flex;
        align-items: center;
        margin-left: 10px;
    }
    
    /* Mobile form layout */
    .contact-right form {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    /* Mobile button layout */
    .contact-right .btn.btn2 {
        margin-top: 10px;
    }
    
    /* Mobile button layout */
    .contact-left .btn.btn2 {
        display: block;
        margin: 20px 0;
        width: 100%;
    }
    
    /* Modal mobile layout */
    #plastyAIImageContainer,
    #wanderSyncImageContainer,
    #wordDefinerImageContainer {
        flex-direction: column !important;
        gap: 20px !important;
        max-height: none !important;
        padding: 20px !important;
    }
    
    #plastyAIDescription,
    #wanderSyncDescription,
    #wordDefinerDescription {
        max-width: 100% !important;
        text-align: center !important;
        order: 2 !important;
    }
    
    #plastyAIImageContainer > div:last-child,
    #wanderSyncImageContainer > div:last-child,
    #wordDefinerImageContainer > div:last-child {
        order: 1 !important;
    }
    
    #plastyAICurrentImage,
    #wanderSyncCurrentImage,
    #wordDefinerCurrentImage {
        max-height: 60vh !important;
    }
}

#msg{
    color: #61b752;
    margin-top: -40px;
    display: none; 
}

.logo {
    width: 80%; /* Shrinks the image on small screens */
    max-width: 300px; /* Prevents it from getting too large */
    margin: 0 auto; /* Centers it horizontally */
    display: block; /* Ensures margin auto works */
}

.logo-group {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 10px;
}

.logo-text {
    font-weight: bold;
    color: #ff004f;
    font-size: 2rem;
    margin-left: 20px;
    margin-right: 0;
    display: inline-block !important;
}

.logo-typing {
    font-weight: normal !important;
    font-size: 1.5rem; /* Same size as in index.html */
    color: #fff;
    vertical-align: middle;
    display: inline-block !important;
    margin-left: 10px; /* Same margin as in index.html */
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo left, menu right */
    width: 100%;
}

.tab-links.active-link {
    color: #ff004f;
    font-weight: bold;
}

