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


:root {
    /* Dark Mode Colors */
    --bg-primary: #0a0a0a;
    /* pure black */
    --bg-secondary: #111827;
    /* slate-900 */
    --bg-tertiary: #1e293b;
    /* slate-800 */

    --text-primary: #f9fafb;
    /* near-white */
    --text-secondary: #94a3b8;
    /* slate-400 */

    --accent-primary: #3b82f6;
    /* blue-500 */
    --accent-secondary: #2563eb;
    /* blue-600 */
    --accent-tertiary: #1d4ed8;
    /* blue-700 */

    --border-color: #1e293b;
    --shadow-color: rgba(59, 130, 246, 0.35);

    /* Light Mode Colors */
    --bg-primary-light: #ffffff;
    --bg-secondary-light: #f8fafc;
    /* slate-50 */
    --bg-tertiary-light: #e2e8f0;
    /* slate-200 */

    --text-primary-light: #0f172a;
    /* slate-900 */
    --text-secondary-light: #475569;
    /* slate-600 */

    --accent-primary-light: #2563eb;
    --accent-secondary-light: #3b82f6;
    --accent-tertiary-light: #60a5fa;

    --border-color-light: #cbd5e1;
    --shadow-color-light: rgba(59, 130, 246, 0.2);

    /* Utility */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Mode */
body.dark-mode {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111827;
    --bg-tertiary: #1e293b;
    --text-primary: #f9fafb;
    --text-secondary: #94a3b8;
    --border-color: #1e293b;
    --shadow-color: rgba(59, 130, 246, 0.35);
}

/* Light Mode */
body.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #cbd5e1;
    --shadow-color: rgba(59, 130, 246, 0.2);
}


body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.theme-btn {
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-primary);
    color: var((--accent-primary));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.theme-btn:hover {
    background: var(--accent-primary);
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--accent-primary);
}

.theme-icon {
    width: 28px;
    height: 28px;
    transition: all var(--transition-normal);
}

.theme-btn:hover .theme-icon {
    transform: rotate(180deg) scale(1.1);
}

/* Logo styles for footer */
.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
    letter-spacing: 2px;
}

.logo-sub {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    text-shadow: 0 0 5px var(--accent-secondary);
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 0, 0, 0.100) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 255, 0.100) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: radial-gradient(circle at 20% 80%, rgba(255, 0, 0, 0.050) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 0, 255, 0.050) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, transparent 0%, transparent 50%); */
}

/* Floating Cards in Hero */
.floating-cards-hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(3deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(-3deg); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    z-index: 2;
    user-select: none;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.title-line {
    display: block;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1) drop-shadow(0 0 20px rgba(0, 212, 255, 0.5)); }
    100% { filter: brightness(1.2) drop-shadow(0 0 30px rgba(0, 212, 255, 0.8)); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4), 0 0 30px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4), 0 0 30px rgba(0, 212, 255, 0.6);
}

/* Code Window */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-window {
    background: var(--bg-tertiary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.code-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    pointer-events: none;
    z-index: 1;
}

.window-header {
    background: var(--bg-secondary);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.window-controls {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    position: relative;
}

.control:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px currentColor;
}

.control:active {
    transform: scale(0.9);
}

.control.red { 
    background: #ff5f56; 
    color: #ff5f56;
}

.control.yellow { 
    background: #ffbd2e; 
    color: #ffbd2e;
}

.control.green { 
    background: #27ca3f; 
    color: #27ca3f;
}

.control.red::after {
    content: "Hello";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    border: 1px solid var(--border-color);
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.control.yellow::after {
    content: "About Us";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    border: 1px solid var(--border-color);
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.control.green::after {
    content: "Join Us";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    border: 1px solid var(--border-color);
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.control:hover::after {
    opacity: 1;
}

.window-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: 'Orbitron', monospace;
    text-align: center;
    flex: 1;
}

.window-content {
    padding: 20px;
    background: var(--bg-primary);
    position: relative;
    z-index: 2;
}

.typing-code {
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow: hidden;
    white-space: pre-wrap;
    position: relative;
}

.typing-code::after {
    content: '|';
    color: var(--accent-primary);
    animation: blink 1s infinite;
}

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

/* Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup {
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 2px solid var(--accent-primary);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform var(--transition-normal);
}

.popup-overlay.active .popup {
    transform: scale(1);
}

.popup-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    font-size: 1.8rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.popup-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.popup-close:hover {
    color: var(--accent-secondary);
}

.popup-content {
    padding: 30px;
}

.recruit-hero {
    text-align: center;
    margin-bottom: 30px;
}

.recruit-hero i {
    font-size: 4rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
    display: block;
}

.recruit-hero h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.popup-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.requirements h5 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.requirements ul {
    list-style: none;
    margin-bottom: 30px;
}

.requirements li {
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.requirements li::before {
    content: '▶';
    color: var(--accent-secondary);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.popup-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat {
    text-align: center;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-primary);
    font-family: 'Orbitron', monospace;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .theme-toggle {
        bottom: 20px;
        right: 20px;
    }
    
    .theme-btn {
        width: 50px;
        height: 50px;
    }
    
    .theme-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .popup {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* this is for that popup from red btn */

.terminal-message {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: red;
    /* classic green text */
    background-color: #000;
    /* black terminal bg */
    padding: 1rem;
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.3;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* Blinking block cursor */
.terminal-message::after {
    content: "█";
    font-weight: bold;
    animation: blink 1s infinite;
    display: inline-block;
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

/* Optional: small text jitter/glitch */
.glitch {
    display: inline-block;
    position: relative;
    animation: glitchMove 0.3s infinite linear alternate-reverse;
}

@keyframes glitchMove {
    0% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-1px, 1px);
    }

    40% {
        transform: translate(-1px, -1px);
    }

    60% {
        transform: translate(1px, 1px);
    }

    80% {
        transform: translate(1px, -1px);
    }

    100% {
        transform: translate(0, 0);
    }
}