/* ===== Contact Styles ===== */
:root {
    --primary: #426589;
    --secondary: #ff5722;
    --light: #f4f6f8;
    --dark: #2d3436;
    --gray: #636e72;
    --success: #2ecc71;
    --error: #e74c3c;
    --warning: #f39c12;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat';
    background: linear-gradient(to bottom right, #F8F9FA, #E1F5C4);
    min-height: 100vh;
    margin: 0;
    color: #4A4A4A;
    display: flex;
    flex-direction: column;
}

/* Alert System */
.alert-container {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 1000;
}

.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
from {
    transform: translateY(-20px);
    opacity: 0;
}

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

.alert-success {
    background-color: var(--success);
    color: white;
}

.alert-error {
    background-color: var(--error);
    color: white;
}

.alert-warning {
    background-color: var(--warning);
    color: white;
}

.alert-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.alert-close:hover {
    transform: scale(1.1);
}

/* Contact Container */
.contact-container {
    max-width: 1000px;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    transition: var(--transition);
    margin: 2rem auto;
}

.contact-container:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-header {
    width: 100%;
    padding: 50px 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, #2c3e50 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
}

.contact-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
}

.contact-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
    padding: 40px 30px;
}

.contact-info h2,
.contact-form h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--primary);
    position: relative;
    padding-bottom: 10px;
}

.contact-info h2::after,
.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5rem;
    width: 70px;
    height: 3px;
    background: #1e3a8a;
    border-radius: 3px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    background: var(--light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--gray);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e6ea;
    border-radius: var(--radius);
    font-size: 16px;
    background: var(--light);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(66, 101, 137, 0.15);
}

.form-control.error {
    border-color: var(--error);
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-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: var(--transition);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: rgb(5, 58, 84);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 900px) {
.contact-container {
    flex-direction: column;
}
}

@media (max-width: 480px) {
.contact-header h1 {
    font-size: 2rem;
}

.contact-info,
.contact-form {
    padding: 30px 20px;
}
}

/* ===== IMPROVED NAVIGATION SYSTEM ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    width: 90%;
    height: 9vh;
    max-width: 1100px;
    margin: 0.5rem auto;
    position: sticky;
    top: 10px;
    z-index: 1000;
    background: #7aacde93;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Slight hover lift */
.navbar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 2100;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.3s;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    width: 35px;
    height: 3px;
    background: rgb(0, 0, 0);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Side Menu */
.calculator-nav {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: linear-gradient(135deg, #3c4a59, #34495e);
    padding: 80px 20px 20px 20px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1500;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.2);
}

.calculator-nav.active {
    right: 0;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Category styles */
.nav-category {
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
}

.category-btn {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.category-btn i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.category-btn .arrow {
    transition: transform 0.3s ease;
}

.category-btn.active .arrow {
    transform: rotate(180deg);
}

/* Submenu */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}

.submenu.active {
    max-height: 500px;
}

.submenu .nav-btn {
    background: none;
    border: none;
    text-align: left;
    color: #ddd;
    padding: 12px 20px 12px 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    width: 100%;
}

.submenu .nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding-left: 55px;
}

.nav-btn.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.nav-icon {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Keep "always-open" category expanded */
.nav-category.always-open .submenu {
    max-height: none !important; /* no collapse */
    background: rgba(0, 0, 0, 0.2);
}

.nav-category.always-open .category-btn {
    cursor: default;
    justify-content: flex-start;
}

.nav-category.always-open .arrow {
    display: none; /* hide arrow since no toggle */
}

/* Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1200;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 700px) {
.navbar {
    padding: 1rem;
}

.calculator-nav {
    width: 300px;
    right: -300px;
}

.submenu .nav-btn {
    padding: 10px 15px 10px 45px;
}

.submenu .nav-btn:hover {
    padding-left: 50px;
}
}

@media (max-width: 400px) {
.calculator-nav {
    width: 280px;
    right: -280px;
    padding: 70px 15px 15px 15px;
}
}

/* ===== FOOTER DESIGN ===== */
footer {
    background: linear-gradient(135deg, #4b6d91, #3c5774);
    color: #fff;
    text-align: center;
    padding: 40px 20px 20px;
    font-family: Arial, sans-serif;
}

#ppp {
    color: white;
}

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

/* Social Icons */
.footer-social {
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    text-decoration: none;
    height: 45px;
    margin: 0 8px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-4px);
    background: #7777778f;
    color: #000;
}

/* Footer Links */
.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: #c4c1c1f0;
}

/* Tooltip from data-desc */
.footer-links a::after {
    content: attr(data-desc);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer-links a:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    bottom: -35px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    margin-top: 20px;
    padding-top: 15px;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.9;
    color: white;
}

.footer-bottom span {
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
footer {
    padding: 2rem 1rem;
}

.footer-links {
    gap: 15px;
}

.footer-links a {
    font-size: 14px;
}

.footer-links a::after {
    display: none;
    /* hide tooltips on small screens */
}

.footer-social a {
    width: 36px;
    height: 36px;
    font-size: 16px;
}
}

@media (max-width: 480px) {
.footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-bottom p {
    font-size: 12px;
}

.popular-links a {
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}
}

/* Popular Links */
.popular-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-links a:hover {
    color: #c4c1c1f0;
    text-decoration: underline;
}
