/* =========================
   Profile Page
========================= */

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #fff;
    color: #2c3e50;
    margin: 0;
    padding: 0;
}


.profile-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

/* Header */
.profile-header {
    text-align: left;
    margin-bottom: 40px;
}

.profile-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}
.profile-header h2 {
    font-size: 18px;
    color: #777;
    font-weight: normal;
}

/* =========================
   Profile Sections
========================= */

/* Section Heading */
.profile-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee; 
    color: #333;
}

/* =========================
   Profile image
========================= */


.profile-img {
    width: 100px !important;       
    height: 100px;                 
    border-radius: 50%;            
    object-fit: cover;             
    border: 1px solid #2c3e50;   
    display: block;                
    margin: 0 0 15px 0;            
}


/* =========================
   Bio Info
========================= */
.profile-bio p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #555;
}


/* =========================
   Skills
========================= */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #2c3e50;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* =========================
   Responsive
========================= */
@media (max-width: 600px) {
    .profile-section {
        padding: 15px;
    }

    .profile-section h3 {
        font-size: 18px;
    }

    .profile-bio p {
        font-size: 14px;
    }

    .skill-tag {
        font-size: 13px;
        padding: 5px 10px;
    }
}


/* =========================
   Experience Section
========================= */
.profile-section {
    margin-top: 30px;
    padding: 20px;
    background: #fdfdfd;
    border-radius: 12px;
    border: 1px solid #eee;
}

/* Section Heading */
.profile-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

/* Experience Item */
.profile-section > div {
    margin-bottom: 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #eee;
}

/* Job Title Company */
.profile-section strong {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

/* Job Description */
.profile-section div {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}


/* Mobile */
@media (max-width: 600px) {
    .profile-section {
        padding: 15px;
    }

    .profile-section h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .profile-section > div {
        padding: 12px;
        margin-bottom: 15px;
    }

    .profile-section strong {
        font-size: 15px;
    }

    .profile-section div {
        font-size: 13px;
    }
}

/* Tablet  */
@media (min-width: 601px) and (max-width: 991px) {
    .profile-section h3 {
        font-size: 19px;
    }

    .profile-section strong {
        font-size: 16px;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .profile-section h3 {
        font-size: 22px;
    }

    .profile-section strong {
        font-size: 17px;
    }

    .profile-section div {
        font-size: 14px;
    }
}



/* =========================
   Projects Section
========================= */
.projects-container {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #eee; 
    border-radius: 10px;
    background: #fff;
}

/* Section Heading */
.projects-container h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee; 
}

/* Grid Layout */
.projects-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr; 
}

/* Project Card */
.project-item {
    background: #f9f9f9;
    padding: 25px 20px;
    border-radius: 16px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    min-height: auto;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Title */
.project-item strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Description */
.project-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}


.project-img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: auto;
    border-radius: 10px;
    border: 1px none #ddd;
}

/* Image Styling */
.project-img-wrapper .project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
    border-radius: 10px;
}

.project-img-wrapper:hover .project-img {
    transform: scale(1.05);
}

/* Overlay Button */
.project-img-wrapper .view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2c3e50;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.project-img-wrapper:hover .view-btn {
    opacity: 1;
}

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 5px;
}

#projectModalCaption {
    margin: 10px auto;
    text-align: center;
    color: #fff;
    font-size: 16px;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal .close:hover {
    color: #bbb;
}


/*Videos*/
.project-video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-top: auto; 
}

.project-video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; 
}
.play-btn {
    font-size: 20px;
    color: #fff;
    background-color: #2c3e50;
    border-radius: 50%;          
    width: 50px;                 
    height: 50px;                
    display: flex;              
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.project-video-wrapper:hover .play-btn {
    background-color: #34495e;  
    transform: scale(1.1);       
}



/* Tablet */
@media (min-width: 601px) and (max-width: 991px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-item {
        min-height: 400px;
        padding: 20px;
    }

    .project-img-wrapper .project-img {
        height: 220px;
    }
    
    
    .video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; 
}
.play-btn {
    font-size: 20px; 
    color: #fff;
    background-color: #2c3e50;
    border-radius: 50%;          
    width: 50px;                 
    height: 50px;                
    display: flex;              
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.project-video-wrapper:hover .play-btn {
    background-color: #34495e;  
    transform: scale(1.1);       
}

}

/* Desktop */
@media (min-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .project-item {
        min-height: 570px;
        padding: 25px 20px;
    }

    .project-img-wrapper .project-img {
        height: 200px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-item {
        min-height: auto;
        padding: 15px 12px;
    }

    .project-img-wrapper .project-img {
        height: 200px;
        margin-top: 20px;
    }
    
    .video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; 
}
.play-btn {
    font-size: 20px; 
    color: #fff;
    background-color: #2c3e50;
    border-radius: 50%;          
    width: 50px;                
    height: 50px;                
    display: flex;               
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.project-video-wrapper:hover .play-btn {
    background-color: #34495e;  
    transform: scale(1.1);       
}

}



/* =========================
   Packages Section
========================= */
.packages-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0;
}

.package-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #2c3e50;
    padding: 25px 20px;
    border-radius: 16px;
    border: 1px solid #eee;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    min-height: 430px;
    position: relative;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}


.package-card strong {
    font-size: 20px;
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}


