@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Exo+2:wght@300;400;600&display=swap');

:root {
    --primary: #00c6ff;
    --secondary: #0072ff;
    --accent: #5e72eb;
    --bg: #0a0e17;
    --card-bg: rgba(15, 22, 36, 0.7);
    --text: #e0f0ff;
    --text-secondary: #a1b8cc;
    --border: rgba(0, 198, 255, 0.3);
    --shadow: rgba(0, 114, 255, 0.2);
    --page-padding: 40px;
    --avatar-border: #00c6ff;
    --avatar-bg: linear-gradient(135deg, #0a0e17, #0c1220);
    --avatar-size: 140px;
}

.light-theme {
    --primary: #0066cc;
    --secondary: #0099ff;
    --accent: #3949ab;
    --bg: #f0f6ff;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text: #1a1a2e;
    --text-secondary: #4a5568;
    --border: rgba(0, 102, 204, 0.15);
    --shadow: rgba(0, 153, 255, 0.08);
    --avatar-border: #0066cc;
    --avatar-bg: linear-gradient(135deg, #f0f6ff, #e6f2ff);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 114, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(94, 114, 235, 0.05) 0%, transparent 20%);
    min-height: 100vh;
    padding: var(--page-padding);
    transition: background 0.5s ease, color 0.5s ease;
}

.resume-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.resume-paper {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border);
    padding: 44px;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 2*var(--page-padding));
    display: flex;
    flex-direction: column;
}

.resume-paper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, var(--primary) 0%, transparent 70%),
        linear-gradient(135deg, transparent 50%, var(--accent) 100%);
    opacity: 0.03;
    z-index: -1;
    animation: gradientRotate 20s linear infinite;
}

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

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    position: relative;
}

.profile-section {
    display: flex;
    gap: 25px;
    width: 100%;
}

.avatar {
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
    border: 3px solid var(--avatar-border);
    overflow: hidden;
    background: var(--avatar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.3);
    background-size: cover;
    background-position: center;
}

.name-title {
    position: relative;
    z-index: 2;
    flex: 1;
}

.name {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    gap: 8px;
}
.contact-item span, .contact-item span a {
    text-decoration: none;
    color: inherit;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.light-theme .contact-item svg {
    fill: var(--secondary);
}

.dark-theme .contact-item svg {
    fill: var(--primary);
}

/* Controls */
.controls {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    position: absolute;
    top: 10px;
    right: 0;
}

.theme-toggle, .language-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.light-theme .theme-toggle, .light-theme .language-toggle {
    color: var(--text);
}

.dark-theme .theme-toggle, .dark-theme .language-toggle {
    color: white;
}

.theme-toggle:hover, .language-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--text);
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    flex: 1;
}

@media (max-width: 768px) {
    :root {
        --page-padding: 20px;
        --avatar-size: 120px;
    }
    
    .resume-paper {
        padding: 25px;
    }
    
    .profile-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .avatar {
        margin: 0 auto;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .name {
        font-size: 2.2rem;
        padding-right: 45px;
    }
    
    .tagline {
        font-size: 1.05rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .contact-item {
        min-width: 180px;
    }
}

.section {
    margin-bottom: 25px;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 18px;
    padding-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}
.section-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* Experience Item */
.experience {
    margin-bottom: 22px;
    padding-left: 24px;
    position: relative;
}

.experience::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.experience::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 24px;
    bottom: -22px;
    width: 2px;
    background: var(--border);
}

.experience:last-child::after {
    display: none;
}

.company {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 1.1rem;
}

.duration {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.position {
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 1rem;
}

.description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.highlights {
    margin-top: 8px;
    padding-left: 18px;
}

.highlights li {
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Education */
.education {
    margin-bottom: 22px;
    padding-left: 24px;
    position: relative;
}

.education::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.education::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 24px;
    bottom: -22px;
    width: 2px;
    background: var(--border);
}

.education:last-child::after {
    display: none;
}

.school {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 1.1rem;
}

.degree {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 5px;
}

/* Certifications */
.cert-section {
    margin-top: 25px;
}

.certification {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
}

.cert-icon {
    color: var(--primary);
    margin-right: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

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

.light-theme .cert-icon svg {
    fill: var(--secondary);
}

.dark-theme .cert-icon svg {
    fill: var(--primary);
}

.cert-details {
    flex: 1;
}

.cert-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--text);
}

.cert-date {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Projects */
.project {
    margin-bottom: 18px;
    padding: 18px;
    background: rgba(15, 30, 60, 0.25);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.light-theme .project {
    background: rgba(240, 245, 255, 0.7);
}

.project:hover {
    transform: translateY(-2px);
}

.project-title {
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

.project-category {
    background: var(--accent);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-role {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.project-preview {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    height: auto;
    margin-top: 20px;
}

.project-preview-image {
    position: relative;
    display: block;
    border-radius: 4px;
    background-color: #fafafa;
    overflow: hidden;
    width: calc((100% - 6px) * 0.5);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid #eaeaea;
}

.project-preview-image.single {
    width: 100%;
}

.project-preview-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 150ms ease-in-out;
}

/* Expandable section */
.projects-toggle {
    background: var(--border);
    color: var(--primary);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 20px auto 0;
    font-family: 'Exo 2', sans-serif;
}

.projects-toggle:hover {
    background: var(--accent);
    color: white;
}

.projects-hidden {
    display: none;
}

/* Footer */
.footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.footer * {
    color: var(--text-secondary);
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .contact-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-item {
        min-width: auto;
        width: 100%;
    }
    
    .project-title {
        flex-direction: column;
    }
    
    .project-category {
        margin-top: 8px;
        align-self: flex-start;
    }
}
