:root {
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --secondary-color: #50E3C2;
    --accent-color: #FF6B6B;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --card-bg: #f9f9f9;
    --footer-bg: #1a1a1a;
    --footer-text: #ecf0f1;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --secondary-color: #50E3C2;
    --text-color: #ecf0f1;
    --text-light: #aaaaaa;
    --bg-color: #1a1a1a;
    --card-bg: #2c2c2c;
    --footer-bg: #000000;
    --footer-text: #ecf0f1;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

[data-theme="dark"] .header {
    background-color: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:not(.btn-download-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:not(.btn-download-nav):hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-download-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-download-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(80, 227, 194, 0.08) 100%);
    overflow: hidden;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(80, 227, 194, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    max-width: 600px;
    font-weight: 400;
}

.hero-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-features-list span {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.hero-features-list i {
    color: var(--secondary-color);
    background: rgba(80, 227, 194, 0.1);
    padding: 5px;
    border-radius: 50%;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.5);
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(74, 144, 226, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0); }
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.2);
}

.ratings {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
    background: rgba(255,255,255,0.5);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    width: fit-content;
}

.stars {
    color: #f1c40f;
    font-size: 1.2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.app-mockup {
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.25));
    animation: float 6s ease-in-out infinite;
    border-radius: 30px;
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.app-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

@keyframes float {
    0% { transform: translateY(0px) perspective(1000px) rotateY(-5deg); }
    50% { transform: translateY(-20px) perspective(1000px) rotateY(-5deg); }
    100% { transform: translateY(0px) perspective(1000px) rotateY(-5deg); }
}

/* Features Section */
.features {
    padding: 8rem 0;
    background-color: var(--bg-color);
}

.features-grid {
    display: grid;
    /* Force 4 columns on desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 3rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.3);
    transform: rotate(-5deg);
    transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
    transform: rotate(0deg) scale(1.1);
}

.feature-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* Blog Styles */
.blog-preview {
    padding: 8rem 0;
    background-color: var(--card-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.blog-card {
    background-color: var(--bg-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    height: 240px;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    display: block;
}

.blog-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.blog-content h3 a {
    transition: var(--transition);
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    flex: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-top: auto;
    font-size: 1.05rem;
}

.read-more:hover {
    gap: 1rem;
}

/* Blog Detail Pages */
.blog-detail-section {
    padding: 6rem 0;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-light);
    font-size: 1rem;
}

.blog-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.9;
}

.blog-body h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.blog-body h3 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
}

.blog-body p {
    margin-bottom: 2rem;
}

.blog-body ul, .blog-body ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.blog-body li {
    margin-bottom: 0.8rem;
}

.blog-body img {
    border-radius: 15px;
    margin: 3rem 0;
    box-shadow: var(--shadow);
}

/* Footer Redesign */
.footer {
    background: linear-gradient(to right, #111111, #1a1a1a);
    color: var(--footer-text);
    padding: 6rem 0 2rem;
    font-size: 1rem;
    border-top: 4px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-logo img {
    margin-bottom: 1.5rem;
}

.footer-logo span {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    display: block;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    opacity: 0.7;
    line-height: 1.8;
    max-width: 320px;
}

.footer-links h4, .footer-legal h4, .footer-social h4 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 1rem;
}

.footer-links h4::after, .footer-legal h4::after, .footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links ul, .footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a, .footer-legal a {
    opacity: 0.7;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover, .footer-legal a:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-social .social-icons {
    display: flex;
    gap: 1.2rem;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition);
    color: white;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    opacity: 0.6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    color: var(--text-color);
}

.section-title p {
    font-size: 1.3rem;
    color: var(--text-light);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-features-list {
        align-items: center;
    }
    
    .hero-btns {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo p {
        margin: 0 auto;
    }
    
    .footer-social .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-links h4::after, .footer-legal h4::after, .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a:hover, .footer-legal a:hover {
        transform: translateX(0) scale(1.05);
    }
}
