/* Root Variables */
:root {
    --primary-color: #5e35b1;
    --primary-dark: #4527a0;
    --primary-light: #9575cd;
    --secondary-color: #009688;
    --accent-color: #d4af37;
    --accent-light: #f5e7a3;
    --text-color: #333;
    --text-light: #f8f8f8;
    --background-dark: #0c1524;
    --background-light: #f5f5f5;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-bg-dark: rgba(20, 20, 40, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-bg-dark: rgba(16, 18, 27, 0.4);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-strong: rgba(0, 0, 0, 0.2);
    --urdu-font: 'Jameel Noori Nastaleeq', 'Noto Naskh Arabic', 'Amiri', sans-serif;
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f5f5f5;
        --text-light: #333;
        --background-light: #121212;
        --card-bg: var(--card-bg-dark);
        --glass-bg: var(--glass-bg-dark);
    }
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Body Styling */
body {
    font-family: var(--urdu-font);
    direction: rtl;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-light);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, var(--primary-dark), var(--background-dark));
    opacity: 0.97;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/blue-and-gold-ornate-circular-frame.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

/* Header Styling */
header {
    position: relative;
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    position: relative;
    padding: 40px 20px;
    overflow: hidden;
    color: var(--text-light);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/golden-mandala-design-with-black-accents.png');
    background-size: contain;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    animation: fadeInUp 1.2s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 10px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 30px;
    transition: all var(--transition-fast);
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

nav a:hover::before, 
nav a:focus::before {
    width: 80%;
}

nav a:hover, 
nav a:focus {
    color: var(--accent-color);
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
    outline: none;
}

/* Main Content Area */
main {
    display: block;
    position: relative;
    padding: 20px;
}

/* Container Styling */
.container {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0;
    position: relative;
}

/* Calculator Card */
.calculator-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 40px;
    position: relative;
    transform: translateY(0);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.calculator-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 2s infinite;
    z-index: 0;
}

.calculator-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calculator-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/golden-islamic-calligraphy-mandala.png');
    background-size: contain;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.calculator-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.calculator-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.calculator-body {
    padding: 30px;
    position: relative;
    z-index: 1;
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-in-out;
}

.input-section p {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-color);
    text-align: center;
}

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

