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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating particles background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: floatingParticles 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatingParticles {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    perspective: 1000px;
    animation: containerFloat 8s ease-in-out infinite;
}

@keyframes containerFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 25px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: var(--transform-3d);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent,
            rgba(102, 126, 234, 0.1),
            transparent,
            rgba(118, 75, 162, 0.1),
            transparent);
    animation: headerRotate 10s linear infinite;
    pointer-events: none;
}

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

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

header>* {
    position: relative;
    z-index: 2;
}

header:hover {
    transform: var(--transform-hover);
    box-shadow: var(--shadow-hover);
}

header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 3s ease-in-out infinite;
    text-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    transform: translateZ(20px);
}

@keyframes textShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

header p {
    color: #555;
    font-size: 1.2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateZ(10px);
}

.app-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    perspective: 1200px;
}

.app-layout>* {
    animation: sectionSlideIn 1s ease-out;
}

.app-layout>*:nth-child(1) {
    animation-delay: 0.2s;
    transform: translateX(-50px);
}

.app-layout>*:nth-child(2) {
    animation-delay: 0.4s;
    transform: translateX(50px);
}

@keyframes sectionSlideIn {
    0% {
        opacity: 0;
        transform: translateX(var(--slide-from, 0)) rotateY(15deg);
    }

    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

.form-section,
.preview-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: rotateX(2deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.form-section::before,
.preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s;
}

.form-section:hover::before,
.preview-section:hover::before {
    left: 100%;
}

.form-section:hover,
.preview-section:hover {
    transform: rotateX(0deg) translateY(-5px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-section {
    max-height: 80vh;
    overflow-y: auto;
}

.form-section h2,
.preview-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.form-group {
    margin-bottom: 25px;
}

.form-group h3 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 2px solid #ecf0f1;
    border-radius: 15px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.05),
        0 8px 20px rgba(52, 152, 219, 0.2);
}

input:hover,
textarea:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.05),
        0 4px 10px rgba(0, 0, 0, 0.1);
}

textarea {
    min-height: 80px;
    resize: vertical;
}

.experience-item,
.education-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 8px 20px rgba(52, 152, 219, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateZ(0);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

button:hover {
    background: linear-gradient(135deg, #2980b9, #1e6fa8);
    transform: translateY(-3px) translateZ(0);
    box-shadow:
        0 15px 30px rgba(52, 152, 219, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

button:hover::before {
    width: 120%;
    height: 120%;
}

button:active {
    transform: translateY(-1px) translateZ(0);
    box-shadow:
        0 5px 15px rgba(52, 152, 219, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#add-experience,
#add-education {
    background: #27ae60;
    margin-top: 10px;
}

#add-experience:hover,
#add-education:hover {
    background: #229954;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

#generate-resume {
    background: #e74c3c;
    flex: 1;
}

#generate-resume:hover {
    background: #c0392b;
}

#download-pdf {
    background: #9b59b6;
    flex: 1;
}

#download-pdf:hover {
    background: #8e44ad;
}

/* Photo Upload Styles */
.photo-upload {
    margin-top: 15px;
    padding: 15px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    text-align: center;
}

.photo-upload label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #34495e;
}

#photo-upload {
    margin-bottom: 15px;
}

#photo-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    border: 3px solid #3498db;
    object-fit: cover;
}

/* Resume Preview Styles */
.resume-container {
    background: white;
    border: 1px solid #ddd;
    font-family: 'Times New Roman', serif;
    line-height: 1.5;
    color: #333;
}

.resume-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2c3e50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-text {
    flex: 1;
    text-align: center;
}

.photo-container {
    flex-shrink: 0;
    margin-left: 20px;
}

#preview-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #2c3e50;
    object-fit: cover;
}

.resume-header h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
}

.contact-info span:not(:empty) {
    color: #555;
}

.resume-section {
    margin-bottom: 20px;
}

