/* Enhanced Professional Styling */
:root {
    --primary-color: #2c3e50;
    --accent-color: #e871b5;
    --secondary-color: #3498db;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --light-text: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    background-color: #f5f7f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: var(--dark-text);
    line-height: 1.6;
}

.container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    color: var(--light-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    font-weight: 700;
}

h1 { 
    font-size: 2.8rem; 
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.tool-card {
    background: var(--light-bg);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
    border-left: 4px solid var(--secondary-color);
}

.tool-card h2 {
    font-size: 1.5rem;
    margin-top: 0;
    color: var(--primary-color);
}

.tool-card p {
    flex-grow: 1;
    color: #555;
}

/* AD CONTAINER FIXES */
.ad-space {
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    margin: 1rem 0;
    position: relative;
}

.ad-space-row {
    grid-column: 1 / -1;
    min-height: 90px;
    width: 100%;
    max-width: 728px;
    margin: 1.5rem auto;
    background: linear-gradient(to right, #f1f8ff, #e6f7ff);
    border: 1px dashed #3498db;
}

.ad-space-sidebar {
    min-height: 255px;
    width: 100%;
    max-width: 355px;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom, #f9f9f9, #f1f1f1);
    border: 1px dashed #e871b5;
}

.ad-label {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.7rem;
    color: #888;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 10;
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    background: #e6e6e6;
}

.horizontal-ad {
    width: 728px;
    height: 90px;
}

.vertical-ad {
    width: 300px;
    height: 250px;
}
/* Sticky Social Icons */
.social-sticky {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-sticky a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.social-sticky a:hover {
    transform: scale(1.1) translateX(5px);
}

.social-sticky .twitter { background: #1DA1F2; }
.social-sticky .facebook { background: #3b5998; }
.social-sticky .linkedin { background: #0077b5; }
.social-sticky .pinterest { background: #BD081C; }
.social-sticky .email { background: #777; }

.social-sticky a::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 60px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.social-sticky a:hover::after {
    opacity: 1;
    left: 65px;
}

.visitor-counter {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2rem;
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    animation: count-up 1s ease-out;
}

.count {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fade-in 0.3s;
}

.modal-content {
    background: var(--light-bg);
    margin: 10% auto;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 500px;
    position: relative;
    animation: slide-up 0.3s;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #777;
    transition: var(--transition);
}

.close-button:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

button {
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

button:hover {
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

input[type="file"], input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: var(--transition);
}

input[type="file"]:focus, input[type="text"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Navigation */
nav {
    background: white;
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

nav a:hover {
    color: var(--accent-color);
    background: rgba(232, 113, 181, 0.1);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 992px) {
    .container { grid-template-columns: 1fr; }
    .tool-grid { grid-template-columns: repeat(2, 1fr); }
    .sidebar { order: -1; }
    .social-sticky {
        left: 10px;
        transform: translateY(-50%) scale(0.9);
    }
}

@media (max-width: 768px) {
    .tool-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.2rem; }
    header { padding: 1.5rem; }
    .social-sticky {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin: 1.5rem 0;
        transform: none;
    }
    .social-sticky a::after {
        display: none;
    }
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

/* Animation for tool cards */
@keyframes tool-appear {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.tool-card {
    animation: tool-appear 0.5s ease-out;
}

.tool-card:nth-child(2) { animation-delay: 0.1s; }
.tool-card:nth-child(3) { animation-delay: 0.2s; }
.tool-card:nth-child(4) { animation-delay: 0.3s; }
.tool-card:nth-child(5) { animation-delay: 0.4s; }
.tool-card:nth-child(6) { animation-delay: 0.5s; }
.tool-card:nth-child(7) { animation-delay: 0.6s; }
.tool-card:nth-child(8) { animation-delay: 0.7s; }
.tool-card:nth-child(9) { animation-delay: 0.8s; }
.tool-card:nth-child(10) { animation-delay: 0.9s; }