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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #1e40af;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

/* Matrix Rain Effect - Canvas */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    opacity: 1;
    transition: opacity 2s ease-in-out;
}

#matrix-canvas.fade-to-background {
    z-index: -1;
    opacity: 0.15;
}

/* Page content initially hidden */
.page-content {
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.page-content.show {
    opacity: 1;
}

/* Matrix Timer */
.matrix-timer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.analog-clock {
    width: 80px;
    height: 80px;
}

.clock-face {
    width: 100%;
    height: 100%;
    border: 3px solid #00FF00;
    border-radius: 50%;
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.hour-hand, .minute-hand, .second-hand {
    position: absolute;
    background: #00FF00;
    transform-origin: bottom center;
    border-radius: 2px;
}

.hour-hand {
    width: 4px;
    height: 25px;
    top: 15px;
    left: 50%;
    margin-left: -2px;
}

.minute-hand {
    width: 3px;
    height: 35px;
    top: 5px;
    left: 50%;
    margin-left: -1.5px;
}

.second-hand {
    width: 1px;
    height: 35px;
    top: 5px;
    left: 50%;
    margin-left: -0.5px;
    background: #FF0000;
}

.center-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00FF00;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin-top: -3px;
    margin-left: -3px;
}

.digital-timer {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    color: #00FF00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 16px;
    border-radius: 0;
    border: 2px solid #00FF00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Auth Buttons Container */
.auth-buttons-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    z-index: 1000;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Desktop styles for auth buttons */
@media (min-width: 769px) {
    .auth-buttons-container {
        top: 2rem;
        right: 2rem;
        left: auto;
        width: auto;
        gap: 1rem;
        justify-content: flex-start;
    }
}

.btn-login, .btn-register {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Desktop styles for auth buttons */
@media (min-width: 769px) {
    .btn-login, .btn-register {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.5rem;
    }
}

.btn-login {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-register {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-register:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.admin-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    backdrop-filter: blur(10px);
}

.admin-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* User Info Container */
.user-info-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    z-index: 1000;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: space-between;
}

/* Desktop styles for user info */
@media (min-width: 769px) {
    .user-info-container {
        top: 2rem;
        right: 2rem;
        left: auto;
        width: auto;
        gap: 1rem;
        padding: 1rem;
        justify-content: flex-start;
    }
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.user-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.btn-dashboard {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(10px);
}

/* Desktop styles for buttons */
@media (min-width: 769px) {
    .btn-dashboard {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.5rem;
    }
}

.btn-dashboard:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-logout {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(10px);
}

/* Desktop styles for logout button */
@media (min-width: 769px) {
    .btn-logout {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.5rem;
    }
}

.btn-logout:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Auth Modals */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
    padding: 0.5rem;
}

/* Desktop styles for auth modal */
@media (min-width: 769px) {
    .auth-modal {
        padding: 1rem;
    }
}

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

.auth-modal .modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 0;
    border-radius: 0;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 100%;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

/* Desktop styles for modal content */
@media (min-width: 769px) {
    .auth-modal .modal-content {
        max-width: 420px;
        max-height: none;
        overflow-y: visible;
    }
}

.modal-header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    padding: 1rem 1rem 0.75rem;
    color: white;
    position: relative;
}

/* Desktop styles for modal header */
@media (min-width: 769px) {
    .modal-header {
        padding: 2rem 2rem 1.5rem;
    }
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.modal-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.auth-form {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Desktop styles for auth form */
@media (min-width: 769px) {
    .auth-form {
        padding: 2rem;
    }
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.auth-form label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    display: block;
}

.auth-form input {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: var(--text-primary);
    font-weight: 500;
}

/* Desktop styles for auth form inputs */
@media (min-width: 769px) {
    .auth-form input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
}

.auth-form input:focus {
    outline: none;
    border-color: #1e40af;
    background: white;
    box-shadow: 
        0 0 0 4px rgba(30, 64, 175, 0.1),
        0 4px 12px rgba(30, 64, 175, 0.15);
    transform: translateY(-1px);
}

.auth-form input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.btn-auth {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    margin-top: 0.25rem;
}

/* Desktop styles for auth buttons */
@media (min-width: 769px) {
    .btn-auth {
        padding: 1rem 2rem;
        font-size: 1rem;
        gap: 0.75rem;
    }
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn-auth:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    position: relative;
    margin: 0.125rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.divider span {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 0 1.5rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.btn-google {
    background: white;
    color: var(--text-primary);
    border: 2px solid #e2e8f0;
    padding: 1rem 2rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-google:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-google i {
    color: #1e40af;
    font-size: 1.1rem;
}

/* Modal Animations */
@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Form validation styles */
.auth-form input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.auth-form input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Loading state */
.btn-auth.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-auth.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success state */
.auth-form .success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 0.75rem 1rem;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Tech Grid */
.tech-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.grid-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #1e40af, transparent);
    animation: gridPulse 4s ease-in-out infinite;
}

.grid-line:nth-child(1) {
    width: 100%;
    height: 1px;
    top: 20%;
    animation-delay: 0s;
}

.grid-line:nth-child(2) {
    width: 100%;
    height: 1px;
    top: 40%;
    animation-delay: 1s;
}

.grid-line:nth-child(3) {
    width: 100%;
    height: 1px;
    top: 60%;
    animation-delay: 2s;
}

.grid-line:nth-child(4) {
    width: 1px;
    height: 100%;
    left: 20%;
    animation-delay: 0.5s;
}

.grid-line:nth-child(5) {
    width: 1px;
    height: 100%;
    left: 50%;
    animation-delay: 1.5s;
}

.grid-line:nth-child(6) {
    width: 1px;
    height: 100%;
    left: 80%;
    animation-delay: 2.5s;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

/* Code Elements */
.code-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.code-block {
    position: absolute;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 0;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #1e40af;
    backdrop-filter: blur(10px);
    animation: codeFloat 8s ease-in-out infinite;
}

.code-block:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.code-block:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

.code-block:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
}

.code-line {
    display: block;
    margin-bottom: 0.25rem;
}

@keyframes codeFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(2deg); opacity: 1; }
}

/* Tech Particles */
.tech-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #1e40af;
    border-radius: 50%;
    animation: particleMove 6s linear infinite;
}

.particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; left: 30%; animation-delay: 1s; }
.particle:nth-child(3) { top: 30%; left: 60%; animation-delay: 2s; }
.particle:nth-child(4) { top: 40%; left: 80%; animation-delay: 3s; }
.particle:nth-child(5) { top: 60%; left: 20%; animation-delay: 4s; }
.particle:nth-child(6) { top: 70%; left: 50%; animation-delay: 5s; }
.particle:nth-child(7) { top: 80%; left: 70%; animation-delay: 1.5s; }
.particle:nth-child(8) { top: 90%; left: 40%; animation-delay: 3.5s; }

@keyframes particleMove {
    0% { transform: translateY(0px) translateX(0px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

/* Circuit Pattern */
.circuit-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    opacity: 0.1;
}

.circuit-svg {
    width: 100%;
    height: 100%;
    animation: circuitRotate 20s linear infinite;
}

.circuit-path {
    fill: none;
    stroke: #1e40af;
    stroke-width: 0.5;
    stroke-dasharray: 5, 5;
    animation: circuitDash 3s linear infinite;
}

.circuit-node {
    fill: #1e40af;
    animation: circuitPulse 2s ease-in-out infinite;
}

.circuit-node.main {
    animation: circuitPulse 1s ease-in-out infinite;
}

@keyframes circuitRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes circuitDash {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 20; }
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-badge i {
    color: #1e40af;
}

.hero-title {
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.title-line {
    display: block;
    animation: slideInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

.text-gradient {
    background: linear-gradient(135deg, #1e40af 0%, #ffffff 50%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cursor-blink {
    color: #1e40af;
    animation: blink 1s infinite;
    font-weight: 300;
}

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

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
    line-height: 1.6;
}

.highlight {
    color: #1e40af;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.tech-item {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e40af;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

.tech-celeste {
    color: #06b6d4 !important;
    background: rgba(6, 182, 212, 0.1) !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
}

.particle-celeste {
    background: #06b6d4 !important;
    box-shadow: 0 0 10px #06b6d4, 0 0 20px #06b6d4, 0 0 30px #06b6d4 !important;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border: 1px solid rgba(30, 64, 175, 0.3);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.4);
    text-decoration: none;
    color: white;
}

.btn-primary::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 ease;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}


.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, #00d4ff, transparent);
    position: relative;
    border-radius: 1px;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #00d4ff;
    border-bottom: 2px solid #00d4ff;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.project-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.project-card:hover {
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0;
}

.project-placeholder {
    font-size: 2.5rem;
    color: white;
    opacity: 0.8;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.project-content {
    padding: 1.25rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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


/* Services Section */
.services {
    padding: 60px 0;
    background: #f8fafc;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.services p {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.service-card p {
    color: #6b7280;
    margin: 0;
}

.service-card {
    cursor: pointer;
}

/* Quote Modal */
.quote-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.quote-modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.quote-modal-header {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
    padding: 2rem;
    text-align: center;
}

.quote-modal-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.quote-modal-header p {
    margin: 0;
    opacity: 0.9;
}

.quote-modal-body {
    padding: 2rem;
}

.quote-form {
    display: grid;
    gap: 1.5rem;
}

.quote-form .form-group {
    display: flex;
    flex-direction: column;
}

.quote-form label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.quote-form .form-input {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0;
    font-size: 1rem;
    color: #1f2937;
    background-color: white;
    transition: border-color 0.3s ease;
}

.quote-form .form-input option {
    color: #1f2937;
    background-color: white;
}

.quote-form .form-input:focus {
    outline: none;
    border-color: #1e40af;
    color: #1f2937;
    background-color: white;
}

.quote-form select.form-input {
    color: #1f2937;
    background-color: white;
}

.quote-form select.form-input option {
    color: #1f2937;
    background-color: white;
    padding: 0.5rem;
}

.quote-form .form-textarea {
    resize: vertical;
    min-height: 100px;
}

.quote-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 2rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.quote-modal-footer .btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.quote-modal-footer .btn-secondary:hover {
    background: #4b5563;
}

.quote-modal-footer .btn-primary {
    background: #1e40af;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.quote-modal-footer .btn-primary:hover {
    background: #1e3a8a;
}

/* Service Modal */
.service-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.service-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.service-modal-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 2rem;
    text-align: center;
}

.service-modal-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-modal-header h2 {
    margin: 0;
    font-size: 2rem;
}

.service-modal-body {
    padding: 2rem;
}

.service-details, .service-tech, .service-delivery {
    margin-bottom: 1.5rem;
}

.service-details ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.service-details h3, .service-tech h3, .service-delivery h3, .service-price h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}


.service-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.service-details li:before {
    content: "✓ ";
    color: #10b981;
    font-weight: bold;
}

.tech-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    margin: 0.25rem;
}

.service-modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-dark);
    color: white;
}

/* Contact methods text color */
.contact-method span {
    color: #1f2937 !important;
    font-weight: 500;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-method i {
    width: 20px;
    color: var(--accent-color);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.05);
    color: #1f2937;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: rgba(31, 41, 55, 0.6);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Creative Message Section */
.creative-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.creative-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.creative-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.creative-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.creative-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.creative-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.creative-feature i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.creative-feature span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive for creative features */
@media (max-width: 768px) {
    .creative-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .creative-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Page Styles */
.main-content {
    padding: 0;
    min-height: 100vh;
}

/* Professional Header Typography */
.main-content .header,
.about-content .header,
.legal-content .header {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.025em;
}

.main-content .header .nav-link,
.about-content .header .nav-link,
.legal-content .header .nav-link {
    font-weight: 500;
    letter-spacing: 0.025em;
    text-transform: none;
    font-size: 0.95rem;
}

/* Header styles for secondary pages */
.main-content .header,
.about-content .header,
.legal-content .header {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-content .header .nav,
.about-content .header .nav,
.legal-content .header .nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-content .header .nav-logo,
.about-content .header .nav-logo,
.legal-content .header .nav-logo {
    height: 40px;
    width: auto;
    padding-left: 0;
}

.main-content .header .nav-link,
.about-content .header .nav-link,
.legal-content .header .nav-link {
    color: #f9fafb;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
}

.main-content .header .nav-link:hover,
.about-content .header .nav-link:hover,
.legal-content .header .nav-link:hover {
    color: #1e40af;
    background: rgba(30, 64, 175, 0.1);
}

.main-content .header .nav-link::after,
.about-content .header .nav-link::after,
.legal-content .header .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1e40af;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-content .header .nav-link:hover::after,
.about-content .header .nav-link:hover::after,
.legal-content .header .nav-link:hover::after {
    width: 100%;
}

/* General logo size for all secondary pages */
body:not(.home-page) .nav-logo {
    height: 40px;
    width: auto;
    padding-left: 0;
}

.page-header {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem 0;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
}

.about-content, .legal-content {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-section, .legal-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-section h2, .legal-section h2 {
    color: #1f2937;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #1e40af;
    padding-bottom: 0.5rem;
}

.about-section p, .legal-section p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.team-features, .values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.team-feature, .value-item {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.team-feature:hover, .value-item:hover {
    transform: translateY(-5px);
}

.team-feature i, .value-item i {
    font-size: 1.5rem;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.team-feature h3, .value-item h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.team-feature p, .value-item p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    padding: 0.5rem 0;
    color: #4b5563;
}

.mission-list i {
    color: #10b981;
    margin-right: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
    border-radius: 0;
}

.stat-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.75rem;
    opacity: 0.9;
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .team-features, .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .team-features, .values-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin Panel Styles */
.admin-title {
    margin-left: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.admin-main {
    padding: 2rem 0;
    min-height: 80vh;
    background: #f8fafc;
}

.admin-header {
    text-align: center;
    margin-bottom: 3rem;
}

.admin-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.admin-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.stat-content p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

.filters-section {
    background: white;
    padding: 2rem;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select, .search-input {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0;
    font-size: 1rem;
    color: #1f2937;
    background-color: white;
}

.search-input {
    flex: 1;
    min-width: 300px;
}

.quotes-section {
    background: white;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.section-header h2 {
    margin: 0;
    color: #1f2937;
}

.quotes-table-container {
    overflow-x: auto;
}

.quotes-table {
    width: 100%;
    border-collapse: collapse;
}

.quotes-table th,
.quotes-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.quotes-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1f2937;
}

.client-info strong {
    display: block;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.client-info small {
    color: #6b7280;
}

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

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-in-progress {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.btn-small {
    padding: 0.5rem;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    transition: background-color 0.3s ease;
}

.btn-small.btn-primary {
    background: #1e40af;
    color: white;
}

.btn-small.btn-primary:hover {
    background: #1e3a8a;
}

.btn-small.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-small.btn-secondary:hover {
    background: #4b5563;
}

/* Quote Detail Modal */
.quote-detail-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.quote-detail-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.quote-detail-header {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
    padding: 2rem;
    text-align: center;
}

.quote-detail-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.quote-detail-body {
    padding: 2rem;
}

.quote-detail-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.quote-detail-section:last-child {
    border-bottom: none;
}

.quote-detail-section h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.detail-item span {
    color: #1f2937;
    font-size: 1rem;
}

.quote-objectives,
.quote-details {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0;
    color: #4b5563;
    line-height: 1.6;
    white-space: pre-wrap;
}

.quote-detail-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 2rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quotes-table-container {
        font-size: 0.875rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Page Styles */
.contact-page-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 0.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-section h2,
.contact-form-section h2 {
    color: #1f2937;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-methods {
    display: grid;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-2px);
    background: #f1f5f9;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-details p {
    color: #6b7280;
    margin-bottom: 0.1rem;
    font-size: 0.85rem;
    line-height: 1.3;
}

.contact-form {
    background: white;
    padding: 1.5rem;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group .form-input {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid #e5e7eb;
    border-radius: 0;
    font-size: 0.9rem;
    color: #1f2937;
    background-color: white;
    transition: border-color 0.3s ease;
}

.form-group .form-input::placeholder {
    color: rgba(31, 41, 55, 0.6);
}

.form-group .form-input:focus {
    outline: none;
    border-color: #1e40af;
}

.form-group .form-textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: #1e40af;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-primary {
    background: #1e40af;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #1e3a8a;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.25rem;
    margin-left: 1rem;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Avoid overlap with auth buttons */
@media (min-width: 769px) {
    .language-switcher {
        top: 80px;
        right: 20px;
    }
}

/* On mobile, position it better */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 0.25rem;
    }
}

/* Removed auth container styles since switcher is now fixed */

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: auto;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: #1e40af;
    border-color: #1e3a8a;
    color: white;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.lang-btn .flag {
    font-size: 1rem;
}

/* Removed .text styles to avoid duplication */

/* Responsive for language switcher */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 0.25rem;
    }
    
    .lang-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    /* Removed text hiding to avoid duplication */
}

/* Responsive for contact page */
@media (max-width: 768px) {
    .contact-page-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Admin Link */
.admin-link {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.admin-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.admin-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

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

/* Portfolio Page Styles */
.portfolio-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-text {
    display: inline-block;
}

.logo-text:first-child {
    color: var(--primary-color);
}

.logo-text:last-child {
    color: var(--secondary-color);
}

/* Logo Images */
.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Logo size for other pages */
.main-content .nav-logo,
.about-content .nav-logo,
.legal-content .nav-logo {
    height: 60px;
    width: auto;
    padding-left: 50px;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.floating-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #06b6d4);
    border-radius: 50%;
    opacity: 0.7;
    animation: float 4s ease-in-out infinite;
}

.particle-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 3s;
}

.particle-2 {
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
    animation-duration: 4s;
}

.particle-3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 1s;
    animation-duration: 3.5s;
}

.particle-4 {
    bottom: 30%;
    right: 30%;
    animation-delay: 1.5s;
    animation-duration: 4.5s;
}

.particle-5 {
    top: 50%;
    left: 10%;
    animation-delay: 2s;
    animation-duration: 3.2s;
}

.particle-6 {
    top: 50%;
    right: 10%;
    animation-delay: 2.5s;
    animation-duration: 4.2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-25px) rotate(270deg);
        opacity: 1;
    }
}

.hero-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    position: relative;
    animation: logoGlow 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3)) drop-shadow(0 0 40px rgba(139, 92, 246, 0.2));
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Desktop styles for hero logo */
@media (min-width: 769px) {
    .hero-logo-img {
        height: 160px;
    }
}

.hero-logo-img:hover {
    animation: logoPulse 0.6s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.5)) drop-shadow(0 0 60px rgba(139, 92, 246, 0.3)) drop-shadow(0 0 90px rgba(6, 182, 212, 0.2));
    transform: scale(1.05);
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3)) drop-shadow(0 0 40px rgba(139, 92, 246, 0.2));
        transform: scale(1);
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.4)) drop-shadow(0 0 50px rgba(139, 92, 246, 0.3)) drop-shadow(0 0 70px rgba(6, 182, 212, 0.2));
        transform: scale(1.02);
    }
}

