:root {
    /* Light theme variables */
    --primary-color: #2C5282;
    --secondary-color: #4299E1;
    --accent-color: #48BB78;
    --background-color: #F7FAFC;
    --text-color: #2D3748;
    --light-gray: #EDF2F7;
    --white: #FFFFFF;
    --card-bg: var(--white);
    --nav-bg: var(--white);
    --border-color: #E2E8F0;
    --primary-rgb: 44, 82, 130;
    --secondary-rgb: 66, 70, 207;
}

[data-theme="dark"] {
    --primary-color: #63B3ED;
    --secondary-color: #4299E1;
    --accent-color: #48BB78;
    --background-color: #1A202C;
    --text-color: #E2E8F0;
    --light-gray: #2D3748;
    --white: #2D3748;
    --card-bg: #2D3748;
    --nav-bg: #1A202C;
    --border-color: #4A5568;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
nav {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.brand-text h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.slogan {
    font-style: italic;
    color: var(--text-color);
    font-size: 0.9rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: var(--secondary-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    margin-right: 0.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.theme-toggle i {
    font-size: 1.2rem;
}

/* Main content */
main {
    min-height: calc(100vh - 60px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    height: 600px;
}

.banner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.scrolling-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    display: flex;
    animation: scroll 40s linear infinite;
}

.banner-slide {
    width: 50%;
    height: 100%;
    display: flex;
}

.banner-slide img {
    width: 25%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(var(--primary-rgb), 0.85) 0%, 
        rgba(var(--secondary-rgb), 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
}

.hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    line-height: 1.4;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.9;
}

/* Override dark mode text color for hero content */
[data-theme="dark"] .hero-content h1,
[data-theme="dark"] .hero-content h2 {
    color: #ffffff;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--white);
    overflow-x: hidden;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

/* Responsive adjustments for feature grid */
@media (max-width: 1400px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    background: linear-gradient(135deg, #2C5282 0%, #4299E1 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.feature-card p {
    color: var(--white);
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    opacity: 0.9;
    max-width: 100%;
    margin: 0 auto;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.feature-detail {
    font-size: 0.9rem;
    opacity: 0.9;
    padding-left: 1.5rem !important;
    color: var(--text-color);
}

.free-trial .feature-detail {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Free Trial Card Styles */
.free-trial {
    background: linear-gradient(135deg, #6B46C1 0%, #9F7AEA 100%) !important;
    position: relative;
    border: none !important;
}

.free-trial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.trial-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #48BB78;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.free-trial .storage-limit,
.free-trial .user-limit {
    color: #EDF2F7;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.free-trial h3,
.free-trial .price,
.free-trial ul,
.free-trial ul li {
    color: white;
}

.free-trial .select-plan {
    background-color: #48BB78;
    border: none;
}

.free-trial .select-plan:hover {
    background-color: #38A169;
}

.free-trial ul li::before {
    color: #48BB78;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        padding: 0 1rem;
    }
}

/* Pricing cards common styles */
.price-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    color: var(--text-color);
}

.price-card ul li {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.price-card ul li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
}

.price-card .feature-detail {
    font-size: 0.9rem;
    opacity: 0.8;
    padding-left: 1.5rem !important;
}

.price-card .feature-detail::before {
    content: '';
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.price-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price-card .price {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.price-card .price-per-gb {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.price-card .select-plan {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.price-card .select-plan:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Popular card styles */
.price-card.popular {
    border: 3px solid var(--secondary-color);
    transform: scale(1.05);
}

.price-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Best value card styles */
.price-card.best-value {
    border: 3px solid var(--accent-color);
}

.best-value-tag {
    position: absolute;
    top: -12px;
    left: -12px;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Handle case where a card is both popular and best value */
.price-card.popular.best-value .best-value-tag {
    left: auto;
    right: 120px;
}

/* Highlighted card */
.price-card.highlighted {
    border: 3px solid var(--accent-color);
    transform: scale(1.05);
}

.price-card.highlighted:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Dark theme adjustments */
[data-theme="dark"] .price-card {
    background-color: var(--card-bg);
}

[data-theme="dark"] .price-card ul li::before {
    color: var(--accent-color);
}

[data-theme="dark"] .price-card .select-plan {
    background-color: var(--primary-color);
}

[data-theme="dark"] .price-card .select-plan:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: var(--white);
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: var(--white);
    opacity: 0.8;
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: var(--accent-color);
}

.protected-phone {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.protected-phone:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
}
