/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3498db;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 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="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: #ffd700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #ffd700;
    color: #2c3e50;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.tech-illustration {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.tech-illustration i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.tech-illustration i:nth-child(1) { animation-delay: 0s; }
.tech-illustration i:nth-child(2) { animation-delay: 0.5s; }
.tech-illustration i:nth-child(3) { animation-delay: 1s; }
.tech-illustration i:nth-child(4) { animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Overview Section */
.overview {
    padding: 100px 0;
    background: #f8f9fa;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.overview-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.overview-icon {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.overview-icon i {
    font-size: 1.8rem;
    color: white;
}

.overview-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.overview-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #2980b9;
}

/* Featured Product */
.featured-product {
    padding: 100px 0;
    background: white;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.featured-text p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hotel-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
}

.hotel-preview i {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 150px 0 100px;
    color: white;
    text-align: center;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.header-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

/* Services Detail */
.services-detail {
    padding: 100px 0;
    background: #f8f9fa;
}

.service-card-detailed {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 3rem;
}

.service-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-header {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-header .service-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-header .service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

.service-content {
    padding: 2rem;
}

.service-description {
    font-size: 1.1rem;
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.service-features h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-features ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li i {
    color: #27ae60;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #3498db;
    color: white;
}

/* Active Navigation */
.nav-link.active {
    color: #3498db !important;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-icon {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-card p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: #5a6c7d;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Products Section */
.products {
    padding: 100px 0;
    background: white;
}

.product-showcase {
    max-width: 1200px;
    margin: 0 auto;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-info h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.product-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.product-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item i {
    color: #27ae60;
    font-size: 1.1rem;
}

.product-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Hotel System Demo */
.hotel-system-demo {
    perspective: 1000px;
}

.demo-screen {
    background: #2c3e50;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.demo-screen:hover {
    transform: rotateY(-10deg) rotateX(2deg);
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #34495e;
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    margin-bottom: 1rem;
}

.demo-dots {
    display: flex;
    gap: 0.5rem;
}

.demo-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e74c3c;
}

.demo-dots span:nth-child(2) { background: #f39c12; }
.demo-dots span:nth-child(3) { background: #27ae60; }

.demo-title {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.demo-content {
    background: white;
    border-radius: 0 0 10px 10px;
    padding: 1.5rem;
}

.demo-widget {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.demo-widget h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
}

.stat .label {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.demo-chart {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    height: 100px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    gap: 0.5rem;
}

.bar {
    background: linear-gradient(180deg, #3498db, #2980b9);
    width: 100%;
    border-radius: 3px 3px 0 0;
    animation: growBar 2s ease-out;
}

@keyframes growBar {
    from { height: 0; }
    to { height: var(--bar-height); }
}

/* Tools Section */
.tools {
    padding: 100px 0;
    background: #f8f9fa;
}

.tools-page {
    padding: 100px 0;
    background: #f8f9fa;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* New 3-column tools layout */
.tools-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.tools-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.tools-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-template-rows: auto auto;
}

.tool-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: fit-content;
}

.tool-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Tool box header */
.tool-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tool-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tool-info h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.tool-info p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

/* Tool box body */
.tool-body {
    padding: 20px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

.input-group input[type="text"],
.input-group input[type="color"],
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 8px;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.input-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* Buttons */
.btn-primary {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-small {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-small:hover {
    background: #2980b9;
}

.btn-small.secondary {
    background: #6c757d;
}

.btn-small.secondary:hover {
    background: #5a6268;
}

.button-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 6px;
    margin-top: 8px;
}

.copy-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
}

.copy-btn:hover {
    background: #229954;
}

/* Result areas */
.result-area {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    min-height: 80px;
}

.placeholder {
    color: #999;
    text-align: center;
    padding: 20px;
    font-style: italic;
    font-size: 13px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
}

/* Color converter specific */
.color-preview-box {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
}

.color-formats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.format-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    background: white;
    border-radius: 4px;
    font-size: 11px;
}

.format-row .label {
    font-weight: 600;
    min-width: 35px;
}

/* Password generator specific */
.length-control {
    margin-bottom: 12px;
}

.length-control label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    cursor: pointer;
}

.checkbox-item input {
    margin: 0;
}

.password-display {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.password-display input {
    flex: 1;
    font-family: monospace;
    background: white;
}

.strength-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    background: #27ae60;
    transition: width 0.3s ease;
}

/* Options */
.options {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 12px;
}

.status-bar {
    margin-top: 8px;
    padding: 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* Responsive design */
@media (max-width: 1200px) {
    .tools-grid-3col {
        gap: 16px;
    }
    
    .tool-box {
        margin-bottom: 0;
    }
}

@media (max-width: 900px) {
    .tools-grid-3col {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .tools-grid-3col {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .button-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

.tools-page .tool-card {
    display: flex;
    flex-direction: column;
    min-height: 450px;
    height: auto;
    padding: 1.2rem;
    box-sizing: border-box;
    width: 100%;
}

.tools-page .tool-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tools-page .tool-input {
    margin-bottom: 0.5rem;
}

.tools-page .tool-input textarea {
    min-height: 50px;
    resize: vertical;
    font-size: 0.8rem;
    line-height: 1.3;
}

.tools-page .tool-result {
    flex: 1;
    margin-top: 0.5rem;
}

.tools-page .tool-result textarea {
    min-height: 50px;
    resize: vertical;
    font-size: 0.8rem;
    line-height: 1.3;
}

.tools-page .tool-header {
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
}

.tools-page .tool-title h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.tools-page .tool-title p {
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Compact button layout */
.tools-page .json-buttons,
.tools-page .url-buttons,
.tools-page .base64-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tools-page .json-buttons .btn-tool:nth-child(3),
.tools-page .json-buttons .btn-tool:nth-child(4) {
    grid-column: span 1;
}

.tools-page .btn-tool {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Compact password generator layout */
.tools-page .password-options {
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.tools-page .password-checkboxes {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}

.tools-page .checkbox-label {
    font-size: 0.75rem;
}

.tools-page .password-output {
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.tools-page .password-strength {
    gap: 0.4rem;
    font-size: 0.75rem;
}

/* Compact color converter */
.tools-page .color-inputs {
    gap: 0.5rem;
}

.tools-page .color-input-group label {
    font-size: 0.8rem;
}

.tools-page .color-format {
    padding: 0.4rem;
    margin-bottom: 0.2rem;
}

.tools-page .format-label {
    font-size: 0.75rem;
}

.tools-page .format-value {
    font-size: 0.75rem;
}

/* Tool options compact */
.tools-page .tool-options {
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.tools-page .tool-options label {
    font-size: 0.8rem;
}

.tools-page .tool-input label {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

/* Responsive for tools page */
@media (max-width: 1200px) {
    .tools-page .tools-grid {
        gap: 1rem;
    }
    
    .tools-page .tool-card {
        padding: 1rem;
        min-height: 400px;
    }
}

@media (max-width: 900px) {
    .tools-page .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .tools-page .password-checkboxes {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .tools-page .tools-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tools-page .json-buttons,
    .tools-page .url-buttons,
    .tools-page .base64-buttons {
        grid-template-columns: 1fr;
    }
    
    .tools-page .password-checkboxes {
        grid-template-columns: 1fr;
    }
}

.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tool-icon i {
    font-size: 1.5rem;
    color: white;
}

.tool-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.tool-input {
    margin-bottom: 1rem;
}

.tool-input input,
.tool-input textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    margin-bottom: 0.5rem;
}

.tool-input label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

.tool-result textarea {
    width: 100%;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.3s ease;
    min-height: 120px;
}

.tool-result textarea[readonly] {
    background-color: #f8f9fa;
    color: #495057;
}

.tool-input input:focus,
.tool-input textarea:focus {
    outline: none;
    border-color: #3498db;
}

.tool-input textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-tool {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-right: 0.5rem;
}

.btn-tool:hover {
    background: #2980b9;
}

.btn-copy {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.tool-result {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 60px;
}

.password-options {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.password-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

.password-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
    position: relative;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.checkbox-label:hover .checkmark {
    background-color: #ccc;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #3498db;
    border-color: #3498db;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.password-output {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.password-output input {
    flex: 1;
    font-family: monospace;
    font-size: 0.9rem;
    background: #f8f9fa;
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.strength-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    background: #27ae60;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.json-buttons,
.url-buttons,
.base64-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.json-buttons .btn-tool,
.url-buttons .btn-tool,
.base64-buttons .btn-tool {
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.color-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-info span {
    font-family: monospace;
    font-size: 0.9rem;
    color: #2c3e50;
}

/* Tool Card Enhancements */
.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f4;
}

.tool-title h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
}

.tool-title p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.95rem;
}

.tool-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tool-options {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.tool-options label {
    font-size: 0.9rem;
    font-weight: 500;
}

.tool-options select {
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 0.9rem;
}

.result-placeholder {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Color Tool Enhancements */
.color-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.color-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

.color-preview {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid #dee2e6;
}

.color-format {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.format-label {
    font-weight: 600;
    color: #495057;
    min-width: 40px;
}

.format-value {
    font-family: monospace;
    flex: 1;
    margin-left: 1rem;
    color: #2c3e50;
}

.copy-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #5a6268;
}

/* JSON Tool Enhancements */
.json-output-header,
.url-output-header,
.base64-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.json-output-header span,
.url-output-header span,
.base64-output-header span {
    font-weight: 600;
    color: #495057;
}

.json-status {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

#jsonOutput,
#urlOutput,
#base64Output {
    min-height: 120px;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.btn-tool.secondary {
    background: #6c757d;
    color: white;
}

.btn-tool.secondary:hover {
    background: #5a6268;
}

/* Tools Info Section */
.tools-info {
    padding: 80px 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    text-align: center;
    padding: 2rem 1rem;
}

.info-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.info-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #7f8c8d;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@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;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .product-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        justify-content: center;
    }

    .demo-screen {
        transform: none;
    }

    .product-features {
        grid-template-columns: 1fr;
    }

    .password-checkboxes {
        grid-template-columns: 1fr;
    }

    .tool-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .tool-options {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .color-format {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .format-value {
        margin-left: 0;
    }

    .json-output-header,
    .url-output-header,
    .base64-output-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .password-output {
        flex-direction: column;
    }

    .password-strength {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .json-buttons,
    .url-buttons,
    .base64-buttons {
        flex-direction: column;
    }

    .json-buttons .btn-tool,
    .url-buttons .btn-tool,
    .base64-buttons .btn-tool {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .service-card,
    .tool-card {
        padding: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
