/* Universal Styles */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins' , sans-serif; /* Ensure Poppins is correctly loaded in HTML */
    box-sizing: border-box;
}

/* Smooth scrolling for anchor links */
html{
    scroll-behavior: smooth;
}
    
body{
    background: #080808;
    color: #fff;
}

/* Header Section */
#header{
    width: 100%;
    height: 100vh ;
    background-image: url(images/DSC05978.jpg);
    background-size: cover;
    background-position: center;
}

/* Generic container for content width */
.container{
    padding: 10px 5%; 
}

/* Navigation Bar */
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Logo */
.logo{
    width: 140px;
}

/* Navigation List Items */
nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}   

/* Navigation Links */
nav ul li a{
    color: #fff;     
    text-decoration: none;
    font-size: 20px;
    position: relative;
}

/* Underline effect for navigation links */
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 (Hero Section) */
.header-text{
    margin-top: 20%;
    font-size: 30px;
    
}

.header-text h1{
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span{
    color: #ff004f;
}

/* --------------ABOUT------------ */
#about{
    padding: 80px 0px;
    color: #ababab;
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
}

.about-col-1 img{
    width: 100%;
    border-radius: 15px;
}
        
.about-col-2{
    flex-basis: 60%;
}

.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}

/* Tab Titles (Skills, Experience, Education) */
.tab-titles{
    display: flex;
    margin: 20px 0 40px;
    gap: 30px;
    position: relative;
}

.tab-links {
    font-size: 18px;
    font-weight: 500; 
    cursor: pointer;
    position: relative;
    padding-bottom: 5px;
}
        
.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: width 0.5s ease;
}
        
.tab-links.active-link::after {
    width: 50%; /* Full width of text */
}

/* Tab Contents (Skills, Experience, Education details) */
.tab-contents ul li{
    list-style-type: none;
    margin: 10px 0;
}


.skill-title-large {
  font-weight: bold;
  color: #b54769;
  font-size: 24px; /* Adjust as needed */
}


.tab-contents ul li span{
    color: #b54769;
    font-size: 14px;
    
}
/* --- END IMPORTANT CHANGE --- */

.tab-contents{
    display: none;
}

.tab-contents.active-tab{
    display: block;
}

/*------------------------services----------*/
#services{
    padding: 30px 0;
}
        
.services-list {
    display: flex;
    justify-content: left; /* Align boxes to the left */
    gap: 180px; /* Adjust spacing */
    margin-top: 50px;
    flex-wrap: wrap;
}
        
.services-list div {
    text-align: left; /* Align text inside the box */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align everything inside the box to the left */
    padding: 40px;
    flex: 1; /* Allows items to grow and shrink */
    max-width: 400px; /* Maximum width for each service box */
    background: #262626;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    /* border-right: 10px; (This line seems like a typo, consider removing if not intended as a border style) */
    transition: background 0.5s, transform 0.5s ease-in-out;
}
        
.services-list div i {
    font-size: 50px; /* Specific size for service icons */
    color: #ff004f;
    margin-bottom: 30px; /* Space below icon */
    display: block; /* Ensure it takes its own line */
    align-self: flex-start; /* Align the icon to the start within its flex container */
}

.services-list div h2{
    font-size: 30px;
    font-weight: 500; /* Changed from 500px to 500 */
    margin-bottom: 15px;
}

.services-list div p {
    margin-bottom: 15px; /* Added space below paragraph */
}
        
.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: 40px 0;
    margin-left: 100px;
    margin-right: 40px;
}
.work-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%;
    height: auto;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
.layer {
    height: 0%;
    overflow: hidden;
    /* rest of your styles remain */
}