.resume-section h2 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 2px;
}

.experience-entry,
.education-entry {
    margin-bottom: 15px;
}

.job-header,
.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.job-title,
.degree {
    font-weight: bold;
    font-size: 14px;
}

.company,
.institution {
    font-style: italic;
    font-size: 14px;
}

.duration,
.year {
    font-size: 12px;
    color: #666;
}

.job-description {
    font-size: 12px;
    margin-top: 5px;
    white-space: pre-line;
}

.skills-list {
    font-size: 12px;
    line-height: 1.6;
}

.certification-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 4px solid #9b59b6;
}

.certification-entry {
    margin-bottom: 15px;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.cert-name {
    font-weight: bold;
    font-size: 14px;
}

.cert-org {
    font-style: italic;
    font-size: 14px;
}

.cert-date {
    font-size: 12px;
    color: #666;
}

#template-selector {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-size: 14px;
    background: white;
}

#clear-form {
    background: #e67e22;
}

#clear-form:hover {
    background: #d35400;
}

#save-data,
#load-data {
    background: #16a085;
}

#save-data:hover,
#load-data:hover {
    background: #138d75;
}

.form-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 30px;
}

/* Template Styles */
.resume-container.modern {
    border-left: 5px solid #3498db;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.resume-container.modern .resume-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px;
    margin: -1px -1px 20px -1px;
}

.resume-container.modern .resume-header h1 {
    color: white;
}

.resume-container.modern #preview-photo {
    border-color: white;
}

.resume-container.minimal {
    border: none;
    box-shadow: none;
}

.resume-container.minimal .resume-header {
    border-bottom: 1px solid #ecf0f1;
}

.resume-container.minimal .resume-section h2 {
    color: #95a5a6;
    border-bottom: 1px solid #ecf0f1;
}

.resume-container.creative {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.resume-container.creative .resume-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    margin: -1px -1px 20px -1px;
    border-radius: 10px 10px 0 0;
}

.resume-container.creative .resume-header h1 {
    color: white;
}

.resume-container.creative .resume-section h2 {
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.resume-container.professional {
    border: 2px solid #2c3e50;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resume-container.professional .resume-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    margin: -2px -2px 20px -2px;
}

.resume-container.professional .resume-header h1 {
    color: white;
}

.resume-container.professional .resume-section h2 {
    color: #2c3e50;
    border-bottom: 3px solid #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resume-container.elegant {
    border: 1px solid #d4af37;
    background: #fefefe;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

.resume-container.elegant .resume-header {
    border-bottom: 3px solid #d4af37;
    background: linear-gradient(to right, #fefefe, #f9f9f9);
}

.resume-container.elegant .resume-header h1 {
    color: #2c3e50;
    font-family: 'Georgia', serif;
}

.resume-container.elegant .resume-section h2 {
    color: #d4af37;
    border-bottom: 2px solid #d4af37;
    font-family: 'Georgia', serif;
}

.resume-container.elegant #preview-photo {
    border-color: #d4af37;
}

/* 3D Template  */

/* 3D Neon Template */
.resume-container.neon-3d {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 2px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), inset 0 0 30px rgba(0, 255, 255, 0.1);
    color: #ffffff;
    transform: perspective(1000px) rotateX(2deg);
    animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    0% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), inset 0 0 30px rgba(0, 255, 255, 0.1);
    }

    100% {
        box-shadow: 0 0 40px rgba(0, 255, 255, 0.8), inset 0 0 40px rgba(0, 255, 255, 0.2);
    }
}

.resume-container.neon-3d .resume-header {
    background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
    color: #000000;
    padding: 25px;
    margin: -2px -2px 25px -2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
}

.resume-container.neon-3d .resume-header h1 {
    color: #000000;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.resume-container.neon-3d .resume-section h2 {
    color: #00ffff;
    border-bottom: 2px solid #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

/* 3D Glass Template */
.resume-container.glass-3d {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-2deg);
    position: relative;
}

