/**
 * Theme Name:   Astra Child
 * Theme URI:    https://wpastra.com/
 * Description:  Enhanced Astra Child Theme for abhijeetkushwaha.com
 * Author:       Abhijeet Kushwaha
 * Author URI:   https://abhijeetkushwaha.com
 * Template:     astra
 * Version:      2.0.1
 * License:      GNU General Public License v2 or later
 * License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:  astra-child
 */

/* ===================================
   Complete UI Revamp - Modern & User-Friendly
   =================================== */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Hero Section - Complete Redesign
   =================================== */
.ak-hero-section {
    position: relative;
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
    padding: 80px 20px 40px 20px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ak-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, 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;
}

.ak-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(0px);
}

.ak-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    color: #ffffff;
}

.ak-hero-container h1,
.ak-hero-container h2,
.ak-hero-container p {
    color: #ffffff !important;
}

.ak-hero-title {
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.6s ease-out;
}

.ak-hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff !important;
    opacity: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.6s ease-out 0.1s both;
    letter-spacing: 0.01em;
}

.ak-hero-description {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    max-width: 700px;
    margin: 0 auto 16px;
    line-height: 1.6;
    color: #ffffff !important;
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* ===================================
   About Section - Company Info
   =================================== */
.ak-about-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    background: #ffffff;
}

.ak-about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.ak-company-info {
    background: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    margin-top: 20px;
    text-align: left;
}

.ak-company-name {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #667eea;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 20px;
    text-align: center;
}

.ak-company-info p {
    color: #475569;
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

.ak-section-text {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: #475569;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .ak-about-section {
        padding: 40px 20px;
    }
    
    .ak-company-info {
        padding: 30px 20px;
    }
}

/* ===================================
   Products Section - Modern Grid
   =================================== */
.ak-products-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px;
    background: #fafbfc;
    position: relative;
    z-index: 10;
}

.ak-section-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.ak-section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ak-section-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #64748b;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Product Cards - Modern Design
   =================================== */
.ak-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.ak-product-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    position: relative;
    height: 100%;
    cursor: pointer;
}

.ak-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.ak-product-card:hover {
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.ak-product-card:hover::before {
    opacity: 1;
}

.ak-product-image-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ak-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ak-product-content {
    padding: 24px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ak-product-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.ak-product-description {
    color: #64748b;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.9rem;
    margin: 0;
}

.ak-product-link-wrapper {
    margin-top: 8px;
}

.ak-product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.39);
    position: relative;
    overflow: hidden;
}

.ak-product-link::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;
}

.ak-product-link:hover {
    box-shadow: 0 4px 12px 0 rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

.ak-product-link:hover::before {
    left: 100%;
}

.ak-product-link:active {
    box-shadow: 0 2px 8px 0 rgba(102, 126, 234, 0.3);
}

/* ===================================
   Footer - Clean Design
   =================================== */
.ak-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    text-align: center;
    padding: 60px 20px 40px;
    margin-top: 100px;
}

.ak-footer-text {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===================================
   Site Structure Enhancements
   =================================== */
.site-content {
    padding: 0;
    background: #ffffff;
}

.ast-container {
    max-width: 100%;
    padding: 0;
}

#primary {
    padding: 0;
}

.entry-content {
    padding: 0;
    margin: 0;
    background: transparent;
}

/* ===================================
   Header Enhancements
   =================================== */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Header text colors - black for visibility on white background */
.site-header,
.site-header * {
    color: #000000 !important;
}

.site-header a,
.site-header .menu-item,
.site-header .menu-item a,
.site-header .menu-item > a,
.site-header li.menu-item a,
.site-header .ast-menu-toggle,
.site-header .site-title,
.site-header .site-title a,
.site-header .site-description,
.site-header .widget-title,
.site-header nav a,
.site-header nav li a,
.site-header .ast-primary-navigation,
.site-header .ast-primary-navigation a,
.site-header .ast-primary-navigation .menu-item a,
.site-header .ast-primary-navigation li a,
.ast-site-identity .site-title,
.ast-site-identity .site-title a,
.main-navigation,
.main-navigation a,
.main-navigation .menu-item a,
.main-navigation li a,
.ast-header-break-point .main-navigation ul.sub-menu li a,
.ast-header-break-point .main-navigation ul.children li a,
.ast-mobile-menu-buttons .menu-toggle,
.ast-desktop .main-navigation ul li a,
.ast-builder-menu .main-navigation ul li a {
    color: #000000 !important;
}

