/* ============================= */
/* Punjabi Font Converter Styles */
/* ============================= */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Modern Purple/Violet Gradient */
    --primary: #1f2937;
    --secondary: #7c3aed;
    --secondary-light: #a78bfa;
    --accent: #ec4899;
    --accent-light: #f472b6;

    /* Neutral Colors */
    --light: #f3f4f6;
    --lighter: #fafafa;
    --white: #ffffff;

    /* Text Colors */
    --text: #1f2937;
    --text-dark: #111827;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;

    /* Border & Shadow Colors */
    --border: #e5e7eb;
    --border-light: #f0f0f0;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(124, 58, 237, 0.15);
    --shadow-xl: 0 20px 40px -10px rgba(124, 58, 237, 0.2);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);

    /* Spacing */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    color: var(--text-dark);
}

h2 {
    font-size: 2rem;
    color: var(--text-dark);
}

h3 {
    font-size: 1.25rem;
    color: var(--text);
}

p {
    line-height: 1.8;
    color: var(--text-light);
}

a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-light);
    text-decoration: underline;
}

/* ============================= */
/* Navigation Styles */
/* ============================= */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--secondary);
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.logo:hover {
    transform: scale(1.05);
}

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

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

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

nav div:last-child {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    nav {
        padding: 1rem;
    }

    nav div:last-child {
        gap: 0.75rem;
        width: 100%;
        justify-content: flex-start;
    }

    nav a {
        font-size: 0.85rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}

/* ============================= */
/* Buttons */
/* ============================= */

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
}

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

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.btn-download {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    border: 2px solid #991b1b;
    font-size: 1.05rem;
    padding: 1rem 2rem;
}

.btn-download:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.6);
    transform: translateY(-4px);
    border-color: #7f1d1d;
}

.btn-download:focus {
    outline: 3px solid #fca5a5;
    outline-offset: 2px;
}

/* ============================= */
/* Hamburger Menu */
/* ============================= */

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.4rem;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-md);
        animation: slideInDown 0.3s ease-out;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 0.75rem 0;
        font-size: 1rem;
    }

    nav {
        flex-wrap: wrap;
    }
}

/* ============================= */
/* Hero Section */
/* ============================= */

.hero {
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-2 8s ease-in-out infinite;
    z-index: 0;
}

.hero h1 {
    margin-bottom: 1rem;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    animation: slideInDown 0.6s ease-out;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    animation: slideInUp 0.6s ease-out 0.1s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.stat {
    padding: 2rem 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: scaleIn 0.6s ease-out 0.3s both;
}

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

.stat-number {
    font-size: 2.25rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ============================= */
/* Feature Cards */
/* ============================= */

.features {
    padding: 4rem 1.5rem;
    background: var(--white);
}

.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    animation: slideInDown 0.6s ease-out;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    text-align: center;
    animation: slideInUp 0.6s ease-out;
}

.feature-card:hover {
    transform: translateY(-15px) rotateY(2deg);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.02) 0%, rgba(236, 72, 153, 0.02) 100%);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

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

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features {
        padding: 4rem 2rem;
    }

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

/* ============================= */
/* How It Works */
/* ============================= */

.how-it-works {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    padding: 4rem 1.5rem;
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--secondary);
    transition: var(--transition);
    animation: slideInRight 0.6s ease-out;
}

.step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ============================= */
/* Testimonials */
/* ============================= */

.testimonials {
    padding: 4rem 1.5rem;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.testimonial {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    animation: slideInUp 0.6s ease-out;
}

.testimonial:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================= */
/* CTA Section */
/* ============================= */

.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    text-align: center;
    padding: 4rem 1.5rem;
    border-radius: 0;
}

.cta-section h2 {
    color: white;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-section .btn {
    background: white;
    color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

.cta-section .btn:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

/* ============================= */
/* Installation Section */
/* ============================= */

.installation {
    padding: 4rem 1.5rem;
    background: white;
}

.install-steps {
    max-width: 800px;
    margin: 2rem auto 0;
}

.install-steps ol {
    list-style: decimal;
    margin-left: 2rem;
}

.install-steps li {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.install-steps strong {
    color: var(--text);
    font-weight: 600;
}

/* ============================= */
/* Footer */
/* ============================= */

footer {
    border-top: 1px solid var(--border-light);
    padding: 3rem 1.5rem;
    background: var(--primary);
    color: #9ca3af;
    text-align: center;
    font-size: 0.85rem;
    animation: slideInUp 0.6s ease-out;
}

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

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

.footer-section {
    text-align: left;
}

.footer-section h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section a,
.footer-section p {
    display: block;
    margin-bottom: 0.5rem;
    color: #9ca3af;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-light);
    text-decoration: none;
}

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

@media (min-width: 768px) {
    .footer-content {
        text-align: left;
    }

    .footer-section {
        text-align: left;
    }
}

/* ============================= */
/* Legal Pages (Privacy, Disclaimer) */
/* ============================= */

.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.content h1 {
    margin-bottom: 1.5rem;
    animation: slideInDown 0.6s ease-out;
}

.content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content ul,
.content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.last-updated {
    background: var(--lighter);
    border-left: 4px solid var(--secondary);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    border-left: 4px solid var(--secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.warning-box {
    background: rgba(239, 68, 68, 0.08);
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

/* ============================= */
/* About Page */
/* ============================= */

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 2px solid var(--light);
}

.hero-section h1 {
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.skill-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.skill-card h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.contact-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 2.5rem 0;
    border: 1px solid var(--border);
}

.contact-section h3 {
    color: var(--secondary);
    margin-top: 0;
}

.contact-section a {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.contact-section a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

/* ============================= */
/* Animations */
/* ============================= */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Lazy Loading Placeholder */
.lazy {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.lazy.loaded {
    opacity: 1;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hero {
        padding: 2.5rem 1.5rem 2rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {

    nav,
    footer,
    .cta-section {
        display: none;
    }

    .content {
        max-width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}