/* --- Root Variables --- */
:root {
    /* Light theme variables */
    --light-bg-dark: #ffffff;
    --light-bg-secondary: #f5f5dc;
    --light-bg-tertiary: #f0f0f0;
    --light-text-light: #333333;
    --light-text-mid: #666666;
    --light-card-color: #ffffff;
    --light-border-color: rgba(0, 191, 255, 0.3);
    
    /* Dark theme variables (current theme) */
    --dark-bg-dark: #121212;
    --dark-bg-secondary: #1E1E1E;
    --dark-bg-tertiary: #2D2D2D;
    --dark-text-light: #FFFFFF;
    --dark-text-mid: #A0A0A0;
    --dark-card-color: #1E1E1E;
    --dark-border-color: #2D2D2D;
    
    /* Default to dark theme */
    --bg-dark: var(--dark-bg-dark);
    --bg-secondary: var(--dark-bg-secondary);
    --bg-tertiary: var(--dark-bg-tertiary);
    --text-light: var(--dark-text-light);
    --text-mid: var(--dark-text-mid);
    --card-color: var(--dark-card-color);
    --border-color: var(--dark-border-color);
    
    /* Colors that stay consistent */
    --primary-blue: #00BFFF;
    --primary-green: #39FF14;
    --primary-purple: #9D00FF;
    --border-glow: rgba(0, 191, 255, 0.2);
    --error-color: #FF4136;
    --success-color: var(--primary-green);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

/* Light theme class */
body.light-theme {
    --bg-dark: var(--light-bg-dark);
    --bg-secondary: var(--light-bg-secondary);
    --bg-tertiary: var(--light-bg-tertiary);
    --text-light: var(--light-text-light);
    --text-mid: var(--light-text-mid);
    --card-color: var(--light-card-color);
    --border-color: var(--light-border-color);
}

/* --- Global Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Space Grotesk', sans-serif; 
    background-color: var(--bg-dark);
    color: var(--text-light); 
    cursor: default;
    overflow-x: hidden; 
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Container styles for consistent layout */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Content section with proper padding */
.content-section { 
    padding: 6rem 0; 
    position: relative; 
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Remove custom cursor styles */
.cursor-dot, .cursor-outline { 
    display: none; 
}

/* Update link and button cursors */
a, button { 
    cursor: pointer;  /* Changed to normal pointer */
    text-decoration: none; 
    border: none; 
    background: none; 
    color: inherit; 
    font-family: inherit; 
    font-size: inherit; 
}

/* Add alternating section backgrounds */
.content-section:nth-child(even) {
    background-color: var(--bg-secondary);
}

/* Update navbar background */
.navbar {
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid var(--border-color);
}

/* --- CORRECTED LAYERING & BACKGROUND --- */
#particles-js { position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: 0; }
.navbar, main, footer { position: relative; z-index: 2; }

/* --- Navigation & Header --- */
.navbar { position: fixed; width: 100%; top: 0; left: 0; padding: 1.2rem 2rem; z-index: 1000; background: rgba(0, 0, 0, 0   ); backdrop-filter: blur(10px); }
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

/* Fix horizontal navigation */
.nav-menu ul { 
    list-style: none; 
    display: flex; 
    flex-direction: row;
    align-items: center; 
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu ul li {
    margin: 0;
    padding: 0;
}

/* Theme toggle button styles */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--primary-blue);
    color: var(--bg-dark);
}

/* Logo styling - circular version */
.nav-logo { 
    position: relative;
    display: flex;
    align-items: center;
}

.nav-logo img { 
    max-height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

/* Logo hover effect */
.nav-logo img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--border-glow);
}

/* Footer logo as circle too */
.footer-logo {
    max-height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    margin-bottom: 1rem;
    object-fit: cover;
}