.package-card .price {
    font-size: 28px;
    font-weight: 800;
    color: #27ae60; 
    margin: 10px 0 20px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Description */
.package-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

/* Delivery */
.package-card .delivery {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    background-color: #f4f6f8;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    margin: 10px 0;
    border: 1px dashed #ccc;

    margin-top: auto; 
}

/* Buy Button */
.package-card button {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: #2c3e50;
    color: #fff;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 0; 
}

.package-card button:hover {
        background: #fff;
    border: 1px solid #2c3e50;
    color: #2c3e50;
}


@media (max-width: 992px) {
    .packages-container {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .packages-container {
        grid-template-columns: 1fr; 
    }
}


/* =========================
   SEND OFFER MODAL (THEMED)
========================= */

.offer-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.6);
    padding: 20px;
}

.offer-modal-content {
    background: #fdfdfd;
    width: 100%;
    max-width: 480px;
    margin: 6% auto;
    padding: 25px 20px;
    border-radius: 14px;
    border: 1px solid #eee;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.offer-modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

.close-offer {
    float: right;
    font-size: 26px;
    color: #2c3e50;
    font-weight: bold;
    cursor: pointer;
    margin-top: -5px;
}

.close-offer:hover {
    color: grey;
}

.offer-modal-content label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 6px;
}

.offer-modal-content input,
.offer-modal-content textarea {
    width: 95%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fafafa;
    margin-bottom: 15px;
    transition: all 0.2s;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.offer-modal-content input:focus,
.offer-modal-content textarea:focus {
    border-color: #2c3e50;
    background: #fff;
}

.offer-submit-btn {
    width: 100%;
    padding: 14px;
    background: #2c3e50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: 0.2s;
}

.offer-submit-btn:hover {
    background: #fff;
    border: 1px solid #2c3e50;
    color: #2c3e50;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {

    /* Center modal content fully */
    .offer-modal {
        padding: 0;
        display: none;        /* <-- hide by default */
        justify-content: center;
        align-items: flex-start;
    }

    .offer-modal-content {
        width: 92%;
        max-width: 92%;
        margin: 25% 0 0 20px; /* remove auto margins that break flex centering */
        padding: 18px 15px;
        box-sizing: border-box;
        position: relative;
    }

    /* Close button */
    .close-offer {
        position: absolute;
        top: 10px;
        right: 12px;
        font-size: 24px;
        cursor: pointer;
    }

    /* Title */
    .offer-modal-content h3 {
        font-size: 17px;
        text-align: center;
        padding-right: 25px;
    }

    /* Fields */
    .offer-modal-content input,
    .offer-modal-content textarea {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        border-radius: 6px;
        box-sizing: border-box;
    }

    .offer-modal-content textarea {
        height: 110px;
        resize: vertical;
    }

    /* Button */
    .offer-submit-btn {
        width: 100%;
        font-size: 15px;
        padding: 12px;
        border-radius: 8px;
    }
}



.offer-btn {
    background: #fdfdfd;
    color: #2c3e50;
    border: 1px solid #2c3e50;
    padding: 10px 48px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.offer-btn:hover {
    background: #2c3e50;
    border: 1px solid #2c3e50;
    color: #fff;
}



/* =========================
   Messaging
========================= */
.message-form textarea {
    width: 97.3%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    margin-bottom: 10px;
    resize: vertical;
}
.message-form button {
    background: #fdfdfd;
    color: #2c3e50;
    border: 1px solid #2c3e50;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}
.message-form button:hover {
    background: #2c3e50;
    border: 1px solid #2c3e50;
    color: #fff;
}

@media (max-width: 600px) {
.message-form textarea {
    width: 92%;
}
}


/* =========================
   Login link
========================= */
.login-link {
    color: #27ae60;
    text-decoration: underline; 
    font-weight: 700;            
    transition: color 0.2s;
}

.login-link:hover {
    color: grey; 
}

.login-msg {
    color: #2c3e50;
    font-size: 18px;

}
/* =========================
   Back Button
========================= */
.back-link {
    margin: 20px 0;
    text-align: left; 
}

.back-link a {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: #2c3e50;
    color: #fff;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 0; 
    text-decoration: none;
}

.back-link a:hover {
    background: #fff;          
    border-color: #2c3e50;
    color: #2c3e50; 
    border: solid;
    border-width: 1px;
}
.back-link a:active {
    background: #fff;          
    border-color: #2c3e50;
    color: #2c3e50; 
    border: solid;
    border-width: 1px;
}

/* Mobile */
@media (max-width: 600px) {
    .back-link a {
        display: block;
        text-align: center;
        width: 100%;             
    }
}

/* =========================
   Footer
========================= */
footer {
    background: #fff;
    /*border-top: 1px solid #ddd;*/
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #555;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo-img {
    /*margin-top: 15px;*/
    height: 20px;
}

@media (max-width: 768px) {
    
    footer {
    background: #fff;
    /*border-top: 1px solid #ddd;*/
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #555;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo-img {
    /*margin-top: 15px;*/
    height: 20px;
}

}

/* Responsive */
/*@media (max-width: 768px) {
    .profile-container {
        padding: 15px;
    }
    .profile-header h1 {
        font-size: 24px;
    }
    .profile-section h3 {
        font-size: 20px;
    }
    .proj-card img {
        max-width: 100%;
    }
}*/
