:root {
    /* Light theme colors */
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --text-color: #2b2d42;
    --bg-color: #f8f9fa;
    --nav-bg: #ffffff;
    --toggle-bg: #ebe9ef;
    --toggle-active: #4361ee;
    --toggle-ball: #ffffff;
    
    /* Dark theme colors - will be updated by JS */
    --dark-primary: #4361ee;
    --dark-secondary: #3f37c9;
    --dark-accent: #4895ef;
    --dark-text: #f8f9fa;
    --dark-bg: #121212;
    --dark-nav-bg: #1e1e1e;
    --dark-toggle-bg: #2d2d2d;
    --dark-toggle-active: #4cc9f0;
    --dark-toggle-ball: #1e1e1e;
}

[data-theme="dark"] {
    --primary-color: var(--dark-primary);
    --secondary-color: var(--dark-secondary);
    --accent-color: var(--dark-accent);
    --text-color: var(--dark-text);
    --bg-color: var(--dark-bg);
    --nav-bg: var(--dark-nav-bg);
    --toggle-bg: var(--dark-toggle-bg);
    --toggle-active: var(--dark-toggle-active);
    --toggle-ball: var(--dark-toggle-ball);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}
.p{
    text-decoration: none;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;


}

.navbar-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.navbar-toggle.active .hamburger {
    background-color: transparent;
}

.navbar-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.navbar-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

.navbar-menu {
    display: flex;
    justify-content: flex-end;
}

.navbar-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 70%;
}

.theme-toggle-container {
    margin-left: 1rem;
}

/* Modern Toggle Button */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    border-radius: 30px;
    background-color: var(--toggle-bg);
    border: none;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--toggle-active);
    opacity: 0.9;
}

.toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    pointer-events: none;
}

.toggle-icon i {
    font-size: 14px;
    color: var(--text-color);
    transition: opacity 0.3s ease;
}

.toggle-icon .fa-sun {
    opacity: 1;
}

.toggle-icon .fa-moon {
    opacity: 0;
}

[data-theme="dark"] .toggle-icon .fa-sun {
    opacity: 0;
}

[data-theme="dark"] .toggle-icon .fa-moon {
    opacity: 1;
}

.toggle-ball {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: var(--toggle-ball);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .toggle-ball {
    transform: translateX(30px);
}

/* Main content styles */
.main-content {
    padding: 2rem;
    text-align: center;
}
/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-img {
    max-width: 100%;
    border-radius: 10px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Section Styling */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Calculator Section */
.calculator-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.calculator-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background-color: var(--toggle-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.calculator-forms {
    background-color: var(--nav-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.calculator-form {
    display: none;
}

.calculator-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: var(--nav-bg);
    color: var(--text-color);
}

.calculate-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

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

.calculator-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.result-box {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.category-box {
    padding: 0.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background-color: var(--nav-bg);
}

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

.service-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

/* Features Section */
.features-section {
    padding: 4rem 0;
}

.features-container {
    max-width: 800px;
    margin: 0 auto;
}

.feature {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.feature-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    padding: 4rem 0 0;
}

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

.footer h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-about p {
    color:white;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: color 1s ease;
}

.social-links a:hover {
    color: black;
    font-size: 1.3rem;
}

.footer-links ul{
    list-style: none;
    color: white;
}
.footer-contact ul {
    list-style: none;
    color: white;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: black;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: var(--bg-color);
    color: var(--text-color);
}
#para-subs{
    color:white;
}
.newsletter-form button {
    padding: 0 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

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

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
#footer1{
    color: white;
}

.footer-legal a:hover {
    color: black;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .calculator-tabs {
        flex-wrap: wrap;
    }
    
    .feature {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 400px;
        background-color: var(--nav-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    .navbar-links {
        flex-direction: column;
        gap:10px;
        width: 100%;
    }
    
    .nav-link {
        margin: 0.5rem 0;
        padding: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .theme-toggle-container {
        margin: 1rem 0 0;
    }
}