/* ======================================================================
   A Z Softwares Limited - THE ULTIMATE STABLE MASTER
   ====================================================================== */

:root {
    --primary-dark: #0d1117; 
    --secondary-dark: #161b22;
    --accent-electric: #00bcd4; 
    --text-light: #f0f6fc; 
    --border-dark: #30363d;
}

body { 
    font-family: 'Segoe UI', Tahoma, sans-serif; 
    margin: 0; padding: 0; 
    background-color: var(--primary-dark); 
    color: var(--text-light); 
    overflow-x: hidden; 
}

/* --- HEADER & NAVIGATION (Hover Slide) --- */
header { 
    background-color: rgba(13, 17, 23, 0.98); 
    padding: 15px 5%; 
    position: sticky; top: 0; z-index: 9999; 
    display: flex; flex-direction: column; align-items: center;
    border-bottom: 1px solid var(--border-dark);
}
.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-image { height: 50px; width: auto; }
header h1 { font-size: 1.8rem; margin: 0; font-weight: 700; color: #fff; }

nav { 
    display: flex; gap: 20px; justify-content: center;
    max-height: 0; opacity: 0; overflow: hidden; 
    transition: all 0.5s ease-in-out;
}
header:hover nav { max-height: 100px; opacity: 1; margin-top: 15px; }
nav a { color: #fff; text-decoration: none; font-weight: 600; padding: 5px 12px; transition: 0.3s; }
nav a:hover { color: var(--accent-electric); text-shadow: 0 0 10px var(--accent-electric); }

/* --- केवल टाइपराइटर और हीरो सेक्शन के लिए सुधार --- */
.hero { 
    padding: 100px 20px; 
    text-align: center; 
    /* बैकग्राउंड को पूरी तरह पारदर्शी (Transparent) बनाना */
    background: transparent !important; 
    background-color: transparent !important;
    position: relative;
    z-index: 10;
}

#typewriter-text, .typing-text-area {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--accent-electric); /* टेक्स्ट का रंग */
    text-shadow: 0 0 15px rgba(0, 188, 212, 0.6); /* हल्का ग्लो ताकि सितारों पर साफ़ दिखे */
}

/* --- BUTTONS (Fixed Visibility) --- */
.cta-button, .cta-btn, .tool-btn, .form-button { 
    display: inline-block; padding: 16px 40px; 
    background-color: var(--accent-electric) !important; color: #000 !important; 
    text-decoration: none; font-weight: 900; border-radius: 50px; 
    border: none; cursor: pointer; transition: 0.3s; margin-top: 25px;
    box-shadow: 0 5px 20px rgba(0, 188, 212, 0.4);
}
.cta-button:hover { background: #fff !important; transform: scale(1.05); }

/* --- EXPERTISE & PROJECT CARDS --- */
.feature-grid, .project-grid { display: flex; flex-wrap: wrap; gap: 25px; justify-content: center; margin-top: 40px; }
.feature-box, .project-card, .service-section, .team-member { 
    background: var(--secondary-dark); padding: 35px; border-radius: 12px; 
    border: 1px solid var(--border-dark); text-align: center; flex: 1 1 320px; max-width: 380px; transition: 0.4s;
}
.feature-box:hover, .project-card:hover { border-color: var(--accent-electric); transform: translateY(-10px); }

/* --- TECH CARDS (Black & White to Colorful Hover) --- */
.tech-icons { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-top: 30px; }
.tech-card { background: #0d1117; padding: 12px 25px; border-radius: 8px; border: 1px solid var(--border-dark); color: #888; font-weight: bold; transition: 0.3s; }
.tech-card:hover { color: #fff; background: var(--accent-electric); border-color: #fff; transform: scale(1.1); box-shadow: 0 0 20px var(--accent-electric); }

/* --- PROCESS STEPS (Numbered) --- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; margin-top: 60px; }
.process-step { background: var(--secondary-dark); padding: 40px 20px; border-radius: 15px; text-align: center; position: relative; border: 1px solid var(--border-dark); transition: 0.4s; }
.step-number { font-size: 5rem; font-weight: 900; color: rgba(0, 188, 212, 0.05); position: absolute; top: -10px; left: 50%; transform: translateX(-50%); }

/* --- ANIMATIONS (Stars, Vessels, Trail) --- */
#stars-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background: #050505; }
.star { position: absolute; background: white; border-radius: 50%; animation: twinkle var(--duration) infinite alternate; }
@keyframes twinkle { 0% { opacity: 0.2; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1.2); } }

.space-vessel { 
    position: absolute; z-index: 10; pointer-events: none;
    filter: drop-shadow(0 0 10px var(--accent-electric));
    animation: flight var(--duration) linear forwards; 
}
@keyframes flight {
    0% { transform: translate(-200px, 0) rotate(15deg); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translate(115vw, -30vh) rotate(-15deg); opacity: 0; }
}

.star-trail { position: absolute; width: 5px; height: 5px; background: var(--accent-electric); border-radius: 50%; pointer-events: none; z-index: 9999; box-shadow: 0 0 10px var(--accent-electric); animation: spark 0.8s forwards; }
@keyframes spark { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0) translateY(20px); } }

.whatsapp-btn { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; z-index: 9999; }
.whatsapp-btn img { width: 100%; height: auto; }

/* --- SERVICES & AI TOOL CENTER ALIGNMENT --- */

/* 1. पूरे पेज के कंटेनर को सेंटर करना */
.container, .services-container, .tool-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto !important; /* ऊपर-नीचे 40px, दाएं-बाएं Auto जिससे ये सेंटर रहे */
    display: flex;
    flex-direction: column;
    align-items: center; /* कंटेंट को बीच में लाने के लिए */
    text-align: center;
}

