/* ---- Base Styles ---- */
:root {
    --primary-orange: #FF7A00;
    --primary-color: #f57c00;
    --light-orange: #FCECDD;
    --secondary-color: #EFF5F5;
    --card-bg: #FCECDD;
    --text-dark: #000000;
    --text-color: #333;
    --text-light: #666666;
    --white: #ffffff;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius: 20px;
    --padding-sm: 8px;
    --padding-md: 16px;
    --padding-lg: 24px;
    --transition: 0.3s ease-in-out;
    --card-hover-scale: 1.05;
    --card-transition: transform 0.3s ease;
    --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
    --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
    --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 5px 5px 0 5px;
}

/* Hide scrollbar but keep functionality */
::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

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

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.cta-button {
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #e06e00;
    transform: translateY(-2px);
}

/* ---- Header ---- */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

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

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: var(--primary-orange);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-orange);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ---- Hero Section ---- */
.hero {
    padding: 0;
    text-align: center;
    background-color: var(--white);
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 0;
    color: var(--primary-orange);
}

.hero h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

.search-container {
    max-width: 40px;
    position: relative;
    border-radius: 100px;
    overflow: hidden;
    box-shadow: none;
    transition: max-width 0.5s ease;
    display: flex;
    justify-content: flex-end;
    margin: 5px;
    align-self: flex-start;
}

.search-container.active {
    max-width: 350px;
    border: 1px solid var(--primary-orange);
}

.search-container input {
    width: 100%;
    padding: 10px 20px;
    border: none;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background-color: transparent;
    box-shadow: none;
    height: 40px;
    color: var(--text-light);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.search-container.active input {
    opacity: 1;
    visibility: visible;
}

.search-container input:focus {
    outline: none;
}

.search-container input::placeholder {
    color: var(--text-light);
    font-size: 14px;
}

.search-container button {
    min-width: 40px;
    height: 40px;
    background-color: var(--primary-orange);
    border: none;
    color: var(--white);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.search-container button i {
    font-size: 18px;
}

/* ---- Tool Cards ---- */
.tool-categories {
    padding: 30px;
    background-color: #ffffff;
}

.tool-categories h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.tools-grid,
.all-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.tool-card {
    margin: 0px 2px 0px 2px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    color: inherit;
    transition: var(--card-transition) !important;
    box-shadow: none !important;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.tool-card:hover {
    transform: scale(var(--card-hover-scale));
    background-color: #f57c00;
}

/* Disable hover effect for "Convert to JPG" */
.tool-card[href*="jpg-to-png.html"]:hover {
    transform: none;
    background-color: var(--card-bg);
}

.tool-card[href*="jpg-to-png.html"]:hover .tool-icon {
    background-color: var(--primary-orange);
    color: white;
}

.tool-card[href*="jpg-to-png.html"]:hover h3,
.tool-card[href*="jpg-to-png.html"]:hover p {
    color: var(--text-dark);
}

.tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 20px;
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    background-color: var(--white);
    color: var(--primary-orange);
}

.tool-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
    transition: var(--transition);
}

.tool-card:hover h3 {
    color: var(--white);
}

.tool-card p {
    font-size: 14px;
    color: #666666;
    margin-top: 0;
    transition: 0.3s ease-in-out;
}

.tool-card:hover p {
    color: white;
}

#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #FF7A00;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
}

#scrollTopBtn:hover {
    background-color: #e06e00;
    transform: translateY(-5px);
}

/* ---- Tool Categories ---- */
.category-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-tabs {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.category-tab {
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    margin: 5px;
    box-shadow: none;
}

.category-tab.active,
.category-tab:hover {
    background-color: var(--primary-orange);
    color: var(--white);
    transform: scale(1.05);
}

/* ---- FAQ Section ---- */
.faq-section {
    padding: 80px 0 0 0;
    background-color: var(--white);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

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

.faq-item {
    margin-bottom: 20px;
    border: none;
    border-radius: 100px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-radius: 20px;
}

.faq-item:not(.active) .faq-question {
    border-radius: 100px;
}

.faq-item:hover {
    transform: translateY(0);
}

.faq-question {
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--primary-orange);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    height: 54px;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 200;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

.faq-question i {
    transition: var(--transition);
    color: var(--white);
}

.faq-item.active .faq-question {
    border-radius: 20px 20px 0 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background-color: var(--light-orange);
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    border-radius: 0 0 20px 20px;
    font-size: 16px;
}

.faq-item.active .faq-answer {
    padding: 20px;
    height: auto;
    transform: scaleY(1);
    opacity: 1;
}

/* ---- Custom Tool CTA ---- */
.custom-tool-cta {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-orange);
    color: var(--white);
}

.custom-tool-cta h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.custom-tool-cta p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.custom-tool-cta .cta-button {
    background-color: var(--white);
    color: var(--primary-orange);
}

.custom-tool-cta .cta-button:hover {
    background-color: #f0f0f0;
}

/* ---- Footer ---- */
footer {
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    border-radius: 30px 30px 0 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-logo {
    order: 1;
}

.footer-links {
    order: 2;
}

.social-links {
    order: 3;
}

.footer-logo h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--white);
    opacity: 0.8;
}

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

