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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2d3561 100%);
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Elements */
.bg-circuit {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M0 10h5v-5h5v5h5v5h-5v5h-5v-5h-5z" fill="none" stroke="%23334155" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>') repeat;
    z-index: -2;
    animation: circuitMove 20s linear infinite;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    z-index: -1;
}

@keyframes circuitMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-20px) translateY(-20px); }
}

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

/* Header */
.header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #0ea5e9, #06b6d4);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.name-section {
    position: relative;
}

.name {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.title-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #0ea5e9);
    margin-bottom: 1rem;
    border-radius: 2px;
}

.title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 400;
}

.contact-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #cbd5e1;
}

.contact-item i {
    color: #3b82f6;
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #3b82f6;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Sections */
.section {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.section:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title i {
    color: #3b82f6;
    font-size: 1.25rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #0ea5e9);
    border-radius: 1px;
}

.section-content {
    color: #cbd5e1;
    line-height: 1.7;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(5px);
}

.skill-item i {
    color: #3b82f6;
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* Experience Section */
.job {
    margin-bottom: 2.5rem;
    position: relative;
}

.job:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1.25rem;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

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

.company-info {
    flex: 1;
}

.company {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.location {
    color: #94a3b8;
    font-size: 0.9rem;
}

.job-timeline {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #0ea5e9);
    border-radius: 1px;
}

.position {
    margin-bottom: 1.5rem;
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.position-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #e2e8f0;
}

.duration {
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

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

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}

.achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
}

/* Bottom Row */
.bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Certifications */
.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.cert-item i {
    color: #3b82f6;
    font-size: 1.25rem;
}

/* Interests */
.interest-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.interest-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.interest-item i {
    color: #3b82f6;
    font-size: 1.25rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-content {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-row {
        grid-template-columns: 1fr;
    }
    
    .position-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-section {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }
    
    .section {
        padding: 1.5rem;
    }
    
    .header {
        padding: 2rem;
    }
}

/* Print Styles */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        background: white !important;
        color: #000000 !important;
        font-size: 12pt !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .bg-circuit,
    .bg-gradient {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0.5in !important;
        margin: 0 !important;
    }
    
    .header {
        background: white !important;
        border: 2px solid #000000 !important;
        border-radius: 8px !important;
        padding: 20pt !important;
        margin-bottom: 15pt !important;
        page-break-inside: avoid !important;
    }
    
    .header::before {
        background: #000000 !important;
        height: 3px !important;
    }
    
    .name {
        color: #000000 !important;
        font-size: 28pt !important;
        font-weight: bold !important;
        margin-bottom: 8pt !important;
    }
    
    .title {
        color: #000000 !important;
        font-size: 14pt !important;
        font-weight: 600 !important;
        margin-bottom: 4pt !important;
    }
    
    .subtitle {
        color: #333333 !important;
        font-size: 12pt !important;
        font-weight: normal !important;
    }
    
    .title-line {
        background: #000000 !important;
        height: 2px !important;
        width: 60pt !important;
        margin-bottom: 10pt !important;
    }
    
    .contact-item {
        color: #000000 !important;
        font-size: 11pt !important;
        margin-bottom: 4pt !important;
    }
    
    .contact-item i {
        color: #000000 !important;
        font-weight: bold !important;
    }
    
    .contact-item a {
        color: #000000 !important;
        text-decoration: underline !important;
    }
    
    .section {
        background: white !important;
        border: 1px solid #000000 !important;
        border-radius: 6px !important;
        padding: 15pt !important;
        margin-bottom: 12pt !important;
        page-break-inside: avoid !important;
        box-shadow: none !important;
    }
    
    .section-title {
        color: #000000 !important;
        font-size: 14pt !important;
        font-weight: bold !important;
        margin-bottom: 10pt !important;
        border-bottom: 1px solid #000000 !important;
        padding-bottom: 4pt !important;
    }
    
    .section-title i {
        color: #000000 !important;
        font-weight: bold !important;
    }
    
    .section-title::after {
        display: none !important;
    }
    
    .section-content {
        color: #000000 !important;
        font-size: 11pt !important;
        line-height: 1.4 !important;
    }
    
    .skills-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8pt !important;
    }
    
    .skill-item {
        background: #f8f9fa !important;
        border: 1px solid #000000 !important;
        border-radius: 4px !important;
        padding: 8pt !important;
        margin-bottom: 4pt !important;
    }
    
    .skill-item i {
        color: #000000 !important;
        font-weight: bold !important;
    }
    
    .skill-item span {
        color: #000000 !important;
        font-size: 10pt !important;
    }
    
    .job {
        margin-bottom: 15pt !important;
        page-break-inside: avoid !important;
    }
    
    .job::after {
        background: #000000 !important;
        height: 1px !important;
    }
    
    .company {
        color: #000000 !important;
        font-size: 12pt !important;
        font-weight: bold !important;
        margin-bottom: 2pt !important;
    }
    
    .location {
        color: #333333 !important;
        font-size: 10pt !important;
    }
    
    .job-timeline {
        background: #000000 !important;
        height: 2px !important;
        width: 30pt !important;
    }
    
    .position-title {
        color: #000000 !important;
        font-size: 11pt !important;
        font-weight: 600 !important;
    }
    
    .duration {
        color: #000000 !important;
        background: #f0f0f0 !important;
        border: 1px solid #000000 !important;
        padding: 2pt 6pt !important;
        font-size: 9pt !important;
        font-weight: bold !important;
    }
    
    .achievements {
        margin-top: 6pt !important;
    }
    
    .achievements li {
        color: #000000 !important;
        font-size: 10pt !important;
        margin-bottom: 4pt !important;
        line-height: 1.3 !important;
    }
    
    .achievements li::before {
        background: #000000 !important;
        width: 4px !important;
        height: 4px !important;
    }
    
    .bottom-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15pt !important;
        page-break-inside: avoid !important;
    }
    
    .cert-item,
    .interest-item {
        background: #f8f9fa !important;
        border: 1px solid #000000 !important;
        border-radius: 4px !important;
        padding: 8pt !important;
        margin-bottom: 6pt !important;
    }
    
    .cert-item i,
    .interest-item i {
        color: #000000 !important;
        font-weight: bold !important;
    }
    
    .cert-item span,
    .interest-item span {
        color: #000000 !important;
        font-size: 10pt !important;
    }
    
    .footer {
        background: white !important;
        border: 1px solid #000000 !important;
        border-radius: 4px !important;
        padding: 10pt !important;
        margin-top: 15pt !important;
        text-align: center !important;
        page-break-inside: avoid !important;
    }
    
    .footer-content {
        color: #000000 !important;
        font-size: 9pt !important;
    }
    
    /* Ensure page breaks work properly */
    .header {
        page-break-after: avoid !important;
    }
    
    .section {
        page-break-before: avoid !important;
        page-break-after: avoid !important;
    }
    
    .job {
        page-break-before: avoid !important;
    }
    
    /* Hide web-only elements */
    .header-decoration {
        display: none !important;
    }
    
    /* Ensure all text is black and readable */
    h1, h2, h3, h4, h5, h6, p, span, div, li, a {
        color: #000000 !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .section {
        border-color: #3b82f6;
    }
    
    .name {
        color: #3b82f6;
    }
}

