/* assets/css/styles.css */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Red Queen theme - black and red color scheme */
    --primary-color: #e60000;
    --secondary-color: #990000;
    --accent-color: #ff3333;
    --background-color: #0a0a0a;
    --surface-color: #151515;
    --text-color: #f0f0f0;
    --text-color-dark: #0a0a0a;
    --border-color: #333333;
    --shadow-color: rgba(230, 0, 0, 0.2);
    /* Additional theme variables */
    --error-color: #ff4136;
    --success-color: #2ecc40;
    --warning-color: #ffdc00;
    --transition-bezier: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-duration: 0.3s;
    --gradient-primary: linear-gradient(135deg, #990000, #e60000);
    --card-hover-transform: translateY(-5px);
}

/* Logo styling */
.logo-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.main-logo {
    max-width: 280px;
    display: block;
}

/* Centered logo styling */
.centered-logo {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 10px 0;
}

/* Media queries for logo responsiveness */
@media (max-width: 768px) {
    .main-logo {
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .main-logo {
        max-width: 180px;
    }
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image: url('/assets/images/red-queen-bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-blend-mode: overlay;
}

body.light-theme {
    --background-color: #fafafa;
    --surface-color: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --shadow-color: rgba(230, 0, 0, 0.1);
}

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

/* Header and Navigation Styles */
.header {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 2px solid var(--primary-color);
    padding: 0.3rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(230, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.logo {
    margin-right: auto;
}

.rastakhiz-logo {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 5px var(--accent-color), 0 0 10px var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    animation: glitch 2s infinite alternate-reverse;
}

.rastakhiz-logo:hover {
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-color);
    transform: scale(1.05);
}

.rastakhiz-logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.rastakhiz-logo:hover::after {
    width: 100%;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--accent-color), -0.05em -0.025em 0 var(--primary-color), -0.025em 0.05em 0 var(--secondary-color);
    }
    14% {
        text-shadow: 0.05em 0 0 var(--accent-color), -0.05em -0.025em 0 var(--primary-color), -0.025em 0.05em 0 var(--secondary-color);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 var(--accent-color), 0.025em 0.025em 0 var(--primary-color), -0.05em -0.05em 0 var(--secondary-color);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 var(--accent-color), 0.025em 0.025em 0 var(--primary-color), -0.05em -0.05em 0 var(--secondary-color);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 var(--accent-color), 0.05em 0 0 var(--primary-color), 0 -0.05em 0 var(--secondary-color);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 var(--accent-color), 0.05em 0 0 var(--primary-color), 0 -0.05em 0 var(--secondary-color);
    }
    100% {
        text-shadow: -0.025em 0 0 var(--accent-color), -0.025em -0.025em 0 var(--primary-color), -0.025em -0.05em 0 var(--secondary-color);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-menu li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
}

.nav-menu li a:hover {
    color: var(--accent-color);
    background-color: rgba(230, 0, 0, 0.1);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-wrapper {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
    }
    
    .logo {
        order: 2;
        flex-grow: 1;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        order: 1;
    }
    
    .nav-menu {
        order: 3;
        flex-basis: 100%;
        margin-top: 1rem;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        display: block;
        padding: 10px;
        border-radius: 5px;
        background-color: rgba(230, 0, 0, 0.1);
    }

    .hero {
        padding: 1.2rem 1rem;
        margin-top: 40px;
    }

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

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .tools-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .modal-sections {
        grid-template-columns: 1fr;
    }

    .welcome-modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-height: 85vh;
    }

    .form-row {
        flex-direction: column;
    }

    .results-container {
        padding: 15px;
    }

    .tool-form {
        padding: 15px;
    }
}

/* Modal sections responsive grid */
.modal-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 1rem;
}

.modal-section {
    background-color: rgba(10, 10, 10, 0.3);
    padding: 20px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.modal-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.1);
    background-color: rgba(230, 0, 0, 0.05);
}

.modal-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(230, 0, 0, 0.2);
    padding-bottom: 8px;
}

.modal-section h3 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.modal-section p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.modal-section ul {
    list-style: none;
    padding-left: 10px;
    margin-top: 15px;
}