.resume-container.glass-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: inherit;
    z-index: -1;
}

.resume-container.glass-3d .resume-header {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin: -1px -1px 25px -1px;
}

.resume-container.glass-3d .resume-section h2 {
    color: #2c3e50;
    border-bottom: 2px solid rgba(44, 62, 80, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 3D Metallic Template */
.resume-container.metallic-3d {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    border: 2px solid #888888;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: perspective(1000px) rotateX(3deg) rotateY(1deg);
    position: relative;
}

.resume-container.metallic-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.03) 50%, transparent 51%);
    background-size: 20px 20px;
    pointer-events: none;
}

.resume-container.metallic-3d .resume-header {
    background: linear-gradient(135deg, #888888 0%, #444444 100%);
    border: 1px solid #aaa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 1px 5px rgba(255, 255, 255, 0.2);
    padding: 25px;
    margin: -2px -2px 25px -2px;
}

.resume-container.metallic-3d .resume-section h2 {
    color: #cccccc;
    border-bottom: 2px solid #666666;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 3D Shadow Depth Template */
.resume-container.shadow-3d {
    background: #ffffff;
    border: none;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.24),
        0 10px 60px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateX(5deg);
    position: relative;
}

.resume-container.shadow-3d::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 5%;
    right: 5%;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    filter: blur(10px);
    z-index: -1;
}

.resume-container.shadow-3d .resume-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    margin: 0 0 25px 0;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    transform: translateZ(10px);
}

.resume-container.shadow-3d .resume-section {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* 3D Holographic Template */
.resume-container.holographic-3d {
    background: linear-gradient(45deg, #ff0080, #ff8c00, #40e0d0, #ff0080);
    background-size: 400% 400%;
    animation: holographicShift 3s ease-in-out infinite;
    border: 2px solid transparent;
    box-shadow: 0 0 40px rgba(255, 0, 128, 0.5);
    color: #ffffff;
    transform: perspective(1000px) rotateY(3deg);
    position: relative;
}

@keyframes holographicShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.resume-container.holographic-3d::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: inherit;
    z-index: 1;
}

.resume-container.holographic-3d>* {
    position: relative;
    z-index: 2;
}

.resume-container.holographic-3d .resume-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px;
    margin: 0 0 25px 0;
}

/* 3D Carbon Fiber Template */
.resume-container.carbon-3d {
    background:
        radial-gradient(circle at 25% 25%, #333 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, #333 2px, transparent 2px),
        linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    background-size: 30px 30px, 30px 30px, 100% 100%;
    border: 2px solid #444;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
}

.resume-container.carbon-3d .resume-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    padding: 25px;
    margin: -2px -2px 25px -2px;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

.resume-container.carbon-3d .resume-section h2 {
    color: #ff6b6b;
    border-bottom: 2px solid #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

/* 3D Gradient Template */
.resume-container.gradient-3d {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 300% 300%;
    animation: gradientShift 4s ease-in-out infinite;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    transform: perspective(1000px) rotateX(3deg);
    position: relative;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.resume-container.gradient-3d::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: inherit;
    z-index: 1;
}

.resume-container.gradient-3d>* {
    position: relative;
    z-index: 2;
    color: #333;
}

.resume-container.gradient-3d .resume-header {
    background: transparent;
    color: #333;
    padding: 25px;
    margin: 0 0 25px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 3D Matrix Template */
.resume-container.matrix-3d {
    background: #000000;
    border: 2px solid #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5), inset 0 0 30px rgba(0, 255, 0, 0.1);
    color: #00ff00;
    transform: perspective(1000px) rotateX(2deg);
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

.resume-container.matrix-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 79px, rgba(0, 255, 0, 0.03) 81px, transparent 82px),
        linear-gradient(rgba(0, 255, 0, 0.03) 50%, transparent 50%);
    background-size: 82px 4px, 100% 4px;
    pointer-events: none;
    animation: matrixRain 20s linear infinite;
}

@keyframes matrixRain {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 82px 400px;
    }
}

.resume-container.matrix-3d .resume-header {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    padding: 25px;
    margin: -2px -2px 25px -2px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.resume-container.matrix-3d .resume-section h2 {
    color: #00ff00;
    border-bottom: 2px solid #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
}

/* 3D Floating Template */
.resume-container.floating-3d {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateX(5deg) rotateY(2deg);
    animation: floatingMotion 6s ease-in-out infinite;
    position: relative;
}

@keyframes floatingMotion {

    0%,
    100% {
        transform: perspective(1000px) rotateX(5deg) rotateY(2deg) translateY(0px);
    }

    50% {
        transform: perspective(1000px) rotateX(5deg) rotateY(2deg) translateY(-10px);
    }
}

.resume-container.floating-3d .resume-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    margin: 0 0 30px 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transform: translateZ(20px);
    animation: headerFloat 4s ease-in-out infinite;
}

@keyframes headerFloat {

    0%,
    100% {
        transform: translateZ(20px) translateY(0px);
    }

    50% {
        transform: translateZ(20px) translateY(-5px);
    }
}

.resume-container.floating-3d .resume-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    transform: translateZ(10px);
}

