/* Reset and base styles */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
   background-color: var(--bg-secondary);
   color: var(--text-primary);
   min-height: 100vh;
   display: flex;
   flex-direction: column;
}

/* Top utility bar */
.utility-bar {
   padding: 12px 0;
   font-size: 14px;
}

.utility-content {
   max-width: 1200px;
   margin: 0 auto;
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 0 20px;
}
.utility-right {
   display: flex;
   align-items: center;
}

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

.navbar-logo {
   height: 120px;
   width: auto;
   max-width: 300px;
   transition: transform 0.2s ease, filter 0.3s ease;
   mix-blend-mode: multiply;
   background: transparent;
}

/* Dark mode logo handling */
:root[data-theme="dark"] .navbar-logo {
   filter: invert(1);
   mix-blend-mode: screen;
}

/* Responsive logo */
@media (max-width: 768px) {
   .main-header {
       padding: 2px 0;
   }
   
   .navbar-logo {
       height: 80px;
       max-width: 200px;
   }
}

@media (max-width: 480px) {
   .main-header {
       padding: 3px 0;
   }
   
   .navbar-logo {
       height: 60px;
       max-width: 150px;
   }
}

.login-signup {
   padding: 8px 20px;
   border-radius: 25px;
   cursor: pointer;
   transition: all 0.3s ease;
   text-decoration: none;
   display: inline-block;
   font-size: 14px;
}

.login-signup:hover {
   transform: translateY(-1px);
}

/* Main header */
.main-header {
   padding: 5px 0;
}

.header-content {
   max-width: 1200px;
   margin: 0 auto;
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 0 20px;
}


/* Navigation */
.nav-menu {
   display: flex;
   align-items: center;
   gap: 40px;
}

.nav-item {
   position: relative;
}

.nav-link {
   text-decoration: none;
   font-size: 18px;
   font-weight: 500;
   padding: 10px 0;
   transition: color 0.3s ease;
   display: flex;
   align-items: center;
}

/* Main content wrapper */
.main-content {
   flex: 1;
}

/* Content area */
.content {
   padding: 40px 20px;
   max-width: 1200px;
   margin: 0 auto;
}

.welcome-section {
   padding: 40px;
   border-radius: 15px;
   text-align: center;
}

.welcome-section h2 {
   margin-bottom: 20px;
   font-size: 2.2em;
}

.welcome-section p {
   font-size: 1.1em;
   line-height: 1.6;
   max-width: 800px;
   margin: 0 auto;
}

/* =====================================================
  FOOTER COMPONENT
  ===================================================== */

.footer {
   margin-top: auto;
   padding: 40px 0 20px;
   border-top: 1px solid var(--border-light);
}

.footer-content {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 20px;
}

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

.footer-section h3 {
   margin-bottom: 20px;
   font-size: 1.1em;
   font-weight: 600;
}

.footer-section p {
   line-height: 1.6;
   margin-bottom: 15px;
}

.footer-links {
   list-style: none;
}

.footer-links li {
   margin-bottom: 8px;
}

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

.footer-links a:hover {
   color: var(--brown-primary);
}

.footer-bottom {
   padding-top: 20px;
   border-top: 1px solid var(--border-light);
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
   gap: 15px;
}

.footer-copyright {
   font-size: 0.9em;
}

.footer-meta {
   display: flex;
   gap: 20px;
   flex-wrap: wrap;
}

.footer-meta a {
   font-size: 0.9em;
   text-decoration: none;
   transition: color 0.3s ease;
}

.footer-meta a:hover {
   color: var(--brown-primary);
}

/* Additional Mobile Responsive Styles */
@media (max-width: 768px) {
   .utility-content {
       flex-direction: column;
       gap: 15px;
       text-align: center;
   }
   
   .header-content {
       flex-direction: row;
       justify-content: space-between;
       align-items: center;
   }
   
   .logo-text h1 {
       font-size: 24px;
   }
   
   .content {
       padding: 20px 15px;
   }
   
   .footer-grid {
       grid-template-columns: 1fr;
       gap: 30px;
   }
   
   .footer-bottom {
       flex-direction: column;
       text-align: center;
   }
   
   .footer-meta {
       justify-content: center;
   }
}

@media (max-width: 480px) {
   .footer-content {
       padding: 0 15px;
   }
   
   .footer {
       padding: 30px 0 15px;
   }
}