@keyframes logoPulse {
    0% {
        filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.5)) drop-shadow(0 0 60px rgba(139, 92, 246, 0.3)) drop-shadow(0 0 90px rgba(6, 182, 212, 0.2));
        transform: scale(1.05);
    }
    100% {
        filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.6)) drop-shadow(0 0 80px rgba(139, 92, 246, 0.4)) drop-shadow(0 0 120px rgba(6, 182, 212, 0.3));
        transform: scale(1.08);
    }
}

.footer-logo {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Desktop styles for footer logo */
@media (min-width: 769px) {
    .footer-logo-img {
        height: 75px;
    }
}

.nav {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

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

.portfolio-hero {
    padding: 1rem 0 0.5rem;
    background: var(--bg-secondary);
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

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

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: 0;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.portfolio-projects {
    padding: 1rem 0;
    background: var(--bg-secondary);
}

.portfolio-cta {
    padding: 4rem 0;
    background: var(--bg-dark);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.project-category {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.status-badge.completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge.in-progress {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge.planning {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.project-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: white;
    text-decoration: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Portfolio Centering Fix */
.portfolio-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.portfolio-hero .container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portfolio-hero .hero-content {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Portfolio Responsive */
@media (max-width: 768px) {
    .hero-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .filter-buttons {
        gap: 0.25rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}