.modal-section li {
    color: var(--text-color);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.modal-section li:before {
    content: "➤";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.modal-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.modal-section a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

.modal-footer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    border-top: 1px solid rgba(230, 0, 0, 0.2);
    padding-top: 20px;
}

#accept-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
}

#accept-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 0, 0, 0.4);
}

#accept-button:active {
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .modal-sections {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .modal-sections {
        grid-template-columns: 1fr;
    }
    
    .welcome-modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }
    
    .modal-logo h1 {
        font-size: 2rem;
    }
}

/* Animation effects */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.tool-card:hover i {
    animation: pulse 1.5s infinite;
}

/* Loading animation */
.loading {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading:after {
    content: " ";
    display: block;
    border-radius: 50%;
    width: 0;
    height: 0;
    margin: 8px;
    box-sizing: border-box;
    border: 32px solid var(--primary-color);
    border-color: var(--primary-color) transparent var(--primary-color) transparent;
    animation: loading 1.2s infinite;
}

@keyframes loading {
    0% {
        transform: rotate(0);
        animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }
    50% {
        transform: rotate(180deg);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Tools container layout */
.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Search bar enhancement */
#tool-search {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    background-color: var(--surface-color);
    color: var(--text-color);
    margin-bottom: 30px;
    box-shadow: 0 4px 10px var(--shadow-color);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    padding-left: 50px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23e60000" class="bi bi-search" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: 20px center;
}

#tool-search:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
    border-color: var(--primary-color);
}

/* Copy button enhancement */
.copy-btn {
    background-color: var(--surface-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.copy-btn::before {
    content: '\f0c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Footer enhancement */
footer {
    background-color: var(--surface-color);
    color: var(--text-color);
    padding: 50px 0 20px;
    margin-top: 50px;
    border-top: 4px solid var(--primary-color);
}

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

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Social icons styling - this will override all other versions */
.social-icons, .footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a, .footer-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(20, 20, 20, 0.7);
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.social-icons a:hover, .footer-social .social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.3);
}

.social-icons a i, .footer-social .social-link i {
    color: inherit;
    font-size: 1.2rem;
}

/* Hero section */
.hero {
    background-color: rgba(10, 10, 10, 0.7);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 45px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(230, 0, 0, 0.1), transparent);
    z-index: -1;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(230, 0, 0, 0.5);
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-color);
    opacity: 0.9;
}

/* Featured tools section */
.featured-tools {
    padding: 4rem 0;
}

.featured-tools h2,
.all-tools h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

/* Tool Grid Layout */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns by default */
    gap: 20px;
    padding: 20px 0;
}

/* Tool Categories */
.tool-category {
    margin-bottom: 40px;
}

.tool-category h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

/* Tool Cards */
.tool-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: var(--card-hover-transform);
    box-shadow: 0 10px 20px var(--shadow-color);
    border-color: var(--primary-color);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.tool-card:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

.tool-card h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.tool-card p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.use-tool-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.use-tool-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .tool-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on medium screens */
    }
}

@media (max-width: 768px) {
    .tool-grid {
        grid-template-columns: 1fr; /* One column on mobile */
    }
}

/* Category sections */
.network-tools,
.conversion-tools,
.security-tools {
    margin-bottom: 40px;
}

/* Search box styling */
.search-tools {
    margin-bottom: 30px;
}

.search-tools input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 1rem;
}

.search-tools input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--shadow-color);
}

/* All tools section */
.all-tools {
    padding: 4rem 0;
    background-color: var(--surface-color);
}

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

