/* ==========================================================================
   Design System & Theme Variables
   ========================================================================== */
:root {
    --bg-main: #0f172a; /* Professional Slate 900 */
    --bg-card: #1e293b; /* Distinct Slate 800 */
    --bg-card-hover: #273549; /* Slate 750 */
    --border-color: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(99, 102, 241, 0.5);
    
    --text-primary: #ffffff; /* Pure high-contrast white */
    --text-secondary: #e2e8f0; /* Softer light gray slate 200 */
    --text-muted: #94a3b8; /* Muted gray slate 400 */
    
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.15);
    --secondary: #14b8a6; /* Teal */
    --secondary-glow: rgba(20, 184, 166, 0.15);
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #14b8a6 100%);
    --gradient-text: linear-gradient(135deg, #818cf8 0%, #34d399 100%);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --shadow-premium: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
    --radius-lg: 16px;
    --radius-md: 12px;
}

/* ==========================================================================
   Global Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* Glowing Ambient Orbs */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(160px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.bg-glow-1 {
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    right: -200px;
}

.bg-glow-2 {
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    top: 800px;
    left: -300px;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   Typography & Reusable Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Button UI System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}
.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-full {
    width: 100%;
}

/* Section Common Styles */
section {
    padding: 100px 5% 80px;
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--secondary);
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(15px);
    background: rgba(10, 11, 16, 0.75);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 10px 0;
    background: rgba(10, 11, 16, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo-accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section & Media Player
   ========================================================================== */
.hero-section {
    padding-top: 170px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-features {
    display: flex;
    gap: 24px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Media Card & Video Container */
.media-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.media-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.1);
}

.media-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.media-card:hover .placeholder-img {
    opacity: 0.9;
    transform: scale(1.02);
}

.play-btn {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    transition: var(--transition-smooth);
    z-index: 10;
}

.play-btn i {
    color: white;
    font-size: 1.8rem;
    margin-left: 5px; /* Alignment fix */
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 45px rgba(99, 102, 241, 0.8);
}

.video-wrapper {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    background: black;
}

.video-wrapper iframe, .video-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Stats Banner
   ========================================================================== */
.stats-banner {
    padding: 40px 5%;
}

.stats-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #818cf8;
    margin-bottom: 24px;
}

.about-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Project Explorer
   ========================================================================== */
.explorer-control {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 18px 50px 18px 55px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.clear-search {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
}

.clear-search:hover {
    color: var(--text-primary);
}

.category-tabs-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
}

.category-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.category-tabs {
    display: flex;
    gap: 12px;
    width: max-content;
}

.tab-btn {
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    min-height: 200px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: var(--shadow-premium), 0 0 30px rgba(99, 102, 241, 0.05);
    background: var(--bg-card-hover);
}

.project-tag {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

/* Color-coded Domain Tags */
.tag-ai-ml { color: #818cf8; background: rgba(99, 102, 241, 0.1); }
.tag-cv-dl { color: #34d399; background: rgba(52, 211, 153, 0.1); }
.tag-nlp-llm { color: #f472b6; background: rgba(244, 114, 182, 0.1); }
.tag-blockchain-cyber { color: #fb7185; background: rgba(251, 113, 133, 0.1); }
.tag-data-science { color: #38bdf8; background: rgba(56, 189, 248, 0.1); }
.tag-web-mobile-cloud { color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
.tag-iot-embedded { color: #a78bfa; background: rgba(167, 139, 250, 0.1); }

.project-card h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 12px;
    flex-grow: 1;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.project-tech {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.empty-state {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 24px;
    max-width: 450px;
}

/* ==========================================================================
   Timeline / Process
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary) 0%, var(--secondary) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: 10px;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--bg-main);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
    box-shadow: 0 0 15px var(--primary-glow);
    z-index: 2;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
}

.faq-question i {
    transition: var(--transition-smooth);
    color: var(--text-secondary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.01);
}

.faq-answer p {
    padding: 0 24px 24px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.faq-item.active {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.info-card i {
    font-size: 2.2rem;
    color: var(--secondary);
}

.info-card h3 {
    font-size: 1.3rem;
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.info-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}

.info-link:hover {
    color: var(--primary);
}

/* Contact Form Card */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 45px;
    position: relative;
    overflow: hidden;
}

.contact-form-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    outline: none;
}

select option {
    background-color: #12131a;
    color: #f8fafc;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 4px var(--secondary-glow);
}

.form-success-message {
    display: none;
    text-align: center;
    padding: 40px 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.form-success-message i {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.form-success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* ==========================================================================
   Admin Modal Styling
   ========================================================================== */
.admin-trigger {
    display: inline-flex;
    margin-left: 10px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.admin-trigger:hover {
    color: var(--primary);
}

.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(15px);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.admin-modal.active {
    display: flex;
}

.admin-modal-content {
    background: rgba(13, 16, 27, 0.98);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium), 0 0 50px rgba(99, 102, 241, 0.15);
    width: 95%;
    max-width: 1100px;
    padding: 35px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* Custom scrollbar for modal content */
.admin-modal-content::-webkit-scrollbar {
    width: 6px;
}
.admin-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.admin-modal-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
.admin-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    color: var(--text-primary);
}

.admin-modal h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.admin-modal p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.error-msg {
    display: none;
    color: #f87171;
    font-size: 0.82rem;
    margin-top: 8px;
    font-weight: 600;
}

.tip-text {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.tip-text code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.admin-trigger-link:hover {
    color: var(--primary) !important;
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   Animations & Responsive Breakpoints
   ========================================================================== */
@keyframes float1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes preloadBar {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
        order: -1;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        z-index: 110;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 11, 16, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 60px 40px;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 105;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 2.6rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    section {
        padding: 70px 5% 50px;
    }
    
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        padding-left: 55px;
    }
    .timeline-number {
        left: 0;
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .contact-form-card {
        padding: 25px 20px;
    }
    
    .play-btn {
        width: 60px;
        height: 60px;
    }
    
    .play-btn i {
        font-size: 1.4rem;
    }
    
    .admin-modal-content {
        padding: 30px 20px;
    }
}

.whatsapp-float:hover {
    transform: fixed scale(1.1) translateY(-5px) !important;
    background: #1ebea5 !important;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6) !important;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.tab-btn.active {
    background: rgba(20, 184, 166, 0.1) !important;
    border-color: var(--secondary) !important;
    color: var(--text-primary) !important;
}

.social-channels .btn-instagram {
    border: 1px solid rgba(225, 48, 108, 0.3) !important;
    color: #e1306c !important;
    background: rgba(225, 48, 108, 0.03) !important;
    transition: var(--transition-smooth);
}
.social-channels .btn-instagram:hover {
    background: #e1306c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
    transform: translateY(-2px);
}

.social-channels .btn-linkedin {
    border: 1px solid rgba(10, 102, 194, 0.3) !important;
    color: #0a66c2 !important;
    background: rgba(10, 102, 194, 0.03) !important;
    transition: var(--transition-smooth);
}
.social-channels .btn-linkedin:hover {
    background: #0a66c2 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.3);
    transform: translateY(-2px);
}

/* Close Video Button */
.close-video-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 30;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.close-video-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1);
}

/* Responsive Workflow Grid Container */
.workflow-grid-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .workflow-grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Responsive Package Grid */
.package-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

@media (max-width: 1024px) {
    .package-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .package-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Hide mouse cursor glow on mobile/touch screens to prevent touch-event conflicts */
@media (max-width: 1024px) {
    #cursor-glow {
        display: none !important;
    }
}

/* Comparison Table Wrapper for Responsive Scrolling */
.comparison-table-wrapper {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Comparison Table Styles */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.comparison-table th {
    padding: 18px 20px;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th:nth-child(2) {
    color: #ef4444;
}

.comparison-table th:nth-child(3) {
    color: var(--secondary);
}

.comparison-table tr {
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    padding: 15px 20px;
}

.comparison-table td.col-stage {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table td.col-freelance {
    color: var(--text-muted);
}

.comparison-table td.col-devlabs {
    color: var(--text-secondary);
}

/* Stacking Table into Cards on Mobile to fit screen perfectly */
@media (max-width: 768px) {
    .comparison-table-wrapper {
        border: none;
        background: transparent;
    }
    
    .comparison-table, 
    .comparison-table thead, 
    .comparison-table tbody, 
    .comparison-table th, 
    .comparison-table td, 
    .comparison-table tr {
        display: block;
        width: 100%;
    }
    
    .comparison-table thead {
        display: none; /* Hide header row */
    }
    
    .comparison-table tr {
        background: var(--bg-card);
        border: 1px solid var(--border-color) !important;
        border-radius: var(--radius-lg);
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .comparison-table td {
        padding: 8px 0 !important;
        border: none;
    }
    
    .comparison-table td.col-stage {
        font-size: 1.15rem;
        font-weight: 700;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 12px !important;
        margin-bottom: 12px;
        color: var(--text-primary);
    }
    
    .comparison-table td.col-freelance::before {
        content: "Average Freelancers: ";
        font-weight: 700;
        color: #ef4444;
        display: block;
        margin-bottom: 4px;
        font-size: 0.85rem;
        text-transform: uppercase;
    }
    
    .comparison-table td.col-devlabs::before {
        content: "CSE DevLabs Guarantee: ";
        font-weight: 700;
        color: var(--secondary);
        display: block;
        margin-bottom: 4px;
        font-size: 0.85rem;
        text-transform: uppercase;
    }
}

/* Hide native Edge/IE password reveal eye icons to avoid overlap with custom toggle */
input::-ms-reveal,
input::-ms-clear,
input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

#toggle-password-icon {
    color: #e2e8f0 !important;
    opacity: 0.85;
    cursor: pointer;
}

#toggle-password-icon:hover {
    color: var(--secondary) !important;
    opacity: 1;
}

/* Floating Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 105px; /* Sits cleanly above the floating WhatsApp badge */
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-premium), 0 4px 20px rgba(99, 102, 241, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    transform: translateY(-4px) scale(1.05);
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

/* Mobile responsive styles for Testimonials Slider & Floating Elements */
@media (max-width: 768px) {
    .testimonials-slider-container {
        width: 100% !important;
        padding: 0 !important;
    }
    .testimonial-slide {
        padding: 0 10px !important;
    }
    .testimonial-slide .about-card {
        padding: 25px 20px !important;
        min-height: auto !important;
    }
    .testimonial-slide p {
        font-size: 0.92rem !important;
        margin-bottom: 15px !important;
        line-height: 1.5 !important;
    }
    .scroll-to-top-btn {
        width: 50px !important;
        height: 50px !important;
        bottom: 95px !important; /* Adjusted to stack above WhatsApp badge on mobile */
        right: 20px !important;
        font-size: 1.1rem !important;
    }
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        bottom: 30px !important;
        right: 20px !important;
        font-size: 1.5rem !important;
    }
}