/* Carousel */
.carousel {
   margin: 40px auto 60px;
   max-width: 1200px;
   padding: 0 20px;
}

.carousel-container {
   position: relative;
   width: 100%;
   height: 400px;
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 4px 20px var(--shadow-medium);
}

.slides {
   width: 100%;
   height: 100%;
   position: relative;
}

.slide {
   position: absolute;
   width: 100%;
   height: 100%;
   object-fit: cover;
   opacity: 0;
   transition: opacity 0.5s ease;
}

.slide.active {
   opacity: 1;
}

.btn-prev, .btn-next {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   background: rgba(255, 255, 255, 0.8);
   border: none;
   width: 40px;
   height: 40px;
   border-radius: 50%;
   font-size: 18px;
   cursor: pointer;
   z-index: 10;
   transition: all 0.3s ease;
}

.btn-prev:hover, .btn-next:hover {
   background: white;
   transform: translateY(-50%) scale(1.1);
}

.btn-prev {
   left: 15px;
}

.btn-next {
   right: 15px;
}

.dots {
   display: flex;
   justify-content: center;
   gap: 10px;
   margin-top: 20px;
}

.dot {
   width: 10px;
   height: 10px;
   border-radius: 50%;
   background: var(--border-medium);
   cursor: pointer;
   transition: all 0.3s ease;
}

.dot.active, .dot:hover {
   background: var(--green-primary);
}

/* Mobile responsive */
@media (max-width: 768px) {
   .carousel-container {
       height: 300px;
   }
   
   .btn-prev, .btn-next {
       width: 35px;
       height: 35px;
       font-size: 16px;
   }
}
/* Dropdown Navigation */
.dropdown {
   position: relative;
}

.dropdown-menu {
   position: absolute;
   top: 100%;
   left: 50%;
   transform: translateX(-50%);
   background: var(--bg-primary);
   border: 1px solid var(--border-light);
   border-radius: 8px;
   box-shadow: 0 8px 25px var(--shadow-medium);
   min-width: 200px;
   opacity: 0;
   visibility: hidden;
   transition: all 0.3s ease;
   z-index: 1000;
   margin-top: 5px;
}

.dropdown:hover .dropdown-menu {
   opacity: 1;
   visibility: visible;
}

.dropdown-link {
   display: block;
   padding: 12px 20px;
   color: var(--text-secondary);
   text-decoration: none;
   font-size: 14px;
   font-weight: 400;
   transition: all 0.3s ease;
   border-bottom: 1px solid var(--border-light);
}

.dropdown-link:last-child {
   border-bottom: none;
}

.dropdown-link:hover {
   background: var(--bg-tertiary);
   color: var(--brown-primary);
}

/* Navigation Active States */
.nav-link.active { color: var(--brown-primary); font-weight: 600; }
.dropdown-link.active { color: var(--brown-primary); font-weight: 600; }


/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--bg-tertiary);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 2px 0;
}

/* Hamburger Animation */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Dropdown Arrow - Hidden on desktop, shown on mobile */
.dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: none;
}

/* Mobile Close Button */
.mobile-close-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-close-btn:hover {
    background: var(--bg-tertiary);
}

/* Prevent body scroll when mobile menu is open */
.mobile-menu-open {
    overflow: hidden;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        margin-left: auto;
    }
    
    .header-content {
        position: relative;
        justify-content: flex-start;
    }
    
    .mobile-close-btn {
        display: block;
    }
    
    .dropdown-arrow {
        display: inline;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        gap: 0;
        padding: 80px 20px 20px;
        box-shadow: 0 4px 20px var(--shadow-medium);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        height: 100vh;
        overflow-y: auto;
    }
    
    .nav-menu.mobile-open {
        transform: translateX(0);
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        font-size: 18px;
        width: 100%;
        border: none;
        background: none;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--bg-tertiary);
        margin: 0;
        display: none;
        padding: 0;
    }
    
    .nav-item.dropdown.mobile-expanded .dropdown-menu {
        display: block;
    }
    
    .nav-item.dropdown.mobile-expanded .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .dropdown-link {
        padding: 12px 20px;
        font-size: 16px;
        border-bottom: 1px solid var(--border-light);
    }
    
    .dropdown-link:last-child {
        border-bottom: none;
    }
}