/* 3D Crystal Template */
.resume-container.crystal-3d {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%,
            rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 0 40px rgba(255, 255, 255, 0.1),
        inset 0 0 40px rgba(255, 255, 255, 0.05);
    transform: perspective(1000px) rotateX(3deg) rotateY(3deg);
    position: relative;
    overflow: hidden;
}

.resume-container.crystal-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(255, 255, 255, 0.1) 60deg,
            transparent 120deg,
            rgba(255, 255, 255, 0.1) 180deg,
            transparent 240deg,
            rgba(255, 255, 255, 0.1) 300deg,
            transparent 360deg);
    animation: crystalRotate 10s linear infinite;
    pointer-events: none;
}

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

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

.resume-container.crystal-3d .resume-header {
    background: linear-gradient(135deg,
            rgba(138, 43, 226, 0.3) 0%,
            rgba(30, 144, 255, 0.3) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 25px;
    margin: -2px -2px 25px -2px;
    box-shadow: 0 5px 25px rgba(138, 43, 226, 0.2);
    position: relative;
    z-index: 2;
}

.resume-container.crystal-3d .resume-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    position: relative;
    z-index: 2;
}

.resume-container.crystal-3d .resume-section h2 {
    color: #8a2be2;
    border-bottom: 2px solid rgba(138, 43, 226, 0.5);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

/* Authentication Styles */
.auth-section {
    margin-top: 20px;
    text-align: center;
}

#auth-container {
    display: inline-block;
}

#login-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#login-btn:hover {
    background: #3367d6;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #e9ecef;
}

#user-name {
    font-weight: bold;
    color: #2c3e50;
}

#logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#logout-btn:hover {
    background: #c82333;
}

/* Skills Input Styles */
.skill-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.skill-input-group input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-size: 14px;
}

