/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #1f2937;
    background-color: #f3f4f6;
    font-size: 17px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.98;
    line-height: 1.4;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Cards Grid Layout */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Full width cards for About and Experience */
#about,
#experience,
#beyond-work {
    grid-column: 1 / -1;
}

/* Beyond Work Section */
.section-intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #374151;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    display: block;
    background-color: #f8f9fa;
}

.photo-caption {
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    font-size: 0.95rem;
    color: #1f2937;
    font-weight: 500;
    margin: 0;
}

h2 {
    color: #1e40af;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e5e7eb;
    font-weight: 700;
}

h3 {
    color: #111827;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

p {
    margin-bottom: 16px;
    color: #374151;
    line-height: 1.8;
}

/* Experience Section */
.job {
    margin-bottom: 20px;
}

.company {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

/* Certifications */
#certifications ul {
    list-style: none;
    padding-left: 0;
}

#certifications li {
    padding: 12px 0;
    color: #374151;
    font-size: 1.1rem;
}

#certifications li:before {
    content: "✓ ";
    color: #2563eb;
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.2rem;
}

.cert-institution {
    display: block;
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 2px;
    padding-left: 28px;
}

/* Current Focus Section */
.focus-intro {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #374151;
    line-height: 1.8;
}

.focus-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    margin-top: 8px;
}

.focus-list {
    list-style: none;
    padding-left: 0;
}

.focus-list li {
    padding: 10px 0;
    padding-left: 30px;
    color: #374151;
    font-size: 1.05rem;
    position: relative;
    line-height: 1.6;
}

.focus-list li:before {
    content: "→ ";
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Education */
.education-item {
    margin-bottom: 20px;
}

.degree {
    font-weight: 700;
    color: #111827;
    font-size: 1.1rem;
}

.school {
    color: #6b7280;
    font-style: italic;
    font-size: 1rem;
}

/* Connect Section */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.social-links a {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.social-links a:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.contact {
    margin-top: 24px;
    font-size: 1.1rem;
}

.contact a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.contact a:hover {
    text-decoration: underline;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Login Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-box {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-box h3 {
    color: #1e40af;
    font-size: 1.4rem;
    margin: 0;
}

.modal-box input[type="password"] {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.modal-box input[type="password"]:focus {
    border-color: #2563eb;
}

.modal-box button {
    padding: 12px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-box button:hover {
    background-color: #1d4ed8;
}

.login-error {
    color: #dc2626;
    font-size: 0.9rem;
    margin: 0;
}

/* Profile photo clickable */
.profile-photo {
    cursor: pointer;
}

/* Private Section */
.private-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.private-header h2 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.logout-btn {
    padding: 6px 16px;
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.private-nav-cards {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.private-nav-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}

.private-nav-card:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.private-nav-card-icon {
    font-size: 1.2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .card {
        padding: 25px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .social-links a {
        text-align: center;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .photo-item img {
        height: 300px;
    }
}