/* Light theme version */
body.light-theme .nav-logo img,
body.light-theme .footer-logo {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* --- Hero Section --- */
.content-section { padding: 6rem 0; position: relative; border-bottom: 1px solid var(--border-color); }
#hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; border: none; }
.hero-headline { font-family: var(--font-heading); font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1.1; text-shadow: 0 0 5px var(--border-glow), 0 0 15px var(--border-glow), 0 0 25px var(--border-glow); margin-bottom: 2rem; }
.hero-subheadline { font-family: var(--font-body); font-size: 1.25rem; color: var(--text-mid); margin: 0 auto 3.5rem; max-width: 750px; }
.hero-cta-group { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-button { font-family: var(--font-body); font-weight: 600; padding: 0.8rem 2.5rem; border-radius: 5px; }
.cta-button.primary { background-color: var(--primary-blue); color: var(--bg-dark); }
.cta-button.primary:hover { transform: scale(1.05); box-shadow: 0 5px 25px var(--border-glow); }
.cta-button.secondary { background-color: transparent; color: var(--primary-blue); border: 2px solid var(--primary-blue); }
.cta-button.secondary:hover { transform: scale(1.05); background-color: var(--primary-blue); color: var(--bg-dark); box-shadow: 0 0 20px var(--border-glow); }
.cta-button.tertiary { background-color: transparent; color: var(--text-mid); border: 2px solid var(--text-mid); }
.cta-button.tertiary:hover { color: var(--text-light); border-color: var(--text-light); transform: scale(1.05); }
.scroll-down-indicator { position: absolute; bottom: 3rem; left: 50%; color: var(--text-mid); font-size: 1.5rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%,20%,50%,80%,100%{transform:translate(-50%,0)}40%{transform:translate(-50%,-15px)}60%{transform:translate(-50%,-8px)} }

/* --- General Content Styles --- */
.section-title { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 2.8rem); text-align: center; margin-bottom: 1rem; }
.section-subtitle { max-width: 800px; margin: 0 auto 3rem; text-align: center; color: var(--text-mid); font-size: 1.1rem; line-height: 1.7; }
.subsection-title { font-family: var(--font-heading); text-align: center; color: var(--primary-blue); font-size: 1.8rem; margin: 3rem 0 2rem; }
.interactive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.section-title-wrapper { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-bottom: 3rem; }

/* --- Reusable Interactive Box --- */
.interactive-box { background-color: var(--bg-secondary); border: 1px solid var(--border-color); padding: 2.5rem; border-radius: 10px; text-align: center; position: relative; }
.interactive-box:hover { background-color: var(--bg-tertiary); transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
.interactive-box i { font-size: 2.5rem; color: var(--primary-green); margin-bottom: 1rem; transition: all 0.3s ease; }
.interactive-box:hover i { transform: scale(1.1); text-shadow: 0 0 15px var(--primary-green); }
.interactive-box h4 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1rem; }
.interactive-box p, .interactive-box li, .interactive-box blockquote { color: var(--text-mid); line-height: 1.6; text-align: left; }

/* --- Founder & Team Specifics --- */
.founder-content-wrapper { display: flex; gap: 3rem; align-items: center; }
.founder-photo { 
    width: 300px; 
    height: 300px; 
    border-radius: 50%; 
    object-fit: cover;
    object-position: center 30%;
    border: 3px solid var(--border-color);
    image-rendering: -webkit-optimize-contrast; /* Improves image clarity */
    image-rendering: crisp-edges;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.founder-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px var(--border-glow);
    border-color: var(--primary-blue);
}

.founder-photo:active {
    transform: scale(0.98);
}

.founder-bio { text-align: left; }
.founder-quote { font-style: italic; color: var(--primary-green); margin: 1.5rem 0; padding-left: 1rem; border-left: 2px solid var(--primary-green); }
.team-grid-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) {
    .team-grid-layout { grid-template-columns: repeat(2, 1fr); }
}
.team-card { width: 100%; background: linear-gradient(145deg, var(--card-color) 0%, hsla(0, 0%, 1%, 0.278) 100%); }

.team-photo, .team-photo-placeholder { 
    width: 150px; 
    height: 150px; 
    border-radius: 50%; 
    object-fit: cover;
    object-position: center 30%; 
    margin: 0 auto 1.5rem; 
    display: block; 
    border: 2px solid var(--border-color); 
    image-rendering: -webkit-optimize-contrast; /* Improves image clarity */
    image-rendering: crisp-edges;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.team-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--border-glow);
    border-color: var(--primary-blue);
}

.team-photo:active {
    transform: scale(0.98);
}

/* Image viewer modal */
.image-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.image-viewer-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-viewer-modal.active .modal-image {
    transform: scale(1);
}

