:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --background-color: #f0f5ff;  /* Light blue tint background */
    --text-color: #1e293b;
    --text-light: #64748B;
    --gradient-start: #EEF2FF;
    --gradient-end: #F8FAFC;
    --card-background: #ffffff;
    --hover-shadow: 0 8px 16px rgba(37, 99, 235, 0.1);
    --hero-gradient: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
    --hero-overlay: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1));  /* Light overlay */
    --hero-text-gradient: linear-gradient(135deg, #FFFFFF 0%, #F0F9FF 100%);  /* Brighter text gradient */
    --primary-gradient: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --card-hover-gradient: linear-gradient(135deg, #F8FAFC 0%, #F0F9FF 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background: var(--primary-gradient);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Basic nav styles */
nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    height: 100%;
    padding: 0;
    margin: 0;
}

.nav-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(125.95deg, white 0%, #20ce10 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    animation: gradient 3s ease infinite;
    background-size: 200% 200%;
}

.logo-text::before {
    display: none;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Navigation links */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

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

/* Mobile nav toggle button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1000;
    width: 30px;
    height: 30px;
}

/* Hamburger icon */
.nav-toggle .hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    left: 0;
    transition: all 0.3s ease;
}

.nav-toggle .hamburger::before {
    top: -8px;
}

.nav-toggle .hamburger::after {
    bottom: -8px;
}

/* Hamburger animation */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Main Content Styles */
main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.home-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tools-section {
    background: var(--card-background);
    border-radius: 2rem;
    padding: 4rem 2rem;
    margin: 3rem 0;
    box-shadow: var(--card-shadow);
}

.tools-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    font-weight: 700;
}

.tools-category {
    margin-bottom: 4rem;
}

.tools-category:last-child {
    margin-bottom: 0;
}

.tools-category h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    font-weight: 600;
}

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

.tool-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-card:hover {
    transform: translateY(-8px);
    background: var(--card-hover-gradient);
    border-color: var(--primary-color);
    box-shadow: var(--hover-shadow);
}

.tool-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tool-icon i {
    font-size: 1.8rem;
    color: white;
}

.tool-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 1rem 0;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.tool-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
}

/* Footer Styles */
footer {
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.75rem 1rem 0.5rem 1rem;
    font-size: 1rem;
}

.footer-privacy-link {
    color: #555;
    text-decoration: none;
    margin-left: auto;
    font-size: 1rem;
    transition: color 0.2s;
}

.footer-privacy-link:hover {
    color: #2a7ae2;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-privacy-link {
        margin: 0.5rem 0 0 0;
    }
}

/* Footer Links Styles */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
    font-size: 1rem;
}
.footer-links a {
    color: #555;
    text-decoration: none;
    padding: 0 0.25rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #2a7ae2;
    text-decoration: underline;
}
.footer-sep {
    color: #bbb;
    user-select: none;
    font-size: 1.1em;
}
@media (max-width: 600px) {
    .footer-links {
        justify-content: center;
        margin: 0.5rem 0 0 0;
        font-size: 0.98rem;
    }
}

/* Hero Section */
.hero-section {
    background: var(--hero-gradient);
    border-radius: 2rem;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-btn i {
    font-size: 1.2rem;
}

.hero-btn.primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.hero-btn.secondary {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

/* Hero Features */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.feature-item span {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Features Section */
.features-section {
    background: var(--card-background);
    border-radius: 2rem;
    padding: 4rem 2rem;
    margin: 3rem 0;
    box-shadow: var(--card-shadow);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1.5rem;
    background: var(--gradient-start);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Tool Buttons */
.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tool-btn:hover::before {
    left: 100%;
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.tool-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.tool-btn:hover i {
    transform: scale(1.1);
}

/* PDF, Image & Calculator Tool Buttons */
.pdf-tool-btn,
.calculator-tool-btn,
.image-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pdf-tool-btn::before,
.calculator-tool-btn::before,
.image-tool-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.pdf-tool-btn:hover::before,
.calculator-tool-btn:hover::before,
.image-tool-btn:hover::before {
    left: 100%;
}

.pdf-tool-btn:hover,
.calculator-tool-btn:hover,
.image-tool-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.pdf-tool-btn i,
.calculator-tool-btn i,
.image-tool-btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.pdf-tool-btn:hover i,
.calculator-tool-btn i,
.image-tool-btn:hover i {
    transform: scale(1.1);
}

.pdf-tool-btn,
.calculator-tool-btn,
.image-tool-btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        height: 70px;
        padding: 0 1.5rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary-gradient);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.2rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation for menu items */
    .nav-links.active li:nth-child(1) a { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) a { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) a { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) a { transition-delay: 0.4s; }

    .logo-container {
        gap: 0.3rem;
    }

    .nav-logo {
        height: 60px;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    /* Main Content */
    main {
        padding: 1rem;
    }

    .home-main {
        padding: 1rem;
    }

    .tools-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .tools-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .tools-category h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .tool-card {
        padding: 2rem 1.5rem;
    }

    .tool-card h3 {
        font-size: 1.3rem;
    }

    .tool-card p {
        font-size: 1rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-features {
        gap: 1rem;
    }

    .feature-item {
        padding: 0.5rem 1rem;
    }

    /* Features Section */
    .features-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Footer */
    footer {
        padding: 2rem 1rem 1rem;
        margin-top: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .pdf-tool-btn,
    .calculator-tool-btn,
    .image-tool-btn {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        max-width: 260px;
    }
    .pdf-tool-btn i,
    .calculator-tool-btn i,
    .image-tool-btn i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    /* Navigation */
    .logo-container {
        gap: 0.2rem;
    }

    .nav-logo {
        height: 50px;
    }

    .logo-text {
        font-size: 1.6rem;
    }

    /* Main Content */
    main {
        padding: 0.5rem;
    }

    .home-main {
        padding: 0.5rem;
    }

    .tools-section {
        padding: 1.5rem 0.5rem;
        margin: 1.5rem 0;
    }

    .tools-section h2 {
        font-size: 1.8rem;
    }

    .tools-category h3 {
        font-size: 1.5rem;
    }

    .tools-grid {
        gap: 1rem;
        padding: 0 0.25rem;
    }

    .tool-card {
        padding: 1.5rem 1rem;
    }

    .tool-icon {
        width: 48px;
        height: 48px;
    }

    .tool-icon i {
        font-size: 1.4rem;
    }

    .tool-card h3 {
        font-size: 1.2rem;
    }

    .tool-card p {
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 1.5rem 0.5rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .pdf-tool-btn,
    .calculator-tool-btn,
    .image-tool-btn {
        padding: 0.75rem 1rem;
        font-size: 0.98rem;
        max-width: 98vw;
    }
    .pdf-tool-btn i,
    .calculator-tool-btn i,
    .image-tool-btn i {
        font-size: 1rem;
    }

    /* Features Section */
    .features-section {
        padding: 1.5rem 0.5rem;
    }

    .features-section h2 {
        font-size: 1.8rem;
    }

    /* Footer */
    footer {
        padding: 1.5rem 0.5rem 1rem;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .footer-section ul li {
        font-size: 0.9rem;
    }
}

/* Additional responsive breakpoints */
@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 1240px) {
    .home-main {
        padding: 1.5rem;
    }

    .tools-category,
    .features-section {
        padding: 2rem 1.5rem;
    }
}

.ad-container {
    margin: 20px 0;
    text-align: center;
}
