/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6 !important;
    text-decoration: none;
}

.nav-logo span {
    color: #3b82f6 !important;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
    color: #3b82f6 !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3b82f6;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

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

/* ===== SEARCH BAR ===== */
.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: scale(1.05);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:hover {
    background-color: #f8fafc;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.search-result-desc {
    color: #6b7280;
    font-size: 0.8rem;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    margin-top: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 600px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dropdown-item:hover {
    background: rgba(79, 70, 229, 0.05);
    border-color: rgba(79, 70, 229, 0.2);
    transform: translateY(-2px);
}

.dropdown-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(135deg, #1e293b, #334155);
}

.dropdown-content {
    display: flex;
    flex-direction: column;
}

.dropdown-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d3748;
    margin-bottom: 0.2rem;
}

.dropdown-desc {
    font-size: 0.75rem;
    color: #718096;
}

/* ===== DROPDOWN ITEM COLORS ===== */
.dropdown-item.basic .dropdown-icon {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
}

.dropdown-item.featured .dropdown-icon {
    background: linear-gradient(135deg, #1e293b, #334155);
}

.dropdown-item.science .dropdown-icon {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
}

.dropdown-item.units .dropdown-icon {
    background: linear-gradient(135deg, #ff9800, #ffc107);
}

.dropdown-item.health .dropdown-icon {
    background: linear-gradient(135deg, #f44336, #e91e63);
}

.dropdown-item.time .dropdown-icon {
    background: linear-gradient(135deg, #795548, #8d6e63);
}

.dropdown-item.premium .dropdown-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.dropdown-item.digital .dropdown-icon {
    background: linear-gradient(135deg, #607d8b, #37474f);
}

.dropdown-item.business .dropdown-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.dropdown-item.pool .dropdown-icon {
    background: linear-gradient(135deg, #00c9ff, #92fe9d);
}

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

.bar {
    width: 25px;
    height: 3px;
    background: #4a5568;
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: linear-gradient(45deg, #ffd89b 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Hero CTA Buttons */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: #3b82f6;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-cta:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Simplified Hero - No Feature Cards */

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    transform: perspective(1000px) rotateY(-15deg);
}

.calc-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.calc-card:nth-child(1) { animation-delay: 0s; }
.calc-card:nth-child(2) { animation-delay: 1.5s; }
.calc-card:nth-child(3) { animation-delay: 3s; }
.calc-card:nth-child(4) { animation-delay: 4.5s; }

.calc-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.calc-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.calc-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CALCULATORS SECTION ===== */
.calculators {
    padding: 80px 0;
    background: #f8fafc;
}

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

.category-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.category-card.featured {
    border: 2px solid #1e293b;
    box-shadow: 0 8px 30px rgba(30, 41, 59, 0.2);
    transform: scale(1.02);
}

.category-card.featured:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(30, 41, 59, 0.3);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.4);
}

.premium-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.mortgage-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.business-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.category-card.premium {
    border: 2px solid #f093fb;
    box-shadow: 0 8px 30px rgba(240, 147, 251, 0.2);
}

.category-card.premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(240, 147, 251, 0.3);
}

.category-card.business {
    border: 2px solid #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.category-card.business:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

/* ===== MORTGAGE CATEGORY ===== */
.category-card.mortgage {
    border: 2px solid #2e7d32;
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.2);
}

.category-card.mortgage:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.3);
}

.category-card.mortgage .card-icon {
    background: linear-gradient(135deg, #2e7d32, #388e3c);
}

.mortgage-badge {
    background: linear-gradient(135deg, #2e7d32, #388e3c);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.category-card.premium .card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.category-card.business .card-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.pool-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 201, 255, 0.4);
}

.category-card.pool {
    border: 2px solid #00c9ff;
    box-shadow: 0 8px 30px rgba(0, 201, 255, 0.2);
}

.category-card.pool:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 201, 255, 0.3);
}

.category-card.pool .card-icon {
    background: linear-gradient(135deg, #00c9ff, #92fe9d);
}

/* ===== BASIC CATEGORY ===== */
.basic-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.category-card.basic {
    border: 2px solid #4caf50;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.2);
}

.category-card.basic:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.3);
}

.category-card.basic .card-icon {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
}

/* ===== SCIENCE CATEGORY ===== */
.science-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
}

.category-card.science {
    border: 2px solid #9c27b0;
    box-shadow: 0 8px 30px rgba(156, 39, 176, 0.2);
}

.category-card.science:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(156, 39, 176, 0.3);
}

.category-card.science .card-icon {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
}

/* ===== UNITS CATEGORY ===== */
.category-card.units .card-icon {
    background: linear-gradient(135deg, #ff9800, #ffc107);
}

.units-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ff9800, #ffc107);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.category-card.units {
    border: 2px solid #ff9800;
    box-shadow: 0 8px 30px rgba(255, 152, 0, 0.2);
}

.category-card.units:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 152, 0, 0.3);
}

.category-card.units .card-icon {
    background: linear-gradient(135deg, #ff9800, #ffc107);
}

/* ===== CURRENCY CATEGORY ===== */
.currency-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.category-card.currency {
    border: 2px solid #f59e0b;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.2);
}

.category-card.currency:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.3);
}

.category-card.currency .card-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* ===== HEALTH CATEGORY ===== */
.health-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.category-card.health {
    border: 2px solid #f44336;
    box-shadow: 0 8px 30px rgba(244, 67, 54, 0.2);
}