/* 2. सर्विसेज ग्रिड को सेंटर में सेट करना */
.services-grid, .feature-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px;
    justify-content: center !important; /* कार्ड्स को बीच में रखेगा */
    width: 100%;
    margin: 0 auto;
}

/* 3. AS-I Text Transformer (AI Tool) को सेंटर करना */
.container-form {
    background: rgba(22, 27, 34, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-dark);
    padding: 40px;
    border-radius: 20px;
    max-width: 800px; /* टूल की चौड़ाई */
    width: 100%;
    margin: 40px auto !important; /* पूरी तरह सेंटर में रखने के लिए */
    text-align: left; /* टूल के अंदर का टेक्स्ट लेफ्ट रहे, पर पूरा बॉक्स सेंटर रहे */
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.2);
}

/* 4. बटन्स को सेंटर में दिखाना */
.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* 5. रिस्पॉन्सिव (मोबाइल के लिए) */
@media (max-width: 768px) {
    .container-form {
        padding: 20px;
        width: 95%;
    }
    .services-grid {
        flex-direction: column;
        align-items: center;
    }
}
/* --- AS-I TEXT TRANSFORMER INPUT BOX FIX --- */

/* 1. इनपुट बॉक्स (Textarea) को बड़ा और चौड़ा करना */
#aiInput {
    width: 100% !important;   /* पूरे बॉक्स की चौड़ाई ले लेगा */
    min-height: 200px;        /* ऊंचाई को बढ़ा दिया (लेंडी लुक) */
    padding: 20px;            /* अंदर का गैप */
    background: rgba(10, 10, 10, 0.6); /* डार्क और थोड़ा पारदर्शी */
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1.1rem;        /* लिखने वाले अक्षर थोड़े बड़े दिखेंगे */
    resize: vertical;         /* यूजर खुद भी खींच कर छोटा-बड़ा कर सकता है */
    margin-bottom: 25px;      /* बटन से थोड़ी दूरी */
    outline: none;
    transition: 0.3s;
    display: block;
    margin-left: auto;        /* सेंटर करने के लिए */
    margin-right: auto;       /* सेंटर करने के लिए */
}

/* 2. इनपुट बॉक्स पर फोकस करने पर ग्लो इफ़ेक्ट */
#aiInput:focus {
    border-color: var(--accent-electric);
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
}

/* 3. "Paste your text here" वाले लेबल को सेंटर करना */
.container-form label {
    display: block;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent-electric);
}
/* --- CONTACT FORM ALIGNMENT FIX --- */

/* 1. पूरे फॉर्म के डिब्बे को सेंटर करना */
.container-form {
    max-width: 600px; /* फॉर्म की चौड़ाई को सीमित और प्रोफेशनल रखा है */
    margin: 50px auto !important;
    padding: 40px;
    background: rgba(22, 27, 34, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 20px; /* हर इनपुट के बीच बराबर गैप */
}

/* 2. इनपुट ग्रुप (Label + Input) को अलाइन करना */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* लेबल को लेफ्ट में रखेगा */
    width: 100%;
}

/* 3. लेबल (Username, Email आदि) की स्टाइलिंग */
.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--accent-electric);
    font-size: 0.95rem;
}