input[type="text"] {
    width: 100%;
    padding: 18px 25px;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(149, 117, 205, 0.3);
    border-radius: 15px;
    outline: none;
    text-align: center;
    font-family: var(--urdu-font);
    direction: rtl;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(94, 53, 177, 0.2), 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

input[type="text"]::placeholder {
    color: #aaa;
    opacity: 1;
}

/* Hamza Control */
.hamza-control {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    font-family: var(--urdu-font);
    position: relative;
}

.hamza-control label {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 30px;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hamza-control label:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamza-control input[type="checkbox"] {
    margin-left: 10px;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-light);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.hamza-control input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.hamza-control input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Result Section */
.result-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
}

.result-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/dark-abstract-geometric-background.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

#result {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 20px 0;
    opacity: 1;
    transition: opacity var(--transition-fast);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Breakdown Section */
.breakdown {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.breakdown-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.breakdown-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.breakdown-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.breakdown-item {
    font-family: var(--urdu-font);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    color: var(--primary-dark);
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breakdown-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    background: white;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--urdu-font);
    font-size: 1.2rem;
    transition: all var(--transition-fast);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

.btn:hover::before {
    left: 100%;
}

.btn-share {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(94, 53, 177, 0.3);
}

.btn-print {
    background: linear-gradient(135deg, var(--secondary-color), #00796b);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3);
}

.btn:hover, .btn:focus {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    outline: none;
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* About Section */
.about-section {
    margin-top: 80px;
    position: relative;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.about-header h2 {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.about-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.about-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.about-card-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/golden-art-deco-fan-pattern.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.about-card-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.about-card-body {
    padding: 25px;
}

.about-card-body p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

/* Table Styling */
.abjad-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.abjad-table caption {
    font-size: 1.4rem;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: bold;
}

.abjad-table th,
.abjad-table td {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    font-family: var(--urdu-font);
}

.abjad-table th {
    background: rgba(94, 53, 177, 0.8);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
}

.abjad-table th::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.abjad-table tr {
    transition: background-color var(--transition-fast);
}

.abjad-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.9);
}

.abjad-table tr:hover {
    background-color: rgba(149, 117, 205, 0.1);
}

.abjad-table td {
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.abjad-table .highlighted-row td {
    background-color: rgba(212, 175, 55, 0.1);
    font-weight: bold;
    color: var(--primary-dark);
}

.abjad-table .highlighted-row td:first-child {
    position: relative;
}

.abjad-table .highlighted-row td:first-child::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
}

/* FAQs Styling */
.faqs {
    margin-top: 20px;
}

.faqs details {
    background: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

.faqs details:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.faqs summary {
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    background: rgba(94, 53, 177, 0.1);
    transition: all var(--transition-fast);
    list-style: none;
}

.faqs summary::-webkit-details-marker {
    display: none;
}

.faqs summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform var(--transition-fast);
}

.faqs details[open] summary::after {
    content: "-";
    transform: translateY(-50%) rotate(180deg);
}

.faqs details[open] summary {
    background: rgba(94, 53, 177, 0.2);
    border-bottom: 1px solid rgba(94, 53, 177, 0.1);
}

.faqs details p {
    padding: 15px 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Note Styling */
.note {
    background: rgba(255, 255, 255, 0.7);
    border-right: 5px solid var(--accent-color);
    padding: 20px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.note::before {
    content: "!";
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

.note h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.note p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Footer Credit Section */
footer {
    margin-top: 80px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-content {
    position: relative;
    z-index: 1;
}

.credit {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    font-family: var(--urdu-font);
    position: relative;
    display: inline-block;
}

.credit::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.02);
    }
    100% {
        opacity: 0.1;
        transform: scale(1);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    20%, 100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.5);
    animation: float 15s infinite linear;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s infinite ease-in-out;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.7rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .about-header h2 {
        font-size: 2.4rem;
    }
    
    .calculator-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .hero {
        min-height: 50vh;
        padding: 30px 15px;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    nav ul li {
        margin: 0 5px;
    }
    
    nav a {
        font-size: 1rem;
        padding: 6px 12px;
    }
    
    .calculator-body {
        padding: 20px 15px;
    }
    
    input[type="text"] {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    #result {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        font-size: 1.1rem;
    }
    
    .about-header h2 {
        font-size: 2rem;
    }
    
    .about-card-header h3 {
        font-size: 1.5rem;
    }
    
    .abjad-table th,
    .abjad-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .abjad-table th {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .calculator-header h2 {
        font-size: 1.5rem;
    }
    
    input[type="text"] {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    #result {
        font-size: 1.8rem;
    }
    
    .breakdown-title {
        font-size: 1.3rem;
    }
    
    .breakdown-item {
        padding: 8px 15px;
        font-size: 1rem;
    }
    
    .about-header h2 {
        font-size: 1.8rem;
    }
}

/* Print Styles */
@media print {
    body::before,
    body::after,
    .hero::before,
    .particles,
    nav,
    .action-buttons,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container, 
    .calculator-card, 
    .about-card {
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        page-break-inside: avoid;
    }
    
    #result {
        font-size: 2rem !important;
        color: black !important;
    }
    
    .breakdown-item {
        border: 1px solid #ccc !important;
        background: white !important;
    }
}

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
    .calculator-card,
    .about-card {
        background: var(--card-bg-dark);
    }
    
    input[type="text"] {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border-color: rgba(149, 117, 205, 0.5);
    }
    
    input[type="text"]:focus {
        background: rgba(255, 255, 255, 0.2);
    }
    
    input[type="text"]::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }
    
    .breakdown-item {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .breakdown-item:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .abjad-table {
        background-color: rgba(20, 20, 40, 0.7);
    }
    
    .abjad-table tr:nth-child(even) {
        background-color: rgba(30, 30, 50, 0.5);
    }
    
    .abjad-table td {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .note,
    .faqs details {
        background: rgba(30, 30, 50, 0.7);
    }
}