.layer{
    width: 100%;
    height: 0%;
    background: linear-gradient(rgba(0,0,0,0.6), #ff004f);
    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 ease-in-out, border-radius 0.5s ease-in-out;
}
.layer h3{
    font-weight: 700;
    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;
}

.work:hover img {
    transform: scale(1.1);
    object-fit: cover;
}

.work:hover .layer{
    height: 100%;
    width: 100%;
    border-radius: 10px;
}

.btn{
    display: block;
    margin: 50px auto ;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn:hover{
    background: #ff004f;
}

/* ---------------------CONTACT----------- */
#contact {
    padding: 40px 0; /* Add some padding for the contact section */
}

.contact-left{
    flex-basis: 35% ;
}

.contact-right{
    flex-basis: 60% ;
}

.contact-left p{
    margin-top: 30px;
    font-size: 25px; 
}
        
.contact-left p i {
    color: #ff004f;
    margin-right: 15px;
    font-size: 25px;
}
        
.social-icons {
    margin-top: 30px;
}
        
.social-icons a{
    text-decoration: none;
    font-size: 22px;
    margin-right: 10px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s ;
}

.social-icons a:hover {
    color: #ff004f;
    transform: translateY(-3px);
    /* Removed the button-like hover styles as they typically don't fit social icons */
    /* If you want the button effect back, re-add:
       padding: 4px 8px;
       font-size: 18px;
       border: 1px solid #ff004f;
       border-radius: 4px;
       margin-top: 0px;
       background: transparent;
       transition: background 0.3s, transform 0.1s ease-in-out;
    */
}

/* Button specific styles for btn2 (Download CV and Submit button) */
.btn.btn2{
    display: inline-block;
    background: #ff004f;
    padding: 14px 60px; /* Adjusted padding for this button */
    font-size: 18px; /* Adjusted font size for this button */
    margin-top: 20px;
    cursor: pointer;
}

/* Active/press states for buttons */
.btn.btn2:active,
.btn:active {
    transform: scale(0.95);
    transition: 0.1s ease-in-out; /* Add transition for smoothness */
}

/* Contact Form */
.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;
}

/* Copyright Footer */
.copyright{
    width: 100%;
    text-align: center;
    padding: 25px;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}

.copyright i{
    color: #ff004f;
}

/* ------------------- CSS for Small Screens (Mobile Responsiveness) ------------------ */

/* Hide default font-awesome icons on large screens */
nav .fas{
    display: none;
}

@media only screen and (max-width: 768px) {
    /* Header background image for mobile */
    #header{
        background-image: url(images/mobile.jpg);
    }
    /* Header text adjustments for mobile */
    .header-text{
        margin-top: 90%;
        font-size: 16px;
    }
    .header-text h1{
        font-size: 30px;
    }
    /* Navigation icons (hamburger and close) for mobile */
    nav .fas{
        display: block;
        font-size: 25px;
    }

    /* Mobile Side Menu */
    nav ul {
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -200px; /* Initially hidden off-screen */
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s ;
    }
    nav ul li{
        display: block; /* Stack links vertically */
        margin: 25px;
    }
    nav ul .fas{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    /* About section adjustments for mobile */
    .sub-title{
        font-size: 40px;
        text-align: left;
    }
    .about-col-1, .about-col-2 {
        flex-basis: 100%; /* Stack columns vertically */
    }
    .about-col-1{
        margin-bottom: 30px;
    }
    .about-col-2 {
        font-size: 14px;
    }

    .tab-links{
        font-size: 16px;
        margin-right: 20px;
    }
    
    /* Services section adjustments for mobile */
    .services-list {
        flex-direction: column; /* Stack service boxes vertically */
        gap: 40px; /* Reduce gap between elements */
    }
    .services-list div {
        max-width: 100%; /* Allow service boxes to take full width */
    }

    /* Portfolio section adjustments for mobile */
    #portfolio {
        margin-left: 5%; /* Adjust left margin for mobile */
        margin-right: 5%; /* Adjust right margin for mobile */
        padding: 20px 0; /* Adjust padding for mobile */
    }
    #portfolio .sub-title {
        text-align: left;
        margin-left: 0; /* Remove negative margin on mobile if any */
    }
    .work-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align images to the left */
        margin-left: 0; /* Remove margin from work-list itself */
        gap: 30px; /* Adjusted gap for vertical stacking */
    }
    
    .work {
        width: 100%; /* Make work items take full width */
        margin-left: 0; /* Remove negative margin from work items */
    }
    
    .work img {
        width: 100%; /* Ensure images fill their container */
        height: auto;
    }

    .btn {
        margin-left: auto; /* Center the button */
        margin-right: auto;
    }

    /* Contact section adjustments for mobile */
    .contact-left, .contact-right{
        flex-basis: 100%; /* Stack contact columns vertically */
    }
    
    .contact-left{
        margin-bottom: 30px; /* Space between left and right contact sections */
    }
    
    .contact-left p{
        font-size: 20px; /* Adjust font size for contact info */
    }
    
    /* Copyright footer adjustments for mobile */
    .copyright{
        font-size: 14px; /* Adjust font size for copyright */
    }
}

/* Message span for form submission */
#msg {
    color: #61b752;
    font-size: 18px;
    margin-top: 10px;
    display: block;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}