.skill-input-group button {
    padding: 10px 16px;
    font-size: 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.skill-input-group button:hover {
    background-color: #218838;
}

.skills-preview {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    background: #f8f9fa;
}

.skill-badge {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s;
    cursor: pointer;
}

.skill-badge:hover {
    transform: scale(1.05);
}

.skill-badge .remove-skill {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-badge .remove-skill:hover {
    background: rgba(255, 255, 255, 0.5);
}

.skills-preview:empty::before {
    content: "Skills will appear here...";
    color: #6c757d;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
}

/* Enhanced Color Palettes with 3D Variables */
:root {
    --primary-blue: #3498db;
    --primary-purple: #9b59b6;
    --primary-green: #27ae60;
    --primary-orange: #e67e22;
    --primary-red: #e74c3c;
    --accent-gold: #f39c12;
    --accent-teal: #1abc9c;
    --dark-navy: #2c3e50;
    --light-gray: #ecf0f1;
    --gradient-sunset: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    --gradient-ocean: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-forest: linear-gradient(135deg, #134e5e 0%, #71b280 100%);

    /* 3D Animation Variables */
    --shadow-3d: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.4);
    --transform-3d: perspective(1000px) rotateX(5deg) rotateY(5deg);
    --transform-hover: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(-10px);
}

/* Enhanced Classic Template with Color */
.resume-container.classic {
    border: 3px solid var(--dark-navy);
    background: linear-gradient(to right, #fafafa, #ffffff);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.15);
}

.resume-container.classic .resume-header {
    background: var(--gradient-ocean);
    color: white;
    padding: 25px;
    margin: -3px -3px 25px -3px;
    border-radius: 8px 8px 0 0;
}

.resume-container.classic .resume-header h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.resume-container.classic .resume-section h2 {
    color: var(--dark-navy);
    border-bottom: 3px solid var(--primary-blue);
    background: linear-gradient(90deg, var(--primary-blue), transparent);
    background-clip: text;
    -webkit-background-clip: text;
    padding: 8px 0;
}

/* Enhanced Modern Template */
.resume-container.modern {
    border-left: 8px solid var(--primary-blue);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.resume-container.modern .resume-header {
    background: var(--gradient-ocean);
    color: white;
    padding: 30px;
    margin: -1px -1px 25px -1px;
    position: relative;
    overflow: hidden;
}

.resume-container.modern .resume-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.resume-container.modern .resume-section {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.resume-container.modern .resume-section:hover {
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

/* Enhanced Professional Template */
.resume-container.professional {
    border: 3px solid var(--dark-navy);
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.2);
    background: #ffffff;
}

.resume-container.professional .resume-header {
    background: linear-gradient(135deg, var(--dark-navy) 0%, #34495e 100%);
    color: white;
    padding: 30px;
    margin: -3px -3px 25px -3px;
    position: relative;
}

.resume-container.professional .resume-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gold);
}

.resume-container.professional .resume-section h2 {
    color: var(--dark-navy);
    border-bottom: 4px solid var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    padding: 10px 0;
}

/* Enhanced Elegant Template */
.resume-container.elegant {
    border: 2px solid var(--accent-gold);
    background: linear-gradient(135deg, #fefefe 0%, #f9f9f9 100%);
    box-shadow: 0 0 40px rgba(243, 156, 18, 0.3);
}

.resume-container.elegant .resume-header {
    border-bottom: 4px solid var(--accent-gold);
    background: linear-gradient(135deg, #fefefe 0%, #f8f8f8 100%);
    position: relative;
    padding: 30px;
}

.resume-container.elegant .resume-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), #f1c40f, var(--accent-gold));
}

.resume-container.elegant .resume-section h2 {
    color: var(--accent-gold);
    border-bottom: 3px solid var(--accent-gold);
    font-family: 'Georgia', serif;
    font-style: italic;
    text-shadow: 0 1px 3px rgba(243, 156, 18, 0.3);
}

/* Enhanced Minimal Template */
.resume-container.minimal {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    position: relative;
}

.resume-container.minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-teal);
}

.resume-container.minimal .resume-header {
    border-bottom: 2px solid var(--light-gray);
    padding: 25px 25px 25px 35px;
}

.resume-container.minimal .resume-section {
    padding-left: 35px;
}

.resume-container.minimal .resume-section h2 {
    color: var(--accent-teal);
    border-bottom: 2px solid var(--light-gray);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Enhanced Creative Template */
.resume-container.creative {
    background: var(--gradient-sunset);
    border: none;
    box-shadow: 0 15px 40px rgba(255, 154, 158, 0.3);
    position: relative;
    overflow: hidden;
}

.resume-container.creative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    margin: 3px;
    border-radius: inherit;
    z-index: 1;
}

.resume-container.creative>* {
    position: relative;
    z-index: 2;
}

.resume-container.creative .resume-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 30px;
    margin: 0 0 25px 0;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.resume-container.creative .resume-section h2 {
    color: #ff6b6b;
    border-bottom: 3px solid #ff6b6b;
    text-shadow: 0 2px 4px rgba(255, 107, 107, 0.2);
    position: relative;
}

.resume-container.creative .resume-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 3px;
    background: #ffa502;
}

/* Additional Color Themes */
.resume-container.teal-theme {
    border: 3px solid var(--accent-teal);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.resume-container.teal-theme .resume-header {
    background: linear-gradient(135deg, var(--accent-teal) 0%, #16a085 100%);
    color: white;
    padding: 25px;
    margin: -3px -3px 25px -3px;
}

.resume-container.teal-theme .resume-section h2 {
    color: var(--accent-teal);
    border-bottom: 3px solid var(--accent-teal);
}

.resume-container.purple-theme {
    border: 3px solid var(--primary-purple);
    background: linear-gradient(135deg, #ffffff 0%, #f8f4ff 100%);
}

.resume-container.purple-theme .resume-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #8e44ad 100%);
    color: white;
    padding: 25px;
    margin: -3px -3px 25px -3px;
}

.resume-container.purple-theme .resume-section h2 {
    color: var(--primary-purple);
    border-bottom: 3px solid var(--primary-purple);
}

/* Smooth transitions for all templates */
.resume-container {
    transition: all 0.3s ease;
}

.resume-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

/* Enhanced form styling */
.form-group {
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(0);
    position: relative;
    overflow: hidden;
    animation: formGroupSlideIn 0.6s ease-out;
}

@keyframes formGroupSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(10deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.form-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.form-group:hover {
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.15);
    transform: translateY(-5px) translateZ(0);
}

.form-group:hover::before {
    transform: scaleX(1);
}

.form-group h3 {
    background: var(--gradient-ocean);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Page Load Animation */
@keyframes pageLoadIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.container {
    animation: pageLoadIn 1s ease-out;
}

/* Scroll-triggered animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating elements */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-10px) rotate(1deg);
    }

    66% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

/* Interactive hover zones */
.interactive-zone {
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interactive-zone::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    pointer-events: none;
}

.interactive-zone:hover::after {
    width: 200px;
    height: 200px;
}

/* Improved page sizing and layout */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    perspective: 1200px;
    flex: 1;
}

.form-section {
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.8) rgba(241, 241, 241, 0.5);
}

