/* ============================================
   DEVANGA KULA MATRIMONY - SHARED STYLES
   Fully Responsive CSS with Mobile-First Approach
   ============================================ */

/* CSS Variables */

:root {
    --primary: #8B4513;
    --primary-light: #D2691E;
    --primary-dark: #5D2906;
    --accent: #B8860B;
    --accent-light: #F5DEB3;
    --gold: #FFD700;
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAF9F6;
    --bg-section: #FFF8F0;
    --bg-highlight: #FFF0E0;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-light: #666666;
    --border: #E0D6CC;
    --border-light: #F0EBE5;
    --success: #27AE60;
    --danger: #E74C3C;
    --warning: #F39C12;
    --info: #3498DB;
    --shadow: 0 2px 12px rgba(139, 69, 19, 0.1);
    --shadow-hover: 0 8px 24px rgba(139, 69, 19, 0.15);
    --shadow-card: 0 4px 16px rgba(139, 69, 19, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 15px;
    --radius-sm: 8px;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-section);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ============================================
   HEADER - Mobile First
   ============================================ */

/* Header Top Bar */
.header-top {
    background: var(--primary-dark);
    color: white;
    padding: 0.4rem 0;
    font-size: 0.75rem;
}

.header-top .header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.header-top .top-bar-left,
.header-top .top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-top span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.header-top i {
    font-size: 0.7rem;
}

/* Main Header */
header {
    background: var(--bg-primary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: var(--shadow-card);
    flex-shrink: 0;
}

.logo-text h1 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.logo-text p {
    color: var(--accent);
    font-size: 0.65rem;
    margin-top: -0.1rem;
    display: none;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    gap: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    list-style: none;
    overflow-y: auto;
}

.main-nav.active {
    left: 0;
}

.main-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.main-nav a i {
    width: 20px;
    text-align: center;
}

.main-nav a:hover {
    color: var(--accent-light);
    padding-left: 0.5rem;
}

/* Mobile Nav Close Button */
.nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-close:hover {
    background: var(--accent);
}

/* Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Nav Buttons */
.nav-buttons {
    display: none;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-login {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-login:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-register {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
}

.btn-register:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Mobile Nav Buttons inside Menu */
.mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-buttons .btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
}

.mobile-nav-buttons .btn-login {
    border-color: white;
    color: white;
}

.mobile-nav-buttons .btn-login:hover {
    background: white;
    color: var(--primary-dark);
}

.mobile-nav-buttons .btn-register {
    background: var(--accent);
    border-color: var(--accent);
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   FOOTER - Mobile First
   ============================================ */

footer {
    background: var(--primary-dark);
    color: white;
    padding: 2.5rem 1rem 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-light);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: var(--accent-light);
    padding-left: 0.5rem;
}

.footer-section ul li a i {
    width: 18px;
    font-size: 0.85rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.newsletter-form button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.newsletter-form button:hover {
    background: var(--gold);
    color: var(--primary-dark);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 0.3rem;
}

/* ============================================
   CHAT WIDGET
   ============================================ */

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.chat-widget:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.6);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}

.section-title {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 1rem;
}

/* ============================================
   TABLET BREAKPOINT (min-width: 576px)
   ============================================ */

@media (min-width: 576px) {
    .header-top .header-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .header-top {
        font-size: 0.8rem;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        display: block;
        font-size: 0.7rem;
    }
    
    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-form {
        flex-direction: row;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ============================================
   TABLET LANDSCAPE (min-width: 768px)
   ============================================ */

@media (min-width: 768px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .header-top {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
    
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .logo-text p {
        font-size: 0.75rem;
    }
    
    .logo-icon {
        width: 46px;
        height: 46px;
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    footer {
        padding: 3rem 1.5rem 2rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .chat-widget {
        width: 55px;
        height: 55px;
        font-size: 22px;
        bottom: 25px;
        right: 25px;
    }
}

/* ============================================
   DESKTOP BREAKPOINT (min-width: 1024px)
   ============================================ */

@media (min-width: 1024px) {
    .header-container {
        padding: 0 2rem;
        flex-wrap: nowrap;
    }
    
    .logo-text h1 {
        font-size: 1.6rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    /* Desktop Navigation */
    .main-nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        gap: 2rem;
        box-shadow: none;
        display: flex;
        overflow: visible;
    }
    
    .main-nav li {
        border-bottom: none;
    }
    
    .main-nav a {
        color: var(--text-secondary);
        padding: 0.5rem 0;
        font-size: 0.95rem;
    }
    
    .main-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background: var(--accent);
        transition: var(--transition);
        border-radius: 2px;
    }
    
    .main-nav a:hover::after {
        width: 100%;
    }
    
    .main-nav a:hover {
        color: var(--primary);
        padding-left: 0;
    }
    
    .main-nav a i {
        display: none;
    }
    
    .nav-close,
    .mobile-nav-buttons {
        display: none;
    }
    
    .nav-overlay {
        display: none !important;
    }
    
    .nav-buttons {
        display: flex;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.6rem 1.4rem;
        font-size: 0.9rem;
    }
    
    .hamburger {
        display: none;
    }
    
    /* Footer Desktop */
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
    
    footer {
        padding: 4rem 2rem 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-title::after {
        width: 80px;
        height: 4px;
    }
    
    .chat-widget {
        width: 60px;
        height: 60px;
        font-size: 24px;
        bottom: 30px;
        right: 30px;
    }
}

/* ============================================
   LARGE DESKTOP (min-width: 1200px)
   ============================================ */

@media (min-width: 1200px) {
    .main-nav {
        gap: 2.5rem;
    }
    
    .main-nav a {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
    }
    
    .logo-text h1 {
        font-size: 1.8rem;
    }
    
    .logo-text p {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
