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

/* Critical CSS for above-the-fold content */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #00B7B2, #008B8B);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-title {
    text-align: center;
    margin-bottom: 1rem;
}

.site-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 3px 6px rgba(0,0,0,0.2);
    color: #ffffff;
    background: linear-gradient(45deg, #ffffff, #E0F7FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 2rem;
    min-height: 70px;
    background: transparent;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    width: 100%;
}

.nav-brand {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 15px;
    white-space: nowrap;
    font-size: 0.85rem;
    position: relative;
    display: block;
    background: transparent;
}

.nav-menu a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    font-weight: 700;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section - Removed */

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    width: 100%;
    justify-items: center;
}

.tool {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin: 3rem auto 0 auto;
}

.tool:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.tool h3 {
    color: #00B7B2;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tool p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #00B7B2, #008B8B);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: linear-gradient(135deg, #008B8B, #00695C);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,183,178,0.3);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00B7B2;
    box-shadow: 0 0 0 3px rgba(0,183,178,0.1);
}

/* Results */
.results {
    background: #E8F5E8;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: none;
}

.results h3 {
    color: #2E7D32;
    margin-bottom: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #C8E6C9;
}

.result-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1B5E20;
}

/* AdSense */
.adsense {
    background: #F5F5F5;
    border: 2px dashed #CCC;
    padding: 2rem;
    text-align: center;
    color: #999;
    margin: 2rem 0;
    border-radius: 10px;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer p {
    margin: 0.5rem 0;
}

.footer-link {
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ff5252;
    text-decoration: underline;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: #f8f9fa;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb a {
    color: #00B7B2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #008B8B;
    text-decoration: underline;
}

.breadcrumb .current {
    color: #6c757d;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #00B7B2;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 2rem 0;
        gap: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        transform: none;
        left: -100%;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        padding: 1rem 2rem;
        display: block;
        width: 100%;
    }
    
    .site-title h1 {
        font-size: 2rem;
    }
    
    /* Hero Section - Removed */
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
    }
    
    .tool {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hero Section - Removed */
    
    .tool {
        padding: 1rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}
