/* Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4%;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Left side (company name) */
.nav-left .company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Right side (links) */
.nav-right {
    display: flex;
    gap: 17px;
}

.nav-right a {
    color: #1f2937;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s ease;
}

.nav-right a:hover {
    color: #0d47a1;
    font-weight: 600;
}
.hamburger{
    display:none;
    flex-direction:column;
    cursor:pointer;
    gap:5px;
}

.hamburger span{
    width:25px;
    height:3px;
    background:#333;
    transition:0.3s;
}

/* ===== MOBILE ===== */

@media (max-width:755px){
.hamburger{
    display:flex;
    order:1;
}
.nav-right{
    position:fixed;
    top:-26px;
    right:-260px;
    width:260px;
    height:100vh;
    background:white;

    display:flex;
    flex-direction:column;

    padding-top:80px;
    padding-left:30px;
    gap:20px;

    transition:left 0.35s ease;
    box-shadow:2px 0 10px rgba(0,0,0,0.15);
}

/* open menu */

.nav-right.active{
    right: 0;
    margin-top: 18%;
}

.hamburger{
    display:flex;
}

}

/* Responsive Navbar */


/* Hero Section */
.hero {
    padding: 140px 10%;
    text-align: center;
    background: linear-gradient(135deg, #0d47a1, #3b82f6);
    color: #ffffff;
    border-radius: 0 0 50% 50% / 0 0 20% 20%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    position: relative;
}

/* Company Name in Hero */
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #e0f2fe;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 750px;
    margin: auto;
}

/* Sections */
.section {
    padding: 80px 10%;
    text-align: center;
    max-width: 1200px;
    margin: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    margin-top: 40px;
}

/* Section Heading */
.section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 25px;
}

/* Paragraph */
.section p {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 850px;
    margin: auto;
}

/* Services Grid */
.grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Service Card */
.card {
    background: #f1f5f9;
    padding: 25px;
    border-radius: 14px;
    text-align: left;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.card p {
    color: #4b5563;
    font-size: 1rem;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    cursor: pointer;
}


footer {
  background: #0f172a;
  color: #fff;
  padding: 20px 40px;
  font-size: 16px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Right side: icons only */
.footer-right {
  display: flex;
  gap: 15px;
}

.footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.3s;
}

/* Colorful background */
.footer-icon.email-icon {
  background: #0072c6; /* blue */
}

.footer-icon.whatsapp-icon {
  background: #25D366; /* green */
}

/* Hover effect */
.footer-icon:hover {
  transform: scale(1.1);
}

/* Responsive: stack on mobile */
@media (max-width:755px){
  .footer-container{
    align-items: anchor-center;
    gap: 2px;
  }
  .footer-right {
  display: flex;
  gap: 15px;
}
footer {
    background: #0f172a;
    color: #fff;
    padding: 16px 17px;
    font-size: 8px;
}
}

/* Responsive Hero Text */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero h2 {
        font-size: 1.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

/* Image to Text Tool Styling */
.section form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.section form input[type="file"] {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    cursor: pointer;
    transition: 0.3s ease;
}

.section form input[type="file"]:hover {
    border-color: #0d47a1;
}

.section form button {
    padding: 12px 25px;
    background: #0d47a1;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
}

.section form button:hover {
    background: #1565c0;
}

textarea {
    width: 100%;
    max-width: 800px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    resize: vertical;
    margin-top: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Section Styling Overrides */
.section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    font-size: 16px;
}

.email-icon {
    background: #0072c6; /* Blue for email */
}

.whatsapp-icon {
    background: #25D366; /* WhatsApp green */
}

/* Link style */
.contact-item a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

/* Optional hover effect */
.contact-item a:hover {
    text-decoration: underline;
}

.section p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .section form input[type="file"] {
        max-width: 100%;
    }

    textarea {
        max-width: 100%;
    }
}

/* blog html css */
.blogs-container{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:20px;
}

.blog-card{
border:1px solid #ddd;
padding:20px;
border-radius:8px;
background:#fff;
}

.blog-title{
font-size:20px;
margin-bottom:10px;
}

.blog-short{
color:#555;
}

.blog-full{
display:none;
margin-top:10px;
color:#333;
}

.blog-card button{
margin-top:10px;
padding:8px 12px;
border:none;
background:#007bff;
color:white;
border-radius:4px;
cursor:pointer;
}
/* ===== LOADER BACKGROUND ===== */
#global-loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #0f172a; /* dark premium theme */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* ===== HIDE STATE ===== */
#global-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ===== LOGO STYLE ===== */
.loader-content .logo {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.loader-content .logo span {
    background: #0017ff;
    color: rgb(255, 255, 255);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ===== SPINNER ===== */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== TEXT ===== */
.loader-content p {
    color: #ccc;
    font-size: 14px;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 600px) {
    .loader-content .logo {
        font-size: 22px;
    }

    .spinner {
        width: 40px;
        height: 40px;
    }
}
/* ===== FULL OVERLAY ===== */
#tool-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* semi transparent dark */
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* ===== BOX ===== */
.loader-box {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ===== SPINNER ===== */
.loader-box .spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #eee;
    border-top: 4px solid #111;
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ===== TEXT ===== */
.loader-box p {
    font-size: 14px;
    color: #333;
}


/* Admin login dashboard css  */



.login-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 400px;
    background: #111827;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #1e293b;
}

.login-box h1 {
    color: #3b82f6;
    margin-bottom: 10px;
}

.login-box h2 {
    margin-bottom: 30px;
}

.login-box input {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: white;
}

.login-box button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.dashboard-container {
    padding: 40px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.topbar h1 {
    color: #3b82f6;
}

.topbar a {
    color: white;
    text-decoration: none;
    background: #ef4444;
    padding: 10px 20px;
    border-radius: 8px;
}

.editor-box {
    background: #ebeff7;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.editor-box input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: white;
}

#editor {
    height: 300px;
    background: white;
    color: black;
    margin-bottom: 20px;
}

.editor-box button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    cursor: pointer;
}

.posts-section {
    background: #111827;
    padding: 30px;
    border-radius: 15px;
}

.posts-section h2 {
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 15px;
    border-bottom: 1px solid #1e293b;
    text-align: left;
}

.edit-btn {
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
}

.delete-btn {
    background: #ef4444;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
}

.alert {
    background: #22c55e;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}