/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Logo */
.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-wrapper {
    display: inline-block;
    transition: all 0.3s ease;
}

.logo-wrapper:hover {
    transform: translateY(-3px);
}

.hero-logo {
    background: white;
    padding: 0.8rem 1rem 1rem 1rem;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 165px;
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
    margin-bottom: 44px;
    opacity: 0.95;
}

.logo-wrapper:hover .hero-logo {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: #ffffff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: white;
    padding: 0rem 0 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.hero-content .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 300;
}

.hero-buttons {
    margin-bottom: 3rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.hero-buttons .btn-primary {
    background: #4CAF50;
    border-color: #4CAF50;
}

.hero-buttons .btn-primary:hover {
    background: #43A047;
    border-color: #43A047;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #4CAF50;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.float-element {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a237e;
    font-weight: 500;
    animation: float 3s ease-in-out infinite;
}

.float-element i {
    color: #4CAF50;
    font-size: 1.2rem;
}

.element-1 {
    top: 20%;
    left: -20px;
    animation-delay: 0s;
}

.element-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: #ffffff;
    margin-bottom: 4rem;
    position: relative;
}

.feature-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

.features-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a237e;
    font-weight: 700;
}

.features-section p {
    color: #546e7a;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Template Cards */
.templates-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

.template-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    width: 100%;
    max-width: 1000px;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.template-card.selected {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px #4CAF50;
}

.template-preview {
    position: relative;
    padding: 20px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 400px;
    overflow: hidden;
}

.template-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.template-card:hover .template-image {
    transform: scale(1.05);
}

.template-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}

.template-badge {
    background: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a237e;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.template-info {
    padding: 2rem;
    background: white;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.template-info h3 {
    margin: 0;
    font-size: 1.6rem;
    color: #1a237e;
    font-weight: 600;
}

.template-info p {
    margin: 1rem 0;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.5;
}

.template-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.template-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #666;
    font-size: 1rem;
}

.template-features i {
    color: #4CAF50;
    font-size: 1rem;
}

.template-select-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 8px;
    background: #4CAF50;
    border-color: #4CAF50;
    transition: all 0.3s ease;
}

.template-select-btn:hover {
    background: #43A047;
    border-color: #43A047;
    transform: translateY(-2px);
}

