/*
Theme Name: PortfolioPro
Theme URI: https://luncanalex.dev/
Author: Alex Luncan
Author URI: https://luncanalex.dev/
Description: A sophisticated portfolio theme crafted exclusively for Generous Necesito to elegantly showcase professional achievements, certifications, and career milestones. Features a modern, minimalist design with seamless Coursera integration and comprehensive customization options.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portfoliopro
Tags: portfolio, one-column, custom-background, custom-colors, custom-menu, featured-images, theme-options, translation-ready, education, developer, responsive-layout, rtl-language-support
*/

/* ==========================================================================
   RESET & BASE - Force all styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section {
    padding-top: 96px;
    padding-bottom: 96px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
}

.site-logo {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.main-nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #0f172a;
}

/* ==========================================================================
   HERO SECTION - TWO COLUMN LAYOUT (CRITICAL)
   ========================================================================== */
.hero {
    min-height: 100vh;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
}

/* TWO COLUMN GRID - THIS IS CRITICAL */
.hero-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 80px !important;
    align-items: center !important;
    width: 100%;
}

/* LEFT COLUMN */
.hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* Available for Work Badge */
.badge-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 8px 16px;
    background-color: #374151 !important;
    color: #ffffff !important;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-pill svg {
    width: 14px;
    height: 14px;
}

/* Hero Heading */
.hero-greeting {
    font-size: 18px;
    color: #64748b !important;
    font-weight: 400;
    margin-bottom: 8px;
}

.hero-name {
    font-size: 56px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.1 !important;
    margin-bottom: 16px !important;
}

/* Subtitle */
.hero-subtitle {
    font-size: 20px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.hero-subtitle strong {
    font-weight: 700;
    color: #0f172a;
}

/* Bio */
.hero-bio {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

/* BUTTONS - SIDE BY SIDE (CRITICAL) */
.hero-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
}

.btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border: none;
}

.btn-primary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent !important;
    color: #0f172a !important;
    border: 2px solid #e2e8f0 !important;
}

