:root {
    --primary: #2A5C82;
    --secondary: #5DA9E9;
    --accent: #FF7F50;
    --dark: #273746;
    --darker: #142028;
    --text: #2D3748;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --success: #4CAF50;
    --warning: #FFC107;
    --error: #F44336;
    --grey: #6B7280;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.19);
    
    --radius: 12px;
    --radius2: 5px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

/* Header Styles */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    margin: 0 auto;
    margin-right: 2%;
    margin-left: 2%;
}

.branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 200px;
    height: 50px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
}

.cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: 0.60rem 1rem;
    border-radius: var(--radius2);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 8rem 0 6rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    text-align: center;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-features {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255,255,255,0.1);
    padding: 0.60rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(4px);
}

/* Calculator Section */
.calculator-section {
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.calculator-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2.5rem 2rem;
}

.calculator-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.calculator-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.calculator-subtitle {
    color: var(--grey);
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 1.8rem;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    display: block;
}

.input-wrapper {
    position: relative;
    margin-top: 0.25rem;
}

.input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    font-size: 0.9rem;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    transition: var(--transition);
}

.input-wrapper input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(93, 169, 233, 0.2);
    outline: none;
}

.input-wrapper i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    opacity: 0.7;
}

.activity-group {
    margin-top: 1.5rem;
}

.activity-label {
    font-size: 0.9rem;
    margin-bottom: 1rem !important;
}

.activity-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.activity-card {
    background: var(--light);
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.activity-card.active {
    border-color: var(--secondary);
    background: var(--white);
}

.activity-card i {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.activity-card span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.calculate-btn,
.reset-btn {
    padding: 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.calculate-btn {
    background: var(--accent);
    color: var(--white);
}

.reset-btn {
    background: var(--grey);
    color: var(--white);
}

.calculate-btn:hover,
.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Result Card */
.result-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.result-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

.result-body {
    flex-grow: 1;
    position: relative;
}

.result-placeholder {
    text-align: center;
    color: var(--primary);
    opacity: 0.5;
    padding: 2rem 0;
    transition: var(--transition);
}

.result-placeholder i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.result-placeholder p {
    font-size: 0.95rem;
}

.result-content {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.snowshoe-visualization {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1.5rem;
}

.snowshoe-svg {
    width: 100%;
    height: auto;
}

.snowshoe-outline {
    stroke: var(--primary);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.snowshoe-binding {
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
}

.snowshoe-cleats {
    stroke: var(--dark);
    stroke-width: 1.5;
    stroke-linecap: round;
}

.size-indicator {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.result-details {
    text-align: center;
    width: 100%;
}

.result-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.size-value {
    color: var(--accent);
    font-weight: 700;
}

.result-message {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text);
}

.result-terrain {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.error-message {
    color: var(--error);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem;
    font-weight: 500;
}

/* Size Chart Section */
.size-chart-section {
    background: var(--light);
    padding: 4rem 0;
    margin: 0 auto;
    margin-bottom: 5px;
}

.size-chart-section h2 {
font-size: 30px;
text-align: center;
margin-bottom: 20px;
}

.size-chart-section p {
    text-align: center;
    margin-bottom: 10px;
    }

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 0 auto;
    max-width: 100%;
}

.size-chart {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 600px;
}

.size-chart th,
.size-chart td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.size-chart th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.size-chart tr:nth-child(even) {
    background-color: #f9f9f9;
}

.size-chart tr:hover {
    background-color: var(--light);
}

/* How to Use Section */
.how-to-section {
    background: var(--white);
    padding: 2rem 0;
    margin-top: 0px;
    border-radius: 5px;
}

.how-to-section h2 {
 text-align: center;
 font-size: 30px;
 margin-bottom: 10px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    padding: 15px;
}

.step-card {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text);
}

/* Why Choose Section */
.why-choose-section {
    background: var(--light);
    padding: 4rem 0;
}

.why-choose-section h2 {
font-size: 30px;
text-align: center;
margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text);
}

/* Guide Section */
.guide-section {
    background: var(--white);
    padding: 2rem;
}

.guide-section h2 {
text-align: center;
font-size: 35px;
margin-bottom: 30px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.guide-card {
    background: var(--light);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.guide-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: var(--primary);
}

.guide-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.guide-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
}

/* Brands Section */
.brands-section {
    padding: 2rem 0;
    margin-bottom: 0px;
}

.brands-section h2 {
    font-size: 35px;
    text-align: center;
    margin-bottom: 20px;
}

.brands-container {
    overflow: hidden;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: var(--transition);
}

.brand-logo img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.brand-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* FAQ Section */
.faq-section {
    background: var(--light);
    padding: 2rem 0;
}

.fas {
    margin-right: 5px;
}
.faq-section h2 {
font-size: 30px;
text-align: center;
margin-bottom: 20px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    gap: 0.9rem;
}

.faq-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.fa-chevron-down {
    margin-left: 10px;
    } 

.fa-chevron-up {
    margin-left: 10px;
    }

.faq-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
}

.faq-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.faq-header i {
    transition: var(--transition);
}

.faq-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    padding-bottom: 1.5rem;
}

.faq-content.active {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-card.active .faq-header i {
    transform: rotate(180deg);
}

/* Footer Styles */
.main-footer {
    margin-top: 6rem;
}

.main-container {
  width: 70%;
  margin: 0 auto;
  background-color:#F8FAFC;
  padding: 2%;
}

.footer-top {
    background: var(--dark);
    padding: 4rem 0; 
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-container p {
color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    opacity: 0.7;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
}

.social-links a {
    font-size: 1.25rem;
    color: var(--white);
    opacity: 0.7;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer-bottom {
    background: var(--darker);
    padding: 1.5rem 0;
    text-align: center;
}

.copyright-text {
    font-size: 0.85rem;
    opacity: 0.7;
    color: var(--white);
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary); /* Use primary color variable */
    transition: var(--transition);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .calculator-grid,
    .guide-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .steps-grid,
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-container {
        width: 100%;
        padding: 3%;
    }

    .main-container h2 {
        font-size: 25px;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .steps-grid,
    .features-grid,
    .brand-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-card {
        padding: 1.5rem;
    }
    
    .size-chart {
        font-size: 0.9rem;
    }
    
    .size-chart th,
    .size-chart td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .main-container {
        width: 100%;
        padding: 3%;
    }

    .main-container h2 {
        font-size: 25px;
    }
    .container {
        padding: 0 1rem;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .calculate-btn,
    .reset-btn {
        width: 100%;
    }
    
    .brand-logo img {
        max-width: 100px;
    }
}