/* Artisan's Atelier Custom Styles */

:root {
    --primary-color: #D57D3C;
    --secondary-color: #7A9D7C;
    --background-color: #F8F5F0;
    --text-color: #3C2A21;
    --light-gray: #F5F5F5;
    --border-color: #E0E0E0;
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #F8F5F0 0%, #F0EDE8 100%) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 0.75rem 0;
    border-bottom: 2px solid var(--primary-color);
}

.navbar-brand {
    color: var(--text-color) !important;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.navbar-nav {
    flex-direction: row !important;
    align-items: center;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 600;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: center;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(213, 125, 60, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(213, 125, 60, 0.15);
    font-weight: 700;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Responsive navigation adjustments */
@media (max-width: 1200px) {
    .navbar-nav .nav-link {
        font-size: 0.85rem;
        padding: 0.35rem 0.6rem !important;
        margin: 0 0.15rem;
    }
}

@media (max-width: 992px) {
    .navbar-nav {
        flex-direction: column !important;
        align-items: flex-start;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        width: 100%;
        text-align: left;
        margin: 0.1rem 0;
        padding: 0.5rem 1rem !important;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-image-container {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col-lg-6, .col-md-6, .col-sm-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .col-lg-6, .col-md-6, .col-sm-6 {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--background-color) 0%, #F0EDE8 100%);
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(213, 125, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(122, 157, 124, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(213, 125, 60, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #E8A87C);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(213, 125, 60, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease-out;
}

.title-line.highlight {
    background: linear-gradient(135deg, var(--primary-color), #E8A87C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.2s;
}

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

.hero-description {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-image-container {
    position: relative;
    z-index: 2;
    animation: slideInRight 1s ease-out 0.2s both;
}

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

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.hero-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.hero-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image-wrapper:hover .hero-main-image {
    transform: scale(1.1);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 600;
    color: var(--text-color);
    animation: floatCard 3s ease-in-out infinite;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 10;
    border: 1px solid rgba(213, 125, 60, 0.2);
    min-width: 140px;
    max-width: 180px;
}

.floating-card i {
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.floating-card span {
    font-size: 0.9rem;
    font-weight: 600;
    flex: 1;
}

.card-1 {
    top: 10%;
    right: -2%;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    left: -3%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    right: -1%;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* Featured Artisan Image */
.featured-artisan-image {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.featured-artisan-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.featured-artisan-image:hover img {
    transform: scale(1.05);
}

/* Story Image */
.story-image {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.story-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.story-image:hover img {
    transform: scale(1.02);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #C46A2F;
    border-color: #C46A2F;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(213, 125, 60, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Cards */
.card {
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(213, 125, 60, 0.1);
    background: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
    border-color: var(--primary-color);
}

.card-img-top {
    height: 200px;
    width: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 1rem auto;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title {
    color: var(--text-color) !important;
    font-weight: 600;
}

.card-text {
    color: #666 !important;
    line-height: 1.5;
}

/* Sections */
section {
    padding: 4rem 0;
}

.bg-light {
    background-color: #F9F9F9 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.display-4 {
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lead {
    color: #555 !important;
    font-weight: 500;
}

.text-muted {
    color: #666 !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2C1810 0%, #1A0F08 100%) !important;
    border-top: 3px solid var(--primary-color);
}

footer h5, footer h6 {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

footer a {
    transition: all 0.3s ease;
    color: #E8E8E8 !important;
}

footer a:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 8px rgba(213, 125, 60, 0.5);
}

footer .text-muted {
    color: #B8B8B8 !important;
}

footer hr {
    border-color: var(--primary-color);
    opacity: 0.3;
}

/* Form Elements */
.form-control {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(213, 125, 60, 0.25);
}

.input-group .btn {
    border-radius: 0 10px 10px 0;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .card-img-top {
        height: 180px;
        width: 180px;
    }
    
    .floating-card {
        display: none;
    }
    
    .hero-image-wrapper {
        transform: none;
        margin-top: 2rem;
    }
    
    .hero-image-wrapper:hover {
        transform: scale(1.02);
    }
    
    .featured-artisan-image {
        max-width: 250px;
        margin-bottom: 2rem;
    }
    
    .featured-artisan-image img {
        width: 250px;
        height: 250px;
    }
    
    .story-image {
        max-width: 300px;
        margin-top: 2rem;
    }
    
    .story-image img {
        height: 300px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        gap: 1.8rem;
    }
    
    .featured-artisan-image {
        max-width: 280px;
    }
    
    .featured-artisan-image img {
        width: 280px;
        height: 280px;
    }
    
    .story-image {
        max-width: 400px;
    }
    
    .story-image img {
        height: 400px;
    }
    
    .floating-card {
        font-size: 0.8rem;
        padding: 0.8rem 1.2rem;
        min-width: 120px;
        max-width: 160px;
    }
    
    .card-1 {
        right: -1%;
        top: 8%;
    }
    
    .card-2 {
        left: -2%;
        top: 35%;
    }
    
    .card-3 {
        right: 0%;
        bottom: 8%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .featured-artisan-image {
        max-width: 200px;
    }
    
    .featured-artisan-image img {
        width: 200px;
        height: 200px;
    }
    
    .story-image {
        max-width: 250px;
    }
    
    .story-image img {
        height: 250px;
    }
    
    .card-img-top {
        height: 150px;
        width: 150px;
    }
    
    section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .featured-artisan-image {
        max-width: 180px;
    }
    
    .featured-artisan-image img {
        width: 180px;
        height: 180px;
    }
    
    .story-image {
        max-width: 220px;
    }
    
    .story-image img {
        height: 220px;
    }
    
    .card-img-top {
        height: 130px;
        width: 130px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C46A2F;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(213, 125, 60, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* Text Selection */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}