.close-image-viewer {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2200;
}

.close-image-viewer:hover {
    color: var(--primary-blue);
}

/* --- Tech Stack --- */
.tech-stack-grid { 
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 3rem 2rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.tech-item { 
    width: 100%;
    max-width: 120px;
    text-align: center;
    position: relative;
}

.tech-item img { 
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.tech-item span { 
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--bg-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    opacity: 0;
    transition: all 0.3s;
    white-space: nowrap;
}

.tech-item:hover img { 
    filter: none;
    opacity: 1;
    transform: translateY(-5px); 
}

.tech-item:hover span { 
    opacity: 1; 
}

/* AWS logo specific adjustment */
.tech-item img[alt="AWS"] {
    width: 80px;
}

/* --- Project Section --- */
.project-card { border-radius: 10px; overflow: hidden; position: relative; background-color: var(--card-color); }
.project-image { width: 100%; height: 250px; background-color: #111; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: contain; }
.project-header { background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple)); padding: 1rem 1.5rem; }
.project-header h4 { font-family: var(--font-heading); color: var(--bg-dark); display: flex; justify-content: space-between; align-items: center; }
.coming-soon-tag { background: rgba(0,0,0,0.2); padding: 0.2rem 0.5rem; border-radius: 5px; font-size: 0.8rem; }
.project-body { padding: 1.5rem; }
.project-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background:rgba(2,0,17,0.8); display:flex; justify-content:center; align-items:center; opacity:0; transition:opacity 0.3s; }
.project-card:hover .project-overlay { opacity: 1; }
.case-study-button { background: var(--primary-blue); color: var(--bg-dark); padding: 0.75rem 1.5rem; border-radius: 5px; transform: scale(0.9); transition: transform 0.3s; }
.project-card:hover .case-study-button { transform: scale(1); }

/* --- Careers Section --- */
.careers-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.career-list { display: flex; flex-direction: column; gap: 1rem; }

/* Remove glow effect from "Join Our Team" heading */
#careers .section-title {
    position: relative;
    /* Removed text-shadow and animation properties */
}

/* We can keep the keyframes definition in case it's used elsewhere */
@keyframes jglow {
    0% { text-shadow: 0 0 10px var(--primary-blue), 0 0 20px var(--primary-blue); }
    100% { text-shadow: 0 0 15px var(--primary-blue), 0 0 30px var(--primary-blue), 0 0 45px var(--primary-green); }
}

/* Enhanced career card with glow effect */
.career-card { 
    background-color: var(--card-color); 
    border: 1px solid var(--border-color); 
    padding: 1.5rem; 
    border-radius: 8px; 
    position: relative; 
    text-align: left; 
    padding-bottom: 4.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Add glowing border on hover */
.career-card:hover { 
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 5px 20px rgba(0, 191, 255, 0.2);
}

/* Add gradient glow overlay effect on hover */
.career-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-blue), transparent, var(--primary-green));
    z-index: -1;
    opacity: 0;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.career-card:hover::before {
    opacity: 0.3;
}

/* Enhance job title with color transition */
.career-card h4 { 
    font-family: var(--font-heading); 
    color: var(--primary-blue); 
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.career-card:hover h4 {
    color: var(--primary-green);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

/* Enhanced apply now button */
.apply-now-btn { 
    position: absolute; 
    bottom: 1.5rem; 
    right: 1.5rem; 
    border: 2px solid var(--primary-blue); 
    color: var(--primary-blue); 
    padding: 0.5rem 1rem; 
    border-radius: 5px; 
    font-weight: bold;
    transition: all 0.3s ease;
}

.apply-now-btn:hover { 
    background-color: var(--primary-blue); 
    color: var(--bg-dark); 
    box-shadow: 0 0 15px var(--border-glow),
                0 0 30px var(--border-glow);
    transform: scale(1.05);
    letter-spacing: 0.5px;
}

/* --- Careers Nav Cards --- */
.career-nav-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.career-nav-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--border-glow);
    border-color: var(--primary-blue);
}

