/* 
   Fayral Technologies Custom Styling
   Premium Tech Aesthetic - Dark Mode & Glassmorphism
*/

:root {
    --bg-primary: #070b19;
    --bg-secondary: #0c142b;
    --bg-card: rgba(255, 255, 255, 0.02);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f3f9;
    --text-secondary: #94a3b8;
    --accent-teal: #00f2fe;
    --accent-blue: #4facfe;
    --accent-purple: #9d4edd;
    --grad-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --grad-purple: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
    --grad-dark: linear-gradient(180deg, #070b19 0%, #0c142b 100%);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Body */
body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 10% 20%, rgba(79, 172, 254, 0.05) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(157, 78, 221, 0.05) 0px, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #ffffff;
}

/* Custom Text Utilities */
.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient-purple {
    background: var(--grad-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-muted-custom {
    color: var(--text-secondary);
}

/* Custom Buttons */
.btn-nav {
    background: var(--grad-primary);
    border: none;
    color: #070b19 !important;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
}

.btn-premium {
    background: var(--grad-primary);
    border: none;
    color: #070b19 !important;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
}

.btn-premium-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
}

.btn-premium-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
}

/* Navbar Custom Styling */
.main-navbar {
    background: rgba(7, 11, 25, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-text {
    color: #ffffff;
}

.logo-icon i {
    font-size: 1.6rem;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    transition: var(--transition-smooth);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 2px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler-icon-custom {
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-admin-link:hover {
    opacity: 1 !important;
    color: var(--accent-teal) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 0 6rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-size: cover;
}

.hero-glow-1 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    filter: blur(40px);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
    filter: blur(50px);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.typing-cursor {
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Tech Cards / Feature Cards */
.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.03) 0%, rgba(79, 172, 254, 0.03) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.tech-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.tech-card:hover .tech-card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Interactive Grid Background for stats or about */
.stats-section {
    background: rgba(12, 20, 43, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

/* Custom Interactive Forms */
.contact-form-container {
    background: rgba(12, 20, 43, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
}

.form-label-custom {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input-custom {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.form-input-custom:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: #00f2fe !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15) !important;
}

/* Job Listings */
.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.job-card:hover {
    transform: translateX(5px);
    border-color: rgba(0, 242, 254, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.job-badge {
    background: rgba(0, 242, 254, 0.1);
    color: #00f2fe;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Footer Custom Styling */
.main-footer {
    background-color: #040710;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--grad-primary);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: var(--grad-primary);
    color: #070b19;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

/* Team Member Cards */
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.2);
}

.team-img-wrapper {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.team-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(157, 78, 221, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 5rem;
}

.team-card:hover .team-img-placeholder {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(157, 78, 221, 0.2) 100%);
}

.team-info {
    padding: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Admin Specific Overrides */
.admin-card {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.table-custom {
    color: var(--text-primary) !important;
}

.table-custom th {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.table-custom td {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: var(--text-secondary) !important;
}

.status-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-applied { background: rgba(0, 242, 254, 0.15); color: #00f2fe; }
.status-screening { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.status-interviewed { background: rgba(13, 110, 253, 0.15); color: #0d6efd; }
.status-offered { background: rgba(25, 135, 84, 0.15); color: #198754; }
.status-rejected { background: rgba(220, 53, 69, 0.15); color: #dc3545; }
.status-pending { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.status-read { background: rgba(25, 135, 84, 0.15); color: #198754; }
