/* 
 * Portfolio Website Styles
 * Author: Vibhavari Kotekar
 * Color Palette: Pastel tones (soft blue, lavender, beige, mint)
 */

/* ===== CSS Variables - Pastel Color Palette ===== */
:root {
    --pastel-blue: #b8d4e8;
    --pastel-lavender: #d4c5e2;
    --pastel-beige: #f5e6d3;
    --pastel-mint: #c8e6d0;
    --pastel-pink: #f4d4dc;
    --pastel-peach: #fbd7c8;
    --pastel-brown: #d4b8a8;
    
    --bg-primary: #faf8f5;
    --bg-secondary: #f0ece6;
    --bg-card: #ffffff;
    
    --text-primary: #4a4a4a;
    --text-secondary: #707070;
    --text-light: #9a9a9a;
    
    --border-color: #e5dfd9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Flash Messages ===== */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.flash {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background-color: var(--pastel-mint);
    color: #2d5a3d;
}

.flash-error {
    background-color: var(--pastel-pink);
    color: #8b3a4a;
}

.flash-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

/* ===== Navigation Bar ===== */
.navbar {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.admin-link {
    background: var(--pastel-lavender);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.admin-link:hover {
    background: var(--pastel-blue);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--pastel-beige) 0%, var(--pastel-blue) 100%);
    padding: 4rem 0;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-image {
    flex-shrink: 0;
    animation: fadeInUp 0.8s ease;
}

.profile-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card);
    transition: var(--transition);
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Typing cursor animation */
.cursor {
    animation: blink 0.7s infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Buttons ===== */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--pastel-lavender);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--pastel-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--pastel-beige);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--pastel-peach);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-youtube-hero {
    background: linear-gradient(135deg, var(--pastel-peach) 0%, var(--pastel-pink) 100%);
    color: var(--text-primary);
    box-shadow: 0 3px 12px rgba(251, 215, 200, 0.3);
}

.btn-youtube-hero:hover {
    background: linear-gradient(135deg, #fcc4ad 0%, #f2c4cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(251, 215, 200, 0.4);
}

.btn-youtube-hero i {
    font-size: 1.1rem;
    color: #ff0000;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 6px;
    background: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    transform: scale(1.1);
}

.btn-danger {
    color: #8b3a4a;
    border-color: var(--pastel-pink);
}

.btn-danger:hover {
    background: var(--pastel-pink);
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* ===== Certificates Grid ===== */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.certificate-preview {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--pastel-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.certificate-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PDF Preview */
.pdf-preview {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.pdf-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.75rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-preview:hover .pdf-overlay {
    opacity: 1;
}

.pdf-overlay-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.pdf-overlay-link:hover {
    color: var(--pastel-blue);
}

.pdf-icon {
    font-size: 4rem;
    color: var(--pastel-lavender);
}

.certificate-info {
    padding: 1.5rem;
}

.certificate-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.certificate-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.cert-link {
    display: inline-block;
    color: var(--text-secondary);
    margin-right: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.cert-link:hover {
    color: var(--text-primary);
}

/* ===== Projects Grid ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: var(--pastel-mint);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.project-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--text-primary);
}

/* ===== Blogs Section ===== */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-icon {
    font-size: 3rem;
    color: var(--pastel-brown);
    margin-bottom: 1rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--pastel-brown);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.blog-icon i {
    color: #ffffff;
    opacity: 0.9;
}

.blog-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pastel-brown);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
}

.blog-link:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.blog-link i {
    font-size: 0.85rem;
}

/* ===== Skills Section ===== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.skills-group {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.skills-group h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-badge {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

.skill-primary {
    background: var(--pastel-blue);
    color: var(--text-primary);
}

.skill-secondary {
    background: var(--pastel-lavender);
    color: var(--text-primary);
}

/* ===== Qualities Section ===== */
.qualities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.quality-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.quality-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quality-card i {
    font-size: 2rem;
    color: var(--pastel-lavender);
    margin-bottom: 1rem;
}

.quality-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Contact Section ===== */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--pastel-beige);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--pastel-lavender);
}

.contact-card span {
    font-weight: 600;
    color: var(--text-primary);
}

.contact-card small {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ===== YouTube Section ===== */
.youtube-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.youtube-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.youtube-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-youtube {
    background: linear-gradient(135deg, var(--pastel-peach) 0%, var(--pastel-pink) 100%);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(251, 215, 200, 0.3);
    transition: var(--transition);
}

.btn-youtube:hover {
    background: linear-gradient(135deg, #fcc4ad 0%, #f2c4cc 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(251, 215, 200, 0.4);
}

.btn-youtube i {
    font-size: 1.3rem;
    margin-right: 0.5rem;
    color: #ff0000;
}

.btn-instagram {
    background: linear-gradient(135deg, var(--pastel-pink) 0%, var(--pastel-lavender) 100%);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(244, 212, 220, 0.3);
    transition: var(--transition);
}

.btn-instagram:hover {
    background: linear-gradient(135deg, #f2c4cc 0%, #c9b5d6 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(244, 212, 220, 0.4);
}

.btn-instagram i {
    font-size: 1.3rem;
    margin-right: 0.5rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 3rem;
}

.footer p {
    margin: 0.5rem 0;
}

.footer i {
    color: var(--pastel-pink);
}

/* ===== Admin Login Page ===== */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pastel-lavender) 0%, var(--pastel-blue) 100%);
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: var(--pastel-lavender);
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
}

