/* 
   PerfectSite.in - Professional Web Design
   Theme: Glassy Emergent (Dark)
   Colors: Primary Black (#000000), Accent Green (#00c853), Text White/Grey
*/

:root {
    --primary-color: #00c853;
    /* Matrix Green / Sci-Fi */
    --primary-glow: rgba(0, 200, 83, 0.5);
    --primary-hover: #00e676;

    --bg-color: #050505;
    /* Black */
    --card-bg: rgba(20, 20, 20, 0.8);

    /* Dark Theme Glass */
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);

    --text-main: #ffffff;
    --text-muted: #aaaaaa;

    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    background-color: #050505;
    /* Ensure dark base execution */
}

body {
    background-color: transparent;
    /* Let Fixed Globe be the background */
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.text-highlight {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 200, 83, 0.3);
}

.text-center {
    text-align: center;
}

/* Glass Components */
/* Globe Background - FULL SCREEN IMMERSION */
#globe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: auto;
    /* Allow mouse interaction for rotation */
    background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
    /* Deep space gradient */
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Buttons - Professional Pill */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #000;
}

.btn-primary {
    background: linear-gradient(135deg, #00c853, #2d00f7);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.4);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid #25D366;
    color: #25D366;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background: #25D366;
    color: #fff;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER - Frosted Black */
header {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.logo span {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* SECTIONS */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title .bar {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0 auto;
    border-radius: 2px;
}

/* CARDS - Glass Emergent */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Modern Shop Card - Uniform Size */
/* Ghost Floating Animation */
@keyframes ghostFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Goku Powerup Animation */
@keyframes powerShake {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1.05);
    }

    25% {
        transform: translate(-1px, 1px) rotate(-1deg) scale(1.05);
    }

    50% {
        transform: translate(1px, -1px) rotate(1deg) scale(1.05);
    }

    75% {
        transform: translate(-1px, -1px) rotate(-1deg) scale(1.05);
    }

    100% {
        transform: translate(1px, 1px) rotate(1deg) scale(1.05);
    }
}

@keyframes gokuPulse {
    0% {
        box-shadow: 0 0 20px #ffea00, 0 0 40px #ff6d00;
        border-color: #ffea00;
    }

    50% {
        box-shadow: 0 0 40px #ffea00, 0 0 80px #ff6d00;
        border-color: #ffffff;
    }

    100% {
        box-shadow: 0 0 20px #ffea00, 0 0 40px #ff6d00;
        border-color: #ffea00;
    }
}

.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 0;
    /* Removed padding to let image fill */
    text-align: left;
    transition: all 0.1s ease-out;
    /* Super fast response for power feeling */
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    /* Ensure image follows border radius */

    /* Ghost Float */
    animation: ghostFloat 6s ease-in-out infinite;
}

/* Stagger animations for organic feel */
.card:nth-child(odd) {
    animation-duration: 7s;
}

.card:nth-child(even) {
    animation-duration: 5s;
    animation-delay: 1s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 200, 83, 0.2);
    border-color: var(--primary-color);
    /* Pause float on hover so user can click/read easily */
    animation-play-state: paused;
}

.card img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0;
    border-radius: 0;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Starfield Canvas */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Globe Container */
#globe-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
}

/* --- PROFESSIONAL COMPACT DOCK --- */
.planetary-dock {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.planet-btn {
    width: 32px;
    /* Smaller size (Old: 35-40px) */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: transparent;
    transition: transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.planet-btn img,
.planet-btn svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s;
}

.planet-btn:hover {
    transform: scale(1.15);
}

/* Tooltip - Compact */
.planet-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 45px;
    /* Adjusted for smaller size */
    background: rgba(0, 0, 0, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.planet-btn:hover::before {
    opacity: 1;
}

/* --- MODAL STYLES (Flash Form) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 50px rgba(0, 200, 83, 0.2);
    /* Green glow */
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

.modal-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #fff;
}


/* Generalized Button Style - Matches Hero/Nav */
.btn-card {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-card-primary {
    background: linear-gradient(135deg, #00c853, #2d00f7);
    border: none;
    color: white;
}

.btn-card-primary:hover {
    background: linear-gradient(135deg, #00e676, #651fff);
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.6);
}

/* FOOTER */
footer {
    background: #000;
    position: relative;
    padding: 6rem 0 3rem;
    overflow: hidden;
    border-top: 1px solid #333;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff0055, #00c853, #2d00f7);
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: block;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.footer-logo span {
    -webkit-text-fill-color: var(--primary-color);
}

.footer-intro p {
    font-size: 1.1rem;
    color: #888;
    max-width: 400px;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #999;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(0, 200, 83, 0.5);
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #555;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.footer-watermark {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 15rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    line-height: 1;
    z-index: 1;
}

/* --- STRICT CARD STANDARDIZATION --- */

/* 1. Feature Card (Why Choose Us) - Minimum content, text focus */
.card-feature {
    min-height: 160px;
    /* Fixed small size */
    justify-content: center;
    text-align: center;
    padding: 1.5rem !important;
    background: rgba(255, 255, 255, 0.03);
    /* Slightly different transparency */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-feature p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* 2. Service Card (Categories) - Image + Content + Action */
.card-service {
    height: 100%;
    /* Fill grid cell */
    display: flex;
    flex-direction: column;
}

.card-service img {
    height: 200px;
    /* Fixed image height desktop */
    width: 100%;
    object-fit: cover;
}

.card-service .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Push actions to bottom */
}

/* --- ANTIGRAVITY CONTACT FORM --- */
.contact-section-wrapper {
    position: relative;
    padding-bottom: 4rem;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.8);
    /* Dark base */
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.contact-form-container h2 {
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.form-group label {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.8) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 15px rgba(0, 200, 83, 0.2) !important;
    outline: none;
}

/* Contact Info Cards */
.contact-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.contact-info-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.icon-large {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 200, 83, 0.5));
}

/* RESPONSIVE */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        border-top: 1px solid var(--glass-border);
    }

    .nav-links.active {
        left: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-watermark {
        font-size: 8rem;
    }

    .contact-section-wrapper {
        padding-top: 4rem;
    }
}

/* UTILS */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Grid Override: Very Compact 2x2 */
@media (max-width: 600px) {

    /* Section Separation */
    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* The "Compact Grid" Section */
    .card-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        padding: 0;
        margin: 0;
        overflow: visible;
    }

    /* Compact Card for Mobile */
    .card {
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 0;
        margin: 0;
        min-width: 0;
    }

    .card img {
        height: 100px;
        width: 100%;
        object-fit: cover;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .card-body {
        padding: 0.8rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
        line-height: 1.3;
        color: #fff;
    }

    .card p {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #ddd;
    }

    .card-actions {
        margin-top: auto;
    }

    .btn-card {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }
}

/* Form Styles Override for Dark Theme */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition);
    padding: 0.8rem;
    border-radius: 8px;
    width: 100%;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    outline: none;
}