/* 4. इनपुट बॉक्स और टेक्स्ट-एरिया की स्टाइलिंग */
.form-group input, 
.form-group textarea {
    width: 100% !important; /* पूरी चौड़ाई लेगा */
    padding: 12px 15px;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
}

/* 5. इनपुट पर क्लिक करने (Focus) पर ग्लो */
.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent-electric);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

/* 6. सबमिट बटन को सेंटर करना */
.form-button {
    align-self: center; /* बटन को बीच में रखेगा */
    width: auto;
    min-width: 200px;
}

/* 7. मोबाइल रिस्पॉन्सिव (Mobile Fix) */
@media (max-width: 600px) {
    .container-form {
        width: 90%;
        padding: 25px;
    }
}
/* यह कोड सिर्फ प्रोजेक्ट्स की इमेजेस को कंट्रोल करेगा */
.project-card img {
    width: 100%;
    height: 200px;         /* एक बराबर हाइट */
    object-fit: cover;     /* इमेज को बॉक्स के अंदर सेट करेगा, उसे स्ट्रेच नहीं होने देगा */
    overflow: hidden;      /* बाहर निकलने वाले हिस्से को काट देगा */
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;      /* सुरक्षा के लिए, ताकि कुछ भी बाहर न झाँके */
}
/* --- Anand's Profile Animation & Glow --- */

/* प्रोफाइल कंटेनर पर होवर इफ़ेक्ट */
.solo-card:hover .profile-image-container {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--accent-electric);
    border-color: #fff; /* होवर पर बॉर्डर चमकेगा */
    transition: all 0.4s ease-in-out;
}

/* इमेज का अपना ट्रांज़िशन */
.profile-image-container {
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}

/* कार्ड पर होवर करने पर हल्का सा ऊपर उठना */
.solo-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.3);
}

/* नाम और डेज़िग्नेशन पर ग्लो इफ़ेक्ट */
.solo-card:hover h3 {
    text-shadow: 0 0 10px var(--accent-electric);
    transition: 0.3s;
}

/* पल्स एनीमेशन (Optional: फोटो धीरे-धीरे धड़केगी) */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 15px rgba(0, 188, 212, 0.4); }
    50% { box-shadow: 0 0 30px rgba(0, 188, 212, 0.7); }
    100% { box-shadow: 0 0 15px rgba(0, 188, 212, 0.4); }
}

.profile-image-container {
    animation: pulse-glow 3s infinite ease-in-out;
}
/* --- 4 Step Process Animated Styles --- */

/* 1. कंटेनर को फ्लेक्स और अलाइन करना (अगर पहले से नहीं है) */
.process-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

/* 2. हर स्टेप बॉक्स के लिए नया कलरफुल लुक */
.process-step {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
    min-width: 200px;
    text-align: center;
    overflow: hidden;
}