.career-nav-card i {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.career-nav-card h3 {
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.career-nav-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.career-nav-card .cta-text {
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.career-nav-card:hover .cta-text {
    text-shadow: 0 0 10px var(--primary-blue);
}

/* Add subtle pulse animation to Apply buttons */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.career-card:hover .apply-now-btn {
    animation: pulse 1.5s infinite;
}

/* Career subcategory headings glow effect */
.subsection-title {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.subsection-title:hover {
    text-shadow: 0 0 10px var(--primary-blue);
}

/* --- Contact Section --- */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: flex-start; }
.contact-form .form-row { display: flex; gap: 1rem; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 5px; padding: 1rem; color: var(--text-light); font-size: 1rem; margin-bottom: 1rem; }
.contact-form select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em; }
.contact-form *:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 10px var(--border-glow); }
.contact-info-block { background-color: var(--card-color); padding: 2rem; border-radius: 10px; border: 1px solid var(--border-color); }
.contact-info-block ul { list-style: none; padding: 0; margin-top: 1rem; }
.contact-info-block li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-info-block li a:hover i { transform: scale(1.2); color: var(--primary-blue); }
.contact-info-block li i { margin-top: 0.2rem; transition: transform 0.3s; }
.social-contact { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.social-button { padding: 0.75rem 1rem; border-radius: 5px; text-align: center; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.social-button:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.social-button.whatsapp { background-color: #25D366; }
.social-button.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }

/* --- Footer --- */
.footer { background-color: var(--card-color); padding: 4rem 0 2rem; z-index: 2; position: relative; border-bottom: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; align-items: center; }
.footer h4 { font-family: var(--font-heading); color: var(--primary-blue); margin-bottom: 1rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-social a { font-size: 1.5rem; margin-right: 1rem; }
.footer-logo { max-height: 50px; width: 50px; border-radius: 50%; border: 2px solid var(--primary-blue); margin-bottom: 1rem; object-fit: cover; }
.footer-bottom-bar { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--border-color); color: var(--text-mid); }
.footer-admin-login button { border: 1px solid var(--text-mid); color: var(--text-mid); padding: 0.3rem 0.8rem; border-radius: 5px; font-size: 0.9rem; }
.footer-admin-login button:hover { background-color: var(--primary-blue); color: var(--bg-dark); border-color: var(--primary-blue); }

/* --- Modals & Global UI --- */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; background: var(--primary-blue); color: var(--bg-dark); width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 99; opacity: 0; visibility: hidden; transition: all 0.3s; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(18, 18, 18, 0.9); backdrop-filter: blur(5px); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.3s; }
.modal-backdrop.visible { opacity: 1; visibility: visible; }
.modal { background-color: var(--card-color); padding: 2rem; border-radius: 10px; width: 90%; max-width: 500px; text-align: center; border: 1px solid var(--border-color); transform: scale(0.9); transition: all 0.3s; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-backdrop.visible .modal { transform: scale(1); }
.modal h3 { margin-bottom: 1.5rem; color: var(--primary-blue); font-family: var(--font-heading); }
.modal form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.modal input, .modal textarea, .modal select { background: var(--bg-dark); color: var(--text-light); padding: 0.75rem; border-radius: 5px; border: 1px solid var(--border-color); font-family: 'Space Grotesk', sans-serif; }
.modal button[type="submit"] { background-color: var(--primary-blue); color: var(--bg-dark); padding: 0.75rem; font-weight: bold; }
.modal label { margin-bottom: -0.5rem; font-size: 0.9rem; color: var(--text-mid); }
.close-modal-btn { position: absolute; top: 10px; right: 15px; font-size: 2rem; color: var(--text-mid); font-weight: bold; }
.form-feedback { min-height: 20px; text-align: center; font-weight: bold; margin-bottom: 1rem; transition: opacity 0.3s; padding: 0.5rem; border-radius: 4px; }
.form-feedback.success { color: var(--success-color); }
.form-feedback.error { color: var(--error-color); background: rgba(255, 65, 54, 0.1); }
#forgot-password-link { margin-top: 1rem; display: inline-block; }
.secondary-button { background: transparent; color: var(--primary-green); border: 2px solid var(--primary-green); padding: 0.75rem 1.5rem; border-radius: 5px; }
#resume-status { margin-top: 1rem; font-size: 0.9rem; color: var(--text-mid); }

/* --- Upload Widget Styles --- */
.upload-widget-container {
    margin: 1rem 0;
}

.resume-upload-btn {
    width: 100%;
    padding: 1rem;
    background: var(--card-color);
    border: 2px dashed var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.resume-upload-btn:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 191, 255, 0.1);
}

#resume-status {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

#resume-status.success {
    color: var(--success-color);
    background: rgba(57, 255, 20, 0.1);
}

#resume-status.error {
    color: var(--error-color);
    background: rgba(255, 65, 54, 0.1);
}