.social-links a {
    color: var(--white);
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-links ul {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--white);
    font-weight: 500;
}

.footer-links a:hover {
    opacity: 0.8;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.copyright p {
    font-size: 14px;
    opacity: 0.8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #e06e00;
    transform: translateY(-5px);
}

.back-to-top.over-footer {
    background-color: var(--white);
    color: var(--primary-orange);
}

.back-to-top.over-footer:hover {
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ---- About Page ---- */
.about-hero {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-orange);
    color: var(--white);
}

.about-hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.about-hero .subtitle {
    font-size: 20px;
    opacity: 0.8;
}

.about-content {
    padding: 0px;
}

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: start;
}

.about-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-orange);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.skills-container {
    margin-top: 30px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    font-weight: 500;
    margin-bottom: 8px;
}

.skill-bar {
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-orange);
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.experience-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.experience-section h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 32px;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--primary-orange);
}

.timeline-item {
    padding: 20px 0;
    position: relative;
    width: 100%;
    display: flex;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-orange);
    border: 4px solid white;
}

.timeline-content {
    width: 45%;
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-orange);
}

.timeline-content .company {
    font-weight: 500;
    margin-bottom: 5px;
}

.timeline-content .period {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

/* ---- Contact Page ---- */
.contact-hero {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-orange);
    color: var(--white);
}

.contact-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-content {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    padding: 40px;
    border-radius: var(--border-radius-md);
}

.contact-form h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--primary-orange);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    padding: 40px;
}

.contact-info h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--primary-orange);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 24px;
    color: var(--primary-orange);
    margin-right: 20px;
}

.info-details h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.info-details p {
    color: var(--text-light);
}

.social-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-social-links {
    display: flex;
    gap: 15px;
}

.contact-social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    transition: var(--transition);
}

.contact-social-links a:hover {
    background-color: var(--primary-orange);
    color: white;
}

/* ---- Responsive Design ---- */
@media (max-width: 1024px) {
    .tools-grid,
    .all-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        text-align: center;
    }
    
    .about-image img {
        max-width: 400px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline-content {
        width: 44%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .category-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-container {
        margin-top: 20px;
        align-self: flex-end;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links ul {
        justify-content: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero h2 {
        font-size: 20px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start !important;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
}

@media (max-width: 480px) {
    .tools-grid,
    .all-tools-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0;
    }

    .category-tabs {
        flex-direction: column;
        align-items: center;
    }

    .category-tab {
        width: 100%;
        max-width: 300px;
    }
}

/* ---- Policy & Content Pages ---- */
.content-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.content-section .container {
    max-width: 800px;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.content-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-orange);
}

.content-section h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

.content-section ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 10px;
}

.content-section a {
    color: var(--primary-orange);
    text-decoration: underline;
}

.content-section a:hover {
    text-decoration: none;
}

.content-section .content-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.content-section .content-header i {
    font-size: 28px;
    color: var(--primary-orange);
    background-color: var(--light-orange);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-section h2 {
    margin-bottom: 0;
}

.content-section .section-block {
    margin-top: 30px;
}

.content-section .section-block h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section .section-block h3 i {
    font-size: 18px;
    color: var(--primary-orange);
    width: 25px;
    text-align: center;
}

.callout {
    background-color: var(--light-orange);
    border-left: 4px solid var(--primary-orange);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.callout p {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0;
}

/* Redesigned Hero for Policy Pages */
.hero-simple {
    background-color: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.hero-simple h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-simple p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Policy Page Highlights */
.policy-highlights {
    background-color: var(--white);
    padding: 40px;
    margin: -60px auto 0;
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    max-width: 900px;
}

.policy-highlights h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

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

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.highlight-item i {
    font-size: 24px;
    color: var(--primary-orange);
    margin-top: 5px;
}

.highlight-item h4 {
    margin-bottom: 5px;
}

.highlight-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.how-to-use .step-content p {
    color: var(--text-light);
} 

/* Responsive styles for FAQ section */
@media (max-width: 1024px) {
    .faq-question h3 {
        font-size: 15px;
    }
    
    .faq-container {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 14px;
    }
    
    .faq-question {
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .faq-question h3 {
        font-size: 13px;
    }
    
    .faq-question {
        padding: 0 12px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .faq-question h3 {
        font-size: 12px;
    }
    
    .faq-question {
        padding: 0 10px;
        height: 46px;
    }
    
    .faq-question i {
        font-size: 12px;
    }
}

@media (max-width: 375px) {
    .faq-question h3 {
        font-size: 11px;
    }
    
    .faq-question {
        padding: 0 8px;
        height: 44px;
    }
} 