/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Wi-Fi Nomads Brand Colors */
    --primary-blue: #1e3a8a;
    --secondary-blue: #1e40af;
    --light-blue: #3b82f6;
    --dark-blue: #0f172a;
    --accent-teal: #0891b2;
    --accent-orange: #f59e0b;
    --wifi-green: #059669;

    /* Gradient System */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
    --gradient-secondary: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    --gradient-accent: linear-gradient(135deg, #059669 0%, #0891b2 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);

    /* Base Colors */
    --white: #ffffff;
    --black: #000000;
    --off-white: #fafbfc;
    --light-gray: #f1f5f9;
    --gray: #64748b;
    --dark-gray: #334155;

    /* Text Hierarchy */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-accent: #1e3a8a;

    /* UI Elements */
    --border-light: #e2e8f0;
    --border-accent: rgba(30, 58, 138, 0.2);
    --bg-accent: rgba(30, 58, 138, 0.05);
    --bg-accent-hover: rgba(30, 58, 138, 0.1);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    --shadow-brand: 0 20px 40px rgba(30, 58, 138, 0.3);
    --shadow-brand-lg: 0 30px 60px rgba(30, 58, 138, 0.4);

    /* Layout */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: translateY(-1px);
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.4));
}

.nav-logo:hover h2 {
    opacity: 0.8;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.3));
    transition: var(--transition);
}

.nav-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.4));
}

.nav-logo h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-decoration: none;
}

.nav-linkedin:hover {
    background-color: rgba(0, 119, 181, 0.1);
    transform: translateY(-1px);
}

.nav-linkedin-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: var(--transition);
}

.nav-linkedin:hover .nav-linkedin-icon {
    transform: scale(1.05);
}

.nav-cta {
    display: none;
}

@media (min-width: 1024px) {
    .nav-cta {
        display: block;
        background: var(--gradient-primary);
        color: var(--white);
        padding: 10px 20px;
        border-radius: var(--radius-md);
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
    }

    .nav-cta:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-lg);
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-accent);
    color: var(--text-accent);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid var(--border-accent);
}

.hero-badge::before {
    content: "⚡";
    font-size: 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
    /* Modern browsers - balance line breaks */
    overflow-wrap: break-word;
    /* Fallback for older browsers */
    hyphens: none;
    /* Prevent hyphenation */
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
}

/* 3D Logo Showcase */
.logo-showcase {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.logo-container {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    animation: logoRotate 20s linear infinite;
}

.hero-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 20px 40px rgba(37, 99, 235, 0.4));
    transition: var(--transition);
    transform: translateZ(50px);
}

.hero-logo:hover {
    transform: translateZ(80px) scale(1.05);
    filter: drop-shadow(0 30px 60px rgba(37, 99, 235, 0.6));
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background:
        radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%),
        radial-gradient(circle, rgba(14, 165, 233, 0.2) 20%, transparent 80%);
    border-radius: 50%;
    transform: translate(-50%, -50%) translateZ(-50px);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.logo-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.8;
    animation: particleFloat 8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.8);
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle-2 {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.particle-3 {
    bottom: 25%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle-4 {
    bottom: 35%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.particle-5 {
    top: 60%;
    left: 5%;
    animation-delay: 4s;
    animation-duration: 5s;
}

.particle-6 {
    top: 15%;
    right: 25%;
    animation-delay: 5s;
    animation-duration: 6s;
}

@keyframes logoRotate {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateZ(50px) translateY(0px);
    }

    50% {
        transform: translateZ(50px) translateY(-20px);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) translateZ(-50px) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) translateZ(-50px) scale(1.1);
    }
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }

    25% {
        transform: translateY(-30px) rotate(90deg);
        opacity: 1;
    }

    50% {
        transform: translateY(-60px) rotate(180deg);
        opacity: 0.6;
    }

    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 1;
    }
}

/* Enhanced 3D effects for the logo showcase */
.logo-showcase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background:
        conic-gradient(from 0deg,
            transparent,
            rgba(37, 99, 235, 0.1),
            transparent,
            rgba(14, 165, 233, 0.1),
            transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: conicRotate 15s linear infinite;
    pointer-events: none;
}

.logo-showcase::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background:
        radial-gradient(circle,
            transparent 40%,
            rgba(37, 99, 235, 0.05) 60%,
            transparent 80%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: expandContract 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes conicRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes expandContract {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

/* Tools Section */
.tools {
    padding: 80px 0;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.tool-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(37, 99, 235, 0.1);
}

.tool-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--bg-accent) 0%, rgba(8, 145, 178, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-accent);
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.1);
}