/* File Upload Styling */
.file-upload-container {
    margin: 1rem 0;
}

.file-upload-container input[type="file"] {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-dark);
    border: 2px dashed var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    cursor: pointer;
}

.file-upload-container input[type="file"]:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 191, 255, 0.1);
}

.file-upload-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-mid);
}

/* --- Button Loading States --- */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btn-spinner 0.8s linear infinite;
}

@keyframes btn-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Different loading styles based on button type */
.cta-button.primary.btn-loading::after {
    border-top-color: var(--bg-dark);
}

.cta-button.secondary.btn-loading::after,
.cta-button.tertiary.btn-loading::after,
.apply-now-btn.btn-loading::after {
    border-top-color: var(--primary-blue);
}

.modal button[type="submit"].btn-loading::after {
    border-top-color: var(--bg-dark);
}

/* --- Admin Controls Styling --- */
.admin-button {
    display: none;
    background: var(--primary-blue);
    color: var(--bg-dark);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 191, 255, 0.3);
}

.admin-button:hover {
    background: var(--primary-green);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.admin-button:active {
    transform: scale(0.95);
}

/* Admin panel controls styling */
.admin-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 0.5rem;
    background: rgba(30, 30, 30, 0.85);
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
    z-index: 10;
    border: 1px solid var(--border-color);
}

.admin-controls:hover {
    opacity: 1;
}

.admin-controls button {
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.admin-controls button.edit-btn {
    background: rgba(0, 191, 255, 0.2);
}

.admin-controls button.delete-btn {
    background: rgba(255, 65, 54, 0.2);
}

.admin-controls button:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.2);
}

.admin-controls button.edit-btn:hover {
    background: rgba(0, 191, 255, 0.4);
}

.admin-controls button.delete-btn:hover {
    background: rgba(255, 65, 54, 0.4);
}

.admin-controls button i {
    margin-right: 4px;
    color: inherit;
}

.admin-controls.reorder {
    bottom: 10px;
    top: auto;
    left: 10px;
    right: auto;
}

.admin-controls.top-right {
    top: 1.5rem;
    right: 1.5rem;
}

.admin-controls.reorder button {
    font-size: 1rem;
    font-weight: bold;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add career button with + icon */
.add-career-btn, #add-member-btn, #add-project-btn, #add-why-us-btn {
    position: relative;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
}

.section-title-wrapper {
    position: relative;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 5px;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    color: var(--bg-dark);
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--error-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- Mobile Responsiveness --- */
.hamburger {
    display: none;
}

@media (max-width: 768px) {
    /* Global */
    .container {
        padding: 0 1rem;
    }
    .content-section {
        padding: 3rem 0;
    }
    .section-title {
        font-size: 2rem;
    }
    
    /* Navigation */
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }
    
    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--text-light);
    }
    
    .nav-menu ul {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        gap: 2rem;
        z-index: 1000;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu.active ul {
        left: 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero */
    .hero-headline {
        font-size: 2.5rem;
    }
    .hero-subheadline {
        font-size: 1rem;
        padding: 0 1rem;
    }
    .hero-cta-group {
        flex-direction: column;
        gap: 1rem;
    }
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    /* Founder */
    .founder-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .founder-photo {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    .founder-bio {
        text-align: center;
    }
    
    /* Grids */
    .tech-stack-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 1rem;
    }
    
    .careers-container, 
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 1rem;
    }
    .social-contact {
        align-items: center;
    }
    
    /* Modals */
    .modal {
        width: 95%;
        padding: 1.5rem;
    }
    
    .admin-controls {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 10px;
        justify-content: center;
    }
    
    /* Mobile Team Toggle */
    #mobile-team-toggle {
        display: flex !important;
    }
    #team-grid {
        display: none;
    }
    #team-grid.show-on-mobile {
        display: grid;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-headline {
        font-size: 2rem;
    }
}