.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--pastel-lavender);
}

.login-footer {
    text-align: center;
}

.back-link {
    color: var(--text-secondary);
    transition: var(--transition);
}

.back-link:hover {
    color: var(--text-primary);
}

/* ===== Admin Panel ===== */
.admin-navbar {
    background: var(--pastel-lavender);
}

.admin-page {
    min-height: 100vh;
    padding: 2rem 0;
    background: var(--bg-primary);
}

.admin-header {
    text-align: center;
    margin-bottom: 3rem;
}

.admin-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.admin-header p {
    color: var(--text-secondary);
}

.admin-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

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

.section-header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.admin-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-preview {
    width: 100%;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--pastel-beige);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdf-icon-small {
    font-size: 2rem;
    color: var(--pastel-lavender);
}

.card-content h4 {
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.card-content small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.tech-tags-small {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.tech-tags-small span {
    background: var(--pastel-mint);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===== Skills Admin ===== */
.skills-admin-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skills-admin-group h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-badge-admin {
    background: var(--pastel-blue);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: #8b3a4a;
    font-size: 1rem;
    transition: var(--transition);
}

.badge-delete:hover {
    transform: scale(1.2);
}

/* ===== Qualities Admin ===== */
.qualities-admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quality-admin-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.quality-admin-card p {
    flex: 1;
    margin: 0;
}

/* ===== Admin Forms ===== */
.admin-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

textarea.form-input {
    resize: vertical;
    font-family: inherit;
}

/* ===== Profile Photo Upload (Simple HTML Form) ===== */
.profile-upload-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.current-photo-display,
.upload-form-simple {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.current-photo-display h3,
.upload-form-simple h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.upload-form-simple form {
    margin-top: 1rem;
}

.upload-form-simple .form-group {
    margin-bottom: 1.5rem;
}

.photo-preview-area {
    background: var(--pastel-beige);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.photo-preview-area h4 {
    margin-top: 0;
    font-size: 1rem;
    text-align: center;
}

/* Zoom Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: var(--pastel-lavender);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pastel-blue);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pastel-blue);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Circular Preview */
.circular-preview {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 4px solid var(--pastel-blue);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    background: var(--pastel-beige);
    position: relative;
}

.circular-preview img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    transition: transform 0.2s ease;
}

.photo-hint {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.5rem;
}

.hint-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Upload Button Container */
.upload-button-container {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Image Preview Container */
#imagePreviewContainer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--pastel-lavender);
}

/* Preview Grid */
.preview-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin: 1.5rem 0;
}

/* Image Adjust Box */
.image-adjust-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--pastel-beige);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.image-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    cursor: grab;
    background: var(--pastel-beige);
}

.image-container:active {
    cursor: grabbing;
}

#previewImage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    cursor: grab;
    user-select: none;
    display: block !important;
    object-fit: cover;
    pointer-events: auto;
    opacity: 1 !important;
    z-index: 50;
    visibility: visible !important;
}

#previewImage:active {
    cursor: grabbing;
}

/* Circular Crop Overlay */
.circular-crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.crop-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 3px dashed rgba(184, 212, 232, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

/* Final Preview Section */
.final-preview-section {
    text-align: center;
}

.final-preview {
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.final-preview-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    border: 4px solid var(--pastel-blue);
    box-shadow: var(--shadow-md);
    background-color: var(--pastel-beige);
}

/* Zoom Controls */
.zoom-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--pastel-beige);
    border-radius: 8px;
}

.zoom-controls label {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.zoom-controls input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--pastel-lavender);
    outline: none;
    -webkit-appearance: none;
}

.zoom-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pastel-blue);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.zoom-controls input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pastel-blue);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: none;
}

#zoomValue {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 50px;
    text-align: right;
}

/* Upload Actions */
.upload-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .final-preview-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .profile-upload-simple {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .circular-preview {
        width: 150px;
        height: 150px;
    }
}

/* ===== Modals ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content form {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* ===== Empty States ===== */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-text {
    color: var(--text-light);
    font-style: italic;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .profile-photo {
        width: 220px;
        height: 220px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .certificates-grid,
    .projects-grid,
    .blogs-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .login-card {
        padding: 2rem;
    }
}