.category-box {
    background-color: var(--surface-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.category-box h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.category-box h3 i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    width: auto;
    height: auto;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tool-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.tool-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.tool-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.tool-card .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.tool-card .btn:hover {
    background-color: var(--secondary-color);
}

/* Footer styles */
footer {
    background-color: var(--surface-color);
    color: var(--text-color);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    margin-right: 2rem;
}

.footer-section:last-child {
    margin-right: 0;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

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

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

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Form styles */
form {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

input[type="text"],
input[type="url"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    background-color: var(--background-color);
    color: var(--text-color);
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: var(--secondary-color);
}

/* Error message styling */
.error-message {
    color: #ff4136;
    font-size: 0.9rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    padding: 5px 10px;
    background-color: rgba(255, 65, 54, 0.1);
    border-radius: 4px;
    border-left: 3px solid #ff4136;
}

.input-error {
    border-color: #ff4136 !important;
    box-shadow: 0 0 0 1px #ff4136 !important;
}

/* Make sure error messages in forms are visible */
.form-group {
    position: relative;
}

.form-group .error-message {
    display: block;
    margin-top: 5px;
}

/* Result container styling */
.result-container {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Specific styles for each category */
.network-tools {
    border-top: 4px solid var(--primary-color);
}

.conversion-tools {
    border-top: 4px solid var(--secondary-color);
}

.security-tools {
    border-top: 4px solid var(--accent-color);
}

/* Add this to the end of your CSS file */

body.light-theme {
    --background-color: #f5f7fa;
    --surface-color: #ffffff;
    --text-color: #333333;
}

.light-theme .tool-card {
    background-color: var(--surface-color);
}

/* Add or modify these styles in your CSS file */

main {
    flex: 1;
    padding: 0.5rem 0;
    padding-top: 55px;
}

.tool-section {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.tool-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color-light);
}

input[type="text"],
input[type="url"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--background-color);
    color: var(--text-color);
}

button {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}

.result-container {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
}

.error-message {
    color: var(--accent-color);
    margin-top: 1rem;
}

footer {
    background-color: var(--surface-color);
    color: var(--text-color);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    margin-right: 2rem;
}

.footer-section:last-child {
    margin-right: 0;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

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

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

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Specific styles for each category */
.network-tools {
    border-top: 4px solid var(--primary-color);
}

.conversion-tools {
    border-top: 4px solid var(--secondary-color);
}

.security-tools {
    border-top: 4px solid var(--accent-color);
}

/* Tool-specific styles */
.dns-results,
.whois-result,
.hash-result,
.password-strength-result,
.ddos-analysis-result {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.dns-results th,
.dns-results td,
.whois-result th,
.whois-result td,
.hash-result th,
.hash-result td,
.password-strength-result th,
.password-strength-result td,
.ddos-analysis-result th,
.ddos-analysis-result td {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    text-align: left;
}

.dns-results th,
.whois-result th,
.hash-result th,
.password-strength-result th,
.ddos-analysis-result th {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.dns-results tr:nth-child(even),
.whois-result tr:nth-child(even),
.hash-result tr:nth-child(even),
.password-strength-result tr:nth-child(even),
.ddos-analysis-result tr:nth-child(even) {
    background-color: var(--surface-color);
}

.color-preview {
    width: 100px;
    height: 100px;
    border: 1px solid var(--border-color);
    margin: 10px 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-result {
    font-family: monospace;
    font-size: 1.1em;
    margin: 10px 0;
    color: var(--text-color);
}

.password-strength-meter {
    width: 100%;
    height: 10px;
    background-color: var(--border-color);
    margin-top: 1rem;
}

.password-strength-meter-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.very-weak { background-color: #ff4136; }
.weak { background-color: #ff851b; }
.moderate { background-color: #ffdc00; }
.strong { background-color: #2ecc40; }
.very-strong { background-color: #0074d9; }

/* Responsive design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        margin-top: 1rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

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

    .mobile-menu-toggle {
        display: block;
    }
}
/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tool-section {
    animation: fadeIn 0.5s ease-in-out;
}

.result-container {
    animation: fadeIn 0.5s ease-in-out;
}

/* Search tools section */
.search-tools {
    margin-bottom: 2rem;
}

#tool-search {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--surface-color);
    color: var(--text-color);
}

/* Add this to your existing styles */

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Adjust the existing nav styles to accommodate the new logo */
nav {
    flex-grow: 1;
}

nav ul {
    justify-content: flex-start;
}

/* Add these styles for the Password Strength Analyzer */
.result-container {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
    overflow-x: auto; /* Add horizontal scroll for very wide content */
}

.result-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.strength-meter {
    background-color: #444;
    height: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.strength-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.strength-very-weak .strength-bar { background-color: #ff4136; }
.strength-weak .strength-bar { background-color: #ff851b; }
.strength-moderate .strength-bar { background-color: #ffdc00; }
.strength-strong .strength-bar { background-color: #2ecc40; }
.strength-very-strong .strength-bar { background-color: #0074d9; }

.feedback-list {
    list-style-type: none;
    padding-left: 0;
}

.feedback-list li {
    margin-bottom: 5px;
    color: #ddd;
}

.strength-very-weak { color: #ff4136; }
.strength-weak { color: #ff851b; }
.strength-moderate { color: #ffdc00; }
.strength-strong { color: #2ecc40; }
.strength-very-strong { color: #0074d9; }

.tool-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.tool-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
    color: var(--text-color);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.btn-primary {
    background-color: #0074d9;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.dns-results {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.dns-results th,
.dns-results td {
    padding: 10px;
    border: 1px solid #3a3a3a;
    text-align: left;
}

.dns-results th {
    background-color: #3a3a3a;
    color: #fff;
}

.dns-results td {
    word-break: break-word; /* Allow long words to break and wrap */
}

/* Make the table responsive */
@media screen and (max-width: 600px) {
    .dns-results {
        font-size: 14px;
    }

    .dns-results th,
    .dns-results td {
        padding: 8px;
    }
}

/* Optimize animations for better performance */
.tool-card {
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform; /* Hint to browser */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Add focus styles for better accessibility */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Increase contrast ratios */
.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF; /* Ensure good contrast */
}

/* Add loading state styles */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

.disclaimer-box {
    background: var(--surface-color);
    border: 1px solid #ff6b6b;
    border-left: 4px solid #ff6b6b;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.disclaimer-box h4 {
    color: #ff6b6b;
    margin-top: 0;
}

.disclaimer-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.checkbox-container {
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 4px;
}

.tool-form {
    background: linear-gradient(to bottom right, var(--surface-color), rgba(30, 30, 30, 0.9));
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="password"] {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
    outline: none;
}

.result-container {
    background: linear-gradient(145deg, var(--surface-color), rgba(30, 30, 30, 0.9));
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.ssl-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.result-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.tool-section {
    position: relative;
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.2);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Add smooth page transitions */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    animation: pageEnter 0.5s var(--transition-bezier) forwards;
}

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

/* Improve result container and item styling */
.result-container {
    background: linear-gradient(145deg, var(--surface-color), rgba(30, 30, 30, 0.9));
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Tool form styling */
.tool-form {
    background: linear-gradient(145deg, var(--surface-color), rgba(30, 30, 30, 0.9));
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="password"] {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
}

/* Subdomain results styling */
.subdomain-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.result-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.8rem;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Important notice box styling */
.disclaimer-box {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-left: 4px solid #ff3b30;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.disclaimer-box h4 {
    color: #ff3b30;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.disclaimer-box ul {
    margin-left: 1.5rem;
    color: var(--text-color);
}

.disclaimer-box li {
    margin-bottom: 0.5rem;
}

/* SSL status indicators */
.ssl-enabled {
    color: var(--success-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ssl-disabled {
    color: var(--error-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tool section header styling */
.tool-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 2rem;
}

.tool-description {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Important Notice box styling */
.disclaimer-box {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-left: 4px solid #ff3b30;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.disclaimer-box h4 {
    color: #ff3b30;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-box h4 i {
    font-size: 1.4rem;
}

.disclaimer-box ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: disc;
    color: var(--text-color);
}

.disclaimer-box li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.disclaimer-box li:last-child {
    margin-bottom: 0;
}

/* Tool form spacing */
.tool-form {
    margin-top: 2.5rem;
    background: linear-gradient(145deg, var(--surface-color), rgba(30, 30, 30, 0.9));
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Tool section container and header styling */
.tool-section {
    padding: 3rem;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), var(--surface-color));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* Tool title styling */
.tool-section h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    position: relative;
    font-weight: 600;
}

/* Tool description styling */
.tool-description {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

/* Container styling */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Tool form container */
.tool-form {
    margin-top: 2.5rem;
    background: linear-gradient(145deg, var(--surface-color), rgba(30, 30, 30, 0.9));
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Results Table Styling */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
}

.results-table th,
.results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.results-table .header-row {
    background: var(--header-bg);
    color: var(--text-color);
}

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

.status-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

.status-enabled {
    background: var(--success-color);
    color: var(--light-text);
}

.status-disabled {
    background: var(--error-color);
    color: var(--light-text);
}

.results-title {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.5em;
}

.results-content {
    background: var(--surface-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subdomain-cell {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

.ip-cell {
    font-family: 'Courier New', monospace;
}

/* Category Layout */
.tools-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.tool-category {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-header {
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 10px;
}

/* Tool Cards */
.tool-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .tools-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tools-container {
        grid-template-columns: 1fr;
    }
}

/* HTTP Headers Tool Specific Styles */
.header-name {
    font-weight: bold;
    font-family: monospace;
    color: var(--primary-color);
}

.header-value {
    font-family: monospace;
    word-break: break-all;
}

.results-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

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

/* IP Geolocation Tool Specific Styles */
.geo-label {
    font-weight: bold;
    color: var(--primary-color);
    width: 30%;
}

.geo-value {
    font-family: monospace;
}

.results-table tr:hover {
    background-color: var(--surface-color);
}

/* Base Converter Tool Specific Styles */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.result-box {
    background: var(--surface-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.result-label {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.result-value {
    font-family: monospace;
    background: var(--background-color);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    word-break: break-all;
}

/* Encoder Tool Specific Styles */
.action-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.action-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.action-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
}

.action-option input[type="radio"]:checked {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--surface-color) inset;
}

.action-option input[type="radio"]:hover {
    border-color: var(--accent-color);
}

.action-text {
    color: var(--text-color);
    font-size: 1rem;
}

/* Rest of your existing encoder styles */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

/* Welcome Modal Styles */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.welcome-modal-content {
    background-color: var(--surface-color);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(230, 0, 0, 0.3);
    border: 1px solid var(--primary-color);
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
    animation: modalFadeIn 0.5s ease-in-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
    padding: 1rem 0;
    position: relative;
    border-bottom: 1px solid rgba(230, 0, 0, 0.3);
    padding-bottom: 2rem;
}

.modal-logo img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(230, 0, 0, 0.7));
    margin: 0;
}

.modal-logo h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin: 0;
    padding: 0;
    background: none;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(230, 0, 0, 0.5);
    display: inline-block;
    text-align: left;
    position: relative;
}

.modal-logo h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: none;
    border-radius: 3px;
}

.modal-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section h3 i {
    color: var(--primary-color);
}

#accept-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
}

#accept-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .modal-sections {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .modal-sections {
        grid-template-columns: repeat(2, 1fr);
    }
    .welcome-modal-content {
        margin: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-sections {
        grid-template-columns: 1fr;
    }
}

.social-icons a i {
    position: relative !important;
    z-index: 2 !important;
    color: inherit !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: rgba(240, 240, 240, 0.7);
}

/* IMPORTANT: Social icon overrides to fix hover visibility */
footer .social-icons a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 40px !important;
    height: 40px !important;
    background-color: rgba(20, 20, 20, 0.7) !important;
    color: var(--primary-color) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    font-size: 1.2rem !important;
    border: 1px solid var(--primary-color) !important;
    text-decoration: none !important;
    position: static !important;
    overflow: visible !important;
}

footer .social-icons a:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.3) !important;
}

footer .social-icons a i {
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* New footer social icons - completely new implementation */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social .social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    color: #e60000;
    border-radius: 50%;
    font-size: 1.2rem;
    border: 1px solid #e60000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social .social-link:hover {
    background-color: #e60000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.3);
}

.footer-social .social-link:hover i {
    color: #ffffff;
}

.footer-social .social-link i {
    color: #e60000;
    transition: color 0.3s ease;
}

@media (max-width: 600px) {
    .modal-logo {
        flex-direction: row;
        gap: 10px;
    }
    
    .modal-logo img {
        width: 50px;
    }
    
    .modal-logo h1 {
        font-size: 1.8rem;
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

.mobile-menu-toggle i {
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active {
    color: var(--accent-color);
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .nav-wrapper {
        position: relative;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--surface-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        z-index: 99;
        border-radius: 0 0 5px 5px;
        border-top: 2px solid var(--accent-color);
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}