/* 3. हर स्टेप के लिए अलग-अलग बॉर्डर कलर (Colorfulness) */
.process-step:nth-child(1) { border-top: 4px solid #00bcd4; } /* Cyan */
.process-step:nth-child(2) { border-top: 4px solid #ff4081; } /* Pink */
.process-step:nth-child(3) { border-top: 4px solid #7c4dff; } /* Purple */
.process-step:nth-child(4) { border-top: 4px solid #00e676; } /* Green */

/* 4. होवर एनीमेशन (चमक और उछाल) */
.process-step:hover {
    transform: translateY(-15px) scale(1.05);
    background: #252525;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 5. नंबरिंग को ग्लो देना */
.process-step .step-number {
    font-size: 2.5rem;
    font-weight: bold;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    right: 15px;
    transition: 0.3s;
}

.process-step:hover .step-number {
    opacity: 1;
    color: var(--accent-electric);
    text-shadow: 0 0 15px var(--accent-electric);
}
/* --- Brand Name (Logo Text) Animation --- */

.logo-container h1 {
    background: linear-gradient(90deg, #fff, var(--accent-electric), #fff);
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    font-weight: 800;
    letter-spacing: 1px;
    filter: drop-shadow(0 0 5px rgba(0, 188, 212, 0.3));
}

/* चमकने वाला एनीमेशन */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* माउस ले जाने पर टेक्स्ट थोड़ा और फैलेगा */
.logo-container:hover h1 {
    text-shadow: 0 0 15px var(--accent-electric);
    transform: scale(1.02);
    transition: 0.4s ease;
}
/* --- Services Page Solo Styling --- */

.service-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 188, 212, 0.2);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-electric);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-list {
    text-align: left;
    margin: 20px 0;
    list-style: none;
    padding: 0;
    color: var(--text-muted);
}

.service-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-electric);
}

.clear-btn {
    background: #ff4444 !important;
    color: white !important;
    border: none;
}

.ai-tool-container {
    background: var(--secondary-dark);
    border: 1px dashed var(--accent-electric);
    padding: 30px;
    border-radius: 15px;
}
/* --- AI Text Transformer Box Fix --- */

.ai-tool-container {
    max-width: 900px;      /* बॉक्स की अधिकतम चौड़ाई तय की */
    margin: 50px auto;     /* इसे स्क्रीन के बीच (Middle) में लाने के लिए */
    width: 95%;            /* मोबाइल पर थोड़ा गैप रखने के लिए */
    box-sizing: border-box;
}

.ai-input-area {
    width: 100%;           /* अब यह अपने पिता (Container) से बाहर नहीं जाएगा */
    max-width: 100%;       /* गारंटी कि बाहर न निकले */
    box-sizing: border-box; /* पैडिंग को अंदर ही रखेगा */
    margin: 20px 0;
    display: block;
    background: #111;
    color: var(--accent-electric);
    border: 1px solid #333;
    padding: 15px;
    border-radius: 8px;
    resize: vertical;      /* सिर्फ ऊपर-नीचे बड़ा छोटा कर सकेंगे, साइड में नहीं */
}

.ai-controls {
    display: flex;
    flex-wrap: wrap;       /* बटन्स मोबाइल पर नीचे आ जाएंगे */
    justify-content: center;
    gap: 10px;
}
/* --- Contact Page Modern Solo Styles --- */

.contact-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.container-form {
    max-width: 850px;
    width: 100%;
    background: rgba(20, 20, 20, 0.9);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(0, 188, 212, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    color: var(--accent-electric);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-electric);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
    background: #1a1a1a;
}

.premium-submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--accent-electric);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.premium-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 188, 212, 0.4);
    background: #fff;
}

.direct-contact-info {
    margin-top: 30px;
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
}

/* Form Alert Fixes */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}
.success { background: rgba(40, 167, 69, 0.2); color: #28a745; border: 1px solid #28a745; }
.error { background: rgba(220, 53, 69, 0.2); color: #dc3545; border: 1px solid #dc3545; }

.whatsapp-contact {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.whatsapp-btn-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white !important;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-contact img { width: 25px; height: 25px; }

.whatsapp-btn-contact:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}
/* --- Logo Hover Zoom Effect --- */

.logo-image {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* स्मूथ बाउंस इफेक्ट के लिए */
    cursor: pointer;
}

.logo-container:hover .logo-image {
    transform: scale(1.2) rotate(5deg); /* 20% बड़ा होगा और हल्का सा घूमेगा */
    filter: drop-shadow(0 0 15px var(--accent-electric)); /* लोगो के पीछे ग्लो आएगा */
}

.logo-container:hover h1 {
    transform: translateX(10px); /* नाम थोड़ा सा दाईं ओर खिसकेगा */
    transition: transform 0.4s ease;
}

/* ======================================================================
   3D DEPTH LOOK - Glassmorphism + Layered Shadows
   ====================================================================== */

header {
    background: rgba(13, 17, 23, 0.75) !important;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.feature-box, .project-card, .service-section, .team-member {
    background: rgba(22, 27, 34, 0.6) !important;
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(48, 54, 61, 0.8) !important;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.25),
        0 10px 24px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feature-box:hover, .project-card:hover, .service-section:hover, .team-member:hover {
    transform: translateY(-12px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 20px 40px rgba(0, 188, 212, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-color: var(--accent-electric) !important;
}

.tech-card {
    background: rgba(13, 17, 23, 0.7) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-button, .cta-btn, .tool-btn, .form-button {
    box-shadow:
        0 2px 4px rgba(0, 188, 212, 0.3),
        0 10px 25px rgba(0, 188, 212, 0.25) !important;
}

.cta-button:hover, .cta-btn:hover, .tool-btn:hover, .form-button:hover {
    box-shadow:
        0 4px 8px rgba(0, 188, 212, 0.35),
        0 16px 36px rgba(0, 188, 212, 0.4) !important;
}

img.logo-image, .static-images img, .feature-box img, .project-card img {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

::selection {
    background: var(--accent-electric);
    color: #000;
}
