/* Modern, professional website styling */
:root {
    --primary-color: #0e4d92;
    --secondary-color: #0077b6;
    --accent-color: #00b4d8;
    --text-color: #333;
    --light-text: #f8f9fa;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

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

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--box-shadow);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo a {
    color: var(--light-text);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--light-text);
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

nav ul li a:hover, 
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Main content */
main {
    padding: 3rem 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(14, 77, 146, 0.8), rgba(0, 119, 182, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 5rem 1rem;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

/* Resume / Portfolio Section */
.resume-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.resume-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.resume-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.resume-header p {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.resume-section {
    margin-bottom: 2.5rem;
}

.resume-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.experience-item {
    margin-bottom: 1.8rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

.experience-item:hover {
    border-left-color: var(--primary-color);
}

.experience-item h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.experience-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #666;
}

.experience-item ul {
    padding-left: 1.2rem;
}

.experience-item li {
    margin-bottom: 0.5rem;
}

/* Skills */
.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-item {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.skill-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Certifications */
.certifications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.certification-item {
    text-align: center;
    padding: 0.75rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    flex: 0 1 auto;
    max-width: 180px;
    min-width: 160px;
}

.certification-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.certification-item a {
    color: inherit;
    text-decoration: none;
}

.certification-item h4 {
    margin-top: 0.5rem;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
}

.certification-item div[data-share-badge-id] {
    margin: 0 auto;
    transform: scale(0.7);
    transform-origin: center;
}

/* Custom Award Badge Styling */
.award-item {
    background: linear-gradient(135deg, #1ba1e2 0%, #0e4d92 100%);
    color: white;
    border: 2px solid #1ba1e2;
}

.award-item:hover {
    background: linear-gradient(135deg, #0e4d92 0%, #1ba1e2 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(27, 161, 226, 0.3);
}

.award-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    margin: 0.5rem 0;
}

.award-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.award-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    cursor: pointer;
    transition: var(--transition);
}

.award-image:hover {
    transform: scale(1.05);
}

/* TAC Hero Image Popup */
.tac-hero-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.tac-hero-popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    max-height: 80vh;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tac-hero-popup-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.tac-hero-popup-text {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.tac-hero-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    font-weight: bold;
}

.tac-hero-popup-close:hover {
    color: var(--primary-color);
}

.award-text {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.award-item h4 {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mobile responsiveness for certifications */
@media (max-width: 768px) {
    .certifications-grid {
        gap: 0.75rem;
    }
    
    .certification-item {
        padding: 0.5rem;
        max-width: 140px;
        min-width: 120px;
    }
    
    .certification-item h4 {
        font-size: 0.75rem;
    }
    
    .certification-item div[data-share-badge-id] {
        transform: scale(0.6);
    }
    
    .award-badge {
        height: 100px;
    }
    
    .award-icon {
        font-size: 2.5rem;
    }
    
    .award-image {
        width: 90px;
        height: 90px;
    }
    
    .award-text {
        font-size: 0.8rem;
    }
    
    .tac-hero-popup-content {
        margin: 1rem;
        padding: 1.5rem;
        max-width: 90vw;
    }
    
    .tac-hero-popup-image {
        width: 250px;
        height: 250px;
    }
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* About page */
.about-container {
    display: flex;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-content {
    flex: 2;
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-content p {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 2rem 0;
    text-align: center;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    margin: 0 0.5rem;
}

social-links a:hover {
    color: var(--accent-color);
}

/* Playbill Popup Styles */
.playbill-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playbill-popup.show {
    opacity: 1;
}

.playbill-popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 80px; /* Add space for controls */
}

.playbill-popup-image {
    max-width: 600px;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.playbill-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10001;
}

.playbill-popup-close:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.playbill-popup-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.playbill-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.playbill-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.playbill-control-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.playbill-popup-counter {
    color: white;
    font-weight: 500;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile responsiveness for playbill popup */
@media (max-width: 768px) {
    .playbill-popup-image {
        max-width: 95vw;
        max-height: 60vh;
    }
    
    .playbill-popup-content {
        padding-bottom: 70px; /* Adjust for mobile */
    }
    
    .playbill-popup-controls {
        bottom: 15px;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .playbill-control-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .playbill-popup-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: -10px;
        right: -10px;
    }
    
    .playbill-popup-counter {
        font-size: 12px;
        padding: 6px 10px;
        min-width: 50px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 1rem;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.5rem;
    }
    
    .experience-meta {
        flex-direction: column;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}