* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --background-solid: #f0f4ff;
    --white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-3d: 0 15px 35px rgba(99, 102, 241, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    padding: 0;
    padding-top: 80px;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-img:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.4);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
}

.nav-logo a.logo-text {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::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.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.nav-link.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Welcome Page */
.welcome-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.welcome-content {
    max-width: 1000px;
    text-align: center;
}

.welcome-title {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #f6f6ff 0%, #ffa200 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease;
    text-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.welcome-subtitle {
    font-size: 1.5rem;
    color:#fff;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.welcome-description {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    margin-top: 60px;
}

.welcome-features .feature-card:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.welcome-features .feature-card:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.welcome-features .feature-card:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.3s both;
}

.welcome-features .feature-card:nth-child(4) {
    animation: fadeInUp 0.6s ease 0.4s both;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px) rotateY(2deg);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.25), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.welcome-cta {
    margin-top: 40px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.2rem;
}

/* Page Container (for About and Contact) */
.page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-3d);
    margin-bottom: 40px;
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.page-container:hover {
    transform: translateY(-3px);
}

.page-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    font-weight: 700;
}

.about-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.feature-list {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.feature-list li {
    margin-bottom: 10px;
}

.template-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.template-item {
    background: var(--background);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.about-cta {
    text-align: center;
    margin-top: 30px;
}

/* Contact Page */
.contact-content {
    max-width: 100%;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-form-container h2,
.contact-info h2 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
}

.contact-info {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-item h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-3d);
    padding: 40px;
    margin-bottom: 40px;
    margin-top: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.35), 0 10px 20px rgba(0, 0, 0, 0.2);
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 8px rgba(99, 102, 241, 0.2);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.step-circle::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-circle.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    transform: scale(1.1);
}

.step-circle.active::before {
    opacity: 1;
}

.step-circle.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    transform: scale(1.05);
}

.step-circle:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3);
}

.progress-step label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.progress-step .step-circle.active + label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Step Containers */
.step-container {
    display: none;
}

.step-container.active {
    display: block;
}

.step-container h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Photo Upload */
.photo-preview {
    margin-top: 15px;
}

.photo-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    object-fit: cover;
}

/* Section Cards */
.section-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.section-card:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.15);
}

.section-card:hover::before {
    transform: scaleY(1);
}

.section-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    font-weight: 700;
}

/* Entry Items */
.entry-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.entry-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.entry-item.saved {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.entry-item .entry-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: var(--white);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.4);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-danger:hover {
    background: #c82333;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.terms-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.template-card {
    border: 3px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.template-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover {
    border-color: #6366f1;
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3), 0 8px 16px rgba(0, 0, 0, 0.15);
}

.template-card:hover::before {
    opacity: 1;
}

.template-card.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 12px 32px rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.template-preview {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.template-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.template-card:hover .template-preview {
    transform: scale(1.05);
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.3);
}