/* Add a subtle gradient background to the template section */
.bg-light {
    background: linear-gradient(135deg, #f5f5f5, #ffffff) !important;
    padding: 6rem 0;
    position: relative;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 10%, rgba(26,35,126,0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(13,71,161,0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Form Styles */
.form-section {
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
    padding: 6rem 0;
    position: relative;
}

.form-section h2 {
    color: #1a237e;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

.form-section h4 {
    color: #1a237e;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e3f2fd;
}

.form-section form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 2.5rem;
}

.form-label {
    font-weight: 500;
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e3f2fd;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.15);
}

.form-control::placeholder {
    color: #90a4ae;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Experience and Education Items */
.experience-item, .education-item {
    background: #f8f9fa;
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.experience-item:hover, .education-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #4CAF50;
}

.experience-item .row, .education-item .row {
    margin-bottom: 1rem;
}

.experience-item .row:last-child, .education-item .row:last-child {
    margin-bottom: 0;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: #4CAF50;
    border-color: #4CAF50;
}

.btn-primary:hover {
    background: #43A047;
    border-color: #43A047;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #4CAF50;
    border-color: #4CAF50;
}

.btn-outline-primary:hover {
    background: #4CAF50;
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #546e7a;
    border-color: #546e7a;
}

.btn-secondary:hover {
    background: #455a64;
    border-color: #455a64;
    transform: translateY(-2px);
}

/* Skills Input */
.skills-input {
    position: relative;
}

.skills-input .form-control {
    padding-right: 40px;
}

/* Form Section Spacing */
.mb-4 {
    margin-bottom: 2rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

/* Preview Section */
.preview-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    overflow-y: auto;
    padding: 1rem;
}

.preview-section.show {
    display: block;
}

.preview-content {
    background: white;
    width: 95%;
    max-width: 1000px;
    margin: 1rem auto;
    padding: 1.5rem;
    border-radius: 8px;
    position: relative;
}

.preview-content .btn-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding: 0;
    border: none;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: #1a237e;
}

.preview-content .btn-close i {
    font-size: 1.2rem;
    color: #1a237e;
}

.preview-content .btn-close:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#cvPreview {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* CV Preview Styles */
.cv-preview {
    font-size: 14px;
    line-height: 1.5;
}

.cv-preview h1 {
    font-size: 24px !important;
    margin-bottom: 15px !important;
}

.cv-preview h2 {
    font-size: 18px !important;
    margin-bottom: 15px !important;
}

.cv-preview h3 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
}

.cv-preview .contact-info {
    font-size: 12px !important;
    margin-bottom: 10px !important;
}

.cv-preview .social-links {
    font-size: 12px !important;
}

.cv-preview .cv-section {
    margin-bottom: 20px !important;
}

.cv-preview .experience-item,
.cv-preview .education-item {
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #eee;
}

.cv-preview .experience-item:last-child,
.cv-preview .education-item:last-child {
    border-bottom: none;
}

.cv-preview .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.cv-preview .skill-tag {
    font-size: 11px !important;
    padding: 3px 8px !important;
}

/* Form Buttons */
.form-section .text-center {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.form-section .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 !important;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
    }
    .hero-image {
        transform: none;
    }
    .hero-buttons {
        display: block;
        margin: auto;
    }
    .hero-stats {
        display: block;
        margin: auto;
        margin-top: 30px;
        margin-bottom: 35px;
    }
    .hero-stats .stat-item {
        width: 32.333%;
        display: inline-block;
    }
    .hero-logo {
        margin-bottom: 15px;
        max-width: 160px;
        padding: 12px 17px 12px 17px;
    }
    .template-card {
        flex-direction: column;
    }
    
    .template-preview {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .template-info {
        width: 100%;
        padding: 1.5rem;
    }
    
    .template-info h3 {
        font-size: 1.4rem;
    }
    
    .template-info p {
        font-size: 1rem;
    }
    
    .template-features li {
        font-size: 0.95rem;
    }
    
    .hero-section {
        padding: 0rem 0 6rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .feature-icon {
        font-size: 3rem;
    }
    
    .features-section {
        padding: 4rem 0;
    }
    
    .form-section {
        padding: 4rem 0;
    }
    
    .form-section form {
        padding: 1.5rem;
    }
    
    .form-section h2 {
        font-size: 2rem;
    }
    
    .form-section h4 {
        font-size: 1.2rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }

    .preview-section {
        padding: 0.5rem;
    }

    .preview-content {
        padding: 1rem;
        margin: 0.5rem auto;
    }

    .preview-content h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-right: 2.5rem;
    }

    .cv-preview {
        padding: 20px !important;
    }

    .cv-preview h1 {
        font-size: 20px !important;
    }

    .cv-preview h2 {
        font-size: 16px !important;
    }

    .cv-preview h3 {
        font-size: 14px !important;
    }

    .cv-preview .contact-info {
        font-size: 11px !important;
    }

    .cv-preview .social-links {
        font-size: 11px !important;
    }

    .cv-preview .experience-item,
    .cv-preview .education-item {
        margin-bottom: 12px !important;
    }

    .cv-preview .skill-tag {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }

    .form-section .btn {
        max-width: 100%;
    }

    .preview-content .btn-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .preview-content .btn-close i {
        font-size: 1rem;
    }

    .preview-content {
        margin-top: 3rem;
    }
}

/* Loading Overlay */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.loading.show {
    display: flex;
}

.loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

.loading .visually-hidden {
    font-size: 1rem;
    color: #1a237e;
    font-weight: 500;
} 