
/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #0e2433, #112d45); /* Improved depth */
    color: #fff;
    line-height: 1.6;
}

/* HEADER */
header {
    background: rgba(15, 38, 56, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(255, 255, 255, .08);
    flex-wrap: wrap;
}

.logo-circle {
    width: 60px;
    height: 60px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

nav a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-size: .95rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

nav a:hover {
    color: #4db7ff;
}

/* MAIN TOOL SECTION */
.tool4social-main {
    background: linear-gradient(135deg, #1b3655, #0e2433);
    text-align: center;
    padding: 50px 20px;
}

.tool-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.tool-title.active {
    opacity: 1;
    transform: translateY(0);
}

.tool-title .highlight {
    color: #4db7ff;
}

.tool-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 30px;
    min-height: 24px;
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tool-subtitle.active {
    opacity: 1;
    transform: translateY(0);
}

/* TOOL OPTIONS - 5 TOOLS MAIN */
.tool-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tool-btn {
    background: rgba(255, 255, 255, .05);
    color: #e5e5e5;
    border: none;
    padding: 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    font-size: 0.9rem;
}

.tool-btn.active {
    background: linear-gradient(135deg, #4db7ff, #6e57ff);
    color: #fff;
    box-shadow: 0 10px 30px rgba(77, 183, 255, .35);
}

.tool-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(77, 183, 255, .4);
}

/* INPUT */
.input-row {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .08);
    border-radius: 25px;
    overflow: hidden;
    transition: background 0.3s ease;
    position: relative;
    margin-top: 20px;
}

.input-row input {
    flex: 1;
    padding: 14px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.95rem;
}
/* custom focus indicator (preferred for keyboard users) */
.input-row input:focus-visible {
  outline: 2px solid #66b2ff;
  outline-offset: 2px;
}

/* fallback for older browsers */
.input-row input:focus {
  box-shadow: 0 0 0 3px rgba(102, 178, 255, 0.7);
}

.input-row input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    transition: opacity 0.4s ease;
}

.input-row button {
    background: linear-gradient(135deg, #4db7ff, #6e57ff);
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    transition: opacity 0.3s ease;
}

.input-row button:hover {
    opacity: 0.9;
}

/* INPUT ERROR MESSAGE */
.input-error {
    color: #ff4d4d;
    font-size: 0.85rem;
    text-align: left;
    margin-top: 6px;
    padding-left: 10px;
    position: absolute;
    bottom: -20px;
    animation: shake 0.2s ease-in-out 2;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

/* TOOL SECTIONS */
.tool-section {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    margin-top: 20px;
}

.tool-section.active {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* WHY CHOOSE SECTION */
.features-section {
    background: linear-gradient(135deg, #173a68, #0e2433);
    padding: 50px 20px;
    text-align: center;
}

.features-section h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, .03);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}

.feature-card .icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover .icon {
    transform: rotate(10deg) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.icon.safe { background: #19d195; }
.icon.lightning { background: #ffbe2e; }
.icon.mobile { background: #ff7ce5; }

.feature-card .icon i {
    color: #fff;
    font-size: 22px;
}

/* FOOTER */
footer {
    background: rgba(18, 59, 78, 1);
    padding: 40px 20px;
    color: #d7d9ec;
    font-size: .85rem;
    text-align: center;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    align-items: center;
}

.footer-links-group a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-size: .8rem;
    transition: color 0.3s ease;
}

.footer-links-group a:hover {
    color: #4db7ff;
}

footer p {
    font-size: .7rem;
    opacity: .7;
    margin-top: 15px;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tool-title { font-size: 1.8rem; }
    .tool-options { grid-template-columns: 1fr 1fr; }
    .feature-cards { grid-template-columns: 1fr; }
    nav { gap: 5px; }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        padding: 10px;
    }

    nav {
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }

    .tool-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tool-btn {
        width: 100%;
        padding: 12px;
        box-sizing: border-box;
    }

    .input-row {
        flex-direction: column;
        background: transparent;
    }

    .input-row input {
        border-radius: 20px;
        margin-bottom: 10px;
        background: rgba(255, 255, 255, .08);
        padding: 12px;
    }

    .input-row button {
        border-radius: 20px;
        width: 100%;
    }

    .features-section {
        padding: 30px 15px;
    }
}