/* CSS Custom Properties */
:root {
    --primary-color: #0a1929;
    --secondary-color: #1e3a5f;
    --accent-color: #00d4ff;
    --accent-secondary: #ff6b35;
    --text-primary: #ffffff;
    --text-secondary: #b0c4de;
    --text-muted: #8892b0;
    --bg-dark: #0a0e1a;
    --bg-card: #1a1f2e;
    --bg-glass: rgba(26, 31, 46, 0.8);
    --border-color: rgba(0, 212, 255, 0.3);
    --shadow-primary: 0 10px 30px rgba(0, 212, 255, 0.1);
    --shadow-secondary: 0 5px 20px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #0a1929 0%, #1e3a5f 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(30, 58, 95, 0.2) 100%);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-large: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.security-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.profile-image-container {
    margin-bottom: 2rem;
    display: inline-block;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-primary), 0 0 0 4px rgba(0, 212, 255, 0.2);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { box-shadow: var(--shadow-primary), 0 0 0 4px rgba(0, 212, 255, 0.2); }
    50% { box-shadow: var(--shadow-primary), 0 0 0 8px rgba(0, 212, 255, 0.4); }
    100% { box-shadow: var(--shadow-primary), 0 0 0 4px rgba(0, 212, 255, 0.2); }
}

.security-shield {
    font-size: 4rem;
    color: var(--primary-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    line-height: 1.2;
}

.certifications {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cert {
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-color);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.cert:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

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

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

/* Main Content */
.main-content {
    position: relative;
    z-index: 2;
}

/* Section Styles */
.section {
    padding: 5rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(26, 31, 46, 0.5);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-primary);
}

.section-title i {
    color: var(--accent-color);
    font-size: 2.25rem;
}

/* Profile Section */
.profile-content {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.profile-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--bg-glass);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-secondary);
}

.profile-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
    border-color: var(--accent-color);
}

.profile-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.profile-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-accent);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 120px;
}

.timeline-marker {
    position: absolute;
    left: 26px;
    top: 0;
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary), 0 0 0 4px var(--bg-dark);
    z-index: 2;
}

.timeline-marker i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.timeline-content {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-secondary);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-primary);
    border-color: var(--accent-color);
}

.job-header {
    margin-bottom: 2rem;
}

.job-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.company-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.company {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.duration {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.25rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.job-description {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.achievements {
    list-style: none;
    padding: 0;
}

.achievements li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.achievements li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.achievements li strong {
    color: var(--accent-secondary);
    font-weight: 600;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.education-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-secondary);
}

.education-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-primary);
    border-color: var(--accent-color);
}

.education-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
}

