/* Clean Dark Professional Resume with Advanced Effects */

:root {
    /* Dark theme colors */
    --bg-primary: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #888888;
    --accent-blue: #4a9eff;
    --accent-blue-glow: rgba(74, 158, 255, 0.5);
    --border-color: #2a2a2a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 16px;
    position: relative;
}

/* Background subtle animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(74, 158, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(74, 158, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Return to Top Button */
.return-to-top {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(74, 158, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(74, 158, 255, 0.3);
    }
    50% {
        box-shadow: 0 2px 20px rgba(74, 158, 255, 0.6);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(74, 158, 255, 0.4),
            0 0 40px rgba(74, 158, 255, 0.2),
            inset 0 0 10px rgba(74, 158, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 35px rgba(74, 158, 255, 0.6),
            0 0 70px rgba(74, 158, 255, 0.3),
            inset 0 0 20px rgba(74, 158, 255, 0.15);
    }
}

@keyframes card-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.return-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 30px rgba(74, 158, 255, 0.7);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Header Section */
.header {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 6px 25px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header:hover {
    border-color: var(--accent-blue);
    box-shadow: 
        0 0 40px rgba(74, 158, 255, 0.5),
        0 0 80px rgba(74, 158, 255, 0.3),
        0 15px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px) scale(1.005);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-blue) 20%, 
        var(--accent-blue) 80%, 
        transparent);
    animation: shimmer-3x 3s ease-in-out;
}

@keyframes shimmer-3x {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0;
    }
    5%, 95% {
        opacity: 1;
    }
    10% {
        transform: translateX(100%);
    }
    20% {
        transform: translateX(100%);
        opacity: 0;
    }
    25% {
        transform: translateX(-100%);
        opacity: 0;
    }
    30%, 35% {
        opacity: 1;
    }
    40% {
        transform: translateX(100%);
    }
    50% {
        transform: translateX(100%);
        opacity: 0;
    }
    55% {
        transform: translateX(-100%);
        opacity: 0;
    }
    60%, 65% {
        opacity: 1;
    }
    70% {
        transform: translateX(100%);
    }
    80%, 100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.profile-photo {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    margin: 0 15px 0 0;
    border: 4px solid var(--accent-blue);
    display: block;
    object-fit: cover;
    object-position: center 20%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.5);
    flex-shrink: 0;
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;
}

.profile-photo:hover {
    box-shadow: 0 0 40px rgba(74, 158, 255, 0.8),
                0 0 60px rgba(74, 158, 255, 0.4);
    border-color: #6bb3ff;
}

.profile-photo.flipped {
    animation: photoFlip 0.6s ease-in-out;
}

@keyframes photoFlip {
    0% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.1); }
    100% { transform: rotateY(360deg) scale(1); }
}

.profile-photo.glitch {
    animation: glitchEffect 0.5s ease-in-out;
}

@keyframes glitchEffect {
    0%, 100% {
        transform: translate(0, 0);
        filter: hue-rotate(0deg);
    }
    10% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    20% {
        transform: translate(2px, -2px);
        filter: hue-rotate(180deg);
    }
    30% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(270deg);
    }
    40% {
        transform: translate(2px, 2px);
        filter: hue-rotate(360deg);
    }
    50% {
        transform: translate(0, 0);
        filter: hue-rotate(0deg) brightness(1.5);
    }
}

.header-text {
    text-align: left;
    margin-right: 30px;
}

.name {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.header:hover .name {
    text-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
}

.title {
    font-size: 16px;
    color: var(--accent-blue);
    font-weight: 400;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.header:hover .title {
    text-shadow: 0 0 15px rgba(74, 158, 255, 0.5);
}

.contact-bar {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 17px;
    margin-left: 40px;
}

.contact-item {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item:hover {
    color: var(--text-primary);
}

.contact-item a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
    text-decoration: underline;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Sections */
.section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 10px rgba(74, 158, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.2);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.08), transparent);
    transition: left 0.5s ease;
}

.section:hover::before {
    left: 100%;
}

.section:hover {
    border-color: var(--accent-blue);
    box-shadow: 
        0 0 25px rgba(74, 158, 255, 0.4),
        0 0 50px rgba(74, 158, 255, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 15px rgba(74, 158, 255, 0.05);
    transform: translateY(-3px) scale(1.01);
    background: linear-gradient(
        135deg,
        var(--bg-card),
        rgba(74, 158, 255, 0.02)
    );
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-blue);
    position: relative;
    transition: all 0.3s ease;
}