.tool-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: var(--transition);
}

.tool-card:hover .feature-tag {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Calculator Modal Styles */
.calculator-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.calculator-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.calculator-modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-light);
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem 1rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.calculator-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.close-btn:hover {
    background: var(--bg-accent-hover);
    color: var(--primary-blue);
}

.calculator-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2.5rem;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    letter-spacing: -0.01em;
}

.form-select,
.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--white);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-select:focus,
.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-select:hover,
.form-control:hover {
    border-color: var(--primary-blue);
}

.form-select:disabled,
.form-control:disabled {
    background-color: var(--light-gray);
    color: var(--text-muted);
    border-color: var(--border-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.form-select:disabled:hover,
.form-control:disabled:hover {
    border-color: var(--border-light);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    grid-column: 1 / -1;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.form-check-input:checked {
    background: var(--gradient-primary);
    border-color: var(--primary-blue);
}

.form-check-label {
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-calculate {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.calculation-results {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-accent);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-accent);
}

.calculation-results table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
}

.calculation-results th,
.calculation-results td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.calculation-results th {
    background: var(--white);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.calculation-results td {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.calculation-results tr:last-child td {
    border-bottom: none;
}

.chart-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.airtime-chart {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    width: 100% !important;
    height: 400px !important;
    max-height: 400px;
}

.chart-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    /* Prevent flex item from overflowing */
}

.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .calculator-inputs {
        grid-template-columns: 1fr;
    }
}

/* Additional responsive breakpoint to prevent awkward text wrapping */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 2.75rem;
        line-height: 1.15;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-linkedin {
        padding: 1rem;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-linkedin:last-child {
        border-bottom: none;
    }

    .nav-linkedin-icon {
        width: 20px;
        height: 20px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .logo-showcase {
        width: 350px;
        height: 350px;
    }

    .logo-container {
        width: 250px;
        height: 250px;
    }

    .hero-logo {
        width: 200px;
        height: 200px;
    }

    .calculator-modal-content {
        margin: 10px;
        max-height: 95vh;
    }

    .calculator-header {
        padding: 1.5rem;
    }

    .calculator-body {
        padding: 1.5rem;
    }

    .calculator-inputs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .logo-showcase {
        width: 250px;
        height: 250px;
    }

    .logo-container {
        width: 200px;
        height: 200px;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Blogs Section */
.blogs {
    padding: 80px 0;
    background: var(--white);
    position: relative;
}

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

.blog-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(37, 99, 235, 0.2);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-accent) 0%, rgba(8, 145, 178, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    background: var(--light-gray);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.blog-card:hover .blog-tag {
    background: var(--bg-accent);
    color: var(--primary-blue);
}

/* Blog Post Page Styles */
.blog-post {
    padding-top: 120px;
    padding-bottom: 80px;
}

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

.blog-header {
    margin-bottom: 3rem;
    text-align: center;
}

.back-link {
    display: inline-block;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    background: var(--bg-accent);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.back-link:hover {
    background: var(--bg-accent-hover);
    transform: translateX(-4px);
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

.blog-content-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-content-body h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 3rem 0 1.5rem;
    font-weight: 700;
}

.blog-content-body p {
    margin-bottom: 1.5rem;
}

.blog-content-body ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.blog-content-body li {
    margin-bottom: 0.75rem;
    position: relative;
    list-style-type: disc;
}

.blog-section-image {
    /* Set a maximum width to prevent it from stretching too far */
    max-width: 100%;
    
    /* Set a fixed width to make it look professional (adjust as needed) */
    width: 400px; /* Adjust this value to your preferred size */
  
    /* Ensure the height scales proportionally to the width */
    height: auto; 
    
    /* Center the image within its container (requires display: block) */
    display: block;
    margin-left: auto;
    margin-right: auto;
    
    /* Add some vertical space above and below for separation */
    margin-top: 25px;
    margin-bottom: 25px;
  
    /* Optional: Add rounded corners for a modern look */
    border-radius: 8px;
  
    /* Optional: Add a subtle shadow to make it pop */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

.blog-conclusion {
    background: var(--bg-accent);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-blue);
    margin-top: 4rem;
}

.blog-conclusion h3 {
    margin-top: 0;
    color: var(--primary-blue);
}

.blog-conclusion p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Tool Pages (Calculator dedicated pages)
   ======================================== */

.tool-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.tool-header {
    margin-bottom: 2rem;
}

.tool-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 800px;
}
