/* style.css - Optimized CSS for Patel Software Tally Partner */

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

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; 
    line-height: 1.6; 
    color: #333; 
}

/* Top Area - Light Blue Gradient */
.top-area {
    background: linear-gradient(135deg, #f0f9ff 0%, #e1f5fe 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Navigation */
.topnav { 
    overflow: hidden;
    width: 100%;
    background: linear-gradient(to bottom, Green, yellow);
   
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.topnav-inner { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center;
}

.topnav a { 
    color: #fff; 
    padding: 14px 16px; 
    text-decoration: none; 
    transition: all 0.3s; 
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.topnav a:hover { 
    background: rgba(255,255,255,0.1); 
}

.topnav a.active { 
    background: #00c853;
    color: white;
}

.topnav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #00c853;
    transition: width 0.3s;
}

.topnav a:hover::after {
    width: 70%;
}

/* Hero/Carousel */
.hero-container {
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

.hero { 
    max-width: 1200px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: none;
}

.hero-img { 
    width: 100%; 
    height: 420px; 
    object-fit: cover; 
    display: none;
}

.hero-img.active { 
    display: block; 
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn { 
    from { opacity: 0.5; transform: scale(1.02); } 
    to { opacity: 1; transform: scale(1); } 
}

/* Hero Content - Updated Layout */
.hero-content-wrapper {
    max-width: 1400px;
    margin: 40px auto 30px;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: stretch;
}

.hero-main-content {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.hero-main-content h1 {
    font-size: 2.8rem;
    color: #1a237e;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-main-content p {
    font-size: 1.2rem;
    color: #37474f;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Side Boxes */
.side-box {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.side-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.box-header {
    background: linear-gradient(90deg, #1a237e, #283593);
    color: white;
    padding: 18px 25px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.box-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #00c853;
}

.box-content {
    padding: 25px;
}

/* Latest News Box */
.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: #f9f9f9;
    padding-left: 10px;
    border-left: 3px solid #00c853;
}

.news-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date::before {
    content: '📅';
    font-size: 0.9rem;
}

.news-title {
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.news-link {
    display: inline-block;
    color: #00c853;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.news-link:hover {
    color: #1a237e;
    text-decoration: underline;
}

.news-link::after {
    content: ' →';
    font-weight: bold;
}

/* YouTube Box */
.youtube-box {
    text-align: center;
}

.youtube-icon {
    font-size: 3.5rem;
    color: #ff0000;
    margin-bottom: 15px;
    display: block;
}

.youtube-box h3 {
    color: #1a237e;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.youtube-box p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ff0000;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

.subscribe-btn:hover {
    background: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

.subscribe-btn::before {
    content: '▶';
    font-size: 1.1rem;
}

.channel-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-weight: 700;
    color: #1a237e;
    font-size: 1.2rem;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #00c853, #00e676);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.4);
    background: linear-gradient(90deg, #00e676, #00c853);
}

/* Middle Area - White with subtle pattern */
.middle-area {
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    padding: 80px 0;
    position: relative;
}

.middle-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #00c853, #1a237e);
}

/* Content Sections */
.section { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #00c853;
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}

.card { 
    background: #fff; 
    border-radius: 12px; 
    padding: 30px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.card h2, .card h3 {
    color: #1a237e;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card h2::after, .card h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #00c853;
    margin: 10px auto;
    border-radius: 2px;
}

/* Feature Icons */
.feature-icon {
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: rgba(26, 35, 126, 0.1);
    border-radius: 50%;
}

/* Bottom Area - Dark Blue Gradient */
.bottom-area {
    background: linear-gradient(135deg, #0d1b3e 0%, #1a237e 100%);
    color: white;
    padding: 80px 0 40px;
    position: relative;
}

.bottom-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #00c853, #ffeb3b);
}

/* Footer */
.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px;
}

.footer-grid h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-grid h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #00c853;
    border-radius: 2px;
}

.footer-grid p {
    color: #b0bec5;
    line-height: 1.8;
}

/* Footer Form */
.footer-form input {
    padding: 14px;
    width: 100%;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
}

.footer-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.footer-form button {
    background: linear-gradient(90deg, #00c853, #00e676);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}

.footer-form button:hover {
    background: linear-gradient(90deg, #00e676, #00c853);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1100px) {
    .hero-content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .side-box {
        max-width: 500px;
        width: 100%;
    }
    
    .hero-main-content {
        order: -1;
    }
}

@media (max-width: 768px) {
    .topnav-inner { justify-content: center; }
    .topnav a { padding: 14px 10px; font-size: 14px; }
    .hero-img { height: 300px; }
    .hero-main-content h1 { font-size: 2.2rem; }
    .hero-main-content p { font-size: 1.1rem; }
    .section-title h2 { font-size: 2rem; }
    .middle-area, .bottom-area { padding: 50px 0; }
    .box-header { padding: 15px 20px; font-size: 1.2rem; }
    .box-content { padding: 20px; }
}

/* Performance Optimizations */
img { max-width: 100%; height: auto; }
.lazy { opacity: 0; transition: opacity 0.5s; }
.lazy.loaded { opacity: 1; }

/* Decorative Elements */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #00c853;
    top: -150px;
    right: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: #1a237e;
    bottom: 100px;
    left: -50px;
}