.section:hover .section-title {
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.4);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), #6bb3ff);
    transition: width 0.5s ease;
}

.section:hover .section-title::after {
    width: 100%;
}

/* Profile */
.profile-text {
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: left !important;
}

.profile p {
    text-align: left !important;
}

/* Employment Header */
.employment-header {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-blue);
    text-align: left;
}

/* Position Cards - Each job in its own glowing card */
.position-card {
    margin-bottom: 20px;
}

.position-card:hover {
    transform: translateY(-3px) scale(1.01);
}

/* Employment */
.position {
    margin: 0;
    padding: 0;
    border: none;
}

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

.position-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.position-card:hover .position-title {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.4);
}

.dates {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
}

.position-description {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

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

.achievements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.achievements li:hover {
    padding-left: 25px;
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(74, 158, 255, 0.3);
}

.achievements li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.achievements li:hover::before {
    content: '→';
    color: #6bb3ff;
    text-shadow: 0 0 12px rgba(74, 158, 255, 0.8);
}

.position-divider {
    margin-top: 20px;
    font-size: 18px;
    text-align: center;
    color: var(--accent-blue);
    letter-spacing: 0.3em;
}

/* Additional Experience */
.additional-grid {
    display: grid;
    gap: 15px;
}

.additional-item {
    padding: 15px;
    background: var(--bg-primary);
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
    transition: all 0.3s ease;
    cursor: pointer;
}

.additional-item:hover {
    background: rgba(74, 158, 255, 0.08);
    border-left-width: 5px;
    transform: translateX(5px) scale(1.02);
    box-shadow: 
        0 0 25px rgba(74, 158, 255, 0.4),
        0 0 40px rgba(74, 158, 255, 0.2),
        inset 0 0 15px rgba(74, 158, 255, 0.1);
    border-color: var(--accent-blue);
}

.additional-role {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.additional-company {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
}

/* Sidebar */
.side-column .section {
    background: var(--bg-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 15px rgba(74, 158, 255, 0.2),
        0 0 30px rgba(74, 158, 255, 0.1),
        inset 0 0 10px rgba(74, 158, 255, 0.05);
    animation: subtle-glow 3s ease-in-out infinite;
}

@keyframes subtle-glow {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(74, 158, 255, 0.2),
            0 0 30px rgba(74, 158, 255, 0.1),
            inset 0 0 10px rgba(74, 158, 255, 0.05);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(74, 158, 255, 0.3),
            0 0 40px rgba(74, 158, 255, 0.15),
            inset 0 0 15px rgba(74, 158, 255, 0.08);
    }
}

.side-column .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(74, 158, 255, 0.1),
        rgba(74, 158, 255, 0.2),
        rgba(74, 158, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.side-column .section:hover::before {
    left: 100%;
}

.side-column .section:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 0 30px rgba(74, 158, 255, 0.5),
        0 0 60px rgba(74, 158, 255, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(74, 158, 255, 0.1);
    border-color: var(--accent-blue);
    border-width: 2px;
}

/* Details */
.detail-item {
    margin-bottom: 10px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.detail-item:hover {
    padding-left: 5px;
    text-shadow: 0 0 15px rgba(74, 158, 255, 0.6);
}

.detail-item a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.detail-item a:hover {
    text-shadow: 0 0 20px rgba(74, 158, 255, 0.8);
    color: #6bb3ff;
}

/* Demo link in profile */
.demo-link {
    color: var(--accent-blue);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px dashed var(--accent-blue);
}

.demo-link:hover {
    text-shadow: 0 0 20px rgba(74, 158, 255, 0.8);
    color: #6bb3ff;
    border-bottom-color: #6bb3ff;
}

/* Download Section */
.download-section {
    text-align: center;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(74, 158, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    justify-content: center;
}

.download-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 0 30px rgba(74, 158, 255, 0.6),
        0 8px 25px rgba(74, 158, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, var(--accent-blue-light), var(--accent-blue));
}

.download-icon {
    font-size: 20px;
}

.download-text {
    letter-spacing: 0.5px;
}

/* Skills */
.skills-list {
    list-style: none;
}

.skills-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
    transition: all 0.3s ease;
}

.skills-list li:hover {
    color: var(--text-primary);
    padding-left: 25px;
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.4);
}

.skills-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.skills-list li:hover::before {
    content: '▸';
    color: #6bb3ff;
    text-shadow: 0 0 15px rgba(74, 158, 255, 0.8);
}

/* Education */
.education-item {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(74, 158, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.education-item:hover::before {
    left: 100%;
}

.education-item:hover {
    background: rgba(74, 158, 255, 0.05);
    box-shadow: 
        0 0 20px rgba(74, 158, 255, 0.3),
        inset 0 0 20px rgba(74, 158, 255, 0.1);
    transform: scale(1.02);
}

.degree {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.degree-field {
    font-size: 15px;
    color: var(--accent-blue);
    margin-bottom: 3px;
}

.university {
    color: var(--text-secondary);
}

/* Awards */
.award-item {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.award-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(74, 158, 255, 0.15),
        transparent
    );
    transition: left 0.5s ease;
}

.award-item:hover::after {
    left: 100%;
}

.award-item::before {
    content: '🏆';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.award-item:hover::before {
    opacity: 0.3;
}

.award-item:hover {
    background: rgba(74, 158, 255, 0.05);
    border-left-width: 5px;
    transform: translateX(5px);
    box-shadow: 
        0 0 30px rgba(74, 158, 255, 0.5),
        0 0 50px rgba(74, 158, 255, 0.3),
        inset 0 0 20px rgba(74, 158, 255, 0.1);
}

.award-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.award-date {
    font-size: 13px;
    color: var(--text-muted);
}

.award-detail {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        padding: 30px;
    }
    
    .name {
        font-size: 36px;
    }
    
    .contact-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .position-header {
        flex-direction: column;
    }
    
    .dates {
        margin-top: 5px;
    }

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

/* Print Styles - Clean white background for toner-friendly printing */
@media print {
    /* Override dark theme for printing */
    * {
        -webkit-print-color-adjust: economy !important;
        print-color-adjust: economy !important;
        color-adjust: economy !important;
    }
    
    body {
        background: white !important;
        color: #000000 !important;
        font-size: 11pt !important;
        line-height: 1.4 !important;
    }
    
    body::before {
        display: none;
    }
    
    .return-to-top,
    .download-section {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* White backgrounds for all sections */
    .header,
    .section,
    .position-card,
    .additional-item,
    .award-item,
    .education-item {
        background: white !important;
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
        transform: none !important;
        page-break-inside: avoid;
    }
    
    /* Remove all decorative elements */
    .header::before,
    .section::before,
    .section::after,
    .section-title::after,
    .award-item::before,
    .award-item::after,
    .education-item::before,
    .education-item::after,
    .position-card::before,
    .position-card::after {
        display: none !important;
    }
    
    /* Profile photo - black and white with simple border */
    .profile-photo {
        box-shadow: none !important;
        transform: none !important;
        border: 1px solid #666666 !important;
        filter: grayscale(100%) !important;
    }
    
    /* Text colors for print */
    .name,
    .position-title,
    .degree,
    .award-title,
    .additional-role,
    .employment-header {
        color: #000000 !important;
        font-weight: 600 !important;
    }
    
    .title,
    .section-title {
        color: #333333 !important;
        border-bottom: 1px solid #666666 !important;
    }
    
    .contact-item,
    .contact-item a,
    .detail-item,
    .detail-item a {
        color: #333333 !important;
        text-decoration: none !important;
    }
    
    .position-description,
    .profile-text,
    .achievements li,
    .skills-list li,
    .dates,
    .university,
    .degree-field,
    .award-detail,
    .additional-company {
        color: #333333 !important;
    }
    
    /* Remove all glow effects and shadows */
    * {
        animation: none !important;
        transition: none !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }
    
    /* Ensure links are visible */
    a {
        color: #333333 !important;
        text-decoration: underline !important;
    }
    
    /* Clean bullet points */
    .achievements li::before,
    .skills-list li::before {
        content: '•' !important;
        color: #333333 !important;
        text-shadow: none !important;
    }
    
    @page {
        size: letter;
        margin: 0.5in;
    }
}