.education-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.degree {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.university {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.education-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.graduation,
.gpa {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.25rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* Bot Protection & Identity Styles */
.alias-reveal {
    margin-bottom: 1rem;
    text-align: center;
}

.alias-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.real-name-hidden {
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--border-radius);
    color: var(--accent-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.real-name-hidden:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.protected-info {
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--accent-color);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.protected-info:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.protected-info.revealed {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

#nameCanvas {
    max-width: 100%;
    height: auto;
}

/* Human Verification Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    margin: 10% auto;
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-large);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-primary);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    transition: var(--transition);
}

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

.modal-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-content h3 i {
    color: var(--accent-color);
}

.verification-challenge {
    margin: 2rem 0;
}

.challenge-question {
    background: var(--bg-glass);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
    text-align: center;
}

#challengeAnswer {
    width: 100%;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

#challengeAnswer:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.verify-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.modal-footer {
    margin-top: 1rem;
    text-align: center;
}

.modal-footer small {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* LinkedIn Section */
.linkedin-section {
    background: var(--gradient-overlay);
}

.linkedin-disclaimer {
    text-align: center;
    margin-bottom: 2rem;
}

.linkedin-disclaimer p {
    color: var(--text-muted);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.linkedin-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.linkedin-post-placeholder {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.post-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.post-loading i {
    font-size: 2rem;
    color: #0077b5;
}

.rotating {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.linkedin-post {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.linkedin-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
    border-color: #0077b5;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-author-image i {
    color: var(--primary-color);
}

.post-meta {
    flex-grow: 1;
}

.post-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.post-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-engagement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.engagement-stats {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.linkedin-cta {
    text-align: center;
}

.linkedin-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-large);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 119, 181, 0.3);
}

.linkedin-connect-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 119, 181, 0.4);
}

.linkedin-connect-btn i.fab {
    font-size: 1.5rem;
}

.linkedin-connect-btn i.fas {
    font-size: 0.9rem;
}

/* Challenge Hint Styles */
.challenge-hint {
    background: var(--bg-glass);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 193, 7, 0.3);
    margin: 1rem 0;
    color: #ffc107;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    animation: hintReveal 0.3s ease-out;
}

@keyframes hintReveal {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.challenge-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.challenge-controls input {
    flex: 1;
    min-width: 200px;
}

.hint-btn {
    padding: 0.75rem 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--border-radius);
    color: #ffc107;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.hint-btn:hover {
    background: rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

.hint-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Content Grid Styles */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.speaking-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.content-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 0;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-secondary);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-primary);
    border-color: var(--accent-color);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem 2rem 1rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.salesforce-icon {
    background: linear-gradient(135deg, #0176d3 0%, #0099cc 100%);
    color: white;
}

.admin-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.podcast-icon {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: white;
}

.dreamforce-icon {
    background: linear-gradient(135deg, #0176d3 0%, #0099cc 100%);
    color: white;
}

.tdx-icon {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
}

.worldtour-icon {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

.card-meta {
    flex-grow: 1;
}

.card-meta h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-source {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.card-date,
.card-venue {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.card-content {
    padding: 0 2rem 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 500;
}

.card-footer {
    padding: 1rem 2rem 2rem;
    margin-top: auto;
}

.read-more-btn,
.listen-btn,
.watch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    background: transparent;
    font-size: 0.9rem;
    min-width: 180px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.read-more-btn:hover,
.listen-btn:hover,
.watch-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.listen-btn {
    border-color: #9333ea;
    color: #9333ea;
}

.listen-btn:hover {
    background: #9333ea;
    color: white;
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
}

.watch-btn {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.watch-btn:hover {
    background: var(--accent-secondary);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Decryption Button States */
.read-more-btn .fa-spinner,
.listen-btn .fa-spinner,
.watch-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

.read-more-btn .fa-check,
.listen-btn .fa-check,
.watch-btn .fa-check {
    color: #28a745;
    animation: checkPulse 0.6s ease-out;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Button decrypting state */
.read-more-btn:has(.fa-spinner),
.listen-btn:has(.fa-spinner),
.watch-btn:has(.fa-spinner) {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    cursor: wait;
}

/* Button success state */
.read-more-btn:has(.fa-check),
.listen-btn:has(.fa-check),
.watch-btn:has(.fa-check) {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #28a745;
}

/* Presentation Infographic Gallery Styles */
.presentation-infographic {
    margin: 3rem 0;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-secondary);
}

.infographic-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    justify-content: center;
}

.infographic-title i {
    color: var(--accent-color);
}

.infographic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.presentation-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-secondary);
}

.presentation-tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-primary);
    border-color: var(--accent-color);
}

.tile-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.presentation-tile:hover .tile-image img {
    transform: scale(1.1);
}

.tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--accent-color);
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.presentation-tile:hover .tile-overlay {
    opacity: 1;
}

.tile-overlay i {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.tile-overlay span {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tile-info {
    padding: 1.25rem;
}

.tile-info h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.tile-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.tile-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.event-type {
    background: var(--gradient-accent);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-year {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Image Expand Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    color: var(--accent-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 2001;
}

.modal-close-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.expanded-image-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: scaleIn 0.4s ease-out;
}

.expanded-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-primary);
    border: 1px solid var(--border-color);
}

.expanded-image-info {
    text-align: center;
    background: var(--bg-glass);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-secondary);
}

.expanded-image-info h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.expanded-image-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.8);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

/* Device-Specific Optimizations */

/* Mobile Device Optimizations */
.device-mobile {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.device-mobile .matrix-rain {
    display: none; /* Disable matrix rain on mobile for performance */
}

.mobile-optimized .particle-system {
    animation-duration: 4s; /* Slower particles on mobile */
}

.mobile-optimized .typewriter-effect {
    animation-duration: 3s; /* Faster typing effect on mobile */
}

/* Reduce animations on small mobile screens */
.reduce-animations * {
    animation-duration: 0.3s !important;
    transition-duration: 0.2s !important;
}

.reduce-animations .matrix-rain,
.reduce-animations .particle-float {
    display: none !important;
}

/* Mobile Navigation Dots */
.mobile-nav-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.nav-dot:hover,
.nav-dot.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    transform: scale(1.2);
}

.nav-dot.active::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Tablet Optimizations */
.device-tablet .matrix-rain {
    opacity: 0.5; /* Reduced intensity matrix rain for tablets */
}

.tablet-optimized .presentation-infographic {
    padding: 1.5rem;
}

/* Desktop Optimizations */
.desktop-optimized .matrix-rain {
    opacity: 1; /* Full matrix rain on desktop */
}

.hover-effects-enabled .presentation-tile:hover {
    transform: translateY(-12px) scale(1.03); /* Enhanced hover effects on desktop */
}

/* Touch-Specific Styles */
.touch-supported .presentation-tile {
    cursor: pointer;
}

.touch-supported .biometric-scan-btn,
.touch-supported .read-more-btn,
.touch-supported .listen-btn,
.touch-supported .watch-btn {
    min-height: 44px; /* iOS touch target minimum */
    padding: 12px 16px;
}

/* Browser-Specific Optimizations */

/* Safari iOS specific */
.os-ios {
    -webkit-overflow-scrolling: touch;
}

.os-ios .hero-section {
    background-attachment: scroll; /* Fix parallax issues on iOS */
}

/* Android specific */
.os-android .matrix-rain {
    will-change: transform; /* Better performance on Android */
}

/* Chrome specific optimizations */
.browser-chrome .particle-system {
    transform: translateZ(0); /* Enable hardware acceleration */
}

/* Firefox specific */
.browser-firefox .gradient-accent {
    background: linear-gradient(135deg, #00d4ff 0%, #7b68ee 100%); /* Better gradient support */
}

/* Screen Size Specific */

/* Small screens (< 480px) */
.screen-small .infographic-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.screen-small .tile-info {
    padding: 0.75rem;
}

.screen-small .modal-close-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

/* Medium screens (480px - 768px) */
.screen-medium .infographic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* Large screens (768px - 1024px) */
.screen-large .infographic-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Extra large screens (> 1024px) */
.screen-xlarge .infographic-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Performance Optimizations for Mobile */
@media (max-width: 768px) {
    .device-mobile .hero-section {
        background-attachment: scroll; /* Better mobile performance */
    }
    
    .device-mobile .security-grid {
        transform: none !important; /* Disable parallax on mobile */
    }
    
    /* Optimize touch targets */
    .device-mobile button,
    .device-mobile .protected-info,
    .device-mobile .presentation-tile {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve text readability on mobile */
    .device-mobile .section-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .device-mobile .tile-info h4 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .device-mobile .tile-info p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .device-mobile #nameCanvas,
    .device-mobile .carousel-image,
    .device-mobile .presentation-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support for Mobile */
@media (prefers-color-scheme: dark) {
    .device-mobile {
        --text-primary: #ffffff;
        --text-secondary: #b3b3b3;
        --bg-dark: #0a0e1a;
        --bg-card: #1a1f2e;
    }
}

/* Landscape Mobile Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .device-mobile .mobile-nav-dots {
        right: 10px;
        gap: 8px;
    }
    
    .device-mobile .nav-dot {
        width: 10px;
        height: 10px;
    }
    
    .device-mobile .hero-section {
        padding: 1rem 0;
    }
}

/* Section Alternating Backgrounds */
.blog-section {
    background: rgba(26, 31, 46, 0.3);
}

.podcast-section {
    background: rgba(147, 51, 234, 0.05);
}

.speaking-section {
    background: var(--gradient-overlay);
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-content p {
    color: var(--text-muted);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-link {
    width: auto;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

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

/* Protected footer link styling */
.footer-link.protected-info {
    background: rgba(255, 87, 34, 0.1);
    border-color: rgba(255, 87, 34, 0.3);
    color: #ff5722;
}

.footer-link.protected-info:hover {
    background: rgba(255, 87, 34, 0.2);
    border-color: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.footer-link.protected-info.revealed {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .security-shield {
        font-size: 3rem;
    }
    
    #nameCanvas {
        width: 300px;
        height: 60px;
    }
    
    .alias-reveal {
        margin-bottom: 1.5rem;
    }
    
    .real-name-hidden {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .protected-info {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .timeline-marker {
        left: -4px;
        width: 40px;
        height: 40px;
    }
    
    .timeline-marker i {
        font-size: 1rem;
    }
    
    .timeline-content:hover {
        transform: translateY(-5px);
    }
    
    .company-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .education-item {
        padding: 2rem;
    }
    
    .profile-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .profile-item i {
        font-size: 2rem;
    }
    
    .linkedin-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .linkedin-connect-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .verification-challenge {
        margin: 1.5rem 0;
    }
    
    #challengeAnswer {
        font-size: 1rem;
    }
    
    .challenge-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .challenge-controls input {
        min-width: auto;
    }
    
    .hint-btn {
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .card-content {
        padding: 0 1.5rem 1rem;
    }
    
    .card-footer {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .card-meta h3 {
        font-size: 1.1rem;
    }
    
    /* Carousel Mobile Styles */
    .carousel-title {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .carousel-protection {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .carousel-track-container {
        height: 350px;
    }
    
    .carousel-controls {
        padding: 0 0.5rem;
    }
    
    .carousel-button {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .slide-info {
        padding: 1.25rem;
    }
    
    .slide-info h4 {
        font-size: 1.1rem;
    }
    
    .slide-info p {
        font-size: 0.9rem;
    }
    
    .carousel-nav {
        padding: 1.25rem 0 0;
        gap: 0.6rem;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
    
    /* Infographic Gallery Mobile Styles */
    .infographic-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .presentation-tile {
        max-width: 100%;
    }
    
    .tile-image {
        height: 180px;
    }
    
    .tile-info {
        padding: 1rem;
    }
    
    .tile-info h4 {
        font-size: 1rem;
    }
    
    .tile-info p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .tile-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .event-type {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .event-year {
        font-size: 0.85rem;
    }
    
    .infographic-title {
        font-size: 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .image-modal-content {
        padding: 1rem;
    }
    
    .expanded-image-container {
        max-width: 95%;
        max-height: 95%;
        gap: 1rem;
    }
    
    .expanded-image-info {
        padding: 1rem 1.5rem;
    }
    
    .expanded-image-info h3 {
        font-size: 1.25rem;
    }
    
    .expanded-image-info p {
        font-size: 0.9rem;
    }
    
    .modal-close-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .certifications {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .education-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        text-align: center;
        flex-direction: column;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .security-grid {
        animation: none;
    }
    
    .floating-particles::before,
    .floating-particles::after {
        animation: none;
    }
    
    .profile-image {
        animation: none;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .hero-background,
    .floating-particles,
    .security-grid {
        display: none;
    }
    
    .section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .timeline-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
