/* =======================================
   GENERAL RESET
======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

/* =======================================
   HEADER / NAVIGATION
======================================= */
header {
    background: #1a73e8;
    color: #fff;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

/* MENU UL */
header nav ul.menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul.menu li {
    position: relative;
}

header nav ul.menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 5px;
    display: block;
}

header nav ul.menu li a:hover,
header nav ul.menu li a.active {
    color: #ffeb3b;
}

/* SUB-MENU */
.sub-menu {
    display: none;
    position: absolute;
    background: #0d47a1;
    top: 35px;
    left: 0;
    list-style: none;
    border-radius: 5px;
    overflow: hidden;
    min-width: 180px;
    z-index: 999;
}

.sub-menu li a {
    padding: 10px 15px;
    color: #fff;
    font-weight: 400;
}

.sub-menu li a:hover {
    background: #1565c0;
}

/* OPEN CLASS FOR SUBMENU */
.has-sub.open .sub-menu {
    display: block;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* HERO */
.hero {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1200px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
}

/* CONTENT */
.content {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.content p {
    margin-bottom: 20px;
    font-size: 1rem;
}

/* TOOLS GRID */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.tool-card {
    display: block;
    background: #fff;
    padding: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    color: #1a73e8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.tool-card:hover {
    background: #1a73e8;
    color: #fff;
    transform: translateY(-3px);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 25px 10px;
    background: #1a73e8;
    color: #fff;
    margin-top: 40px;
    border-radius: 5px 5px 0 0;
    font-size: 0.9rem;
}

/* =======================================
   RESPONSIVE
======================================= */
@media (max-width: 1024px){
    header .container {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px){
    .hamburger {
        display: flex;
    }
    nav#mainNav {
        display: none;
        width: 100%;
    }
    nav#mainNav ul.menu {
        flex-direction: column;
        background: #1a73e8;
        border-radius: 5px;
    }
    nav#mainNav ul.menu li {
        width: 100%;
    }
    nav#mainNav ul.menu li a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    .sub-menu {
        position: relative;
        top: 0;
        left: 0;
        background: #1565c0;
        border-radius: 0;
    }
}

@media (max-width: 480px){
    .hero h1 {
        font-size: 1.6rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .tool-card {
        padding: 15px;
        font-size: 0.9rem;
    }
}