/*
 * MySlinkaApp - URL Shortener and Link Management Platform
 * Modern, tech-focused design with indigo as primary color
 */

/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary: #4F46E5;       /* Indigo */
    --primary-light: #818CF8; /* Light Indigo */
    --primary-dark: #3730A3;  /* Dark Indigo */
    --secondary: #10B981;     /* Emerald */
    --accent: #F59E0B;        /* Amber */
    --dark: #111827;          /* Dark Gray/Almost Black */
    --dark-secondary: #1F2937; /* Slightly Lighter Gray */
    --light: #FFFFFF;         /* White */
    --light-gray: #F3F4F6;    /* Light Gray */
    --gray: #9CA3AF;          /* Medium Gray */
    --text: #1F2937;          /* Main Text Color */
    --text-light: #6B7280;    /* Light Text Color */
    
    /* Typography */
    --heading-font: 'Sora', sans-serif;
    --body-font: 'Inter', sans-serif;
    
    /* Spacing */
    --section-spacing: 100px 0;
    --container-padding: 0 15px;
    
    /* Other Variables */
    --transition: all 0.3s ease;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --border: 1px solid #E5E7EB;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--dark);
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

h1 span {
    color: var(--primary);
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.section-header h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

section {
    padding: var(--section-spacing);
}

.small {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Buttons */
.btn-primary, .btn-outline, .btn-nav, .btn-large {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
}

.btn-nav {
    padding: 8px 16px;
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-nav:hover {
    background-color: var(--primary-light);
    color: var(--light);
    border-color: var(--primary-light);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Header and Navigation */
header {
    background-color: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    margin-left: 15px;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

nav ul li a:hover:not(.btn-primary, .btn-nav) {
    color: var(--primary);
}

nav ul li a:hover:not(.btn-primary, .btn-nav):after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text);
}

.url-shortener {
    max-width: 600px;
    margin: 0 auto 15px;
}

.url-shortener form {
    display: flex;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

.url-shortener input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.url-shortener button {
    padding: 0 30px;
    border: none;
    border-radius: 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--heading-font);
    line-height: 1.2;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
}

/* Features Section */
.features {
    background-color: var(--light);
    padding-bottom: 120px;
}

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

.feature-card {
    background-color: var(--light);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
    border: var(--border);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.feature-icon {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(79, 70, 229, 0.1);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Resources Section */
.resources {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

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

.resource-column a {
    margin-bottom: 10px;
    padding: 14px 16px;
    background-color: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text);
    border-left: 3px solid var(--primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.resource-column a:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.2);
}

/* Pricing Section */
.pricing {
    background-color: var(--light);
}

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

.pricing-card {
    background-color: var(--light);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: var(--border);
    position: relative;
    box-shadow: var(--shadow);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    z-index: 1;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    color: var(--light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1;
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-features {
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features ul {
    list-style-type: none;
}

.pricing-features ul li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.pricing-features ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--light);
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    color: var(--light);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta .btn-primary {
    background-color: var(--light);
    color: var(--primary);
    border-color: var(--light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta .btn-primary:hover {
    background-color: transparent;
    color: var(--light);
    border-color: var(--light);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo p {
    margin: 15px 0 0;
    color: var(--light);
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-logo p span {
    color: var(--primary-light);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h3 {
    color: var(--light);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-light);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--gray);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin-bottom: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--gray);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-light);
    transform: translateY(-3px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h2 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 3rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-logo {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        height: 24px;
        width: 30px;
        position: relative;
    }
    
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        height: 2px;
        width: 30px;
        background-color: var(--primary);
        position: absolute;
        transition: var(--transition);
    }
    
    .nav-toggle-label span {
        top: 11px;
    }
    
    .nav-toggle-label span::before {
        content: '';
        top: -8px;
    }
    
    .nav-toggle-label span::after {
        content: '';
        top: 8px;
    }
    
    .nav-toggle:checked + .nav-toggle-label span {
        background-color: transparent;
    }
    
    .nav-toggle:checked + .nav-toggle-label span::before {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle:checked + .nav-toggle-label span::after {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        height: 0;
        background-color: var(--light);
        overflow: hidden;
        transition: height 0.3s ease-in-out;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .nav-toggle:checked ~ nav {
        height: auto;
        padding: 20px 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    nav ul li {
        margin-left: 0;
    }
    
    .url-shortener form {
        flex-direction: column;
    }
    
    .url-shortener input {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: var(--radius) var(--radius) 0 0;
    }
    
    .url-shortener button {
        width: 100%;
        padding: 16px;
        border-radius: 0 0 var(--radius) var(--radius);
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}