/* Calculator */
.calculator { max-width: 1200px; margin: 0 auto 60px; padding: 0 20px; }
.calculator-container { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-primary); border-radius: 12px; box-shadow: 0 4px 20px var(--shadow-medium); overflow: hidden; }
.calculator-inputs, .calculator-output { padding: 40px; }
.calculator-inputs { border-right: 1px solid var(--border-light); }
.calculator-output { background: var(--bg-tertiary); }
.calculator-inputs h3 { color: var(--text-primary); font-size: 1.4em; margin-bottom: 25px; font-weight: 600; }

.detailed-assessment-container {
   max-width: 1200px;
   margin: 40px auto;
   padding: 0 20px;
   text-align: center;
}

.btn-detailed-assessment {
   display: inline-block;
   background: var(--green-primary);
   color: white;
   padding: 15px 40px;
   border-radius: 12px;
   text-decoration: none;
   font-size: 1.1rem;
   font-weight: 600;
   transition: all 0.3s ease;
   box-shadow: 0 4px 20px rgba(46, 125, 50, 0.2);
   border: 2px solid var(--green-primary);
}

.btn-detailed-assessment:hover {
   background: var(--green-dark);
   border-color: var(--green-dark);
   transform: translateY(-2px);
   box-shadow: 0 6px 25px rgba(46, 125, 50, 0.3);
}

/* Form styles remain the same */
.input-group { margin-bottom: 20px; }
.input-group label { display: block; color: var(--text-secondary); font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.input-group input { width: 100%; padding: 12px 16px; border: 2px solid var(--border-light); border-radius: 8px; font-size: 16px; background: var(--bg-primary); color: var(--text-primary); transition: all 0.3s ease; }
.input-group input:focus { outline: none; border-color: var(--green-primary); box-shadow: 0 0 0 3px var(--focus-ring); }
.input-group input::placeholder { color: var(--text-muted); }

/* Button styles remain the same */
.calculate-btn { width: 100%; background: linear-gradient(135deg, var(--green-primary), var(--green-secondary)); color: white; border: none; padding: 14px 20px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; margin-top: 10px; }
.calculate-btn:hover { background: linear-gradient(135deg, var(--green-secondary), var(--green-dark)); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(21, 179, 146, 0.3); }

/* Updated result display styles */
.result-display { margin: 15px 0; }
.result-value { display: block; font-size: 2.2em; font-weight: 700; color: var(--green-primary); line-height: 1; transition: all 0.3s ease; }
.result-unit { display: block; font-size: 0.95em; color: var(--text-secondary); margin-top: 5px; font-weight: 500; }
.result-description { color: var(--text-tertiary); font-size: 0.85em; line-height: 1.4; margin-top: 10px; }
.results-grid {gap: 15px;}
.result-section {padding: 15px;}

/* Different colors for different result types */
.result-section:first-child .result-value {
    color: var(--brown-primary);
}

.result-section:last-child .result-value {
   color: var(--green-primary);
}

/* Flash message styles remain the same */
.flash-message { position: fixed; top: 20px; left: 50%; background: white; color: #333; padding: 15px 25px; border-radius: 8px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); font-size: 14px; font-weight: 500; z-index: 9999; opacity: 0; transform: translateX(-50%) translateY(-20px); transition: all 0.3s ease; pointer-events: none; }
.flash-message.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Mobile */
@media (max-width: 768px) {
    .calculator-container { grid-template-columns: 1fr; }
    .calculator-inputs { border-right: none; border-bottom: 1px solid var(--border-light); padding: 30px 25px; }
    .calculator-output { padding: 30px 25px; }
    .result-value { font-size: 2.5em; }
}
/* Mobile responsive updates */
@media (max-width: 768px) {
   .calculator-container { grid-template-columns: 1fr; }
   .calculator-inputs { border-right: none; border-bottom: 1px solid var(--border-light); padding: 30px 25px; }
   .calculator-output { padding: 30px 25px; }
   
   .results-grid {
       gap: 20px;
   }
   
   .result-section {
       padding: 15px;
   }
   
   .result-value { font-size: 2em; }
}

@media (max-width: 480px) {
   .calculator-inputs, .calculator-output { padding: 25px 20px; }
   
   .results-grid {
       gap: 15px;
   }
   
   .result-section {
       padding: 12px;
   }
   
   .result-value { font-size: 1.8em; }
   .result-section h3 { font-size: 1em; }
}