/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    padding-top: 100px; /* Prevent content from being hidden under the fixed header */
}

/* Sticky Header */
header {
    background: #007BFF;
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed; /* Make header fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Header Container */
header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
header .logo img {
    height: 40px;
}

/* Hamburger Menu */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.menu-icon.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-icon.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    position: relative; 
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-menu li a:hover {
    color: #ecf0f1;
    transform: scale(1.1); 
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px; 
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ecf0f1, #6dd5ed);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%; 
}

.nav-menu li a:hover {
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3); 
}


/* Mobile Sliding Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: auto;
    background: #007BFF;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    display: none;
}

.nav-menu.active {
    display: flex;
    right: 0;
}

.nav-menu li {
    margin: 15px 0;
}

/* Close Menu Button (X) */
.close-menu {
    font-size: 30px;
    color: white;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1002;
}

.close-menu:hover {
    color: #ecf0f1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .close-menu {
        display: block;
    }
}

@media (min-width: 769px) {
    .menu-icon {
        display: none;
    }

    .nav-menu {
        position: static;
        flex-direction: row;
        display: flex;
        height: auto;
        width: auto;
        background: none;
        box-shadow: none;
    }

    .nav-menu li {
        margin-left: 30px;
    }

    .close-menu {
        display: none;
    }
}




/* IP Lookup Section */
.ip-lookup-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.lookup-form {
    text-align: center;
    margin-bottom: 40px;
}

.lookup-form input {
    padding: 10px;
    width: 60%;
    max-width: 325px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-right: 10px;
}

.lookup-form button {
    padding: 9px 20px; 
    background: linear-gradient(90deg, #2980b9, #6dd5fa);
    color: white;
    font-size: 1.1rem;
    font-weight: bold; 
    border: none;
    border-radius: 8px; 
    cursor: pointer;
    transition: all 0.3s ease; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
}

.lookup-form button:hover {
    background: linear-gradient(90deg, #3498db, #8ec5fc); 
    transform: translateY(-2px); 
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3); 
}

/* IP Details Section */
.ip-details {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ip-details p {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.8;
}

.ip-details p strong {
    color: #2980b9;
}

/* Date and Time Section */
#current-date-time,
#device-date-time {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Footer Styles */
footer {
    background: #202223;
    color: #ffcc00;
    padding: 20px 0;
    text-align: center;
}

footer .footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

footer .footer-links ul li {
    margin: 0 10px;
}

footer .footer-links ul li a {
    text-decoration: none;
    color: #f1f2f3;
    transition: color 0.3s;
}

footer .footer-links ul li a:hover {
    color: #0056b3;
}

footer .footer-social a {
    color: #6c757d;
    margin: 0 5px;
    text-decoration: none;
    transition: color 0.3s;
}

footer .footer-social a:hover {
    color: #007BFF;
}

footer p {
    margin-top: 15px;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    footer {
        padding: 15px 0;
    }

    footer .footer-links ul {
        flex-direction: column;
        align-items: center;
    }

    footer .footer-links ul li {
        margin: 5px 0;
    }

    footer p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    footer .footer-links ul {
        padding: 10px;
    }

    footer .footer-social a {
        margin: 0 3px;
    }

    footer p {
        font-size: 12px;
    }
}

/* Social Links Styling */
footer .footer-social {
    margin-top: 15px;
}

footer .footer-social a {
    color: #f1f2f3;
    margin: 0 10px;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s;
}

footer .footer-social a:hover {
    color: #0056B9;
}


/* About Section */
.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(auto - 50px);
    padding: 10px;
    margin:20px auto;
    background-color: #f4f4f4;
}

.about-content {
    text-align: left;
    max-width: 1200px;
    background-color: white;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    font-size: 2rem;
    text-align: center;
    text-decoration: underline;
    margin-bottom: 20px;
    color: #2980b9;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

/* Map Section */
#map {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq-section {
    background: #fff;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
    font-size: 2em;
    color: #333;
    text-decoration: underline;
    margin-bottom: 20px;
    text-align: center;
}

.faq {
    margin-bottom: 15px;
}

.faq h3 {
    font-size: 1.2em;
    color: #007bff;
    margin-bottom: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq h3:hover {
    color: #0056b3;
}

.faq p {
    font-size: 1em;
    color: #555;
    line-height: 1.5;
    margin: 0;
    display: inline; /* Initially hidden */
}

.faq.active p {
    display: block; /* Show when FAQ is active */
}

/* FAQ List Styling */
.faq ul {
    margin: 10px 0;
    padding-left: 20px;
    list-style-type: disc; /* Default bullet points */
}

.faq ul li {
    font-size: 1em;
    color: #444;
    margin-bottom: 8px;
    line-height: 1.5;
    padding-left: 5px;
}

.faq ul li::before {
    content: "✔";  /* Custom checkmark bullet */
    color: #E80225;
    font-weight: bold;
    margin-right: 8px;
}

.faq ol {
    margin: 10px 0;
    padding-left: 20px;
    list-style-type: decimal; /* Numbers (1, 2, 3...) */
}

.faq ol li {
    font-size: 1em;
    color: #444;
    margin-bottom: 8px;
    line-height: 1.5;
    padding-left: 5px;
}

/** Start Tools Section**/
/* Hero Section */
.hero-section {
    background: #F4F4F4;
    color: white;
    text-align: center;
    padding: 15px 5px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #38B7FE;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #433E59;
}


.search-bar {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-bar input {
    padding: 10px;
    font-size: 16px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-bar button {
    padding: 10px 15px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-left: 10px;
}

.search-bar button:hover {
    background-color: #0056b3;
}


/* Tools Section */ 
.tools {
    background: #fff;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tools h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #4e54c8;
}

/* Grid Layout for Tools */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Default: 1 tool per row */
    gap: 10px; /* Vertical and horizontal gap between tools */
    justify-items: center;
    margin-top: 20px;
    padding: 20px 5px; /* Adjusted padding to make it more flexible */
}

/* Tool Card Styling */
.tool-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 250px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.tool-item a {
    display: block; /* Make anchor tag block-level to cover the entire tool item */
    color: inherit; /* Inherit color from parent to avoid default anchor styles */
    text-decoration: none; /* Remove underline from link */
}

.tool-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tool-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
}

.tool-item h3 {
    font-size: 1.2rem;
    color: #202223;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 767px) {
    .tool-grid {
        grid-template-columns: 1fr; /* 1 tool per row on mobile devices */
        gap: 20px; /* Increased gap for better spacing on small screens */
        padding: 20px 10px; /* Adjusted padding for better alignment */
    }

    .tool-item {
        max-width: 100%; /* Ensure the item uses the available space */
    }

    .tools h2 {
        font-size: 1.5rem; /* Smaller heading on mobile */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .tool-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 tools per row on tablets */
        gap: 15px; /* Horizontal and vertical gap on tablet view */
        padding: 20px 10px; /* Adjust padding for tablets */
    }

    .tool-item {
        max-width: 220px; /* Ensure cards don't get too large on tablets */
    }

    .tools h2 {
        font-size: 1.8rem; /* Slightly smaller heading on tablets */
    }
}

@media (min-width: 1024px) {
    .tool-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 tools per row on desktops */
        gap: 20px; /* Horizontal and vertical gap on desktop view */
        padding: 20px 40px; /* Side padding for desktop */
    }

    .tool-item {
        max-width: 250px; /* Maximum width for tool items */
    }

    .tools h2 {
        font-size: 2rem; /* Default heading size on desktops */
    }
}

/** End Tools Section**/