/* ===================================
   SAMSKRITI - CSS STYLESHEET
   Minimalistic design with subtle traditional elements
   =================================== */

/* ===================================
   VARIABLES & RESET
   =================================== */
:root {
    /* Color Palette - Soft & Minimalistic */
    --primary-color: #d4a574;        /* Soft gold/saffron */
    --primary-light: #e8c9a8;
    --primary-dark: #b8885a;
    --accent-color: #c9936f;
    --text-dark: #2c2c2c;
    --text-medium: #5a5a5a;
    --text-light: #8a8a8a;
    --bg-cream: #faf8f5;
    --bg-white: #ffffff;
    --border-light: #e8e6e3;
    --shadow: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', serif;
    --font-logo: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-cream);
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===================================
   LAYOUT
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    background: var(--bg-white);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 0;
    letter-spacing: 1px;
    font-weight: 600;
    line-height: 1.2;
}

.logo .tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0.1rem 0 0 0;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    color: var(--text-medium);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-dark);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary-color);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-cream) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
}

/* Traditional Indian border pattern - More Visible */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary-color) 0px,
        var(--primary-color) 8px,
        var(--primary-dark) 8px,
        var(--primary-dark) 16px,
        var(--primary-color) 16px,
        var(--primary-color) 20px,
        transparent 20px,
        transparent 28px
    );
    opacity: 0.8;
}

/* Add decorative bottom border with Indian motif */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary-color) 0px,
        var(--primary-color) 6px,
        transparent 6px,
        transparent 12px
    );
    opacity: 0.7;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Compact Hero Version */
.hero-compact {
    padding: var(--spacing-md) 0;
}

.hero-compact .hero-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.hero-compact .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* ===================================
   CAROUSEL SECTION
   =================================== */
.carousel-section {
    padding: 0;
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

/* Decorative Indian-style line under section titles - More Visible */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 20%, 
        var(--primary-dark) 50%, 
        var(--primary-color) 80%, 
        transparent 100%);
    border-radius: 2px;
}

/* Add decorative diamond symbols on sides */
.section-title::before {
    content: '◆';
    position: absolute;
    bottom: -5px;
    left: 50%;
    margin-left: -70px;
    color: var(--primary-color);
    font-size: 12px;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-image {
    width: 100%;
    height: 600px;
    object-fit: contain;
    display: block;
    background: #000;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: var(--spacing-md);
    font-size: 1.125rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px var(--shadow);
}

.carousel-btn:hover {
    background: var(--primary-light);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--spacing-md);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ===================================
   EVENTS SECTION
   =================================== */
.events-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-cream);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.event-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.event-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.event-card h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

/* ===================================
   FLIP CARD STYLES
   =================================== */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 300px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
}

.flip-card-back h3 {
    color: white;
}

.flip-card-back p {
    color: white;
    margin-bottom: 0.5rem;
}

.flip-card-back strong {
    color: white;
}

.click-hint {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-light);
    margin-top: auto;
}

.flip-card-back .click-hint {
    color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   PAGE HEADER
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: white;
}

.page-header h1 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.page-header .subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* ===================================
   ABOUT SECTIONS
   =================================== */
.about-section,
.artist-section {
    padding: var(--spacing-xl) 0;
}

.about-section {
    background: var(--bg-white);
}

.artist-section {
    background: var(--bg-cream);
}

.about-content,
.artist-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text h2,
.artist-text h2 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
}

.artist-title {
    font-style: italic;
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.about-image-placeholder,
.artist-image-placeholder {
    border-radius: 8px;
    overflow: hidden;
}

.image-box {
    background: var(--border-light);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
}

/* ===================================
   TEACHING SECTION
   =================================== */
.teaching-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.teaching-card {
    background: var(--bg-cream);
    padding: var(--spacing-md);
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    border-top: 2px solid var(--primary-light);
    position: relative;
    transition: all 0.3s ease;
}

/* Add decorative element for Indian aesthetic */
.teaching-card::before {
    content: '✦';
    position: absolute;
    top: 10px;
    left: 10px;
    color: var(--primary-color);
    font-size: 14px;
    opacity: 0.5;
}

.teaching-card:hover {
    border-left-width: 5px;
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--shadow);
}

.teaching-card h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-cream);
}

.gallery-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px var(--shadow);
}

.gallery-item .image-box {
    height: 300px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--primary-light);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.footer-tagline {
    font-style: italic;
    color: var(--primary-light);
    margin-bottom: var(--spacing-xs);
}

.footer-location,
.footer-established {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateX(5px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .nav-menu {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .about-content,
    .artist-content {
        grid-template-columns: 1fr;
    }
    
    .carousel-image {
        height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .teaching-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .carousel-image {
        height: 250px;
    }
    
    .image-box {
        height: 250px;
    }
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
    padding: 1rem 0;
    background: var(--bg-white);
}

.contact-intro {
    text-align: center;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto 0.75rem;
    font-size: 0.9rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Form Styles */
.contact-form-container {
    background: var(--bg-cream);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.required {
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    padding: 0.5rem;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.35rem;
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.form-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.info-card {
    background: var(--bg-cream);
    padding: 0.85rem;
    border-radius: 8px;
    border-top: 3px solid var(--primary-light);
}

.info-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.info-card p {
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.social-link-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-white);
    border-radius: 4px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-light);
    font-size: 0.9rem;
}

.social-link-inline:hover {
    background: var(--primary-light);
    color: var(--text-dark);
    transform: translateX(5px);
    border-left-color: var(--primary-color);
}

.social-link-inline svg {
    flex-shrink: 0;
}

/* Responsive Design for Contact Page */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        padding: var(--spacing-md);
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