.template-card p {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

/* Resume Preview */
.resume-preview-container {
    background: var(--white);
    padding: 22mm 18mm; /* print-friendly */
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-width: 210mm;
    margin: 0 auto;
    min-height: 297mm;
}

.resume-preview {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Times New Roman', serif;
    color: var(--text-primary);
    font-size: 11pt;
    line-height: 1.55;
    letter-spacing: 0.1px;
}

/* Sidebar Layout (Cambridge/Oxford) */
.resume-preview.template-cambridge .layout-sidebar,
.resume-preview.template-oxford .layout-sidebar {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 24px;
}

.resume-preview.template-cambridge .sidebar,
.resume-preview.template-oxford .sidebar {
    padding: 20px;
    border-radius: 8px;
}

.resume-preview.template-cambridge .sidebar {
    background: #f1f3f5;
    border: 1px solid #e3e6ea;
}

.resume-preview.template-oxford .sidebar {
    background: #0e3d66;
    color: #eef6ff;
}

.resume-preview.template-oxford .sidebar a { color: #d6e9ff; }

.resume-preview.template-cambridge .sidebar .name,
.resume-preview.template-oxford .sidebar .name {
    font-size: 1.4rem;
    margin: 10px 0 6px 0;
}

.resume-preview.template-cambridge .sidebar .role,
.resume-preview.template-oxford .sidebar .role {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 16px;
}

.resume-preview.template-oxford .sidebar .role { color: #c7dbf4; }

.resume-preview.template-cambridge .sidebar-photo img,
.resume-preview.template-oxford .sidebar-photo img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.resume-preview.template-cambridge .sidebar-section,
.resume-preview.template-oxford .sidebar-section {
    margin-top: 18px;
}

.resume-preview.template-cambridge .sidebar-section h3,
.resume-preview.template-oxford .sidebar-section h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.resume-preview.template-cambridge .sidebar-section .list,
.resume-preview.template-oxford .sidebar-section .list {
    list-style: none;
    padding-left: 0;
}

.resume-preview.template-cambridge .sidebar-section .list li,
.resume-preview.template-oxford .sidebar-section .list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.resume-preview.template-oxford .sidebar-section .list li { border-bottom-color: rgba(255,255,255,0.2); }

.resume-preview.template-cambridge .main,
.resume-preview.template-oxford .main {
    padding-right: 12px;
}

.resume-preview.template-cambridge .resume-section h2,
.resume-preview.template-oxford .resume-section h2 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.resume-preview.template-oxford .resume-section h2 { color: #0e3d66; border-color: #0e3d66; }

/* Timeline styling for experiences */
.resume-preview.template-cambridge .timeline,
.resume-preview.template-oxford .timeline {
    position: relative;
    margin-left: 10px;
    padding-left: 18px;
}

.resume-preview.template-cambridge .timeline:before,
.resume-preview.template-oxford .timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.resume-preview.template-oxford .timeline:before { background: #b9d6f2; }

.resume-preview.template-cambridge .timeline-item,
.resume-preview.template-oxford .timeline-item {
    position: relative;
    padding-left: 10px;
    margin-bottom: 18px;
}

.resume-preview.template-cambridge .timeline-dot,
.resume-preview.template-oxford .timeline-dot {
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

.resume-preview.template-oxford .timeline-dot { background: #0e3d66; }

/* Template Variants */
.resume-preview.template-edinburgh {
    font-family: Arial, Helvetica, sans-serif;
}

.resume-preview.template-edinburgh .resume-header {
    border-bottom-color: #333;
    text-align: left;
}

.resume-preview.template-edinburgh .header-edinburgh {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 3px solid #333;
}

.resume-preview.template-edinburgh .header-edinburgh .header-photo img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
}

.resume-preview.template-edinburgh .header-edinburgh h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    letter-spacing: 0.5px;
}

.resume-preview.template-edinburgh .contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.resume-preview.template-edinburgh .contact-row a {
    color: inherit;
    text-decoration: none;
}

.resume-preview.template-edinburgh .resume-section h2 {
    color: #333;
    border-bottom: 2px solid #bdbdbd;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.resume-preview.template-edinburgh .resume-item h3 {
    font-size: 1.05rem;
}

/* ===================== */
/* Additional Templates  */
/* ===================== */

/* Auckland - Minimal, left-aligned header, teal accents */
.resume-preview.template-auckland .resume-header {
    text-align: left;
    border-bottom-color: #1aa3a3;
    display: flex;
    align-items: center;
    gap: 16px;
}
.resume-preview.template-auckland .resume-header img { width: 90px; height: 90px; }
.resume-preview.template-auckland .resume-header h1 { margin: 0; letter-spacing: 0.5px; }
.resume-preview.template-auckland .resume-section h2 { color: #1aa3a3; border-bottom-color: #bfeaea; }

/* Princeton - Top banner with white text */
.resume-preview.template-princeton .resume-header {
    background: #0b3d91; /* Princeton blue-ish */
    color: #fff;
    padding: 20px;
    margin: -10px -10px 25px -10px;
    border: none;
    text-align: left;
    border-radius: 6px;
}
.resume-preview.template-princeton .resume-header a { color: #d6e4ff; }
.resume-preview.template-princeton .resume-header img { border: 3px solid rgba(255,255,255,0.6); }
.resume-preview.template-princeton .resume-section h2 { color: #0b3d91; border-bottom-color: #0b3d91; }

/* Otago - Section left border accent */
.resume-preview.template-otago .resume-header { text-align: center; border-bottom-color: #00695c; }
.resume-preview.template-otago .resume-section {
    border-left: 4px solid #00695c;
    padding-left: 12px;
}
.resume-preview.template-otago .resume-section h2 { color: #00695c; border-bottom-color: #cfe8e5; }

/* Berkeley - Blue accents, pill skills */
.resume-preview.template-berkeley .resume-header { border-bottom-color: #003262; }
.resume-preview.template-berkeley .resume-section h2 { color: #003262; border-bottom-color: #ccd6e8; }
.resume-preview.template-berkeley .resume-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.resume-preview.template-berkeley .skill-item { background: #e6eef9; color: #003262; padding: 6px 10px; border-radius: 999px; gap: 8px; }
.resume-preview.template-berkeley .skill-item span:last-child { opacity: 0.7; }

/* Harvard - Maroon, uppercase headings */
.resume-preview.template-harvard .resume-header { border-bottom-color: #a51c30; text-align: center; }
.resume-preview.template-harvard .resume-header h1 { text-transform: uppercase; letter-spacing: 1px; }
.resume-preview.template-harvard .resume-section h2 { color: #a51c30; border-bottom-color: #e9c7cd; text-transform: uppercase; font-size: 1.15rem; }

/* Stanford - Gray band header with inline contact */
.resume-preview.template-stanford .resume-header {
    background: #f2f2f2;
    border: none;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}
.resume-preview.template-stanford .resume-header h1 { margin-bottom: 6px; }
.resume-preview.template-stanford .resume-header > div { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.resume-preview.template-stanford .resume-section h2 { color: #8c1515; border-bottom-color: #e2d6d6; }

.resume-header {
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 18px;
    margin-bottom: 26px;
}

.resume-header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.resume-header h1 {
    font-size: 28px;
    margin-bottom: 6px;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.resume-header > div p {
    display: inline-block;
    margin-right: 12px;
    color: var(--text-secondary);
}
.resume-header > div p::after {
    content: '•';
    margin-left: 12px;
    color: var(--border-color);
}
.resume-header > div p:last-child::after { content: '' }
.resume-header a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor }

.resume-section {
    margin-bottom: 22px;
}

.resume-section h2 {
    font-size: 13.5pt;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 6px;
    margin-bottom: 14px;
    text-transform: none;
    letter-spacing: 0.4px;
}

.resume-item {
    margin-bottom: 16px;
}

.resume-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.resume-item .meta {
    color: var(--text-secondary);
    font-style: normal;
    margin-bottom: 6px;
}

.resume-item p {
    margin-bottom: 5px;
}

.resume-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    padding: 6px 10px;
    background: #f7f9fb;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.resume-preview a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor }

/* Print adjustments */
@media print {
    body { background: #fff; }
    .container { box-shadow: none; }
    .resume-preview-container { box-shadow: none; border-radius: 0; padding: 18mm 16mm; }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 10px 0;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 15px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .container {
        padding: 20px;
        margin-top: 10px;
    }

    .page-container {
        padding: 20px;
        margin-top: 10px;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1.2rem;
    }

    .welcome-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .form-footer {
        flex-direction: column;
        gap: 15px;
    }

    .form-footer .terms-text {
        text-align: center;
    }
}

/* Month/Year Selects */
.month-year-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature-icon {
    animation: float 3s ease-in-out infinite;
}

/* Additional 3D Effects */
.resume-preview-container {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.template-card {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

