/* General Styles */
:root {
    --primary-color: #32CD32; /* Lime Green */
    --secondary-color: #7CFC00; /* Lighter Lime Green */
    --text-color: #e1e1e1;
    --light-text: #a0a0a0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --hover-color: #5a49e3;
    --border-color: #333;
    --section-spacing: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 650px;
    margin: 40px auto;
    padding: 20px;
}

/* Merged Header Section */
.merged-header {
    margin-bottom: var(--section-spacing);
}

.banner {
    width: 100%;
    border-radius: 10px 10px 0 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    filter: brightness(0.7);
}

.profile-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-left {
    flex-shrink: 0;
}

.profile-right {
    flex-grow: 1;
}

.profile-right h1 {
    color: white;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 1.8rem;
}

.contact-buttons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Profile Styles */
.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.bio {
    margin: 0 0 5px 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.location {
    font-size: 0.8rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

/* Reel Section */
.reel-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--section-spacing);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.reel-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--light-text);
    font-size: 18px;
}

.reel-placeholder i {
    margin-right: 10px;
}

/* About Me Section */
.about-me, .current-role, .work-experience, .skills, .certifications {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.about-me h2, .current-role h2, .work-experience h2, .skills h2, .certifications h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.about-me p {
    font-size: 16px;
    line-height: 1.6;
}

/* Current Role Section */
.role-card, .experience-card {
    margin-bottom: 20px;
}

.role-card:last-child, .experience-card:last-child, .freelance-card:last-child {
    margin-bottom: 0;
}

.role-card h3, .experience-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.company {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

/* Experience Section */
.experience-card {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.experience-card:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

/* Contact Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.action-btn i {
    margin-right: 5px;
}

.email-btn {
    background-color: #2c5282;
}

.email-btn:hover {
    background-color: #3182ce;
}

.phone-btn {
    background-color: #276749;
}

.phone-btn:hover {
    background-color: #38a169;
}

.download-btn {
    background-color: #444;
}

.download-btn:hover {
    background-color: #333;
}

/* Links Section */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: var(--section-spacing);
}

.link-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    background-color: var(--primary-color);
    color: white;
}

.link-card i {
    font-size: 20px;
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

/* Contact Form Section */
.contact-section {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 15px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s ease;
    background-color: #2a2a2a;
    color: var(--text-color);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--hover-color);
}

#form-status {
    text-align: center;
    margin-top: 15px;
}

.success {
    color: green;
}

.error {
    color: red;
}

/* Date Badge */
.date-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 15px;
    margin: 10px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Job Description Container */
.job-description-container {
    position: relative;
    padding-top: 5px;
    margin-top: 10px;
    padding-left: 15px;
    border-left: 2px solid var(--secondary-color);
}

/* Job Description */
.job-description {
    line-height: 1.6;
    color: var(--text-color);
    font-size: 15px;
}

/* Certifications Section */
.cert-card {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.cert-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-details h3 {
    margin-bottom: 5px;
}

.cert-details p {
    color: var(--text-color);
    font-size: 14px;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-tag {
    background-color: rgba(162, 155, 254, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
    transition: transform 0.2s ease;
    border: 1px solid var(--secondary-color);
}

.skill-tag:hover {
    transform: scale(1.05);
}

.cert-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    width: 80%;
    max-width: 600px;
    animation: modalFade 0.3s;
    position: relative;
}

@keyframes modalFade {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--light-text);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.close-modal:hover {
    color: var(--text-color);
}

/* Spacing Fix */
.contact-section {
    margin-top: 40px;
}

/* Footer */
footer {
    text-align: center;
    color: var(--light-text);
    font-size: 14px;
    margin-top: 20px;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 20px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Merged header responsive design */
    .merged-header {
        overflow: hidden;
    }
    
    .banner {
        position: relative;
        overflow: hidden;
        height: 180px;
    }
    
    .banner-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }
    
    .profile-container {
        flex-direction: row;
        align-items: center;
        padding: 15px;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
        z-index: 2;
    }
    
    .profile-left {
        margin-right: 10px;
        margin-bottom: 0;
    }
    
    .profile-img {
        width: 60px;
        height: 60px;
        margin: 0;
        display: block;
        border: 2px solid var(--primary-color);
    }
    
    .profile-right {
        width: 100%;
    }
    
    .profile-right h1 {
        font-size: 1.5rem;
    }
    
    .bio {
        font-size: 0.85rem;
    }
    
    .location {
        justify-content: center;
        font-size: 0.75rem;
    }
    
    .contact-buttons-container {
        flex-direction: column;
        gap: 10px;
    }

    .container {
        margin: 20px auto;
        padding: 15px;
    }
    
    .profile-img {
        width: 100px;
        height: 100px;
    }
    
    .profile h1 {
        font-size: 22px;
    }
    
    .bio {
        font-size: 14px;
    }
    
    .location {
        font-size: 12px;
    }
    
    .about-me, .current-role, .work-experience, .skills, .certifications {
        padding: 20px;
    }
    
    .about-me h2, .current-role h2, .work-experience h2, .skills h2, .certifications h2 {
        font-size: 18px;
    }
    
    .role-card h3, .experience-card h3, .freelance-card h3, .cert-item h3 {
        font-size: 16px;
    }
    
    .link-card {
        padding: 14px 16px;
    }
}
