
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;900&display=swap');

:root {
    --primary-color: oklch(65.9% 0.22 263.35);
    --secondary-color: oklch(78.91% 0.136 264.25);
    --background-color: oklch(98.1% 0.012 264.25);
    --text-color: oklch(21.5% 0.018 264.88);
    --card-background: oklch(99.64% 0.003 264.25);
    --shadow-color: oklch(65.9% 0.22 263.35 / 25%);
    --glow-color: oklch(78.91% 0.136 264.25 / 50%);
    --noise-bg: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    background-image: var(--noise-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: transparent;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.menu-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 1.8em;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
}

h1 {
    margin: 0;
    font-size: 3.5em;
    font-weight: 900;
    color: var(--primary-color);
}

main {
    padding: 20px;
    transition: margin-left 0.3s;
    flex-grow: 1;
}

main.content-shifted {
    margin-left: 250px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.side-nav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: var(--card-background);
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.side-nav.open {
    width: 250px;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 1.2em;
    color: var(--text-color);
    display: block;
    transition: 0.3s;
}

.side-nav a:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.tools-section {
    margin-top: 20px;
}

.tools-section h3 {
    padding: 10px 15px;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-color);
}

#hero {
    text-align: center;
    margin-bottom: 60px;
}

#hero h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.2em;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
    animation: glow 2s infinite alternate;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

@keyframes glow {
    from {
        box-shadow: 0 5px 15px var(--shadow-color);
    }
    to {
        box-shadow: 0 5px 25px var(--glow-color), 0 0 10px var(--glow-color);
    }
}

#tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background-color: var(--card-background);
    border: 1px solid oklch(93.89% 0.006 264.25);
    border-radius: 16px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

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

.tool-card-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tool-card i {
    font-size: 2em;
    color: #fff;
}

.tool-card h3 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
}

.tool-card p {
    font-size: 1em;
    flex-grow: 1;
    margin-bottom: 20px;
}

.category-badge {
    align-self: flex-start;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
}

.tool-container {
    background-color: var(--card-background);
    border: 1px solid oklch(93.89% 0.006 264.25);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.tool-container label {
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.tool-container input[type="number"] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid oklch(93.89% 0.006 264.25);
    font-size: 1em;
    margin-bottom: 20px;
}

.tool-container button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

#password {
    background-color: oklch(96.3% 0.012 264.25);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-family: monospace;
    font-size: 1.2em;
    word-wrap: break-word;
}

footer {
    background-color: transparent;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

.contact-card {
    max-width: 600px;
    margin: 40px auto;
    padding: 50px;
    background-color: var(--card-background);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid oklch(93.89% 0.006 264.25);
    transform: translateY(-10px);
    animation: fadeInUp 0.5s ease-out forwards;
}

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

.contact-card h2 {
    font-size: 2.8em;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-card p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: oklch(96.3% 0.012 264.25);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background-color: oklch(93.89% 0.006 264.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}


.contact-info-item i {
    font-size: 1.5em;
    color: var(--primary-color);
}

.contact-info-item a {
    font-size: 1.2em;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
}

.social-links-contact {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links-contact a {
    color: var(--text-color);
    font-size: 1.8em;
    transition: all 0.3s ease;
}

.social-links-contact a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

header nav {
    margin-top: 20px;
}

header nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.1em;
    transition: color 0.3s;
}

header nav a:hover,
header nav a.active {
    color: var(--primary-color);
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Dropdown Button */
.dropbtn {
  background-color: transparent;
  color: var(--text-color);
  padding: 10px 15px;
  font-size: 1.2em;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: static;
  background-color: oklch(96.3% 0.012 264.25);
  min-width: 160px;
  box-shadow: none;
  z-index: 1;
  padding-left: 15px;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: var(--text-color);
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  font-size: 1.1em;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: var(--secondary-color);
    color: #fff;
}


/* Responsive Design */

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    #tools {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 25px;
    }
    .container {
        max-width: 720px;
    }
}


@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    header {
        padding: 30px 20px;
    }

    #hero h2 {
        font-size: 2.2rem;
    }
    
    #hero p {
        font-size: 1.1em;
    }
    
    .container {
        padding: 0 20px;
        max-width: 540px;
    }

    #tools {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    main.content-shifted {
        margin-left: 0; /* No margin on smaller screens */
    }

    .contact-card {
        padding: 30px;
        margin: 20px;
    }
    
    .contact-card h2 {
        font-size: 2em;
    }
}

@media (max-width: 576px) {
    .menu-icon {
        left: 15px;
        top: 50%;
    }
    
    h1 {
      font-size: 2em;
      text-align: center;
      padding-left: 30px; /* space for menu icon */
    }

    main {
        padding: 15px;
    }
    
    .side-nav.open {
        width: 100%;
    }
    
    main.content-shifted {
        margin-left: 0;
    }

    #hero {
        margin-bottom: 40px;
    }
    
    #hero h2 {
        font-size: 1.8rem;
    }

    #hero p {
        font-size: 1em;
    }

    .cta-button {
        font-size: 1em;
        padding: 12px 25px;
    }
    
    #tools {
        gap: 15px;
    }

    .tool-card {
        padding: 20px;
    }
    
    .tool-card h3 {
        font-size: 1.2em;
    }

    .footer-links a {
        margin: 0 5px;
        font-size: 0.9em;
    }
    header nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}
