/* =============================================================================
   CSS untuk Halaman Kontak - Website Desa Banyusri
   ============================================================================= */

/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    /* Enhanced background matching index.css style */
    background: 
        linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(155, 89, 182, 0.1) 25%, rgba(46, 204, 113, 0.1) 50%, rgba(241, 196, 15, 0.1) 75%, rgba(231, 76, 60, 0.1) 100%),
        linear-gradient(to bottom, rgba(150, 150, 150, 0.801) 60%, rgb(0, 0, 0) 100%),
        url('../img/pkk ibu ibu-2.jpeg') center/cover no-repeat,
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(52, 152, 219, 0.02) 10px,
            rgba(52, 152, 219, 0.02) 20px
        );
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    padding: 0;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
    scroll-behavior: smooth;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: background 0.8s ease;
}

/* Enhanced overlay pattern matching index.css */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(46, 204, 113, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(155, 89, 182, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* =============================================================================
   Header Section - Enhanced to match index.css
   ============================================================================= */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #2980b9 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.header-text h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* =============================================================================
   Navigation - Enhanced to match index.css
   ============================================================================= */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 2rem;
}

.nav-item {
    padding: 1rem 0;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s ease;
}

.nav-item:hover::before,
.nav-item.active::before {
    width: 100%;
}

.nav-item:hover,
.nav-item.active {
    color: #3498db;
}

/* =============================================================================
   Main Content Layout
   ============================================================================= */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =============================================================================
   Hero Section - Enhanced to match index.css
   ============================================================================= */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.hero::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%);
    pointer-events: none;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* =============================================================================
   Button Styles - Enhanced to match index.css
   ============================================================================= */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5582);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* =============================================================================
   Content Sections - Enhanced to match index.css
   ============================================================================= */
.content {
    margin: 2rem 0;
}

.section {
    margin: 3rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12, #e74c3c);
    border-radius: 20px 20px 0 0;
}


/* =============================================================================
   Cards Grid Layout - Enhanced to match index.css
   ============================================================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 20px 20px 0 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: translateX(0);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.card p {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.6;
}

.card p:last-of-type {
    margin-bottom: 1.5rem;
}

/* =============================================================================
   Contact Specific Styles - Enhanced
   ============================================================================= */
.contact-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.contact-link:hover {
    background: linear-gradient(135deg, #2980b9, #1f5582);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* =============================================================================
   Location Info Section - Enhanced
   ============================================================================= */
.location-info {
    margin: 2rem 0;
}

.location-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 20px 20px 0 0;
}

.location-icon {
    font-size: 3rem;
    color: #3498db;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.location-details h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.location-details p {
    margin-bottom: 0.8rem;
    color: #666;
    line-height: 1.5;
}

.location-details p strong {
    color: #2c3e50;
}

/* =============================================================================
   Social Media Grid - Enhanced
   ============================================================================= */
.social-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 20px 20px 0 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.social-card:hover::before {
    transform: translateX(0);
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.social-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.social-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.social-card p {
    color: #666;
    font-size: 0.9rem;
}

/* =============================================================================
   Info Grid Section - Enhanced
   ============================================================================= */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.info-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 20px 20px 0 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.info-item:hover::before {
    transform: translateX(0);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3498db;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.info-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-item p {
    color: #666;
    line-height: 1.6;
}

/* =============================================================================
   Footer - Enhanced to match index.css
   ============================================================================= */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(46, 204, 113, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.footer-links a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-content p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* =============================================================================
   Admin Access Styles - Enhanced to match index.css
   ============================================================================= */
.admin-access {
    display: flex;
    align-items: center;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.admin-icon {
    font-size: 1.1rem;
}

/* =============================================================================
   Animation Effects - Added from index.css
   ============================================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.section {
    animation: fadeInUp 0.6s ease-out;
}

.section:nth-child(even) {
    animation: slideInLeft 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* =============================================================================
   Responsive Design - Mobile First
   ============================================================================= */

/* Tablet Styles */
@media (max-width: 1024px) {
    .page-content {
        padding: 0 1.5rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-content,
    .nav-container,
    .page-content,
    .footer-content {
        padding: 0 1rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        font-size: 2rem;
    }

    .header-text h1 {
        font-size: 1.5rem;
    }

    .header-text p {
        font-size: 0.85rem;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .social-media-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .location-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }
    
    .header-text h1 {
        font-size: 1.2rem;
    }
    
    .header-text p {
        font-size: 0.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .info-item {
        padding: 1.5rem;
    }
    
    .location-card {
        padding: 1.5rem;
    }
    
    .social-card {
        padding: 1.2rem;
    }
    
    .admin-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .admin-text {
        display: none;
    }
    
    .admin-icon {
        font-size: 1.2rem;
    }
}

/* =============================================================================
   Focus styles for accessibility
   ============================================================================= */
.nav-item:focus,
.card:focus,
.btn:focus,
.contact-link:focus,
.social-card:focus,
.admin-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* =============================================================================
   Utility Classes
   ============================================================================= */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.active {
    display: block;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

html {
    scroll-behavior: smooth;
}