.btn-outline:hover {
    border-color: #0f172a;
    transform: translateY(-2px);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* Social Icons - HORIZONTAL ROW */
.hero-social {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    margin-bottom: 48px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.2s;
}

.social-link:hover {
    color: #6366f1;
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* STATS - HORIZONTAL ROW (CRITICAL) */
.hero-stats {
    display: flex !important;
    flex-direction: row !important;
    gap: 48px !important;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
}

/* RIGHT COLUMN - PROFILE IMAGE */
.hero-image-wrapper {
    position: relative;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Gray Ring Behind Profile */
/* Hide the gray ring - replaced with shadow blur */
.hero-image-ring {
    display: none !important;
}

/* Profile Picture - PERFECT CIRCLE with Shadow Blur */
.profile-picture {
    width: 320px !important;
    height: 320px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 6px solid #ffffff !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 10px 20px rgba(0, 0, 0, 0.08),
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 0 80px rgba(99, 102, 241, 0.08) !important;
    position: relative;
    z-index: 1;
}

/* Available for Hire Badge */
.available-badge {
    position: absolute;
    bottom: 40px;
    right: 20px;
    background-color: #ffffff;
    padding: 10px 16px;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    z-index: 2;
}

.available-dot {
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
    margin-top: 48px;
}

.scroll-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #94a3b8;
}

.scroll-text svg {
    width: 20px;
    height: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills {
    background-color: #f8fafc;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-card {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.skill-icon {
    color: #6366f1;
}

.skill-icon svg {
    width: 24px;
    height: 24px;
}

.skill-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 12px;
    background-color: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* ==========================================================================
   EXPERIENCE SECTION
   ========================================================================== */
.experience {
    background-color: #ffffff;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.experience-card {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.experience-title-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.experience-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    border-radius: 12px;
    color: #64748b;
    flex-shrink: 0;
}

.experience-icon svg {
    width: 24px;
    height: 24px;
}

.experience-details h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.experience-company {
    font-size: 15px;
    color: #6366f1;
    font-weight: 500;
}

.experience-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 14px;
    color: #94a3b8;
}

.experience-date,
.experience-location {
    display: flex;
    align-items: center;
    gap: 6px;
}

.experience-date svg,
.experience-location svg {
    width: 14px;
    height: 14px;
}

.experience-description {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 16px;
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    padding: 4px 10px;
    background-color: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* ==========================================================================
   CERTIFICATES SECTION
   ========================================================================== */
.certificates {
    background-color: #f8fafc;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

.certificate-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.certificate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.certificate-image {
    display: none;
}

.certificate-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.certificate-issuer {
    font-size: 13px;
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.certificate-date {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.certificate-title {
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.certificate-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.6;
}

.certificate-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.certificate-tech-tag {
    padding: 4px 8px;
    background-color: #f1f5f9;
    color: #475569;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.certificate-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-small svg {
    width: 16px;
    height: 16px;
}

.btn-code {
    background-color: #0f172a;
    color: #ffffff;
    border: none;
}

.btn-code:hover {
    background-color: #1e293b;
}

.btn-demo {
    background-color: transparent;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.btn-demo:hover {
    border-color: #0f172a;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact {
    background-color: #ffffff;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    padding: 24px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #6366f1;
    border-radius: 12px;
}

.contact-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    border-radius: 12px;
    color: #6366f1;
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
}

.contact-card-text {
    display: flex;
    flex-direction: column;
}

.contact-card-label {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-card-value {
    font-size: 16px;
    color: #0f172a;
    font-weight: 600;
}

.contact-form-wrapper h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #0f172a;
    background-color: #f8fafc;
    transition: all 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-send {
    width: 100%;
    padding: 16px 24px;
    background-color: #0f172a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-send:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-send svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding-top: 48px;
    padding-bottom: 48px;
}

.footer-content {
    text-align: center;
}

.footer-name {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.footer-title {
    font-size: 15px;
    color: #6366f1;
    margin-bottom: 16px;
}

.footer-copyright {
    font-size: 14px;
    color: #94a3b8;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr !important;
        gap: 48px !important;
        text-align: center;
    }

    .hero-content {
        align-items: center !important;
        order: 2;
    }

    .hero-image-wrapper {
        order: 1;
    }

    .hero-bio {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center !important;
    }

    .hero-social {
        justify-content: center !important;
    }

    .hero-stats {
        justify-content: center !important;
    }

    .skills-grid,
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .skills-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .experience-header {
        flex-direction: column;
        gap: 16px;
    }

    .experience-meta {
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-name {
        font-size: 36px !important;
    }

    .profile-picture {
        width: 240px !important;
        height: 240px !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px !important;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   HEADER NAVIGATION (v1.1.0)
   ========================================================================== */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid #f1f5f9 !important;
    transition: all 0.3s ease !important;
}

.site-header.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 0 !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

.site-logo {
    display: flex !important;
    align-items: center !important;
}

.logo-text {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
}

.main-nav {
    display: flex !important;
    align-items: center !important;
    gap: 40px !important;
}

.main-nav a {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    transition: color 0.2s !important;
}

.main-nav a:hover,
.main-nav a.active {
    color: #0f172a !important;
}

.mobile-menu-toggle {
    display: none !important;
    background: none !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer !important;
    color: #0f172a !important;
}

.mobile-menu-toggle svg {
    width: 24px !important;
    height: 24px !important;
}

/* Add top padding to body for fixed header */
body {
    padding-top: 72px !important;
}

@media (max-width: 768px) {
    .main-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
    }
}

/* ==========================================================================
   CONTACT FORM SUCCESS ANIMATION (v1.1.0)
   ========================================================================== */
.contact-success {
    text-align: center !important;
    padding: 48px 24px !important;
}

.contact-success .success-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 24px !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: successPop 0.5s ease !important;
}

.contact-success .success-icon svg {
    width: 40px !important;
    height: 40px !important;
    color: #ffffff !important;
}

.contact-success h4 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 12px !important;
}

.contact-success p {
    font-size: 16px !important;
    color: #64748b !important;
    margin-bottom: 24px !important;
    max-width: 400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.btn-new-message {
    padding: 12px 24px !important;
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.btn-new-message:hover {
    background-color: #e2e8f0 !important;
}

.animate-success {
    animation: fadeInUp 0.5s ease !important;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Form Error */
.contact-error {
    padding: 12px 16px !important;
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 8px !important;
    margin-bottom: 16px !important;
}

.contact-error p {
    color: #dc2626 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

/* Button Loading State */
.btn-text,
.btn-loading {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.btn-send:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.spinner {
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
