/*
 * SwiftYourLink - Main Stylesheet
 *
 * This file contains the core CSS for the SwiftYourLink website,
 * including global styles, theme variables, layout, and responsive design.
 *
 * Author: [Your Name/Organization]
 * Date: [Current Date]
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-start: #f3f6fa;
    --bg-end: #e8eef7;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(255, 255, 255, 0.4);
    --text-primary: #0d152a;
    --text-muted: #4a586e;
    --accent-dark: #0052c1;
    --accent-light: #0075ff;
    --teal-accent: #00c5a3;
    --teal-hover: #00a286;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 12px 35px rgba(0, 0, 0, 0.09);
    --shadow-large: 0 15px 45px rgba(0, 0, 0, 0.12);
    --border-radius-sm: 10px;
    --border-radius-md: 16px;
    --border-radius-lg: 20px;
    --max-width: 1150px;
    --header-bg: rgba(255, 255, 255, 0.75);
    --header-border: rgba(0, 0, 0, 0.06);
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Dark theme overrides */
[data-theme="dark"] {
    --bg-start: #0a111f;
    --bg-end: #090e1a;
    --card-bg: rgba(28, 36, 53, 0.75);
    --card-border: rgba(255, 255, 255, 0.09);
    --text-primary: #e8edf5;
    --text-muted: #9ca8b8;
    --accent-dark: #3f86f8;
    --accent-light: #64a8fa;
    --teal-accent: #16b4a2;
    --teal-hover: #0da19d;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(1300px 700px at -15% -15%, rgba(0, 190, 255, 0.18), transparent 65%),
                radial-gradient(1000px 600px at 115% 15%, rgba(0, 197, 163, 0.2), transparent 65%),
                linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 25px;
    width: 100%;
}

header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.theme-toggle {
    padding: 10px 16px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.4s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.logo {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--accent-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, var(--accent-light), var(--teal-accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    font-weight: 700;
    line-height: 1;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    transition: color 0.4s ease;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--teal-accent);
    transition: width 0.4s ease;
}

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

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

.main-content {
    flex: 1;
}

.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.25;
    color: var(--text-primary);
    text-shadow: var(--shadow-light);
}

.hero h1 span {
    color: var(--teal-accent);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 45px auto;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--teal-accent), var(--accent-light));
    color: white;
    box-shadow: 0 10px 25px rgba(0, 197, 163, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 14px 30px rgba(0, 197, 163, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--teal-accent);
    border-radius: 3px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    padding: 80px 0;
}

.feature-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 35px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--teal-accent);
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.card, .info-card { /* Combined styling for general cards and info cards */
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    margin-bottom: 80px;
    box-shadow: var(--shadow-medium);
    line-height: 1.9;
}

.card h1, .info-card h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 35px;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.card h2, .info-card h3 {
    font-size: 1.8rem; /* Adjusted for consistency */
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.card p, .info-card p, .card ul, .info-card ul, .card ol, .info-card ol {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.card ul, .info-card ul, .card ol, .info-card ol {
    padding-left: 25px;
}

.card li, .info-card li {
    margin-bottom: 10px;
}

/* Responsive adjustments for general cards */
@media (max-width: 992px) {
    .card, .info-card {
        padding: 40px;
    }
    .card h1, .info-card h2 {
        font-size: 2.2rem;
    }
    .card h2, .info-card h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .card, .info-card {
        padding: 30px;
        margin-bottom: 60px;
    }
    .card h1, .info-card h2 {
        font-size: 2rem;
    }
    .card h2, .info-card h3 {
        font-size: 1.3rem;
    }
    .card p, .info-card p, .card li, .info-card li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .card, .info-card {
        padding: 20px;
        margin-bottom: 40px;
    }
    .card h1, .info-card h2 {
        font-size: 1.8rem;
    }
    .card h2, .info-card h3 {
        font-size: 1.2rem;
    }
}

/* AdSense Placeholder Styling */
.ads-banner {
    text-align: center;
    margin: 60px 0;
    padding: 25px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.breadcrumb {
    padding: 12px 0;
    list-style: none;
    display: flex;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Hide breadcrumb if it's empty */
.breadcrumb:empty {
    display: none;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.4s ease;
}

.breadcrumb-item a:hover {
    color: var(--teal-accent);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding-right: 10px;
    color: var(--text-muted);
}

footer {
    margin-top: auto;
    padding: 50px 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.95) 100%);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.95rem;
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

footer .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.4s ease;
}

footer .footer-links a:hover {
    color: var(--teal-accent);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .nav-bar {
        flex-direction: column;
        gap: 20px;
        padding: 15px 0;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }
    .feature-card {
        padding: 30px;
    }
    .about-section {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .cta-group {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 25px;
        font-size: 1rem;
    }
    .logo {
        font-size: 1.6rem;
    }
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    footer .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
    .btn {
        max-width: 100%;
    }
    .logo {
        font-size: 1.5rem;
    }
    .logo-icon {
        width: 26px;
        height: 26px;
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

/* No-JS Fallback for UX hints */
.no-js-message {
    margin: 0;
    background-color: #ffe0b2; /* Lighter orange */
    color: #e65100; /* Darker orange */
    padding: 15px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #e65100;
}