.category-card.health:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(244, 67, 54, 0.3);
}

.category-card.health .card-icon {
    background: linear-gradient(135deg, #f44336, #e91e63);
}

/* ===== TIME CATEGORY ===== */
.time-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #795548 0%, #8d6e63 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(121, 85, 72, 0.4);
}

.architect-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #795548, #5d4037);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(121, 85, 72, 0.4);
}

.category-card.time {
    border: 2px solid #795548;
    box-shadow: 0 8px 30px rgba(121, 85, 72, 0.2);
}

.category-card.time:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(121, 85, 72, 0.3);
}

.category-card.time .card-icon {
    background: linear-gradient(135deg, #795548, #8d6e63);
}

/* ===== DIGITAL CATEGORY ===== */
.category-card.digital .card-icon {
    background: linear-gradient(135deg, #607d8b, #37474f);
}

.category-card.digital .card-btn {
    background: linear-gradient(135deg, #607d8b, #37474f);
    color: white;
}

.category-card.digital .card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(96, 125, 139, 0.4);
}

.category-card.digital {
    border: 2px solid #607d8b;
    box-shadow: 0 8px 30px rgba(96, 125, 139, 0.2);
}

.category-card.digital:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(96, 125, 139, 0.3);
}

/* ===== ARCHITECT CATEGORY ===== */
.category-card.architect {
    border: 2px solid #795548;
    box-shadow: 0 8px 30px rgba(121, 85, 72, 0.2);
}

.category-card.architect:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(121, 85, 72, 0.3);
}

.category-card.architect .card-icon {
    background: linear-gradient(135deg, #795548, #5d4037);
}


.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 1.8rem;
    color: white;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.category-card p {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1e293b;
    font-weight: bold;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.card-btn:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 80px 0;
    background: white;
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #718096;
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 60px 0 20px;
    border-top: none;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 10px;
    color: white;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== RESPONSIVE SEARCH ===== */
@media (max-width: 768px) {
    .search-container {
        margin: 0 1rem;
        max-width: 250px;
    }
    
    .search-input {
        font-size: 0.8rem;
        padding: 8px 40px 8px 12px;
    }
    
    .search-btn {
        width: 30px;
        height: 30px;
    }
    
    .search-results {
        left: -50px;
        right: -50px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 20px;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        margin: 10px 0 0 0;
        max-width: none;
    }
    
    .nav-menu {
        order: 2;
    }
}

/* ===== COOKIE BANNER (CENTER MODAL) ===== */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.cookie-banner.show {
    display: flex;
}

.cookie-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: cookieSlideIn 0.4s ease-out;
}

@keyframes cookieSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-text {
    margin-bottom: 2rem;
}

.cookie-text h3 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cookie-text p {
    margin: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 140px;
}

.cookie-btn.accept-all {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cookie-btn.accept-all:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.cookie-btn.necessary-only {
    background: #f3f4f6;
    color: #4b5563;
    border: 2px solid #e5e7eb;
}

.cookie-btn.necessary-only:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.cookie-btn.settings {
    background: transparent;
    color: #6b7280;
    border: 2px solid #d1d5db;
}

.cookie-btn.settings:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-2px);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cookie-modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.5rem;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.cookie-modal-body {
    padding: 1rem 2rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.cookie-category-head.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-category h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.1rem;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

input:disabled + .cookie-slider {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-category p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.cookie-details {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #4b5563;
}

.cookie-modal-footer {
    padding: 1rem 2rem 2rem 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Cookie Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;
    display: none;
}

.cookie-settings-btn.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-content {
        padding: 2rem 1.5rem;
        margin: 10px;
    }
    
    .cookie-text h3 {
        font-size: 1.5rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .cookie-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: auto;
        width: 100%;
    }
    
    .cookie-modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .cookie-category {
        padding: 1rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: 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;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile Hero Section */
    .hero {
        padding: 80px 0 60px;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .hero-cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        transform: none;
        min-width: auto;
        width: 100%;
        margin-top: 0;
        padding: 1rem;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .dropdown-item {
        padding: 0.8rem;
    }

    .dropdown-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .dropdown-title {
        font-size: 0.85rem;
    }

    .dropdown-desc {
        font-size: 0.7rem;
    }

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

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

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

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

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

    .calculator-grid {
        transform: none;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .calc-card {
        padding: 1rem;
    }

    .calc-card i {
        font-size: 1.5rem;
    }

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

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile devices */
    .hero {
        padding: 70px 0 50px;
    }

    .hero-container {
        padding: 0 0.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }

    .hero-cta {
        max-width: 280px;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    /* Navigation improvements */
    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-logo span {
        display: none;
    }

    .nav-logo::after {
        content: "C4E";
        font-weight: 700;
    }

    .search-container {
        margin: 0.5rem 0 0 0;
        max-width: none;
        width: calc(100% - 1rem);
    }

    .category-card {
        padding: 1.5rem;
    }

    .btn {
        min-width: auto;
        flex: none;
        width: 100%;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card {
    animation: fadeInUp 0.6s ease forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }
.category-card:nth-child(7) { animation-delay: 0.7s; }
.category-card:nth-child(8) { animation-delay: 0.8s; }
.category-card:nth-child(9) { animation-delay: 0.9s; }
.category-card:nth-child(10) { animation-delay: 1.0s; }

/* ===== SCROLL EFFECTS ===== */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