.site-header a:hover,
.site-header .menu-item a:hover,
.site-header .menu-item > a:hover,
.site-header li.menu-item a:hover,
.site-header nav a:hover,
.site-header nav li a:hover,
.site-header .ast-primary-navigation a:hover,
.site-header .ast-primary-navigation .menu-item a:hover,
.site-header .ast-primary-navigation li a:hover,
.site-header .site-title a:hover,
.main-navigation a:hover,
.main-navigation .menu-item a:hover {
    color: #667eea !important;
}

.site-header .ast-search-icon,
.site-header .ast-header-button,
.site-header button {
    color: #000000 !important;
}

/* Ensure navigation menus are black */
.ast-primary-navigation .menu-item > a,
.ast-primary-navigation .sub-menu .menu-item > a,
.ast-primary-navigation ul li a,
.main-navigation ul li a {
    color: #000000 !important;
}

.ast-primary-navigation .menu-item > a:hover,
.ast-primary-navigation .sub-menu .menu-item > a:hover,
.ast-primary-navigation ul li a:hover,
.main-navigation ul li a:hover {
    color: #667eea !important;
}

/* ===================================
   Footer Enhancements
   =================================== */
.site-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 60px 20px 40px;
    margin-top: 0;
}

.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #ffffff;
}

/* ===================================
   Smooth Scrolling
   =================================== */
html {
    scroll-behavior: smooth;
}

/* ===================================
   Selection & Scrollbar
   =================================== */
::selection {
    background: #667eea;
    color: #ffffff;
}

::-moz-selection {
    background: #667eea;
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* ===================================
   Button Enhancements
   =================================== */
.wp-block-button__link,
.button,
a.button,
button,
input[type="submit"],
.ast-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.39);
    display: inline-block;
    text-decoration: none;
    font-size: 1rem;
}

.wp-block-button__link:hover,
.button:hover,
a.button:hover,
button:hover,
input[type="submit"]:hover,
.ast-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(102, 126, 234, 0.5);
    color: #ffffff;
}

/* ===================================
   Form Enhancements
   =================================== */
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===================================
   Link Enhancements
   =================================== */
a:not(.ak-product-link):not(.button) {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

a:not(.ak-product-link):not(.button):hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* ===================================
   Typography Enhancements
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
    color: #475569;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .ak-products-section {
        padding: 50px 30px;
    }
    
    .ak-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 18px;
    }
    
    .ak-product-image-wrapper {
        height: 120px;
    }
    
    .ak-product-content {
        padding: 14px 16px;
    }
}

@media (max-width: 768px) {
    .ak-hero-section {
        min-height: 30vh;
        padding: 60px 20px 30px 20px;
    }
    
    .ak-hero-title {
        margin-bottom: 8px;
    }
    
    .ak-hero-subtitle {
        margin-bottom: 6px;
    }
    
    .ak-hero-description {
        margin-bottom: 12px;
    }
    
    .ak-products-section {
        padding: 35px 20px;
    }
    
    .ak-section-header {
        margin-bottom: 30px;
    }
    
    .ak-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ak-product-image-wrapper {
        height: 120px;
    }
    
    .ak-product-content {
        padding: 14px 16px;
    }
    
    .ak-product-title {
        font-size: 1.1rem;
    }
    
    .ak-product-description {
        font-size: 0.8rem;
    }
    
    .ak-product-link {
        padding: 9px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .ak-hero-section {
        min-height: 28vh;
        padding: 25px 16px;
    }
    
    .ak-products-section {
        padding: 30px 16px;
    }
    
    .ak-section-header {
        margin-bottom: 25px;
    }
    
    .ak-product-image-wrapper {
        height: 110px;
    }
    
    .ak-product-content {
        padding: 12px 14px;
    }
    
    .ak-product-title {
        font-size: 1.05rem;
    }
    
    .ak-product-description {
        font-size: 0.8rem;
    }
    
    .ak-product-link {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* ===================================
   Accessibility Improvements
   =================================== */
.ak-product-card:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 4px;
}

.ak-product-link:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ===================================
   Loading States
   =================================== */
.ak-product-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Remove loading animation when image loads */
.ak-product-image[src] {
    animation: none;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .ak-hero-section {
        min-height: auto;
        padding: 40px 20px;
    }
    
    .ak-product-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