.form-section::-webkit-scrollbar {
    width: 12px;
}

.form-section::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.6);
    border-radius: 12px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-section::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.form-section::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: scale(1.05);
}

.form-section::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.5);
}

.preview-section {
    max-height: 85vh;
    overflow-y: auto;
    position: sticky;
    top: 20px;
}

/* Enhanced responsive design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 15px;
    }

    .app-layout {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .app-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .form-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .contact-info {
        flex-direction: column;
        gap: 5px;
    }

    .form-section,
    .preview-section {
        max-height: none;
        position: static;
    }

    .form-section {
        padding: 20px;
    }

    .preview-section {
        padding: 20px;
    }

    /* Simplified 3D effects on mobile */
    .resume-container[class*="3d"] {
        transform: none !important;
        animation: none !important;
    }

    .resume-container[class*="3d"]::before,
    .resume-container[class*="3d"]::after {
        display: none !important;
    }

    .resume-container:hover {
        transform: translateY(-2px) !important;
    }

    /* Reduce complex animations on mobile */
    body::before {
        animation-duration: 30s;
    }

    header::before {
        animation: none;
    }
}

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

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 1.5em;
    }

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

    .form-section,
    .preview-section {
        padding: 15px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    textarea {
        padding: 10px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    button {
        padding: 12px 16px;
        font-size: 16px;
    }
}