:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --light-color: #f8f9fa;
    --dark-color: #202124;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    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(--dark-color);
    background-color: white;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.since-text {
    font-size: 1.25rem;
    color: white;
    margin: 0.5rem 0 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    display: inline-block;
    opacity: 0.9;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.since-text:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


/* Layout Components */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 4rem 0;
    animation: fadeIn 0.6s ease-out forwards;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

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

nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

nav a:hover:after {
    width: 100%;
}

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

nav .active:after {
    width: 100%;
}

/* Hero Sections */
.hero {
    text-align: center;
    padding: 5rem 1rem;
    background: var(--gradient);
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    nav ul {
        display: none; /* Mobile menu would go here */
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }

/* Features */
.features {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-card:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Pricing */
.pricing {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--light-color);
}

.pricing h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.price span {
    font-size: 1rem;
    font-weight: normal;
    color: #666;
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-card li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.pricing-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.pricing-card li[aria-label="false"]:before,
.pricing-card li:contains("✗"):before {
    content: "✗";
    color: var(--accent-color);
}

.pricing-card.free {
    border-top: 4px solid var(--primary-color);
}

.pricing-card.pro {
    border-top: 4px solid var(--secondary-color);
}

/* Testimonials */
.testimonials {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 3rem;
    font-size: 2rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: relative;
    border-top: 3px solid var(--primary-color);
}

.testimonial-card:after {
    content: '"\201D"';
    font-size: 3rem;
    position: absolute;
    right: 1rem;
    bottom: -1.5rem;
    color: rgba(0, 0, 0, 0.1);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
}

.testimonial-card p:before {
    content: '"\201C"';
    font-size: 3rem;
    position: absolute;
    left: -1rem;
    top: -1.5rem;
    color: rgba(0, 0, 0, 0.1);
}

.user {
    display: flex;
    flex-direction: column;
}

.user span {
    color: #666;
    font-size: 0.9rem;
}

/* How It Works */
.how-it-works {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--light-color);
}

.how-it-works h2 {
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.step {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.step:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.step:hover:before {
    opacity: 0.1;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* FAQ */
.faq {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item h3 {
    padding: 1rem;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-item h3 span {
    font-size: 1.5rem;
}

.faq-item h3:hover {
    background-color: #f5f5f5;
}

.faq-item.active h3 {
    background-color: var(--light-color);
}

.answer {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.answer p {
    padding: 1rem 0;
}

.faq-item.active .answer {
    max-height: 200px;
}

.faq-item .answer {
    display: none;
    padding: 1rem 0;
}

.faq-item.active .answer {
    display: block;
}

.faq-item h3 span {
    float: right;
    transition: transform 0.3s ease;
}

.faq-item.active h3 span {
    transform: rotate(45deg);
}

/* Reviews Page Styles */
.reviews-hero {
    text-align: center;
    padding: 5rem 1rem;
    background: var(--gradient);
    color: white;
}

.reviews-container {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-container h2 {
    text-align: center;
    margin: 3rem 0;
    color: var(--primary-color);
}

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

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.rating {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.reviewer {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.reviewer img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.reviewer div {
    display: flex;
    flex-direction: column;
}

.reviewer span {
    color: #666;
    font-size: 0.9rem;
}

nav .active {
    color: var(--primary-color);
    font-weight: bold;
}

/* Review Pagination */
.review-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.review-pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.review-pagination button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.review-pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Global Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card, .testimonial-card, .pricing-card {
        margin-bottom: 1.5rem;
    }
}

/* Legal Page Styles */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1rem;
    line-height: 1.6;
}

.legal-page h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.legal-page h2 {
    color: var(--dark-color);
    margin: 2rem 0 1rem;
}

.legal-page p, .legal-page li {
    margin-bottom: 1rem;
}

address {
    font-style: normal;
    background: var(--light-color);
    padding: 1rem;
    border-radius: 4px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--dark-color);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Key Features Section - Matching Why Choose CloudFree */
.key-features {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.key-features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #202124;
}

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

.feature-item {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    color: #4285f4;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #555;
    line-height: 1.6;
}

/* Footer Copyright Text */
footer p {
    color: #666;
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Upload Policy Text Styles */
.about-content {
    background-color: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-content h2 {
    color: #2c3e50;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.about-content p {
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
}

.about-content ul, 
.about-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.about-content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.about-content ul li {
    list-style-type: none;
    position: relative;
}

.about-content ul li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.about-content ol {
    counter-reset: item;
}

.about-content ol li {
    counter-increment: item;
}

.about-content ol li:before {
    content: counter(item) ".";
    color: #3498db;
    font-weight: bold;
    display: inline-block;
    width: 2em;
    margin-left: -2em;
}

/* About Hero Section - Centered Text */
.about-hero {
    text-align: center;
    padding: 4rem 2rem;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}
