/* ====== Aakash Technologies — Custom Styles ====== */

/* --- Base --- */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #020617;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #06b6d4, #0891b2);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #22d3ee, #06b6d4);
}

/* --- Selection --- */
::selection {
    background: rgba(6, 182, 212, 0.3);
    color: #a5f3fc;
}

/* ====== Navbar Links ====== */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: color 0.3s ease;
    border-radius: 0.5rem;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #22d3ee, #0891b2);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nav-link:hover {
    color: #22d3ee;
}
.nav-link:hover::after {
    width: 60%;
}

/* ====== Hero Background Effects ====== */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: glow-pulse 8s ease-in-out infinite;
}
.hero-glow-1 {
    top: 10%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent);
}
.hero-glow-2 {
    bottom: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.1), transparent);
    animation-delay: 4s;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* ====== Hero Particles ====== */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #22d3ee;
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 15s linear infinite;
}
@keyframes particle-float {
    0% { opacity: 0; transform: translateY(100vh) translateX(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) translateX(50px); }
}

/* ====== Floating Cards ====== */
.float-card {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ====== Scroll Dot ====== */
.scroll-dot {
    animation: scroll-dot 2s ease-in-out infinite;
}
@keyframes scroll-dot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ====== Service Cards ====== */
.service-card {
    position: relative;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.4));
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(6, 182, 212, 0.15);
}
.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.4s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* ====== Stat Cards ====== */
.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.3));
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 1.5rem;
    transition: all 0.4s ease;
}
.stat-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-4px);
}
.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #67e8f9, #0891b2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

/* ====== Testimonial Cards ====== */
.testimonial-card {
    padding: 2rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.3));
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 1.5rem;
    transition: all 0.4s ease;
}
.testimonial-card:hover {
    border-color: rgba(6, 182, 212, 0.2);
    transform: translateY(-4px);
}

/* ====== Form Inputs ====== */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 0.75rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}
.form-input::placeholder {
    color: #475569;
}
.form-input:focus {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}
.form-input:hover {
    border-color: rgba(71, 85, 105, 1);
}
select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}
select.form-input option {
    background: #0f172a;
    color: #e2e8f0;
}

/* ====== Reveal Animation ====== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ====== Back to Top Button ====== */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ====== Responsive Adjustments ====== */
@media (max-width: 640px) {
    .stat-number {
        font-size: 2.25rem;
    }
    .service-card {
        padding: 1.5rem;
    }
}

/* ====== Reduced Motion ====== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ====== Dashboard Panel Styles ====== */
.dash-panel {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.4));
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.dash-panel:hover {
    border-color: rgba(71, 85, 105, 0.8);
}
.dash-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

/* ====== Dashboard Stat Cards ====== */
.dash-stat-card {
    padding: 1.25rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.4));
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 1rem;
    transition: all 0.3s ease;
}
.dash-stat-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}
.dash-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.dash-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1;
}
.dash-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* ====== Dashboard Action Cards ====== */
.dash-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.4));
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 1rem;
    transition: all 0.3s ease;
}
.dash-action-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}
.dash-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* ====== Table Styles ====== */
table {
    width: 100%;
    border-collapse: collapse;
}
table th {
    font-weight: 500;
    letter-spacing: 0.05em;
}
